Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,743,029 Members 42,505 Now Online
XDA Developers Android and Mobile Development Forum

[ZIP] Empty Flashable Zip Template

Tip us?
 
andybones
Old
(Last edited by andybones; 10th May 2014 at 11:16 AM.)
#1  
andybones's Avatar
Senior Member - OP
Thanks Meter 8874
Posts: 9,224
Join Date: May 2010
Location: Upstate NY

 
DONATE TO ME
Default [ZIP] Empty Flashable Zip Template

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.
Team Ecliptic - Member/Co-Lead Developer

Motorola Droid > HTC Eris > HTC Incredible > HTC Incredible 2 > Galaxy Nexus > HTC Rezound > HTC Incredible 4G > Samsung Galaxy S3 > Samsung Galaxy S4 > HTC One M7 > HTC One M8

Buy me a beer.
The Following 14 Users Say Thank You to andybones For This Useful Post: [ Click to Expand ]
 
andybones
Old
#2  
andybones's Avatar
Senior Member - OP
Thanks Meter 8874
Posts: 9,224
Join Date: May 2010
Location: Upstate NY

 
DONATE TO ME
Saved.
Team Ecliptic - Member/Co-Lead Developer

Motorola Droid > HTC Eris > HTC Incredible > HTC Incredible 2 > Galaxy Nexus > HTC Rezound > HTC Incredible 4G > Samsung Galaxy S3 > Samsung Galaxy S4 > HTC One M7 > HTC One M8

Buy me a beer.
 
Gator Brah
Old
#3  
Gator Brah's Avatar
Senior Member
Thanks Meter 18
Posts: 119
Join Date: Sep 2013
sweet man, that will come in handy. thanks
 
Tigerstown
Old
#4  
Tigerstown's Avatar
Senior Member
Thanks Meter 418
Posts: 1,285
Join Date: Jun 2013
Location: Detroit
👏👍

Sent from my HTC6525LVW using XDA Premium 4 mobile app
sent from my 4.1ghz 8 core AMD unlocked fx black editon beast machine running win8.1/ubuntu12.04
 
krazie1
Old
#5  
krazie1's Avatar
Recognized Contributor
Thanks Meter 4582
Posts: 3,712
Join Date: Jun 2010
Really useful thanks Andy

Sent from my HTC6525LVW using Tapatalk
 
droidkevlar
Old
#6  
Senior Member
Thanks Meter 504
Posts: 2,475
Join Date: Mar 2010
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.
Current Device: LG G3 r00ted

InsertCoin M8 SVN Builds - Click Here
Mirror for InsertCoin M8 Builds - Click Here
 
andybones
Old
(Last edited by andybones; 6th June 2014 at 01:54 AM.)
#7  
andybones's Avatar
Senior Member - OP
Thanks Meter 8874
Posts: 9,224
Join Date: May 2010
Location: Upstate NY

 
DONATE TO ME
Quote:
Originally Posted by droidkevlar View Post
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
Team Ecliptic - Member/Co-Lead Developer

Motorola Droid > HTC Eris > HTC Incredible > HTC Incredible 2 > Galaxy Nexus > HTC Rezound > HTC Incredible 4G > Samsung Galaxy S3 > Samsung Galaxy S4 > HTC One M7 > HTC One M8

Buy me a beer.
The Following User Says Thank You to andybones For This Useful Post: [ Click to Expand ]
 
vampir4997
Old
#8  
vampir4997's Avatar
Senior Member
Thanks Meter 243
Posts: 1,469
Join Date: Jul 2010
Any chance you could make an empty vr zip?

Sent from my HTC6525LVW using XDA Premium 4 mobile app

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Slide Dial Replacement Dialer Lets You Make Calls from Anywhere

If you frequently make phone calls, your dialer (aka phone app)is one of the … more

Navigate with Your Samsung Gear 2 Using DMA Navi Watch

Whether you’re travelling to a new destination or exploring some previously … more

Xperia Z1 Stereo Speaker Mod, Cell Phone Unlocking Legal Again! – XDA Developer TV

Cell Phone Unlocking is legal again!! That and much … more