Best Alarm App for Android?

There are tons of choices to choose from when looking for a great alarm app for Android. While the stock … more

Unofficial CM12.1 Available for Moto E 2014

While Motorola is yet to release a final 5.0.2 build for the Moto E 2014, XDA Senior … more

Pinsy Brings Social Sketching To Your Watch & Phone

Did you watch Apple’s VP draw on his wrist during the Apple Watch announcement … more

CyanogenMod 12.1 for Samsung Galaxy S5

Android 5.1 is slowly putting its mark in the custom ROM world. CyanogenMod 12.1 is available to … more
Post Reply Subscribe to Thread Email Thread

[TOOL][Windows/Theming] BatchAPKTool

29th August 2013, 01:55 AM   |  #1  
dfkt_'s Avatar
OP Senior Member
Vienna, Austria
Thanks Meter: 144
 
214 posts
Join Date:Joined: Feb 2011
More
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, 114 views)
File Type: zip batchapktool-v1.01.zip - [Click for QR Code] (3.89 MB, 568 views)
Last edited by dfkt_; 31st August 2013 at 01:33 AM.
The Following 17 Users Say Thank You to dfkt_ For This Useful Post: [ View ]
30th August 2013, 03:45 PM   |  #2  
nikwen's Avatar
Recognized Contributor
Thanks Meter: 1,490
 
2,966 posts
Join Date:Joined: Feb 2013
More
Cool.

Suggested it for the portal.
The Following User Says Thank You to nikwen For This Useful Post: [ View ]
30th August 2013, 03:54 PM   |  #3  
dfkt_'s Avatar
OP Senior Member
Vienna, Austria
Thanks Meter: 144
 
214 posts
Join Date:Joined: Feb 2011
More
Awesome - thanks a lot!

A slightly updated version is coming sometime soon.
The Following User Says Thank You to dfkt_ For This Useful Post: [ View ]
31st August 2013, 01:33 AM   |  #4  
dfkt_'s Avatar
OP Senior Member
Vienna, Austria
Thanks Meter: 144
 
214 posts
Join Date:Joined: Feb 2011
More
New v1.01 in first post.

Changelog: Streamlined some functions, more (in)sanity checks, better integration of framework switching function.
31st August 2013, 06:15 AM   |  #5  
Senior Member
Flag Phuket, Thailand
Thanks Meter: 6,317
 
5,307 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by dfkt_

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
1st September 2013, 07:11 AM   |  #6  
ATMOSF3AR's Avatar
Senior Member
Flag New Delhi
Thanks Meter: 650
 
582 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Thanks for this, it's really productive
1st September 2013, 06:13 PM   |  #7  
SystemErrorOne's Avatar
Recognized Contributor
Flag Jacksonville
Thanks Meter: 334
 
487 posts
Join Date:Joined: Jun 2011
More
Thanks for this tool, Really useful & helpful!
1st September 2013, 06:51 PM   |  #8  
Junior Member
Istanbul
Thanks Meter: 9
 
12 posts
Join Date:Joined: Jan 2013
More
Thanks bro, it makes so much things easier
4th September 2013, 01:11 PM   |  #9  
Primokorn's Avatar
Recognized Contributor
Thanks Meter: 3,507
 
5,763 posts
Join Date:Joined: Nov 2012
Donate to Me
More
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
4th September 2013, 04:03 PM   |  #10  
dfkt_'s Avatar
OP Senior Member
Vienna, Austria
Thanks Meter: 144
 
214 posts
Join Date:Joined: Feb 2011
More
Glad you guys find it useful.

Don't hesitate to report eventual bugs, or illogical combinations of options, etc.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes