Quote:
Originally Posted by Purple Lady
|
I extracted the update script and hubby tells me that when you write to a partition it can't be undone. So if any step fails I would think you could have a brick on your hands. If you could access a custom recovery you might be able to fix it, but none exists. I would think if you could access fastboot you could flash the images if you saved them. Here's the update script and it's way different than Android update scripts:
Code:
ui_print("Checking Update Package Matching");
package_extract_file("android-info.txt", "/tmp/android-info.txt");
assert(file_getprop("/tmp/android-info.txt", "board") == getprop("ro.product.board"));
ui_print("Done Package Matching\n");
package_extract_file("u-boot-no-padding.bin", "/tmp/u-boot-no-padding.bin");
ui_print("Writing Bootloader...");
simple_dd("/tmp/u-boot-no-padding.bin", "/dev/block/mmcblk0", 1024);
delete("/tmp/u-boot-no-padding.bin");
package_extract_file("logo.bmp", "/tmp/logo.bmp");
ui_print("Writing Logo...");
simple_dd("/tmp/logo.bmp", "/dev/block/mmcblk0", 3145728);
show_progress(0.1, 2);
package_extract_file("boot.img", "/tmp/boot.img");
ui_print("Writing boot image.");
simple_dd("/tmp/boot.img", "/dev/block/mmcblk0p1", 0);
show_progress(0.2, 10);
ui_print("Extracting system image...\n");
mount("vfat", "EMMC", "/dev/block/mmcblk0p4", "/tmp/flash");
package_extract_file("system.img", "/tmp/flash/system.img");
ui_print("Writing system partition...\n");
simple_dd("/tmp/flash/system.img", "/dev/block/mmcblk0p5", 0);
delete("/tmp/flash/system.img");
unmount("/tmp/flash");
#ui_print("Formating data partition");
#format("ext4","EMMC","/dev/block/mmcblk0p7");