FORUMS

How to Lock and Protect Your Apps – XDA Xposed Tuesday

The smartphone revolution has passed. Everybody has mobile apps. Some of … more

Which OEM Would You Like to Help?

Most manufacturers have moments of greatness and moments of decadence, and in the past few years … more

Root T-Mobile S6/Edge on 5.1.1 Without Tripping Knox

If you purchase phones from a carrier, you may be no stranger to the difficulties … more

IonVR Coming Soon, HTC M9 Dev Edition Gets Android 5.1 – XDA TV

The HTC M9 Developer Edition has received Android 5.1. That and … more

[ZIP] Empty Flashable Zip Template - UPDATED for Android 5.0 and up -- 1/23/15

11,121 posts
Thanks Meter: 11,160
 
By andybones, Recognized Contributor on 9th May 2014, 04:19 AM
Post Reply Subscribe to Thread Email Thread
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/priv-app
android.policy.jar would go into system/framework
and so-on

https://dl.dropboxusercontent.com/u/...shable_Zip.zip

No need to seek permission for this or give any credits. Just something for those who need it.


------------------------------------------------------------------------------------------------------------------------------------------------------------

NEW - ANDROID 5.0 AND UP

I tried to include as many folders as possible but I think you guys will get the idea.

Basically, as above and for Android up until KitKat 4.4.4 that was how it was.

Now EVERY application hosts it's own FOLDER.

so.

now instead of adding say Prism to system/priv-app
you add it to
system/priv/app/Prism

https://dl.dropboxusercontent.com/u/...Android5.0.zip
Last edited by andybones; 21st June 2015 at 01:35 AM. Reason: Updated for Android 5.0 and up
The Following 23 Users Say Thank You to andybones For This Useful Post: [ View ]
 
 
9th May 2014, 04:20 AM |#2  
andybones's Avatar
OP Recognized Contributor
Flag Upstate NY
Thanks Meter: 11,160
 
Donate to Me
More
Saved.
The Following 2 Users Say Thank You to andybones For This Useful Post: [ View ]
9th May 2014, 05:37 PM |#3  
Gator Brah's Avatar
Senior Member
Thanks Meter: 21
 
More
sweet man, that will come in handy. thanks
10th May 2014, 05:07 AM |#4  
Tigerstown's Avatar
Recognized Contributor
Flag Detroit
Thanks Meter: 2,172
 
Donate to Me
More
👏👍

Sent from my HTC6525LVW using XDA Premium 4 mobile app
The Following User Says Thank You to Tigerstown For This Useful Post: [ View ]
11th May 2014, 08:39 AM |#5  
krazie1's Avatar
Recognized Contributor
Thanks Meter: 8,431
 
Donate to Me
More
Really useful thanks Andy

Sent from my HTC6525LVW using Tapatalk
5th June 2014, 09:25 PM |#6  
Senior Member
Thanks Meter: 933
 
More
Thanks for this. Question. What line would we need to add to the updater-script to lets say remove a file? And when to add it. Thanks for n00b questions, just trying to learn this stuff.
6th June 2014, 01:51 AM |#7  
andybones's Avatar
OP Recognized Contributor
Flag Upstate NY
Thanks Meter: 11,160
 
Donate to Me
More
Quote:
Originally Posted by droidkevlar

Thanks for this. Question. What line would we need to add to the updater-script to lets say remove a file? And when to add it. Thanks for n00b questions, just trying to learn this stuff.

Very welcome.
If you want to delete a file, the command is this:
delete("/system/app/choiceofapp.apk");

and you insert between mount and un-mount of system (unless you are wanting to remove a data app in that case in-between mount and un-mount of data)
Here is an example of my script with addition of removing SystemUI.apk

ui_print("Universal Updater Script - by Andybones");
set_progress(0.1);
ui_print("Mount /System Folder...");
run_program("/sbin/busybox", "mount", "/system");

set_progress(0.2);
ui_print("Deleting SystemUI.apk...");
delete("/system/priv-app/SystemUI.apk");


set_progress(0.3);
ui_print("Extracting /System Files...");
package_extract_dir("system", "/system");

set_progress(0.4);
ui_print("Setting /System Permissions...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app");

set_progress(0.5);
ui_print("UnMounting /System Folder...");
unmount("/system");

set_progress(0.6);
ui_print("Mount /Data Folder...");
run_program("/sbin/busybox", "mount", "/data");

set_progress(0.8);
ui_print("Extracting /Data Files...");
package_extract_dir("data", "/data");

set_progress(0.9);
ui_print("Setting /Data Permissions...");
set_perm_recursive(0, 0, 0755, 0644, "/data/app");

set_progress(1.0);
ui_print("UnMounting /Data Folder...");
unmount("/data");
ui_print("Done.");


great thread here has good info I believe you will find useful

http://forum.xda-developers.com/show....php?t=2290009
Last edited by andybones; 6th June 2014 at 01:54 AM.
The Following 2 Users Say Thank You to andybones For This Useful Post: [ View ]
28th July 2014, 08:55 PM |#8  
vampir4997's Avatar
Senior Member
Thanks Meter: 244
 
More
Any chance you could make an empty vr zip?

Sent from my HTC6525LVW using XDA Premium 4 mobile app
22nd October 2014, 12:43 AM |#9  
calebcabob's Avatar
Senior Member
Bristol County, Massachusetts
Thanks Meter: 363
 
More
Quote:
Originally Posted by andybones

Saved.

For some reason its not opening for me...can't edit it, extract it or read it.

I should be able to, right? Maybe I'm wrong.
22nd October 2014, 01:34 AM |#10  
andybones's Avatar
OP Recognized Contributor
Flag Upstate NY
Thanks Meter: 11,160
 
Donate to Me
More
Quote:
Originally Posted by calebcabob

For some reason its not opening for me...can't edit it, extract it or read it.

I should be able to, right? Maybe I'm wrong.

re-download..
The Following User Says Thank You to andybones For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes