Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,375 Members 45,145 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 8860
Posts: 9,209
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 12 Users Say Thank You to andybones For This Useful Post: [ Click to Expand ]
 
andybones
Old
#2  
andybones's Avatar
Senior Member - OP
Thanks Meter 8860
Posts: 9,209
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 402
Posts: 1,244
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 4552
Posts: 3,670
Join Date: Jun 2010
Really useful thanks Andy

Sent from my HTC6525LVW using Tapatalk
 
droidkevlar
Old
#6  
Senior Member
Thanks Meter 477
Posts: 2,438
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
 
andybones
Old
(Last edited by andybones; 6th June 2014 at 01:54 AM.)
#7  
andybones's Avatar
Senior Member - OP
Thanks Meter 8860
Posts: 9,209
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 ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Run, Jump, and Shoot in Tales of Ciaxia

There are certain types of games that have become paramount of the portable gaming world. As we have … more

Samsung Gear Live Stock Firmware Image Pulled, Temp Root

Just yesterday,XDA Recognized Developer and TV ProducerAdamOutlertore apart … more

Draw a Line and Let Your Device Do the Rest with LineitApp

Over the years, since evenbefore Android entered the scene, we have striven to … more

[APK] Chrome Beta 37 Brings First Traces of Material Design

With Android L on the horizon, it’s no surprise that Google’s … more