Changes in the newly released builds of TWRP may cause a lot of flashable zips found on the forum to stop working. In particular the removal of Busybox will cause some zips to fail because the update-script invokes Busybox to Mount partitions.
For example, if your update-script says:
Code:
run_program("/sbin/busybox", "mount", "/system");
you can replace this with:
Code:
run_program("/sbin/mount", "/system");
The latter will work on old or new TWRP. Update your zips and continue using them for many more years!
Happy flashing!
Related
I wanted to install my favourite apps easier, after flashing a new rom, so i wanted to make a zip file to install them over recovery. Therefore I downloaded an .zip file that installed just one app into /system. But the apps needed to be in /data/app so i edited the updater-sript. Here it is:
ui_print("Install Apps");
run_program("/sbin/busybox", "mount", "/data");
show_progress(1, 15);
package_extract_dir("app", "/data/app");
run_program("/sbin/busybox", "umount", "/data");
ui_print("Installation complete!");
I made an app folder in the zip file named app with my favourite apps inside. But I always get "installation aborted (status 6)" when I want to install it. What do I do wrong?
A small project to make Samsung Galaxy Y GT-S5360 users happy!
A code to remove passwords!
It is meant for educational purposes!
To promote the idea of open source, I have attached the source of my project.
Code:
ui_print("Unlocker v2");
ui_print("Mounting System");
show_progress(0.1, 0);
run_program("/sbin/busybox", "mount", "/system");
ui_print("Mounting Data");
run_program("/sbin/busybox", "mount", "/data");
ui_print("Deleting Pattern/PIN Lock");
delete("/data/system/gesture.key");
delete("/data/system/password.key");
show_progress(0.2, 10);
ui_print("Unmounting System");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Unmounting Data");
run_program("/sbin/busybox", "umount", "/data");
ui_print("Done");
ui_print("Credits: [email protected]");
[#]With root and busybox: auto-mount
[#]Without root and busybox: manual-mount
Click to expand...
Click to collapse
Installation Instructions:
1. Place the zip file in your sd card
2. Goto Android System Recovery
3. Flash ClockWorkMod
4. Mount everything
5. Select "apply update from sdcard"
6. And select signed_Unlocker.zip and flash it
7. Reboot your phone
Change Logs:
Flashable file
Support to remove gestures
Support to remove pinlock
Updated Binaries
Signed
WARNING
The zip file is currently not tested
Testers needed
Do not use this file until the testing is complete
this has already been posted
http://forum.xda-developers.com/showthread.php?t=2593755
its exactly the same except you have added ui prints to make it look flashier
from me and MANY others,anyway there are method with adb to and have tested with aromafile manager and this worx too,without needing busybox
Reply
marcussmith2626 said:
this has already been posted
http://forum.xda-developers.com/showthread.php?t=2593755
its exactly the same except you have added ui prints to make it look flashier
Click to expand...
Click to collapse
I never saw his post! It is my mistake!
But I never copied any ideas from anyone!
I recently read a article about this and thought of making this script!
Credits: To that developer also!
the_pirate_predator said:
I never saw his post! It is my mistake!
But I never copied any ideas from anyone!
I recently read a article about this and thought of making this script!
Credits: To that developer also!
Click to expand...
Click to collapse
you can also use aroma file manager which is really useful especially if there are other things you need to delete that is stopping the phone from booting
its good you are making the effort to do things - its just I read most things and can remember other posts
Hello,
Since yesterday, I have been trying to make small customizations to my GT-P3110, using Android Kitchen.
Everything goes well, but when I flash the rom, I get error "status 0".
I suppose, my edify_defs file may be the cause of this error. Can someone give me some advice? My edify_defs file is as follows.
Beginning of the file
change_mnt=yes
param1=ext4
param2=EMMC
param1_sdcard=vfat
param2_sdcard=MTD
sys_mnt=\/dev\/block\/mmcblk0p9
cache_mnt=\/dev\/block\/mmcblk0p7
boot_mnt=\/dev\/block\/mmcblk0p5
data_mnt=\/dev\/block\/mmcblk0p10
sdcard_mnt=\/dev\/block\/mmcblk1p1
fix_boot=yes
End of the file.
I don't understand much of these things, but I made this file by comparing different files and by analogy.
I attach my recovery.fstab file, which I recovered from the original rom.
If anyone can help me, I would really appreciate.
PS: Finally, by using update-binary taken from a custom rom, and by editing updater-script (by replacing) the relevant lines by the following lines, I was able to flash my rom.
format("ext4", "EMMC", "/dev/block/mmcblk0p9", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p10", "/data");
package_extract_file("boot.img", "/dev/block/mmcblk0p5");
In fact, it seems that this device is not MTD but EMMC....., whereas the generated updater-script refered to MTD.
I want to create a flashable zip for my mt6572 device .
i am having cadvik recovery 2.2
i used the android kitchen to create the stock zip
it created a zip .
now the problem is :
when i try flash it through cwm , it saying that you have to do it again .
it showing errors .
so i chech the updater script .
i noticed that . it starts with like :
***************
***************
** format("MTD", "system");
mount("MTD", "system", "/system");
i think it should like this right
Should be:
format("ext4", "EMMC", "/dev/block/mmcblk0p5");
mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system"); **
******************
*****************
i made that zip using my stock system.img
but still i not get succeed to flash it via cwm .
any one know why that update script is like that ..
any solution for that .
Hi there,
There is many threads that are describe how to make flashable zip for many things. Here are few of them:
[GUIDE][NOOB FRIENDLY]How To Make Aroma Installer Flashable Zip/update.zip
[GUIDE]How to extract a Firmware and make a flashable ZIP
Good luck
Device details:
YU Yuphoria YU5010
Software: CyanogenMod 12.1 (Nightly)
Root Access: Yes (By Default)
Bootloader: Unlocked
Recovery: TWRP v2.8.7.0
I made a simple flashable zip which I want to use for installing a different camera app in my device's /system partition. The app works. I've tried it by installing it the traditional way (apk). However I'm not able to flash the zip file. Whenever I try to flash it I get an error
E:Error executing updater binary in zip '/sdcard/cam.zip'
I researched on Google for that error and found many solutions from people facing the same problem. However all those solutions were only for this issue when faced while flashing a new custom ROM, not any other zip. So they were futile for me. Obviously I haven't been wiping anything before flashing my zip file.
My updater-script code:
ui_print("*********************************");
ui_print(" ");
ui_print("********** MIUI Camera **********");
ui_print("*** By Tanmay Vij ***";
ui_print("**********************************");
ui_print("Mounting System...");
run_program(
"/sbin/busybox",
"mount",
"/system"
);
ui_print("Installing Camera...");
package_extract_dir(
"system",
"/system"
);
ui_print("Fixing Permissions...");
set_perm(0, 0, 0644, "/system/app/Redmi1s_MIUICamera.apk");
ui_print("Unmounting System...");
run_program(
"/sbin/busybox",
"umount",
"/system"
);
ui_print("MIUI Camera successfully installed!");
I wonder whether this is gonna happen with me only in TWRP or in other recoveries as well (can't test in CWM as it is not supported for my device). Please correct if any errors in the script..
P.S. I took the update-binary from some random flashable zip as I've heard that it's the same for any zip file..
tvij123 said:
Device details:
YU Yuphoria YU5010
Software: CyanogenMod 12.1 (Nightly)
Root Access: Yes (By Default)
Bootloader: Unlocked
Recovery: TWRP v2.8.7.0
I made a simple flashable zip which I want to use for installing a different camera app in my device's /system partition. The app works. I've tried it by installing it the traditional way (apk). However I'm not able to flash the zip file. Whenever I try to flash it I get an error
E:Error executing updater binary in zip '/sdcard/cam.zip'
I researched on Google for that error and found many solutions from people facing the same problem. However all those solutions were only for this issue when faced while flashing a new custom ROM, not any other zip. So they were futile for me. Obviously I haven't been wiping anything before flashing my zip file.
My updater-script code:
ui_print("*********************************");
ui_print(" ");
ui_print("********** MIUI Camera **********");
ui_print("*** By Tanmay Vij ***";
ui_print("**********************************");
ui_print("Mounting System...");
run_program(
"/sbin/busybox",
"mount",
"/system"
);
ui_print("Installing Camera...");
package_extract_dir(
"system",
"/system" <--- This is the error....!!!
);
ui_print("Fixing Permissions...");
set_perm(0, 0, 0644, "/system/app/Redmi1s_MIUICamera.apk");
ui_print("Unmounting System...");
run_program(
"/sbin/busybox",
"umount",
"/system"
);
ui_print("MIUI Camera successfully installed!");
I wonder whether this is gonna happen with me only in TWRP or in other recoveries as well (can't test in CWM as it is not supported for my device). Please correct if any errors in the script..
P.S. I took the update-binary from some random flashable zip as I've heard that it's the same for any zip file..
Click to expand...
Click to collapse
Try zip me app..
Just make a flashable zip of camera in system...
Unpack it..
Delete the apk file inside..
Paste miui camera apk...
Pack it and flash it that's all..
And extract dir should be /system/app ...
ARAVIND_PAVAN said:
Try zip me app..
Just make a flashable zip of camera in system...
Unpack it..
Delete the apk file inside..
Paste miui camera apk...
Pack it and flash it that's all..
And extract dir should be /system/app ...
Click to expand...
Click to collapse
I've tried Zip Me app.. It works fine.. But this time I wanted to do it from scratch..