mercredi 24 février 2016

I need help with the update-script for flashing STOCK ROM

Hello everyone.
Let's get right to the point. I found TWRP Backup files of the STOCK ROM for HTC Desire 510 64-bit. When I restore them with TWRP it all goes great. But I don't always want to restore so I decided to make a flashable zip file. I extracted all the files from system.ext4.win000 and system.ext4.win001 and combined them in to one folder. Then I used this tool http://ift.tt/1SVDLbW to make my update-script. This is the part where I spent 4 hours to learn and fix errors in my script. But I finally did it :victory::victory: . But when I rebooted the phone, it just hanged and rebooted itself in to recovery mode :crying:

This is my update-script:
Code:

ui_print("HTC Sense 6 Android 4.4.3");
ui_print("Only for HTC Desire 510 64-bit");

show_progress(1.000000, 0);

ui_print("Mounting /system");
mount("ext4", "EMMC", "/dev/block/mmcblk1p21", "/system");
set_progress(0.200000);

ui_print("Extracting files to /system");
package_extract_dir("system", "/system");
set_progress(0.400000);

ui_print("Setting permissions");
set_perm_recursive(0,0,0755, 0644, "/system");
set_progress(0.500000);

ui_print("Please wait, boot.img being flashed...");
package_extract_file("boot.img", "/tmp/boot.img");
write_raw_image("/tmp/boot.img", "boot");
delete("/tmp/boot.img");
set_progress(0.600000);

ui_print("Boot image has been flashed");
set_progress(0.800000);

ui_print("Unmounting /system");
unmount("/system");
set_progress(0.900000);

ui_print("Update complete.");
set_progress(1.000000);

Could my permissions be wrong? Should I try with Philiz Touch Recovery? Or any other suggestion would be very grateful. :)


from xda-developers http://ift.tt/1XNJKP8
via IFTTT

Aucun commentaire:

Enregistrer un commentaire