A commandline tool to make it easier to change the SMALI of an APK and automate the process of recompiling and signing APKs
Make sure the following tools are in your path:
- apktool
- View this link for installation: https://ibotpeaches.github.io/Apktool/install/
- zipalign & apksigner
- Install the Android SDK and add the Android SDK platform-tools to your path: https://developer.android.com/studio/index.html
- jadx
- View this link for installation: https://github.com/skylot/jadx
This tool is python 3 only.
Clone the repo:
git clone https://github.com/voider1/a2scompInstall the tool:
cd a2scomp
pip3 install .##Guide To view all options of the tool do:
a2scomp --helpDecode an APK to smali:
a2scomp --apk the_apk.apk decodeBuild smali back to an APK:
a2scomp --smali smali-folder buildZipalign an APK:
a2scomp --apk the_apk.apk zipalignSign an APK:
a2scomp --apk the_aligned_apk.apk signBuilding and zipaligning an APK:
a2scomp --smali smali-folder build --zipalignBuilding, zipaligning and signing an APK:
a2scomp --smali smali-folder build --zipalign --signZipaligning and signing an APK:
a2scomp --apk the_apk.apk zipalign --sign