[Q] Status 6 while installing zip via recovery - HTC Sensation

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?

Related

[Q] Rooting with SuperSu

I have a Concern about SuperSU root files, while i have been always using Super User for a long time, i could say that SuperSU is much better, but the issue is that i was browsing inside the zip file of the SuperSU and i came to the script file and i opened it with a notepad, while i am not a developer to fully understand whats is written but a few line about copying and fixing permissions for both Maps and youtube make me wonder whats the relation between SuperSU and those apps specially that the script file for Super user never had such lines
This is the Content of the Script file included with the SuperSU:
ui_print("*********************");
ui_print("SuperSU installer ZIP");
ui_print("*********************");
ui_print("- Mounting /system, /data and rootfs");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
run_program("/sbin/busybox", "mount", "-o", "rw,remount", "/system", "/system");
run_program("/sbin/busybox", "mount", "-o", "rw,remount", "/", "/");
ui_print("- Disabling OTA survival");
package_extract_dir("tools", "/system");
run_program("/system/chattr", "-i", "/system/bin/.ext/.su");
delete("/system/chattr");
ui_print("- Removing old files");
delete("/system/bin/su");
delete("/system/xbin/su");
delete("/system/bin/.ext/.su");
delete("/system/app/Superuser.apk");
delete("/system/app/Superuser.odex");
delete("/system/app/SuperUser.apk");
delete("/system/app/SuperUser.odex");
delete("/system/app/superuser.apk");
delete("/system/app/superuser.odex");
delete("/system/app/Supersu.apk");
delete("/system/app/Supersu.odex");
delete("/system/app/SuperSU.apk");
delete("/system/app/SuperSU.odex");
delete("/system/app/supersu.apk");
delete("/system/app/supersu.odex");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*com.noshufou.android.su*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*Superuser.apk*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*SuperUser.apk*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*superuser.apk*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*eu.chainfire.supersu*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*Supersu.apk*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*SuperSU.apk*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*supersu.apk*");
ui_print("- Creating space");
run_program("/sbin/busybox", "cp", "/system/app/Maps.apk", "/Maps.apk");
run_program("/sbin/busybox", "cp", "/system/app/GMS_Maps.apk", "/GMS_Maps.apk");
run_program("/sbin/busybox", "cp", "/system/app/YouTube.apk", "/YouTube.apk");
run_program("/sbin/busybox", "rm", "/system/app/Maps.apk");
run_program("/sbin/busybox", "rm", "/system/app/GMS_Maps.apk");
run_program("/sbin/busybox", "rm", "/system/app/YouTube.apk");
ui_print("- Extracting files");
package_extract_dir("system", "/system");
ui_print("- Restoring files");
run_program("/sbin/busybox", "cp", "/Maps.apk", "/system/app/Maps.apk");
run_program("/sbin/busybox", "cp", "/GMS_Maps.apk", "/system/app/GMS_Maps.apk");
run_program("/sbin/busybox", "cp", "/YouTube.apk", "/system/app/YouTube.apk");
run_program("/sbin/busybox", "rm", "/Maps.apk");
run_program("/sbin/busybox", "rm", "/GMS_Maps.apk");
run_program("/sbin/busybox", "rm", "/YouTube.apk");
ui_print("- Setting permissions");
set_perm(0, 0, 0777, "/system/bin/.ext");
set_perm(0, 0, 06755, "/system/bin/.ext/.su");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
set_perm(0, 0, 0644, "/system/app/Maps.apk");
set_perm(0, 0, 0644, "/system/app/GMS_Maps.apk");
set_perm(0, 0, 0644, "/system/app/YouTube.apk");
ui_print("- Unmounting /system and /data");
unmount("/system");
unmount("/data");
ui_print("- Done !");
hmm, good question. I use SuperSu as well.
This is making me worried
tbodner said:
hmm, good question. I use SuperSu as well.
Click to expand...
Click to collapse
Well i tried replying on the main thread of chainfire "the one behind SuperSU and a lot of awesome hacks" but because i have a very few posts am not allowed to post in the developer section
amrabdelaziz said:
Well i tried replying on the main thread of chainfire "the one behind SuperSU and a lot of awesome hacks" but because i have a very few posts am not allowed to post in the developer section
Click to expand...
Click to collapse
I'll post in the SuperSU thread and link Chainfire to this thread. Maybe he'll stop by if he's not too busy. Doesn't hurt to try.
Same here, it seems I've hit my 10 but still unable to post there
This has actually been discussed several times before. A proper search should turn it up (yes, I am also to lazy to search it for you, so I'll just explain).
Some devices - especially older ones - do not actually have free space in /system, so trying to add SuperSU APK and binaries would simply fail, you won't get root. So what the script does, is copy the Maps and YouTube packages (which should be larger than SuperSU files) to memory (ramdisk location), then deletes them from /system. It then installs SuperSU files, and attempts to copy those packages back into place.
So, in the worst case there is no space in /system, you still get SuperSU installed, but you lose Maps and/or YouTube. That is no big problem though, because you can re-download both of them from Play. That is one of the main reasons I picked these two - they are easily available to restore.
If there is enough space (virtually all devices from 2012 and later) you won't notice anything. Both SuperSU will be installed, and Maps and YouTube will still be there.
Though really, just reading the ui_print lines should have clued you in on what is going on
Thank you so much that makes sense You are awesome man
tbodner said:
Same here, it seems I've hit my 10 but still unable to post there
Click to expand...
Click to collapse
may need some time...
Thank You
Chainfire said:
This has actually been discussed several times before. A proper search should turn it up (yes, I am also to lazy to search it for you, so I'll just explain).
Some devices - especially older ones - do not actually have free space in /system, so trying to add SuperSU APK and binaries would simply fail, you won't get root. So what the script does, is copy the Maps and YouTube packages (which should be larger than SuperSU files) to memory (ramdisk location), then deletes them from /system. It then installs SuperSU files, and attempts to copy those packages back into place.
So, in the worst case there is no space in /system, you still get SuperSU installed, but you lose Maps and/or YouTube. That is no big problem though, because you can re-download both of them from Play. That is one of the main reasons I picked these two - they are easily available to restore.
If there is enough space (virtually all devices from 2012 and later) you won't notice anything. Both SuperSU will be installed, and Maps and YouTube will still be there.
Though really, just reading the ui_print lines should have clued you in on what is going on
Click to expand...
Click to collapse
Thank you so much that makes sense You are awesome man
amrabdelaziz said:
Thank you so much that makes sense You are awesome man
Click to expand...
Click to collapse
of course he's awesome.
he made me buy donate for sSU Pro MODIN Pro and TA from gPlay...
My1xT said:
of course he's awesome.
he made me buy donate for sSU Pro MODIN Pro and TA from gPlay...
Click to expand...
Click to collapse
i am considering "buying" sSU pro too i think we should support caring developers :angel:

[UNLOCK][GESTURE][PIN]Unlocker v2

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

[Q] Samsung Galaxy Core 2 Stock Music Player

Hello, i started this thread becouse I want the original Samsung Music Player for the Samsung Galaxy Core 2 SM-G355M/H becouse the official firmware don't have this Music Player, the stock is the Google Play Music, so if anyone can port, or help to port will be wellcome!
This is the Music Player i want:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Anyone? Any idea?
@StratOS_HTC any help bro? Any idea?
FedericoPeranzi said:
@StratOS_HTC any help bro? Any idea?
Click to expand...
Click to collapse
It will be extremly hard, just because of the libs.
If you tried to instaled some players the apk won't install just because of the package regerences.
Hint :
Put the apk you wish to test in system/app, change chmod to 644 and then try to run it.
Hope for the best .... Won't be so easy to ... port is the best possible way i think.
StratOS_HTC said:
It will be extremly hard, just because of the libs.
If you tried to instaled some players the apk won't install just because of the package regerences.
Hint :
Put the apk you wish to test in system/app, change chmod to 644 and then try to run it.
Hope for the best .... Won't be so easy to ... port is the best possible way i think.
Click to expand...
Click to collapse
I install it many Music apps, but all of then have FC in the Core 2, I install the libs too, but still FC, maybe the original S4 Music App of 4.4.2, but i don't find the ROM
FedericoPeranzi said:
I install it many Music apps, but all of then have FC in the Core 2, I install the libs too, but still FC, maybe the original S4 Music App of 4.4.2, but i don't find the ROM
Click to expand...
Click to collapse
wait 2h. I will extract it...
Y300-0100 said:
wait 2h. I will extract it...
Click to expand...
Click to collapse
Thanks man, i will test it, i dont' know all the files that Samsung Music Player need, did you have any idea bro?
FedericoPeranzi said:
Thanks man, i will test it, i dont' know all the files that Samsung Music Player need, did you have any idea bro?
Click to expand...
Click to collapse
No but when I extract system files I gues I will see...
Y300-0100 said:
No but when I extract system files I gues I will see...
Click to expand...
Click to collapse
Thanks a lot bro, when you have it, PM me or attach here, and i will test it
FedericoPeranzi said:
Thanks a lot bro, when you have it, PM me or attach here, and i will test it
Click to expand...
Click to collapse
http://www.mediafire.com/download/orey7gjzecq7lkn/Galaxy+S5+music+player.zip
the zip update won't work for our FS, but you can check apks and libs.
If u want you can change updater-script META-INF\com\google\android\
mounts for :
system :mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "/system");
data:mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/userdata", "/data");
cache:mount("ext4", "EMMC","/dev/block/mmcblk0p19","/cache");
Code:
ui_print(" S5 Music Player by $ideWinder ");
ui_print("");
ui_print("");
ui_print("Deleting Old MusicPlayer");
show_progress(0.500000, 0);
unmount("/system");
ui_print("-Mounting system");
[STRIKE]mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");[/STRIKE]
[B]mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "/system");[/B]
show_progress(0.500000, 40);
ui_print("-Cleaning apks");
delete("/system/priv-app/SecMediaProvider.apk");
delete("/system/app/SecMediaProvider.apk");
delete("/system/app/MusicPlayerWT.apk");
ui_print("-Cleaning cache");
[STRIKE]mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/cache");[/STRIKE]
[B]mount("ext4", "EMMC","/dev/block/mmcblk0p19","/cache");[/B]
delete_recursive("/cache");
ui_print("-Cleaning dalvik");
[STRIKE]mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/data");[/STRIKE]
[B]mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/userdata", "/data");[/B]
delete_recursive("/data/dalvik-cache");
show_progress(0.500000, 100);
ui_print("-Complete!");
unmount("/system");
unmount("/cache");
unmount("/data");
ui_print("");
ui_print("");
show_progress(0.100000, 0);
unmount("/system");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Installing S5 MusicPlayer...");
show_progress(0.100000, 10);
package_extract_dir("system", "/system");
show_progress(0.100000, 90);
show_progress(0.100000, 0);
unmount("/system");
ui_print("Installation done..........");
ui_print("....... All done reboot now .......");
Check the lib, framework and etc references and apk's in priv-app.
Make backup first before installing ...
Cannot check the apps, couse my apks are deodexed and zipaligned
StratOS_HTC said:
http://www.mediafire.com/download/orey7gjzecq7lkn/Galaxy+S5+music+player.zip
the zip update won't work for our FS, but you can check apks and libs.
If u want you can change updater-script META-INF\com\google\android\
mounts for :
system :mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "/system");
data:mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/userdata", "/data");
cache:mount("ext4", "EMMC","/dev/block/mmcblk0p19","/cache");
Code:
ui_print(" S5 Music Player by $ideWinder ");
ui_print("");
ui_print("");
ui_print("Deleting Old MusicPlayer");
show_progress(0.500000, 0);
unmount("/system");
ui_print("-Mounting system");
[STRIKE]mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");[/STRIKE]
[B]mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "/system");[/B]
show_progress(0.500000, 40);
ui_print("-Cleaning apks");
delete("/system/priv-app/SecMediaProvider.apk");
delete("/system/app/SecMediaProvider.apk");
delete("/system/app/MusicPlayerWT.apk");
ui_print("-Cleaning cache");
[STRIKE]mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/cache");[/STRIKE]
[B]mount("ext4", "EMMC","/dev/block/mmcblk0p19","/cache");[/B]
delete_recursive("/cache");
ui_print("-Cleaning dalvik");
[STRIKE]mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/data");[/STRIKE]
[B]mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/userdata", "/data");[/B]
delete_recursive("/data/dalvik-cache");
show_progress(0.500000, 100);
ui_print("-Complete!");
unmount("/system");
unmount("/cache");
unmount("/data");
ui_print("");
ui_print("");
show_progress(0.100000, 0);
unmount("/system");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Installing S5 MusicPlayer...");
show_progress(0.100000, 10);
package_extract_dir("system", "/system");
show_progress(0.100000, 90);
show_progress(0.100000, 0);
unmount("/system");
ui_print("Installation done..........");
ui_print("....... All done reboot now .......");
Check the lib, framework and etc references and apk's in priv-app.
Make backup first before installing ...
Cannot check the apps, couse my apks are deodexed and zipaligned
Click to expand...
Click to collapse
Thanks, i will take a look later, you can pass me the META-INF to install deodexed apk for the stock recovery?
FedericoPeranzi said:
Thanks, i will take a look later, you can pass me the META-INF to install deodexed apk for the stock recovery?
Click to expand...
Click to collapse
For the stock rom you can deodex & zipalign the appks and framework put the files inside folder in zip
app
framework
priv-app
After update zip deletze the *.odex, extract the files inside folder, set permissions ...
StratOS_HTC said:
For the stock rom you can deodex & zipalign the appks and framework put the files inside folder in zip
app
framework
priv-app
After update zip deletze the *.odex, extract the files inside folder, set permissions ...
Click to expand...
Click to collapse
@StratOS_HTC
How did you exactly deodexed your apks and jars? Just by runing the script?
Code:
rm -rf /system/app/*.odex
rm -rf /system/framework/*.odex
rm -rf /system/priv-app/*.odex
Y300-0100 said:
@StratOS_HTC
How did you exactly deodexed your apks and jars? Just by runing the script?
Code:
rm -rf /system/app/*.odex
rm -rf /system/framework/*.odex
rm -rf /system/priv-app/*.odex
Click to expand...
Click to collapse
No, this is a update zip to install deodex & zipalined appk and jars,framework.
Do not delete the *.odex before pulling and deodexing. The phone won't work good.
There are tools to pull the files and deodex and zip aligned it from the phone and create the update zip like this one, but you must add all deodex files in directories mention before.
Here are some examples :
http://forum.xda-developers.com/showpost.php?p=52074606
http://forum.xda-developers.com/showthread.php?t=2492401 ...
After pulling and recompiling the files update zip can update your deodexed and zipaligned apk's, jar's and framework.
Happy deodexing
StratOS_HTC said:
No, this is a update zip to install deodex & zipalined appk and jars,framework.
Do not delete the *.odex before pulling and deodexing. The phone won't work good.
There are tools to pull the files and deodex and zip aligned it from the phone and create the update zip like this one, but you must add all deodex files in directories mention before.
Here are some examples :
http://forum.xda-developers.com/showpost.php?p=52074606
http://forum.xda-developers.com/showthread.php?t=2492401 ...
After pulling and recompiling the files update zip can update your deodexed and zipaligned apk's, jar's and framework.
Happy deodexing
Click to expand...
Click to collapse
rm -rf /system/framework/*.odex
Thx. Just wanted to point out that rm -rf delete everything under the selected path.
@Y300-0100 @StratOS_HTC I use this and install it vĂ­a CWM and works fine, this delete the .odex files , and install the new apks
@Y300-0100 @StratOS_HTC Here is the Samsung S4 4.4.2 stock Music App, I copy all the S4 libs and the files in app. priv-app, framework, etc, now i make a backup and test it, then i report
@Y300-0100 @StratOS_HTC I test it and this are the results:
1) When i open Music app, FC, but not close
2) Don't play any music
3) But when I open a music file from a file manager, like the stock, or Rom Toolbox lite, yes play music
I Attach the .zip with the apks and libs, maybe you can help me, and some lib or some apk is missing
Come on guys!!!! any help? any suggestion?
Hey @FedericoPeranzi this music player is working in galaxy core 2 playing music but fc force close http://forum.xda-developers.com/galaxy-s2/themes-apps/ported-gs3-musicplayer-t1726776
---------- Post added at 10:13 AM ---------- Previous post was at 10:12 AM ----------
http://forum.xda-developers.com/gal...alaxy-core-t3014416/post58458203#post58458203

[PROBLEM] Unable to flash self-made zip file

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..

PSA - TWRP 3.3.0.X and Flashable Zips

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!

Categories

Resources