- Aug 12, 2011
- 180
- 326
- 0

Get To Know Apktool
It is a tool for reverse engineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications; it makes possible to debug smali code step by step. Also it makes working with app easier because of project-like files structure and automation of some repetitive tasks like building apk, etc.
It is NOT intended for piracy and other non-legal uses. It could be used for localizing, adding some features or support for custom platforms and other GOOD purposes. Just try to be fair with authors of an app, that you use and probably like.
What Do I Need To Run It?
JRE (Java Runtime Environment). Get it here
How Do I Install It?
Windows:
- Download package attached to Thread
- Unpack the package in your C:\ directory ie: C:\apktool
How Do I Decode A File?
- Place the apk in the same location as apktool
- Open Windows Command Processor.
- Move to the directory to where apktool is located. ie: cd C:\apktool
- Type in the decode command with the apk name. ie: apktool d Launcher.apk
- Done!
How Do I Package My Folder Up Now?
- Open Windows Command Processor.
- Move to the directory to where apktool is located. ie: cd C:\apktool
- Type in the build command with the apk folder directory. ie: apktool b C:\apktool\Launcher
- Done!
But How Do I Sign It Now?!
- Open Windows Command Processor.
- Move to the directory to where SignApk is located. ie: cd C:\signapk
- Type in the sign command with the apk folder directory. ie: java -jar signapk.jar certificate.pem key.pk8 C:\apktool\Launcher.apk C:\apktool\Launcher-signed.apk
- Done!
Remember About The Framework Files!
As you probably know, Android apps use some code and resources that are built into the Android system on your device. Apktool needs these framework files to decode and build apks.
Standard framework is embedded into apktool, so you don't need to do anything for most apk files. But some manufacturers, for example Samsung, add their own framework files and use them in system apps. To use apktool against such apps, you must pull framework from a device and install/register it to apktool.
Last edited: