Flashable ZIP How To? - Xperia Arc Q&A, Help & Troubleshooting

How do you make flashable zip?
i have alot of mods on my arc s and i want them all in one and flashable..

http://forum.xda-developers.com/showthread.php?t=1374394
Flashable Zip

In few words:
You make a zip file with the order of how the files go.
You make an updater-script which are the instructions for CWM to flash the correct order.
You sign it and that's it.
Everything is in the tutorial XperienceD posted.

XperienceD said:
http://forum.xda-developers.com/showthread.php?t=1374394
Flashable Zip
Click to expand...
Click to collapse
IM sorry but im kinda slow... in the "Flashable Clockwork Mod (CWM) zip:"
TO UNDERSTAND UR GUIDE I OPEN SOME SCRIPT TO GET AN IDEA BUT I FOUND SOME LINES THAT IS NOT INCLUDED IN YOUR EXAMPLE.
LIKE THESE:
show_progress(1.000000, 0);
set_progress(0.125000);
mount("MTD", "system", "/system");
package_extract_file("fix_permissions", "/tmp/fix_permissions");
set_perm(0, 0, 0777, "/tmp/fix_permissions");
WHAT IS show_progress(1.000000, 0); AND set_progress(0.125000); ??
I GUESS mount("MTD", "system", "/system") IS THE SAME AS run_program("/sbin/mount", "/system"); ??
AND ALSO GUESS THAT package_extract_file("fix_permissions", "/tmp/fix_permissions"); AND set_perm(0, 0, 0777, "/tmp/fix_permissions"); IS FOR THE PERMISSIONS, IF U HAVE IN UR ZIP RIGHT?
I DONT REALLY UNDERSTAND THOSE OR I CAN JUST IGNORE THEM?

Related

[Q] Creating a Kernel update zip file

Ok I'm a bit confused. After hours upon hours of trying, I have yet to successfully create a WORKING update.zip file for flashing a kernel.
I'm trying to create an update.zip file for the 2.6.35.10 kernel from the leaked T-Mobile US Gingerbread 2.13.531.5 ROM.
I properly unpacked the boot.img from the ROM, and my updater-script file seems correct, then I create the zip, sign it and flash thru CWM. The update completes without errors, however, when I reboot the phone, it still says I have 2.6.32.28. I'm stuck. My updater-script is as follows:
Code:
ui_print("");
ui_print("T-Mobile US - G2 Kernel Update");
ui_print("Kernel Version: 2.6.35.10");
ui_print("Prepared by: spyral");
ui_print("");
ui_print("Using: AnyKernel Updater by Koush.");
ui_print("");
set_progress(1.000000);
ui_print("Clearing dalvik and boot cache ...");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/boot-cache");
ui_print("Extracting System Files...");
set_progress(2.000000);
mount("yaffs2", "MTD", "system", "/system");
package_extract_dir("system", "/system");
unmount("/system");
set_progress(5.000000);
ui_print("");
ui_print("Extracting Kernel files...");
package_extract_dir("kernel", "/tmp");
ui_print("Installing kernel...");
set_progress(6.000000);
set_perm(0, 0, 0777, "/tmp/dump_image");
set_perm(0, 0, 0777, "/tmp/mkbootimg.sh");
set_perm(0, 0, 0777, "/tmp/mkbootimg");
set_perm(0, 0, 0777, "/tmp/unpackbootimg");
run_program("/tmp/dump_image", "boot", "/tmp/boot.img");
run_program("/tmp/unpackbootimg", "-i", "/tmp/boot.img", "-o", "/tmp/");
run_program("/tmp/mkbootimg.sh");
write_raw_image("/tmp/newboot.img", "boot");
set_progress(10.000000);
ui_print("Done!");
I've tried multiple times, with no luck. Any ideas?
Btw, sorry if I posted this in the wrong forum Mods... feel free to move it if need be. I'm still learning the ropes of this place.
Sent from my HTC Vision using XDA Premium App
Nothin so far, huh?
Sent from my HTC Vision using XDA Premium App
Still nothin on this??
Sent from my HTC Vision using XDA Premium App

Question about HTC Kitchen

Messing around with the HTC Kitchen and I am getting an error when trying to build a ROM.
Error is:
Code:
format() expects 3 args, got 2
(status 7)
installation aborted
Any ideas?
Find the line it is referring to in the update(r) script. Should be the 7th line as it tells you that. There is probably a comma missing between the numbers in the parenthesis
This is what the script is
Code:
format("MTD", "cache");
format("MTD", "boot");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
format("MTD", "userdata");
mount("MTD", "userdata", "/data");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
format("MTD", "system");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
I try taking out the format lines, and I get the same error except on mount() this time.
Did you run the script checker?
Don't remove the lines manually... open your kitchen and change " the wipe status if your ROM"
Vinchenzop said:
Did you run the script checker?
Click to expand...
Click to collapse
Script checker only works for update-scripts' not updater-scripts. At least to my understanding... unless there is another one out there ? I am running HTC Android Kitchen, v0.161 on Ubuntu btw.

