[go: up one dir, main page]

0% found this document useful (0 votes)
228 views1 page

Updater Script

1. The document outlines the steps to update the system image of a Xiaomi device, including extracting installation files, mounting and unmounting the system partition, flashing the system and vendor images, and extracting an updated boot image. 2. Progress is tracked throughout the process, which involves flashing the system and vendor partitions, restoring a backup, and extracting an updated boot image. 3. The steps are meant to update the system, including system and vendor images, in an automated process on a Xiaomi device.

Uploaded by

rizkiss: ,
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
228 views1 page

Updater Script

1. The document outlines the steps to update the system image of a Xiaomi device, including extracting installation files, mounting and unmounting the system partition, flashing the system and vendor images, and extracting an updated boot image. 2. Progress is tracked throughout the process, which involves flashing the system and vendor partitions, restoring a backup, and extracting an updated boot image. 3. The steps are meant to update the system, including system and vendor images, in an automated process on a Xiaomi device.

Uploaded by

rizkiss: ,
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

ui_print("Target: Xiaomi/ido/ido:5.1.1/LMY47V/V9.2.1.0.

LAIMIEK:user/release-keys");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode",
0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755,
"fmode", 0755);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
ui_print(" ");
ui_print(" _____ _ _ ");
ui_print(" | __ \ (_) | | ");
ui_print(" ___ _ __| | | |_ __ ___ _ __| | ");
ui_print(" / __| '__| | | | '__/ _ \| |/ _\`| ");
ui_print(" | (__| | | |__| | | | (_) | | (_| | ");
ui_print(" \___|_| |_____/|_|_ \___/|_|\__,_| _ ");
ui_print(" /\ | | (_) | |");
ui_print(" / \ _ __ __| |_ __ ___ _ __| |");
ui_print(" / /\ \ | '_ \ / _\`| '__/ _ \| |/ _\`|");
ui_print(" / ____ \| | | | (_| | | | (_) | | (_| |");
ui_print(" /_/ \_\_| |_|\__,_|_| \___/|_|\__,_|");
ui_print(" ");
show_progress(0.650000, 0);
ui_print(" ");
ui_print("Flashing System..");
block_image_update("/dev/block/bootdevice/by-name/system",
package_extract_file("system.transfer.list"), "system.new.dat.br",
"system.patch.dat") ||
abort("E1001: Failed to update system image.");
show_progress(0.100000, 0);
ui_print(" ");
ui_print("Flashing System..");
block_image_update("/dev/block/bootdevice/by-name/cust",
package_extract_file("vendor.transfer.list"), "vendor.new.dat.br",
"vendor.patch.dat") ||
abort("E2001: Failed to update vendor image.");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
show_progress(0.200000, 10);
set_progress(1.000000);

You might also like