Some people aren't sure how to create a flash-able zip. So here is a template zip file.
If you want to edit the updater-script (what shows up in recovery when you choose the .zip to flash. It it's in META-INF\com\google\android\updater-script, edit with notepad++, and edit in between the parentheses ui_print("Put Your Text Here");
add your .apk/.jar files to the appropriate directory within the zip.
for example, SystemUI.apk would go into system/app
android.policy.jar would go into system/framework
and so-on
http://d-h.st/dJm
andybones said:
Some people aren't sure how to create a flash-able zip. So here is a template zip file.
add your APK files to the appropriate directory within the zip.
for example, SystemUI.apk would go into system/app
framework-res.apk would go into system/framework
and so-on
http://d-h.st/dJm
Click to expand...
Click to collapse
Awesome... I was just about to ask someone for this, so I could easily flash my inverted apps after flashing a new ROM
HAHA...I bet you thought there was gonna be something awesome here, but it's just a regular old signature
GalaxyMOD spilled ink on my MulitiWindows
Most zips I've seen have CERT.RSA, CERT.SF, and MANIFEST.MF in the META-INF folder. Are those not generally needed? Also, do you recommend removing the "NULL" files before flashing?
This is so cool
I have always wanted to be able to create my own mods and not depend on others and I think this is a great first step.
Hopefully someone can give me some guidance.
Every time I re-flash my GS3 I have the annoying (in my opinion) ringtones/alarms/notifications and annoying drip sounds throughout the ui. To remedy this I have folders that contains the sounds from the Galaxy Nexus and I move them into System/media/audio and merge them with the current files and that provides me with all of my currents tones as well as the Nexus tones that I added.
I then took the sounds (unlock/lock/touch sounds) from my Nexus 7 and I put them into System/media/audio/ui. This replaces the ones that are already there. I then have to change the permissions to rw/r/r and then restart and everything works fine.
Can I use your template and then just add in folders to have System/media/audio and then in the media folder have my current folders that I usually merge (alarms/ringtones/notifications) filled with the tones and be able to flash the zip in recovery and have all of my tones there?
Then can I add in the ui folder and add my .ogg's so that the lock/unlock/touch sounds should be the ones from the Nexus? - How will I remedy the permission change issue? Also what if I wanted to disable the camera shutter sound and others - would that be possible.
I know I am asking a lot of (possibly noobish) questions but I am new to this and really want to learn it and use it to its potential. Thanks!
Mastaking said:
I have always wanted to be able to create my own mods and not depend on others and I think this is a great first step.
Hopefully someone can give me some guidance.
Every time I re-flash my GS3 I have the annoying (in my opinion) ringtones/alarms/notifications and annoying drip sounds throughout the ui. To remedy this I have folders that contains the sounds from the Galaxy Nexus and I move them into System/media/audio and merge them with the current files and that provides me with all of my currents tones as well as the Nexus tones that I added.
I then took the sounds (unlock/lock/touch sounds) from my Nexus 7 and I put them into System/media/audio/ui. This replaces the ones that are already there. I then have to change the permissions to rw/r/r and then restart and everything works fine.
Can I use your template and then just add in folders to have System/media/audio and then in the media folder have my current folders that I usually merge (alarms/ringtones/notifications) filled with the tones and be able to flash the zip in recovery and have all of my tones there?
Then can I add in the ui folder and add my .ogg's so that the lock/unlock/touch sounds should be the ones from the Nexus? - How will I remedy the permission change issue? Also what if I wanted to disable the camera shutter sound and others - would that be possible.
I know I am asking a lot of (possibly noobish) questions but I am new to this and really want to learn it and use it to its potential. Thanks!
Click to expand...
Click to collapse
yea you can put those files in their respective folders in the .zip template and flash away
i don't think you need to touch permissions when u flash in recovery .zip
HeadlessPonch said:
Most zips I've seen have CERT.RSA, CERT.SF, and MANIFEST.MF in the META-INF folder. Are those not generally needed? Also, do you recommend removing the "NULL" files before flashing?
Click to expand...
Click to collapse
not too sure what the other files are, perhaps needed for aroma? not too sure.
but yea go ahead and delete null
andybones said:
yea you can put those files in their respective folders in the .zip template and flash away
i don't think you need to touch permissions when u flash in recovery .zip
Click to expand...
Click to collapse
What about disabling things. Is there any way to have a flashable zip change 'shutter.ogg' to 'shutter.ogg.disabled' in a certain directory OR are flashable zips only good for inserting new items (or overwriting current ones)?
You could try making a silent shutter.ogg so that your update zip would replace the current with a silent file.
<Don't ask me how I sent this>
Thanks
HeadlessPonch said:
You could try making a silent shutter.ogg so that your update zip would replace the current with a silent file.
<Don't ask me how I sent this>
Click to expand...
Click to collapse
This is actually what I was thinking about trying. I never actually created the .ogg's and instead just took them off of other devices so I am going to do some research on that now.
Appreciate the response.
Here's a silent Shutter.ogg file:
https://dl.dropbox.com/u/53483750/Shutter.ogg
I just renamed a silent PowerOn.ogg file that I dl'd a while back. You can do the same for pretty much anything you want to silence.
HeadlessPonch said:
Here's a silent Shutter.ogg file:
https://dl.dropbox.com/u/53483750/Shutter.ogg
I just renamed a silent PowerOn.ogg file that I dl'd a while back. You can do the same for pretty much anything you want to silence.
Click to expand...
Click to collapse
Much appreciated.
Sent from my SCH-I535 using xda app-developers app
Hey Andybones
Thank you so much for the template. I have a couple of questions.
1. Can I use this template to make zips for any phone? (or will it require things to be altered?)
2. I would benefit if I was able to use a zip to delete apk's or other files. I found that someone said:
To remove files you'll want:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
delete("/system/app/blah.apk");
unmount("/system");
Your mount command will probably be different, so check the CM update-script for the equivalent one.
When exploring through the zip template inside META-INF > com > google > android > updater-script I see:
ui_print("Universal Updater Script - by Andybones");
unmount("/system");
show_progress(0.1, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/data");
show_progress(0.500000, 80);
package_extract_dir("data", "/data");
package_extract_dir("system", "/system");
show_progress(0.2, 10);
show_progress(0.1, 0);
ui_print("Done!");
show_progress(0.1, 0);
ui_print("Enjoy!!");
show_progress(0.1, 0);
unmount("/data");
unmount("/cache");
unmount("/system");
Can I just add the line delete("/system/app/blah.apk"); somewhere in between the mounts and the unmounts? (I would do this in Notepad ++)
Edit: Solved.
Mastaking said:
Thank you so much for the template. I have a couple of questions.
1. Can I use this template to make zips for any phone? (or will it require things to be altered?)
2. I would benefit if I was able to use a zip to delete apk's or other files. I found that someone said:
To remove files you'll want:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
delete("/system/app/blah.apk");
unmount("/system");
Your mount command will probably be different, so check the CM update-script for the equivalent one.
When exploring through the zip template inside META-INF > com > google > android > updater-script I see:
ui_print("Universal Updater Script - by Andybones");
unmount("/system");
show_progress(0.1, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/data");
show_progress(0.500000, 80);
package_extract_dir("data", "/data");
package_extract_dir("system", "/system");
show_progress(0.2, 10);
show_progress(0.1, 0);
ui_print("Done!");
show_progress(0.1, 0);
ui_print("Enjoy!!");
show_progress(0.1, 0);
unmount("/data");
unmount("/cache");
unmount("/system");
Can I just add the line delete("/system/app/blah.apk"); somewhere in between the mounts and the unmounts? (I would do this in Notepad ++)
Click to expand...
Click to collapse
Still curious about this, can anyone help?
Mastaking said:
Still curious about this, can anyone help?
Click to expand...
Click to collapse
Try it and let us know
If I've helped you in some way, hit the "Thanks" button
can I place a custom boot animation in here and flash it...? if so, where would I put it?
Thanks
bajasur said:
can I place a custom boot animation in here and flash it...? if so, where would I put it?
Thanks
Click to expand...
Click to collapse
Yes... Inside the system folder... Create another folder and name it media
Then place the boot animation in there
That would be the most common place... Always double check with your rom dev but that's where they all have been on the s3 ROMs I've tried
{
"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"
}
o0BlacknesS0o said:
Yes... Inside the system folder... Create another folder and name it media
Then place the boot animation in there
That would be the most common place... Always double check with your rom dev but that's where they all have been on the s3 ROMs I've tried
Click to expand...
Click to collapse
Thank you!
Sent from my SCH-I605 using xda premium
Yeah, sorry guy.
I SUCK at updater scripts. kinda why all my mods don't include Aroma scripting, lol.
But I'm working on it, I love aroma and it deserves to be used
Awesome!
I could see using this a lot when modding APKs.
Related
REQUIREMENTS:
- any file that you want to replace or add to your phone;
- an existing cwm flashable zip file to use as a base - I've attached one below;
- 7-zip;
- Notepad++.
STEPS:
DIRECTORY STRUCTURE:
(1) Download and place the sample.zip anywhere on your desktop;
(2) Right-click on it and choose: "7-Zip / Open archive" [*DO NOT extract; just *Open archive*];
Now you should see two folders: one called "system" and one called "META-INF".
I - FILES AND FOLDERS:
Let's start with the "system" one, so double-click on it:
In there, will go all files that what you want to add or replace to the system. So let's say for example that you want to replace the bootanimation and bootsound. To do so, we have to create sub-directories in the /system/ folder by following this easy method:
- On your desktop, right-click on an empty spot and select "New / Folder" then edit the name to "etc" (no " ") using no CAPS or space at the end;
- repeat the process to make another folder called "media";
- drag those two new empty folders into the /system/ folder of the 7-zip opened archive [just click yes on the popup dialogs];
- now simply drop the two files in their respective place: the sanim.zip file should go in '/system/media' folder and the PowerOn.wav into '/system/etc' folder.
.. If you have more files to add, just follow the logic above; I'm sure you get the idea by now..
/system/app - all the system apps (SystemUI.apk etc)
/system/framework/ -framework-res.apk, twframework-res.apk, android.policy.jar
/system/etc - vold.fstab, PowerOn.wav(bootsound)
/system/media - sanim.zip (bootanimation) (only for custom ROMs)
/system/lib - libraries (*.so)
II - UDATER-SCRIPT
The other folder included in the opened archive is named "META-INF" and all the file in it should be left unchanged.
That's it !!
Congratulations you've done your first CWM patch !!!
NOTE: Always backup your existing system file that you are going to replace by the patch(zip).
Good Guide!!
There are many more here. Check them
EDIT: Added your Post there. As CWM Flashable Zip Guide.
Hope you are Fine with it.
Thnx so much pankaj.........
Great guide man awesome, thanks!
I've got some questions which I believe you can answer:
1. I come from another device's forum [SAMSUNG Galaxy S II I9100] so I'm not sure, will this method work with any device, or at least with mine?
2. What I'm trying to do is to take the nandroid backup I made for the ROM my device is currently running (whole ROM, along with all the MODs, themes & changes I have on it) and convert it into a CWM flashable .zip file, so:
A. Is this even possible with this method?
B. If it is, just to verify that I got it all right up until now: I decompress the 'system.ext4.tar' file from the nandroid' backup folder and then I push the decompressed system folder into the 'sample.zip' file that I've downloaded from this thread, right?
3. I know for a fact (correct me, if I'm wrong) that a nandroid backup doesn't include a backup of the modem (at least not in my device), so how do I add my currently installed modem to the .zip file?
4. What about the recovery and bootloader, how do I add them?
5. What about "cache.ext4.tar" & "data.ext4.tar", are they necessary in any way?
Itzik68 said:
Great guide man awesome, thanks!
I've got some questions which I believe you can answer:
1. I come from another device's forum [SAMSUNG Galaxy S II I9100] so I'm not sure, will this method work with any device, or at least with mine?
2. What I'm trying to do is to take the nandroid backup I made for the ROM my device is currently running (whole ROM, along with all the MODs, themes & changes I have on it) and convert it into a CWM flashable .zip file, so:
A. Is this even possible with this method?
B. If it is, just to verify that I got it all right up until now: I decompress the 'system.ext4.tar' file from the nandroid' backup folder and then I push the decompressed system folder into the 'sample.zip' file that I've downloaded from this thread, right?
3. I know for a fact (correct me, if I'm wrong) that a nandroid backup doesn't include a backup of the modem (at least not in my device), so how do I add my currently installed modem to the .zip file?
4. What about the recovery and bootloader, how do I add them?
5. What about "cache.ext4.tar" & "data.ext4.tar", are they necessary in any way?
Click to expand...
Click to collapse
(1) This method will work with any device as long as the device has custom recovery (CWM).
(2) a. yes, it is possible
b. decompress system.ext4.tar and push all the files/folders in the system folder to the system folder in the sample.zip
You must add the line in BOLD/italic to the META-INF/com/google/android/updater-script file
Code:
run_program("/sbin/busybox", "mount", "/system");
[B][I]delete_recursive("/system");[/I][/B]
package_extract_dir("system", "/system");
This line has to be added only when you want to replace all the system files/folders
otherwise no need to add.
drag updater-script from sample.zip (open via 7zip, do not extract) to the desktop, make modifications, save & then push it back to the same locations in sample.zip
(3) To include modem.bin :
first drag modem.bin & this file to sample.zip
now the directory structure of sample.zip is as follows
FOLDERS - system, META-INF
FILES - modem.bin, flash_image
add following lines to the META-INF/com/google/android/updater-script file
Code:
package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
ui_print("Installing modem...");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p7", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
delete("/tmp/flash_image");
(4) Don't know about bootloader, but for recovery, similar step as above:
drag recovery.img to sample.zip
add these lines to updater-script
Code:
package_extract_file("recovery.img", "/tmp/recovery.img");
run_program("/sbin/busybox", "dd", "if=/dev/zero", "of=/dev/block/mmcblk0p8");
run_program("/sbin/busybox", "dd", "if=/tmp/recovery.img", "of=/dev/block/mmcblk0p8");
run_program("/sbin/busybox", "sync");
run_program("/sbin/busybox", "rm", "-f", "/tmp/recovery.img");
(5) No these files are not needed.
Thanks man, you're awesome!!!
I still have several questions though:
pankaj88 said:
b. decompress system.ext4.tar and push all the files/folders in the system folder to the system folder in the sample.zip
You must add the line in BOLD/italic to the META-INF/com/google/android/updater-script file
Code:
run_program("/sbin/busybox", "mount", "/system");
[B][I]delete_recursive("/system");[/I][/B]
package_extract_dir("system", "/system");
This line has to be added only when you want to replace all the system files/folders
otherwise no need to add.
drag updater-script from sample.zip (open via 7zip, do not extract) to the desktop, make modifications, save & then push it back to the same locations in sample.zip
Click to expand...
Click to collapse
OK, puling / pushing files / folders from / to the .zip / .tar files is no problem, but I don't really get the part with this: "updater-script" file...
1. Let's say I've pulled it:
A. What is this file?
B. How can I open and edit it?
C. You say to add those code lines, but I'm guessing there are already several other code lines in it, where do I add those line? Above something else? Below it? Where?
2. Except for this: "updater-script" file, there are also:
META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
META-INF\com\google\android\update-binary
A. What about those, what are they?
B. Don't they need to be changed as well?
I have more questions about the other parts of your answer, but for now let's live it at that.
I'm really sorry I'm bugging you, but I really like to understand what I'm doing before doing it...
Itzik68 said:
Thanks man, you're awesome!!!
I still have several questions though:OK, puling / pushing files / folders from / to the .zip / .tar files is no problem, but I don't really get the part with this: "updater-script" file...
1. Let's say I've pulled it:
A. What is this file?
B. How can I open and edit it?
C. You say to add those code lines, but I'm guessing there are already several other code lines in it, where do I add those line? Above something else? Below it? Where?
2. Except for this: "updater-script" file, there are also:
META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
META-INF\com\google\android\update-binary
A. What about those, what are they?
B. Don't they need to be changed as well?
I have more questions about the other parts of your answer, but for now let's live it at that.
I'm really sorry I'm bugging you, but I really like to understand what I'm doing before doing it...
Click to expand...
Click to collapse
(1) It is updater-script file.
CWM flashes the zip file according to the steps mentioned in this file.
lets say
updater-script contains following lines:
Code:
ui_print("| Writing System |");
run_program("/sbin/busybox", "mount", "/system");
delete_recursive("/system");
package_extract_dir("system", "/system");
Explanation of all the lines:
first line just print "Writing System"
next, mounts system partition so that files can be copied to it
deletes system folder
extract the system folder in the sample.zip to the device system partition
I hope now you have understand what updater-script is all about
You can use notepad++ to edit this file
(2) All the other files should be left as they are. No need to edit those files.
But their presence is necessary in the sample.zip
(these files serve as signature of the zip file)
Download this updater-script file to study more code.
OK, so now my "updater-script" file is looking like that:
Code:
ui_print("SAMPLE CWM FLASHABLE PACKAGE");
run_program("/sbin/busybox", "mount", "/system");
delete_recursive("/system");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
ui_print("Installing modem...");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p7", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
delete("/tmp/flash_image");
Is that right so far?
Itzik68 said:
OK, so now my "updater-script" file is looking like that:
Code:
ui_print("SAMPLE CWM FLASHABLE PACKAGE");
run_program("/sbin/busybox", "mount", "/system");
delete_recursive("/system");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
ui_print("Installing modem...");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p7", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
delete("/tmp/flash_image");
Is that right so far?
Click to expand...
Click to collapse
you should study the updater-script file, the link for which I provided in the last reply.
Code:
run_program("/sbin/busybox", "umount", "/system");
this line should come at the last when all the copying & flashing has been done.
It unmount the system partition.
Also you need to set permissions & create symbolic links.
I suggest you to study the updater script file first.
If you found any problem, post here.
pankaj88 said:
you should study the updater-script file, the link for which I provided in the last reply.
Code:
run_program("/sbin/busybox", "umount", "/system");
this line should come at the last when all the copying & flashing has been done.
It unmount the system partition.
Also you need to set permissions & create symbolic links.
I suggest you to study the updater script file first.
If you found any problem, post here.
Click to expand...
Click to collapse
what are symbolic links for? i have studied the updater script you posted.. and did some on my custom rom, both have many symbolic links, what it is for? is it necessary? or just for custom roms?
draiyan said:
what are symbolic links for? i have studied the updater script you posted.. and did some on my custom rom, both have many symbolic links, what it is for? is it necessary? or just for custom roms?
Click to expand...
Click to collapse
for understanding what symbolic links are:
http://en.m.wikipedia.org/wiki/Symbolic_link
it is necessary to have symbolic links for every ROM that you are going to flash via CWM.
Sent from my GT-I9103 using xda app-developers app
pankaj88 said:
- On your desktop, right-click on an empty spot and select "New / Folder" then edit the name to "etc" (no " ") using no CAPS or space at the end;
- repeat the process to make another folder called "media";
- drag those two new empty folders into the /system/ folder of the 7-zip opened archive [just click yes on the popup dialogs];
- now simply drop the two files in their respective place: the sanim.zip file should go in '/system/media' folder and the PowerOn.wav into '/system/etc' folder.
.. If you have more files to add, just follow the logic above; I'm sure you get the idea by now..
/system/app - all the system apps (SystemUI.apk etc)
II - UDATER-SCRIPT
The other folder included in the opened archive is named "META-INF" and all the file in it should be left unchanged.
Click to expand...
Click to collapse
So i followed these steps with Phone.apk. Made an "app" folder inside the already existing "system" folder. moved my modified "Phone.apk" inside that folder. put on SD card, reboot recovery, choose to install from zip, choose correct zip, and get...
Error: in /sample.zip
(Status 0)
Installation aborted
Any idea. those are my exact steps, i left nothing out.
baldypal said:
So i followed these steps with Phone.apk. Made an "app" folder inside the already existing "system" folder. moved my modified "Phone.apk" inside that folder. put on SD card, reboot recovery, choose to install from zip, choose correct zip, and get...
Error: in /sample.zip
(Status 0)
Installation aborted
Any idea. those are my exact steps, i left nothing out.
Click to expand...
Click to collapse
Try do Mount/System and then flash it. Still if u get some prob, please attach ur cwm zip. Will try to help u buddy.
baldypal said:
So i followed these steps with Phone.apk. Made an "app" folder inside the already existing "system" folder. moved my modified "Phone.apk" inside that folder. put on SD card, reboot recovery, choose to install from zip, choose correct zip, and get...
Error: in /sample.zip
(Status 0)
Installation aborted
Any idea. those are my exact steps, i left nothing out.
Click to expand...
Click to collapse
Do not extract the zip file.
Use "7zip" to open it & make a new folder named as "app" inside the system directory.
Also mount /system in CWM recovery.
Has anyone succeeded in making an update.zip for our device that can be flashed through stock recovery? If yes how to make one?
OK the "mount /system in CWM recovery" is did not do. I did not extract the files. I did use 7zip.
Sent from my Galaxy Nexus
Had the chance to try this last night. Mount /system in CWM didn't allow it either. Same error.
Sent from my Galaxy Nexus using xda app-developers app
I will upload a cwm zip with modified updater script soon.
Sent from my GT-I9103 using xda app-developers app
OP updated with modified "sample.zip".
Thanks !!
somehow i got "installatin aborted"
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.
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
THIS WORKS ON EVERY DEVICE SO FAR,STILL DO AT YOUR OWN RISK
This guide is for them who has very less or Zero knowledge about how to create a flashable zip for their system apps or frameworks.
Respected Dev's please correct me if I am wrong in explaining something in this tutorial. Thanks in advance
Requirements:
1. Notepad++
2. Recovery partition name of your device (Will explain it below in-case you don't know what it is )
3. Sample Flashable zip (attached at the end of this tutorial)
4. Winrar or any other application to open and save zip file.
Lets start this guys
[Q] How to find out what is the name of Recovery partition of your device ?
Those who have no idea about what it is, don't worry. Just open any custom rom for your device and locate the updater-script.
You will find the updater-script like the following :
Open the custom rom and you'll find a folder named META-INF.
Open it and go to \META-INF\com\google\android\updater-script
Now open the updater-script with Notepad++
In the updater-script find for this line "/dev/block/"
U'll get like this
{
"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"
}
In my case mmcblk0p21 is the Recovery partition name of the respected device.
Note: You will find more than one result in your search for "/dev/block/" Remember your Recovery partition name is the one which includes "/system" at the end
Eg: "/dev/block/mmcblk0p21", "/system" [In my case]
Now you know the Recovery partition name of your device.
Download the flashable zip from the download links provided at the end of this tutorial.
In case you want to flash a system app in your device then download the Systemapp.zip
Open it with winrar.
You'll get two folders 1.META-INF ; 2.system
First open the system folder ,you'll get a folder name app Open it and place your system app.apk that you want to flash.
The address will be like "Sytemapp.zip\system\app\yoursystemapp"
Secondly open Systemapp.zip and now goto "Sytemapp.zip\META-INF\com\google\android \updater-script"
Open the updater-script with Notepad++and edit the lines
search "/dev/block/RecoveryPartitionName" & replace "RecoveryPartitionName" that you figured out above.
Next search delete("/system/app/yoursystemapp.apk") & Rename yoursystemapp.apk with the apk you have put in your /system/app/ folder.
Do the same with delete("/system/app/yoursystemapp.odex") In case you are making an ODEX flashable zip.
Save the updater-script, exit from winrar and save it.
BINGO!! :laugh: You successfully created your own system flashable zip
NOTE: If you wanna flash more than one apps.apk then add
delete("/system/app/yoursystemapp.apk");
delete("/system/app/yoursystemapp.odex");
& rename yoursystemapp.apk & yoursystemapp.odex accordingly.
For example i have see this screenshot
Do the same for framework apps and jar files
DOWNLOADS: Sytemapp.ziphttp://www.megafileupload.com/9ivU/Sytemapp.ziphttp://www.megafileupload.com/9ivU/Sytemapp.zip
framework.ziphttp://www.megafileupload.com/9ivX/framework.zip
WORKING LINKS Sytemapp.ziphttps://drive.google.com/file/d/0B7Ko9fdwLEF0UkxEYU42RjFJOEE/view?usp=sharinghttps://drive.google.com/file/d/0B7Ko9fdwLEF0UkxEYU42RjFJOEE/view?usp=sharing
framework.ziphttps://drive.google.com/file/d/0B7Ko9fdwLEF0eWtDLVZlblR0QVU/view?usp=sharing
STEPS TO INSTALL IT1.AFTER MAKING THE FLASHABLE ZIP PUT IN YOUR EXT SD CARD
2.BOOT YOUR DEVICE INTO CWM RECOVERY
3.SELECT THE OPTION INSTALL ZIP FROM EXT SD CARD
4.CHOOSE Sytemapp.zip/framework.zip WHATEVER YOU WANT TO FLASH
5.WAIT FOR IT TO COMPLETE
6.PULL YOUR BATTERY OUT AND RESTART YOUR PHONE
7.ENJOY THE MOD
THANKS FOR CHOOSING MY TUTORIAL
IF I HELPED YOU BY THIS POST, PRESS :good: THANKS
Feel free to suggest anything that i left to cover in this tutorial. And same for the queries.
Great tutorial. Only one question. In my case i have lg g2 and the system apps are in system/priv-app. It would be the same?
Enviado desde mi LG-D802 mediante Tapatalk
renzo090513 said:
Great tutorial. Only one question. In my case i have lg g2 and the system apps are in system/priv-app. It would be the same?
Enviado desde mi LG-D802 mediante Tapatalk
Click to expand...
Click to collapse
In your case it would be like
ui_print("Flashable zip MOD");
ui_print("By Akky");
ui_print("=MOUNTING=");
mount("ext4", "EMMC", "/dev/block/RecoveryPartitionName", "/system");
ui_print("=FIXING=");
delete("/system/priv-app/yoursystemapp.apk");
delete("/system/priv-app/yoursystemapp.odex");
ui_print("=INSTALLING=");
package_extract_dir("system", "/system");
ui_print("=FIX PERMISSIONS=");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("=UNMOUNTING=");
unmount("/system");
ui_print("=Completed successfully!=");
ui_print(" ENJOY ");
links are not working
How to make stock rom flashable??
great and simple
thanks
is it compatible with marshmallow?
ding dong!
I prefer Zipme.apk instead
akky26 said:
THIS WORKS ON EVERY DEVICE SO FAR,STILL DO AT YOUR OWN RISK
This guide is for them who has very less or Zero knowledge about how to create a flashable zip for their system apps or frameworks.
Respected Dev's please correct me if I am wrong in explaining something in this tutorial. Thanks in advance
Requirements:
1. Notepad++
2. Recovery partition name of your device (Will explain it below in-case you don't know what it is )
3. Sample Flashable zip (attached at the end of this tutorial)
4. Winrar or any other application to open and save zip file.
Lets start this guys
[Q] How to find out what is the name of Recovery partition of your device ?
Those who have no idea about what it is, don't worry. Just open any custom rom for your device and locate the updater-script.
You will find the updater-script like the following :
Open the custom rom and you'll find a folder named META-INF.
Open it and go to \META-INF\com\google\android\updater-script
Now open the updater-script with Notepad++
In the updater-script find for this line "/dev/block/"
U'll get like this
In my case mmcblk0p21 is the Recovery partition name of the respected device.
Note: You will find more than one result in your search for "/dev/block/" Remember your Recovery partition name is the one which includes "/system" at the end
Eg: "/dev/block/mmcblk0p21", "/system" [In my case]
Now you know the Recovery partition name of your device.
Download the flashable zip from the download links provided at the end of this tutorial.
In case you want to flash a system app in your device then download the Systemapp.zip
Open it with winrar.
You'll get two folders 1.META-INF ; 2.system
First open the system folder ,you'll get a folder name app Open it and place your system app.apk that you want to flash.
The address will be like "Sytemapp.zip\system\app\yoursystemapp"
Secondly open Systemapp.zip and now goto "Sytemapp.zip\META-INF\com\google\android \updater-script"
Open the updater-script with Notepad++and edit the lines
search "/dev/block/RecoveryPartitionName" & replace "RecoveryPartitionName" that you figured out above.
Next search delete("/system/app/yoursystemapp.apk") & Rename yoursystemapp.apk with the apk you have put in your /system/app/ folder.
Do the same with delete("/system/app/yoursystemapp.odex") In case you are making an ODEX flashable zip.
Save the updater-script, exit from winrar and save it.
BINGO!! :laugh: You successfully created your own system flashable zip
NOTE: If you wanna flash more than one apps.apk then add
delete("/system/app/yoursystemapp.apk");
delete("/system/app/yoursystemapp.odex");
& rename yoursystemapp.apk & yoursystemapp.odex accordingly.
For example i have see this screenshot
Do the same for framework apps and jar files
DOWNLOADS: Sytemapp.ziphttp://www.megafileupload.com/9ivU/Sytemapp.ziphttp://www.megafileupload.com/9ivU/Sytemapp.zip
framework.ziphttp://www.megafileupload.com/9ivX/framework.zip
STEPS TO INSTALL IT1.AFTER MAKING THE FLASHABLE ZIP PUT IN YOUR EXT SD CARD
2.BOOT YOUR DEVICE INTO CWM RECOVERY
3.SELECT THE OPTION INSTALL ZIP FROM EXT SD CARD
4.CHOOSE Sytemapp.zip/framework.zip WHATEVER YOU WANT TO FLASH
5.WAIT FOR IT TO COMPLETE
6.PULL YOUR BATTERY OUT AND RESTART YOUR PHONE
7.ENJOY THE MOD
THANKS FOR CHOOSING MY TUTORIAL
IF I HELPED YOU BY THIS POST, PRESS :good: THANKS
Feel free to suggest anything that i left to cover in this tutorial. And same for the queries.
Click to expand...
Click to collapse
Hey OP can you re-upload the zips?
Refreshing download links
eqbirvin said:
Hey OP can you re-upload the zips?
Click to expand...
Click to collapse
give me 10mins uploading new download links
Download links updated
Links updated. Thanks you all for showing interest in my guide
Regards
Akky
akky26 said:
give me 10mins uploading new download links
Click to expand...
Click to collapse
Oh my god OP is actually going to deliver! Just kidding, I really appreciate the tutorial and the fast response!
thanks for guide
akky26 said:
Links updated. Thanks you all for showing interest in my guide
Regards
Akky
Click to expand...
Click to collapse
I want to install "PC link manager" app from older lolipop ROM of my phone to current ROM which is marshmallow. So i had extracted the lolipop rom and found files like this.
System->apps->PCLinkManager->PCLinkManager.apk
and there is one more folder,
System->apps->PCLinkManager->arm64->PCLinkManager.odex
Will i need to put PCLinkManager in arm64 folder as is in lolipop ROM? I have seen in your guide that you are using same path for apk and odex.
One more question, i dont have rooted device, i am thinking of flashing this update.zip through ASUS official recovery. Will it work?
If you know any other way to install this app without root please tell
PHP:
ui_print(" Flashable kid mode ");
ui_print("By Akky");
ui_print("=MOUNTING=");
mount("ext4", "EMMC", "/dev/block/mmcblk0p21", "/system);
ui_print("=FIXING=");
delete("/system/app/kids-mode.apk");
delete("/system/app/kids-mode.odex");
ui_print("=INSTALLING=");
package_extract_dir("system", "/system");
ui_print("=FIX PERMISSIONS=");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("=UNMOUNTING=");
unmount("/system");
ui_print("=Completed successfully!=");
ui_print(" ENJOY ");
doesn´t work twrp says process updater ends with error 6
MichaelScOke said:
PHP:
ui_print(" Flashable kid mode ");
ui_print("By Akky");
ui_print("=MOUNTING=");
mount("ext4", "EMMC", "/dev/block/mmcblk0p21", "/system);
ui_print("=FIXING=");
delete("/system/app/kids-mode.apk");
delete("/system/app/kids-mode.odex");
ui_print("=INSTALLING=");
package_extract_dir("system", "/system");
ui_print("=FIX PERMISSIONS=");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("=UNMOUNTING=");
unmount("/system");
ui_print("=Completed successfully!=");
ui_print(" ENJOY ");
doesn´t work twrp says process updater ends with error 6
Click to expand...
Click to collapse
Right mount dir? I use System twice:
.../dev/block/platform/msm_sdcc.1/by-name/system", "/system");
I don't delete the odex, only apk...
Check directory in the zip:
/system/app/kids-mode/kids-mode.apk
Permission only to app folder:
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app/com.curvefish.widgets.apnonoff");
(Change to youre values)