Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,399 Members 52,174 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
Recognized Contributor - OP
Thanks Meter 9,023
Posts: 9,348
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 15 Users Say Thank You to andybones For This Useful Post: [ Click to Expand ]
 
andybones
Old
#2  
andybones's Avatar
Recognized Contributor - OP
Thanks Meter 9,023
Posts: 9,348
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 19
Posts: 120
Join Date: Sep 2013
sweet man, that will come in handy. thanks
 
Tigerstown
Old
#4  
Tigerstown's Avatar
Senior Member
Thanks Meter 670
Posts: 1,832
Join Date: Jun 2013
Location: Detroit

 
DONATE TO ME
👏👍

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 4,783
Posts: 3,942
Join Date: Jun 2010
Really useful thanks Andy

Sent from my HTC6525LVW using Tapatalk
 
droidkevlar
Old
#6  
Senior Member
Thanks Meter 648
Posts: 2,600
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
Black Moto 360 rocking a new face everyday thanks to facer


InsertCoin M8 SVN Builds - Click Here
Mirror for InsertCoin M8 Builds - Click Here

InsertCoin M8 SVN Update Only files - Click Here
 
andybones
Old
(Last edited by andybones; 6th June 2014 at 01:54 AM.)
#7  
andybones's Avatar
Recognized Contributor - OP
Thanks Meter 9,023
Posts: 9,348
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 244
Posts: 1,475
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
Display Modes


Android L Will Have Data Encryption Turned On by Default

Android L, once it is eventually released, will featuredata encryption turned on by … more

Lock Apps and Functions Easily with Droid Protector

Access and security are some of the key issues facingmobile technology. Whether … more

ARChon Lets You Run Android Apps in Google Chrome Browser

Not too long ago, Google added the ability torun select Android applications on … more

Flyme OS Finds Its Way to the Google Nexus 5

Flyme OS is a heavily modified Android variantdeveloped by the Meizu team for their MX … more