AAPT Executable provides Android-native builds of aapt, aapt2, and zipalign, allowing developers and modders to inspect, compile, package, and align Android resources directly from a mobile terminal.
Android Build Tools on Device
Use essential Android packaging binaries without moving the workflow to a desktop development environment.
aapt
Provides the original Android Asset Packaging Tool for resource packaging and APK metadata inspection workflows.
aapt2
Supplies the newer compile-and-link resource pipeline used by modern Android build systems.
zipalign
Aligns uncompressed APK data boundaries as part of preparing an Android package for signing or distribution.
Where Each Binary Fits
| Tool | Primary Role | Typical Use on Android |
|---|---|---|
aapt | Legacy resource packaging and APK inspection | Read package, manifest, resource, and configuration information from an existing APK or support older packaging workflows. |
aapt2 | Modern resource compilation and linking | Compile resource files into intermediate output and link them with a manifest and platform resources when constructing an APK. |
zipalign | APK archive alignment | Check or align uncompressed file data in a completed APK before the final distribution workflow. |
The package makes these command-line programs available on the Android device; it does not replace a complete Android SDK, Gradle project, Java or Kotlin compiler, or APK signing tool. A full build still requires the other components appropriate to that workflow.
Terminal Usage
After installation, invoke the included commands directly from a compatible Android terminal. A rooted shell may be opened with su; the repository also documents aapt2 and zipalign use from Termux without entering a root shell.
Run the tool's built-in help before adapting an example to a real package. Input and output paths must be writable by the selected shell, and operations against protected locations still require suitable root access.
Supported Installation Environments
The repository packages the binaries for recovery flashing and for the Magisk, KernelSU, and APatch module systems. A module installation exposes the executables without requiring users to copy them manually into the read-only system partition.