[HTC Sensation] memnoc:
We are all here to learn, take from the community and give back to the community!!!

Hi guys, after A LOT of requests, I decided to share with the community something that I found really REALLY useful, not only for Dev's but also for other users too that want to mess up with compiling and decompiling apk. Usually, non problems at all with that, but since ICS come out, many dev\users are not able to decompile\compile properly many ics apk (not all). This guide will guarantee you a good result, 100% working, easy, and fastest way to mess up with ICS for developing, theming and resizing purposes, or whatever you want;)

Credits [MENTION=241191]beach[/MENTION]on (yes, again:)) [MENTION=308902]xavierjohn22[/MENTION], the amazing author of AutoApktool! Visit his thread HERE, click his thanks button, and support his work with donations, and my personal thanks to author for this tool which is the most powerful and easiest tool ever. [MENTION=4990190]brut_[/MENTION]all for Apktool [MENTION=243864]xda[/MENTION] Community [MENTION=222739]google[/MENTION]

About Apktooll

Please consider to pay a visit to the original thread about this tool, because what I'm explaining here is just a small amount of the real capacity of the tool itself. You can do basically whatever you want with AutoApktool, themers will love it, and also Dev's will appreciate it I'm sure about that!

Why can't we just use Apktool???

Well, you can, but it's more difficult, that's it.

Why do you say "must use 1.4.1 apktool version"??

The reason why is that since 1.4.2 version, apktool generate java code during recompiling process, and this generates issues that will mostly lead the whole decompile process to fail.

Requirements (Windows environment, mine is Seven 64 bit)

Java (last version)

JDK (last version)

JDR (last version, usually included in JDK or Java)

SDK (last 3.0 version for ICS source code)

Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS!!!)

HOW-TO (NOTE: first of all, make sure to select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version!!)

1) Download and simply unpack Auto_ApkTool 2.0.0

2)Click on "autoapktoolmain.bat", a prompt will be opened

3)put the apk you want to mess up with in "_INPUT_APK"

4) you can chose more than one option to decompile (although option 6 is strongly recommended)

5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the window's prompt and click enter

6) A notification window will appear, and will show you IF the decompiling process has been succesful. Once you've closed that window, you will see as a result the decompiled folder in _INPUT_APK folder

7) do your edits (xml, smali, or png, doesn't matter)

8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)

9) Once recompiling process is finished, open the decompiled folder, go to "dist" folder, and here you'll find your edited apk

10) you MUST sign the apk with option 10 (NOTE: drag the apk from dist folder to the prompt, then press enter, and in the SAME folder, a signedxxx.apk will appear)

11) Rename the apk, and push it |NOTE: you can push the apk with 62 option or with sdk typing:

adb remount
adb push xxx.apk system/app
adb reboot

That's it;)