• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root How to: Decompile and compile apks

JJ_Azevedo

Android Enthusiast
First download the needed file and extract it to your C:\ driectory and download Java JRE

LINK: apktool - Download - 4shared

After you've extracted it to your C drive open it

Once inside apktool folder open command prompt

Once in command prompt type cd apktool

If you are on windows 7 just hold shift and right click inside the apktool folder and you should see open command window here

After you have done you will need to install the framework so in command prompt type apktool if framework-res.apk

Once you have installed the framework you can now decompile and compile apks

To decompile and apk type apktool d (name of apk).apk and press enter and it should start decompiling

It should make a folder of your decompiled apk

To compile an apk type apktool b -f (name of folder)



Credit goes to Connor Tumbleson and Brut for making apktool



Hope this helps with anybody who tried decompiling and compiling apks but failed
-admire samsung
 
Orrrrr use Apk-Multi-Tool and not run into noob errors with apktool :) Remember to have JRE (Java) Installed on your computer/lappy :D

Edit: And fwiw, this kinda gives off the impression that admire samsung made apktool. I would suggest you give credit to Connor Tumbleson and Brut for making apktool :)

Link to the orignal apktool: http://code.google.com/p/android-apktool/
 
Hello, sorry to bring up this old thread but I got issues.:D I'm trying to do some customization to my SystemUI clock. I can decompile, but after doing mods I can't recompile. Not sure why I can't:confused:. Any help?

edit:

This is what I get

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
 
Back
Top Bottom