0% found this document useful (0 votes)
45 views

Updater Script

This document contains code to install a system update on an Android device. It extracts installation files to a temporary directory, sets permissions, backs up the existing system partition, flashes the system and vendor partitions with new images, then restores the backup and flashes the boot partition. Progress is tracked during the process.

Uploaded by

Vikash Kashyap
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

Updater Script

This document contains code to install a system update on an Android device. It extracts installation files to a temporary directory, sets permissions, backs up the existing system partition, flashes the system and vendor partitions with new images, then restores the backup and flashes the boot partition. Progress is tracked during the process.

Uploaded by

Vikash Kashyap
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

ui_print("----------------------------------------------");

ui_print(" _____ ____ _______ ___ _ _____ ");


ui_print(" / ____/ __ \| __ \ \ / / | | |/ ____| ");
ui_print(" | | | | | | |__) \ \ / /| | | | (___ ");
ui_print(" | | | | | | _ / \ \/ / | | | |\___ \ ");
ui_print(" | |___| |__| | | \ \ \ / | |__| |____) | ");
ui_print(" \_____\____/|_| \_\ \/ \____/|_____/ ");
ui_print(" ");
ui_print(" by Genkzsz11, Rafiester ,Ritzz & DeadmanxXD ");
ui_print("----------------------------------------------");
ui_print(" Android version: 10");
ui_print(" Build id: QQ3A.200705.002");
ui_print(" Build date: 12072020");
ui_print(" Device: beryllium");
ui_print("----------------------------------------------");
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);
run_program("/tmp/install/bin/backuptool.sh", "backup", "/dev/block/bootdevice/by-
name/system", "ext4");
ui_print(" ");
ui_print("Flashing Corvus system files...");
show_progress(0.800000, 0);
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.");
delete_recursive("/data/system/package_cache");
ui_print(" ");
ui_print("Flashing Corvus vendor files...");
show_progress(0.100000, 0);
block_image_update("/dev/block/bootdevice/by-name/vendor",
package_extract_file("vendor.transfer.list"), "vendor.new.dat.br",
"vendor.patch.dat") ||
abort("E2001: Failed to update vendor image.");
delete_recursive("/data/system/package_cache");
show_progress(0.020000, 10);
run_program("/tmp/install/bin/backuptool.sh", "restore", "/dev/block/bootdevice/by-
name/system", "ext4");
package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
show_progress(0.100000, 10);
set_progress(1.000000);

You might also like