FORUMS
Remove All Ads from XDA

[UPDATE]Universal Multipurpose AutoAPKTool 2.0.4a

3,987 posts
Thanks Meter: 7,952
 
By agat63, Inactive Recognized Developer on 2nd April 2012, 01:50 AM
Post Reply Email Thread
First of all I didn’t create this tool entirely.
This tool has been created by xavierjohn22 and his thread can be found here:
http://forum.xda-developers.com/show....php?t=1053227
He deserves most if not all the credit for this amazing tool.

Credits:

@Beachon
@Xavierjohn22, the amazing author of AutoApktool! Visit his thread, click his thanks button, and support his work with donations, and my personal thanks to author for this tool and his permission to modify it and re-post it..
@Brut_all for Apktool
@XDA Community

I did add few more options to the tool to make it AoutAPKTool a universal Tool.

The Idea was to make this a one stop shop for all app/jar/dex file modifications any dev would like to do.
With new changes to hex/dex that have been introduced in ICS leaks/roms decompiling an app became a few step process. We had to take classes.dex out of app and save it somewhere. Delete it from app and then decompile it. After mods have been done we had to put that dex file back into app.
I have added a menu option to decompile ICS app and a script that would do all that all by itself making that process fully automated.
Also I did add baksmali/smali script and menu options for .dex and .jar files so we don’t have to keep 2 different tools and to be able to do everything we want to do under one roof.

I’m not gonna type up a tutorial for complete tool.
You can read about it in thread linked above. Mr. xavierjohn22 knows much more about this subject and his explanations are better than I can do it. You also can read more about how to use this tool here:
http://forum.xda-developers.com/show....php?t=1511755
I’ll just explain how to use new options in menu I’ve added.
Download zip file from link provided and extract somewhere on your hard drive. It will create AutoAPKTool2.0.4 folder on your hard drive with all tools and folders you need inside that folder.

How to:
1. Decompile ICS app. This has been tested on E4GT apps and it’s working. If you try this tool on apps from other phones ICS builds please let me know if it works and I’ll add that info to description for others to know. Now back to subject. You don’t need to do any extra steps to decompile an ICS app. You would choose option 14 from menu and drag’n’drop app from _INPUT_APK folder into CMD window. The script will take classes.dex out of apk, decompile it and once done with decompiling it will move classes.dex back into xyz.apk file leaving it in its original state. Script will also add classes.dex file to decompiled apk folder so when you recompile it after you done with your modifications the classes.dex will be there. To recompile app use option 15 from menu.

2. Baksmali/smali classes.dex file. This options will do exactly what they say they would. You put a dex file into _INPUT_APK folder and run baksmali option. It will create clasout folder and put decompiled classes.dex file into it. Do your modifications and run smali. It will recomplile classes.dex and create a new file new-classes.dex in your _INPUT_APK folder. You can rename it to classes.dex and put into apk you took it out from.

3. Baksmali/smali JAR files. Put a JAR file you want to edit into _Jar_Files folder and run baksmali JAR option from menu. You will be asked to drag’n’drop jar file into CMD window. Do that and hit enter. New folder with filename.dex extension will be created _Jar_Files folder and jar file will be decompiled into that folder. After you done with your modifications choose option Smali JAR file. You will be prompted to drag’n’drop filename.dex folder into CMD window. Do it and hit enter. Jar file will be recompiled and you will find newly created/recompiled jar in filename.dex folder.

If you see any bags in while using this options please let me know. If you have problems with anything else please contact xavierjohn22 since I don’t know anything about all the other stuff in this tool.
I’m not a programmer nor am I a code writer and this is my first attempt to put together a tool. Please go easy on me if you discover any bugs. I’ll try to keep up with you and fix bugs as you discover them.

You can download tool here:
http://jumbofiles.com/tuwvhbc1ksio/A...2.0.4.zip.html

Updated tool to aapt.exe from windows-sdk API level 15 (ICS).
AutoAPKTool2.0.4a

I'm looking forward to get some feedback about options added.
The Following 53 Users Say Thank You to agat63 For This Useful Post: [ View ] Gift agat63 Ad-Free
 
 
2nd April 2012, 01:51 AM |#2  
agat63's Avatar
OP Inactive Recognized Developer
Las Vegas, NV
Thanks Meter: 7,952
 
Donate to Me
More
Reserved just in case
The Following 5 Users Say Thank You to agat63 For This Useful Post: [ View ] Gift agat63 Ad-Free
2nd April 2012, 01:51 AM |#3  
agat63's Avatar
OP Inactive Recognized Developer
Las Vegas, NV
Thanks Meter: 7,952
 
Donate to Me
More
reserved as well.
The Following 4 Users Say Thank You to agat63 For This Useful Post: [ View ] Gift agat63 Ad-Free
2nd April 2012, 05:23 AM |#4  
ericwgarza1's Avatar
Senior Member
H-Town, TX
Thanks Meter: 372
 
More
downloading now...will report back after some testing
Thanks!!!

LOL i didn't realize the typo until I downloaded the actual file. *AutoAPKTool
2nd April 2012, 10:41 AM |#5  
VegasEvo4G's Avatar
Senior Member
Las Vegas
Thanks Meter: 91
 
