A cross-platform suite of scripts and utilities for working with APK files
- adb-pull - pull an app's APK files from a connected device to the
projectdirectory - adb-lp-pull - pull all LP modified files to the
projectdirectory - clean - clean the
projectdirectory
- apktool-decode - decode an
apktosources - baksmali - decompile a
dextosmali - aapt-dump - dump Android-specific data (resources, manifest) from an
apk - enjarify - convert an
apkto ajar - dexify - convert a
jarto adex
- apktool-build - build previously decoded
sourcesto apatched apk - smali - build previously decompiled
smalito apatched dex - sign - sign a
patched apkto asigned apk
- adb-install - install an
apkfile - adb-install-multiple - install multiple
apkfiles - adb-lp-push - push
filesto the LP data directory
Clone this repo and use the .sh scripts at its root. For a clean workflow, all scripts operate under the project directory.
- adb-pull > apktool-decode > make changes > apktool-build > sign > adb-install
You need bash installed and accessible under /bin/bash. On Windows you can use WSL, the scripts will detect that and still use the native Windows binaries.
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/(preferably the most up-to-date one)