A cross-platform collection of scripts and utilities for working with APK files
- adb-pull - pull an apk from a connected device to
input apk
- adb-lp-pull - pull all LP modified files to the project directory
- clean - clean the
project
directory - apktool-decode - decode the
input apk
tosources
- baksmali - decompile the
input dex
tosmali
- aapt-dump - dump Android-specific data (resources, manifest) from the
input apk
- enjarify - convert the
input apk
to ajar
- apktool-build - build the
patched apk
from previously decodedsources
- smali - compile the
smali
to apatched dex
- sign - sign the
patched apk
to asigned+patched apk
- adb-install - install the
patched+signed apk
- adb-lp-push - push
$1
to the LP data directory
This package contains a bunch of useful shell scripts at its root. For a clean workflow, they all operate under the project
directory. Inside there, you can place:
app.apk
- the input apkclasses.dex
- the input dex
- adb-pull > apktool-decode > make changes > apktool-build > sign > adb-install
- Linux - none!
- macOS - ?
- Windows - you must enable WSL and install a bash-compatible distro (e.g. Ubuntu)
If you want to use the aapt-*
and adb-*
scripts, then you also need to install the Android SDK. In Ubuntu, there is an official package android-sdk
. Make sure the following directories are added to your PATH:
android-sdk/platform-tools/
android-sdk/build-tools/xx.x.x/
(preferrably the most up-to-date one)