More
This is fantastic! As I've been working on a theme for Mijjah's Goodness rom, I've hit several roadblocks through all of his updates where decompiling worked on one build, but would fail on another. Before updating my theme from build to build, I've had to figure out how to de/recompile. I currently have two versions of apk manager, two versions of apk multi tool, and two versions of apk auto tool on my computer right now! Can't wait to try this!!

Sent from my SPH-D710 using xda premium
2nd April 2012, 02:13 PM |#6  
agat63's Avatar
OP Inactive Recognized Developer
Las Vegas, NV
Thanks Meter: 7,952
 
Donate to Me
More
Quote:
Originally Posted by VegasEvo4G

This is fantastic! As I've been working on a theme for Mijjah's Goodness rom, I've hit several roadblocks through all of his updates where decompiling worked on one build, but would fail on another. Before updating my theme from build to build, I've had to figure out how to de/recompile. I currently have two versions of apk manager, two versions of apk multi tool, and two versions of apk auto tool on my computer right now! Can't wait to try this!!

Sent from my SPH-D710 using xda premium

As stated in OP the whole idea was to try to have one tool for all needs.
I've been using Tiffany84's ICS theme for all my roms and had to jump thru hoops every time. So I decided to try to make it simple.
First I've build a tool just for ICS apps, backsmali/smali.
Then I've contacted xavierjohn22 and asked his permission o add the script and parts to his tool.
And here we are.
The Following 2 Users Say Thank You to agat63 For This Useful Post: [ View ] Gift agat63 Ad-Free
2nd April 2012, 02:37 PM |#7  
agat63's Avatar
OP Inactive Recognized Developer
Las Vegas, NV
Thanks Meter: 7,952
 
Donate to Me
More
Quote:
Originally Posted by ericwgarza1


LOL i didn't realize the typo until I downloaded the actual file. *AutoAPKTool

LOL.
Was too tired when posting it. Usually I'm trying to read all in preview before posting but almost never I read title after I typed it up.
2nd April 2012, 11:36 PM |#8  
agat63's Avatar
OP Inactive Recognized Developer
Las Vegas, NV
Thanks Meter: 7,952
 
Donate to Me
More
OK guys.
I understand that tool won't get as much attention as rom/theme/kernel but after 25 downloads no one has anything to say?
Does it work?
Are there any problems?
Anything?
3rd April 2012, 12:43 AM |#9  
Senior Member
Flag Albany
Thanks Meter: 163
 
More
Quote:
Originally Posted by agat63

OK guys.
I understand that tool won't get as much attention as rom/theme/kernel but after 25 downloads no one has anything to say?
Does it work?
Are there any problems?
Anything?

I tried the original version before but it was giving me problems with systemUI.apk, how is that working on your version? Also have you tried the smali tools? Every multitool/manager I have tried hasn't worked and I have had to use the tools separately. I haven't downloaded yet but I will this weekend. I was having trouble finding any set out tools that works on all apks across all the ICS roms it usually involves swapping out several different apktools.jar and appt. For example I would have to use one apktool.jar for framework-res.apk and another for systemUI. Thanks though for your work.
3rd April 2012, 02:47 AM |#10  
agat63's Avatar
OP Inactive Recognized Developer
Las Vegas, NV
Thanks Meter: 7,952
 
Donate to Me
More
Quote:
Originally Posted by dtm_stretch

I tried the original version before but it was giving me problems with systemUI.apk, how is that working on your version? Also have you tried the smali tools? Every multitool/manager I have tried hasn't worked and I have had to use the tools separately. I haven't downloaded yet but I will this weekend. I was having trouble finding any set out tools that works on all apks across all the ICS roms it usually involves swapping out several different apktools.jar and appt. For example I would have to use one apktool.jar for framework-res.apk and another for systemUI. Thanks though for your work.

If you were trying to decompile a modified/themed SystemUI.apk you will get same errors using this tool.
The problem is that every dev does cut the corners when making a theme or modding apps. And even thou the app works you can't decompile it properly because there are some png's that don't have references, some 9.png's with missing chunks etc.
So if you want to add something to an app that has been modified/themed you would start with stock app. Do your modifications and then drag your modded xml, png and 9.png files into modded app. This way you can add your own modifications to already modified app.
That's the way I'm doing it because from my Eclair days I couldn't find other workaround for this problem.
However I did add all tool so you can do smali/baksmali and decompile/recompile using one tool. So you don't have to switch.
The Following 2 Users Say Thank You to agat63 For This Useful Post: [ View ] Gift agat63 Ad-Free
3rd April 2012, 05:06 AM |#11  
Senior Member
Thanks Meter: 53
 
More
Well I'll have to see if i can give it a spin. I created a couple of Moment ROM builds but they were pretty much stock plus one or two apps that I used. Never published on SDX as they were my purchased apps.
I may not get a chance to do so till this weekend and I need to do a OS re-install on the laptop.
You might if its allowed if you have not done so put a post in the themes an apps section.
Would this be used to take native apps and make inverted? If so perhaps the topic there should be "create your inverted apps with this:"



Sent from my SPH-D710 using Tapatalk
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes