Awesome
a2scomp
A commandline tool to make it easier to change the SMALI of an APK and automate the process of recompiling and signing APKs
Requirements
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.
Install
Clone the repo:
git clone https://github.com/voider1/a2scomp
Install the tool:
cd a2scomp
pip3 install .
##Guide To view all options of the tool do:
a2scomp --help
Decode an APK to smali:
a2scomp --apk the_apk.apk decode
Build smali back to an APK:
a2scomp --smali smali-folder build
Zipalign an APK:
a2scomp --apk the_apk.apk zipalign
Sign an APK:
a2scomp --apk the_aligned_apk.apk sign
Building and zipaligning an APK:
a2scomp --smali smali-folder build --zipalign
Building, zipaligning and signing an APK:
a2scomp --smali smali-folder build --zipalign --sign
Zipaligning and signing an APK:
a2scomp --apk the_apk.apk zipalign --sign