You are on page 1of 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