
Apktool
Reverse engineer and rebuild Android APK files
Replaces —

Who it's for
Translators decode an APK to extract string resources, edit the XML files for a new locale, then rebuild a localized APK without access to the original source project.
You have access to the original source repository and can add locales through the normal build system.
Security researchers use Apktool to inspect the AndroidManifest for declared permissions, review resource files for hardcoded values, and prepare smali output for further static analysis.
Developers adding support for a custom Android derivative can decode a target APK, modify references to platform-specific APIs or resources, and rebuild it for the alternate runtime.
The app vendor already provides a build for your target platform.
System administrators or power users decode an APK to read the manifest and verify exactly which permissions are declared before installing an app on a managed device.
The problem
Android APKs are distributed as compiled binaries. Without a tool to reverse the compilation, developers and researchers cannot inspect resources, read the manifest, translate strings, or understand how a third-party app is structured. Apktool solves this by decoding APK resources to nearly their original form and allowing the rebuilt APK to be produced after modifications.
How it works
Decodes compiled binary resources inside an APK back to nearly their original XML and asset form, including the AndroidManifest, string tables, and layout files.
Takes a decoded project directory and repacks it into a new APK after you have made changes, supporting workflows like localization and permission modifications.
The `-m` flag on any disassemble command extracts resources and the manifest for read-only analysis without preparing the output for reassembly.
Enables step-by-step debugging of smali bytecode, the low-level assembly representation used by the Android Dalvik and ART runtimes.
Decoded app output is organized in a consistent directory layout that mirrors a standard Android project, making manual navigation and automation easier.
Features
- Resource disassembly
- APK rebuilding
- Inspection mode
- Smali debugging
- Project-like file structure
How to install
# Download the wrapper script and jar, then run: java -jar apktool.jar d app.apk
Recommended for this setup
Strengths
- Near-original resource fidelity: Apktool decodes resources to nearly their original form, meaning XML layouts and manifest entries are readable and editable rather than remaining in opaque binary encoding.
- Full round-trip workflow: The tool supports both disassembly and reassembly in one package, so a decode-edit-rebuild cycle does not require additional tooling.
- Apache 2.0 license: Released under Apache 2.0, Apktool can be freely used, modified, and redistributed with minimal restrictions, including in commercial toolchains.
- Active maintenance and versioned branches: The project maintains a current 3.x branch on `main` and a separate `2.x` maintenance branch, giving users a stable upgrade path while keeping older integrations supported.
Trade-offs
- Not a complete decompiler: Apktool decodes resources and produces smali bytecode, not Java or Kotlin source code. Recovering higher-level source requires a separate tool such as jadx or dex2jar.
- Legal and ethical responsibility on the user: The project documentation explicitly states Apktool is not intended for piracy or non-legal uses. Using it on apps you do not own or have permission to analyze may violate terms of service or applicable law.
- Command-line only: Apktool has no graphical interface. All workflows run through the terminal, which may be a barrier for users who prefer GUI-based Android analysis tools.
Tech stack
FAQ
It produces a directory containing decoded XML resources (layouts, strings, the AndroidManifest), raw assets, and smali files representing the compiled bytecode. The layout mirrors a project structure for easy navigation.
No. Apktool decodes resources and outputs smali bytecode, not Java or Kotlin. To recover higher-level source, you need a separate decompiler such as jadx alongside Apktool.
Apktool is a tool; legality depends on how you use it and which app you target. The project documentation states it is not intended for piracy or other non-legal uses. Analyzing apps you do not own may violate their terms of service or applicable law.
`main` tracks the active Apktool 3.x development line. The `2.x` branch is a maintenance branch that receives fixes for users still on the older release series.
Official downloads are on Bitbucket at bitbucket.org/iBotPeaches/apktool/downloads, with a mirror at connortumbleson.com/apktool. The GitHub repository hosts source code and issue tracking.