5,599,033 Members 32,049 Now Online
XDA Developers Android and Mobile Development Forum

[TOOL][Windows/Theming] BatchAPKTool

Tip us?
 
dfkt_
Old
(Last edited by dfkt_; 31st August 2013 at 01:33 AM.)
#1  
dfkt_'s Avatar
Senior Member - OP
Thanks Meter 111
Posts: 186
Join Date: Feb 2011
Location: Vienna, Austria
Default [TOOL][Windows/Theming] BatchAPKTool

As seen on the front page: http://www.xda-developers.com/androi...-batchapktool/ (Thanks nikwen and Will!)

I never was overly happy with available solutions/tools/scripts for theming. So, over time my collection of homegrown batch scripts grew... and now I made a menu interface for them to collect them in a (for me, at least) logical manner. I'm gonna put them up here, maybe some people might find them useful.

BatchAPKTool differs from other Apktool/Smali-manager scripts in a few ways. It doesn't do everything everybody might find useful in a script, but it gets basic things done really fast and really neat. Where it makes sense, several working steps are combined into one command. BatchAPKTool is not a monolithic script. You can use the main menu script (!0-batchapktool-menu.bat), or you can simply click the various single scripts to get stuff done, which is usually the fastest option. There aren't a lot of folders to keep track of - everything is basically done in the root folder of the script. Just drop some APKs there and get going. BatchAPKTool automatically makes backups of the original files. And, of course, the name of the script comes from the fact that you don't select a single APK file to work with, but everything is done in batch (it's the user's responsibility to not mix system and user apps when signing/pushing/installing APKs).

On first startup the script checks if Java is installed on the computer, and sends you to the Java website if not. It also pulls the framework from your device and installs it for Apktool. After that you're good to go. The frameworks are tagged, so one can easily switch when developing for different devices.

The main menu (orange font) shows everything in order that's needed for theming system APKs. Basically, just go from option 1 to option 6 (or 7) and be done. The additional options (red font) contain features one might need as well - options 1 to 3 for non-system apps - but not as often as the main menu ones. Options 4 to 6 are just some 'internals'. It's all pretty self-explanatory, methinks:


Prerequisites are - besides Java - a custom recovery like TWRP that can mount partitions (for pushing system apps), and of course USB debugging enabled, ie. a working ADB connection.

I probably packed some safety checks in the scripts that might break operation on certain systems. Bug reports are welcome.

Tools included:
  • 7za v9.20
  • aapt v0.2
  • adb v1.0.31
  • apktool v1.5.2
  • DeflOpt v2.07
  • jpegoptim v1.2.2
  • OptiPNG v0.7.4
  • signapk [?]
  • Stripper v1.5.5.60
  • zipalign
(I didn't include PNGOut for optimizing images, since it is extremely demanding, even on modern hardware... but one can easily add it to the toolchain.)

Changelog:
  • v1.01 Streamlined some functions, more (in)sanity checks, better integration of framework switching function
  • v1.00 Initial release
Attached Files
File Type: zip batchapktool-v1.0.zip - [Click for QR Code] (3.89 MB, 98 views)
File Type: zip batchapktool-v1.01.zip - [Click for QR Code] (3.89 MB, 410 views)
BatchAPKTool | Cowon D3 ROM+CWM

Samsung Galaxy Tab 7.7 GT-P6810 (4.2.2, PAC, TWRP) | Nexus 4 (4.4.2, f.K, Gravitybox, TWRP) | Cowon D3 (2.3.5, DFKT ROM, CWM) | Archos 32 (2.2, UrukDroid)
The Following 17 Users Say Thank You to dfkt_ For This Useful Post: [ Click to Expand ]
 
dfkt_
Old
#3  
dfkt_'s Avatar
Senior Member - OP
Thanks Meter 111
Posts: 186
Join Date: Feb 2011
Location: Vienna, Austria
Awesome - thanks a lot!

A slightly updated version is coming sometime soon.
BatchAPKTool | Cowon D3 ROM+CWM

Samsung Galaxy Tab 7.7 GT-P6810 (4.2.2, PAC, TWRP) | Nexus 4 (4.4.2, f.K, Gravitybox, TWRP) | Cowon D3 (2.3.5, DFKT ROM, CWM) | Archos 32 (2.2, UrukDroid)
The Following User Says Thank You to dfkt_ For This Useful Post: [ Click to Expand ]
 
dfkt_
Old
#4  
dfkt_'s Avatar
Senior Member - OP
Thanks Meter 111
Posts: 186
Join Date: Feb 2011
Location: Vienna, Austria
New v1.01 in first post.

Changelog: Streamlined some functions, more (in)sanity checks, better integration of framework switching function.
BatchAPKTool | Cowon D3 ROM+CWM

Samsung Galaxy Tab 7.7 GT-P6810 (4.2.2, PAC, TWRP) | Nexus 4 (4.4.2, f.K, Gravitybox, TWRP) | Cowon D3 (2.3.5, DFKT ROM, CWM) | Archos 32 (2.2, UrukDroid)
 
UpInTheAir
Old
#5  
Recognized Contributor
Thanks Meter 3859
Posts: 3,911
Join Date: Jan 2011
Location: Phuket, Thailand
Quote:
Originally Posted by dfkt_ View Post
New v1.01 in first post.

Changelog: Streamlined some functions, more (in)sanity checks, better integration of framework switching function.
Not really into cooking ROMs these days, but this tool will definately help if I enter the kitchen again and try my hand at themimg.

Thanks a lot
THANKS costs nothing.......

SGT-P6810 : Developer of :
 
SkyHigh Kernels for SGT 7.7 : P6810 & P6800

SkyHigh JB ROMs for SGT 7.7 : [ROM] 04 Dec [Aroma] [P6810 / P6800] Multi-Language & Multi-Window JB 4.1.2 | SkyHigh [v3.0]

P6810 + kernel & P6800 (discontinued)

[TWEAK] SGT 7.7 Battery Calibration [Fuel Gauge Reset]

[Guide] Flash Official JB 4.1.2 Firmware on P6810 Wi-Fi Device

+ Many other guides, mods & contributions

Other current device Samsung Galaxy S4 : GT-I9500 : Omega ROM
 
ATMOSF3AR
Old
#6  
ATMOSF3AR's Avatar
Senior Member
Thanks Meter 599
Posts: 548
Join Date: Jan 2012
Location: New Delhi

 
DONATE TO ME
Thanks for this, it's really productive
This hidden content is for educational purposes only.
 


My works,

LG G2 Moto X Nexus 7 II Galaxy S4 LG Nexus 4 HTC One (white)
Galaxy Note II (white) Galaxy Note II (gray) Nexus 10 HTC One X+ Droid DNA
HTC First Droid RAZR HD HTC One X Galaxy S III Nexus 7


Intel core i5 5370
Sapphire HD 7700 1GB DDR5
2x4 GB Corsair Vengenace 1600 Mhz
Gigabyte H77M-D3H
1.3 TB HDD
 
SystemErrorOne
Old
#7  
SystemErrorOne's Avatar
Recognized Contributor
Thanks Meter 253
Posts: 373
Join Date: Jun 2011
Location: Jacksonville
Thanks for this tool, Really useful & helpful!
Press Thanks If I Helped (: Also Check out my first Android app Link below:

http://goo.gl/5aFAlm

 
HDijwar
Old
#8  
Junior Member
Thanks Meter 9
Posts: 12
Join Date: Jan 2013
Location: Istanbul
Thanks bro, it makes so much things easier
 
Primokorn
Old
#9  
Primokorn's Avatar
Recognized Contributor
Thanks Meter 1459
Posts: 2,915
Join Date: Nov 2012
Location: Annecy

 
DONATE TO ME
Thanks mate. I'll give a try asap
I saw your thread from the portal and this is worth cuz it looks very useful on paper
 
dfkt_
Old
#10  
dfkt_'s Avatar
Senior Member - OP
Thanks Meter 111
Posts: 186
Join Date: Feb 2011
Location: Vienna, Austria
Glad you guys find it useful.

Don't hesitate to report eventual bugs, or illogical combinations of options, etc.
BatchAPKTool | Cowon D3 ROM+CWM

Samsung Galaxy Tab 7.7 GT-P6810 (4.2.2, PAC, TWRP) | Nexus 4 (4.4.2, f.K, Gravitybox, TWRP) | Cowon D3 (2.3.5, DFKT ROM, CWM) | Archos 32 (2.2, UrukDroid)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Samsung EFS Tool Updated to V5, Brings Universal Device Support

You may recall that we’ve talked about XDA Recognized Contributor … more

Say Goodbye to Holo Blue Once and for All

When Google released Android 4.4 KitKat back in October of last year, they changed quite a bit … more

Sony Z Ultra Google Play Edition Receives Bluetooth Certification for Android 4.4.3

You may recall that a few days ago, Sprint jumped the gun … more

Easily Configure Xposed Module Projects in Eclipse

XDA Recognized Developer rovo89‘s innovative and versatile Xposed Framework allows … more