Flashable zip

Hello guys!
I'm trying to make a flashable zip so each time I flash a CM10.1 nightly, I flash after that this zip to put a custom font on my GNexus.
However, I tried two different ways but they don't work, and I receive an ERROR on recovery (I'm using TWRP, latest release).
There are the two scripts i've tried:
Code:
ui_print("Applying Ubuntu Font");
run_program("/sbin/busybox", "mount", "/system");
delete("/system/fonts/Clockopia.ttf");
delete("/system/fonts/DroidSans.ttf");
delete("/system/fonts/DroidSans-Bold.ttf");
delete("/system/fonts/Roboto-Regular.ttf");
package_extract_dir("fonts", "/system/fonts");
run_program("/sbin/busybox", "umount", "/system");
ui_print("New Fonts installed!");
and...
Code:
ui_print("Applying Ubuntu Font");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("fonts", "/system/fonts");
run_program("/sbin/busybox", "umount", "/system");
ui_print("New Fonts installed!");
What am I doing wrong?
I have the folders OK (i have a fonts folder inside the flashable zip and the regular META-INF, etc.). However, the script isn't working.
Can someone help me?
Thanks and best regards!
mrasquinho said:
Hello guys!
I'm trying to make a flashable zip so each time I flash a CM10.1 nightly, I flash after that this zip to put a custom font on my GNexus.
However, I tried two different ways but they don't work, and I receive an ERROR on recovery (I'm using TWRP, latest release).
There are the two scripts i've tried:
Code:
ui_print("Applying Ubuntu Font");
run_program("/sbin/busybox", "mount", "/system");
delete("/system/fonts/Clockopia.ttf");
delete("/system/fonts/DroidSans.ttf");
delete("/system/fonts/DroidSans-Bold.ttf");
delete("/system/fonts/Roboto-Regular.ttf");
package_extract_dir("fonts", "/system/fonts");
run_program("/sbin/busybox", "umount", "/system");
ui_print("New Fonts installed!");
and...
Code:
ui_print("Applying Ubuntu Font");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("fonts", "/system/fonts");
run_program("/sbin/busybox", "umount", "/system");
ui_print("New Fonts installed!");
What am I doing wrong?
I have the folders OK (i have a fonts folder inside the flashable zip and the regular META-INF, etc.). However, the script isn't working.
Can someone help me?
Thanks and best regards!
Click to expand...
Click to collapse
Hi, I discovered this thread by accident and if you still need some opinion, i can tell you that my font change script is exactly the same as the first one you posted. So maybe you're just using a wrong template.zip file to begin with. Good luck!

framework-res permissions

is this permissions script is right? always getting installation complete.
Code:
ui_print("SET FRAMEWORK-RES PERMISSIONS");
mount("MTD", "system", "/system");
set_perm(0, 0, 0644, "/system/framework/framework-res.res");
unmount("/system");
after reboot i'm getting boot loop, forgot set permissions for framework-res.res...
its ok, after one hour of search and making a topic i only saw that type of file is apk not res

error 6 while trying to use set_perm in updater-script

Heloo, i have hard times finding a solution to my problem, here my script :
Code:
ui_print("Starting...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p41", "/system");
ui_print("...system mounted");
package_extract_dir("modifiedframework", "/system/framework");
ui_print("...framework-res.apk transfered");
set_perm(0, 0, 0644, "/system/framework/framework-res.apk");
ui_print("...permissions set");
unmount("/system");
ui_print("...system unmounted");
it return : Updater process ended with ERROR: 6
and the script is working fine if i remove the line
Code:
set_perm(0, 0, 0644, "/system/framework/framework-res.apk");
any help is welcome, thanks you
thanks for help... i have found the solution, https://github.com/mission-impossible-android/mission-impossible-android/issues/50. i'm using this update-binary and now it is working.
@linpinpin
I'm facing exactly the same issue with TWRP on Xiaomi. set_perm(...); causing error: 6 regardless it's syntactically fine.
Which updater binary can I use for my device?
i use this one https://github.com/mikeperry-tor/mi...ult/META-INF/com/google/android/update-binary click on download
i'm using a xiaomi also

Categories

Resources