Post Reply

[ZIP] Empty Flashable Zip Template

OP andybones

9th May 2014, 04:19 AM   |  #1  
andybones's Avatar
OP Recognized Contributor
Flag Upstate NY
Thanks Meter: 9,285
 
9,527 posts
Join Date:Joined: May 2010
Donate to Me
More
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

http://d-h.st/nEZ

No need to seek permission for this or give any credits. Just something for those who need it.
Last edited by andybones; 10th May 2014 at 11:16 AM.
The Following 17 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: 9,285
 
9,527 posts
Join Date:Joined: May 2010
Donate to Me
More
Saved.
The Following User Says Thank You to andybones For This Useful Post: [ View ]
9th May 2014, 05:37 PM   |  #3  
Gator Brah's Avatar
Senior Member
Thanks Meter: 19
 
120 posts
Join Date:Joined: Sep 2013
sweet man, that will come in handy. thanks
10th May 2014, 05:07 AM   |  #4  
Tigerstown's Avatar
Senior Member
Flag Detroit
Thanks Meter: 1,107
 
2,437 posts
Join Date:Joined: Jun 2013
Donate to Me
More
👏👍

Sent from my HTC6525LVW using XDA Premium 4 mobile app
11th May 2014, 08:39 AM   |  #5  
krazie1's Avatar
Recognized Contributor
Thanks Meter: 5,102
 
4,132 posts
Join Date:Joined: Jun 2010
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: 747
 
2,646 posts
Join Date:Joined: Mar 2010
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: 9,285
 
9,527 posts
Join Date:Joined: May 2010
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
 
1,475 posts
Join Date:Joined: Jul 2010
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: 253
 
613 posts
Join Date:Joined: Jul 2013
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: 9,285
 
9,527 posts
Join Date:Joined: May 2010
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


Top Threads in Verizon One (M8) Themes and Apps by ThreadRank