/a2scomp

A tool to make it easier to change the SMALI of an APK

Primary LanguagePythonApache License 2.0Apache-2.0

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:

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