- Docker
Pull the image :
docker pull morxander/apk_decompiler:latest
Then navigate to the apk
file directory and execute the following command :
docker run --rm -v $(pwd):/apk morxander/apk_decompiler apktool d /apk/{apk_file_name.apk} -o /apk/output
You should find a directory called output
with the decompiled apk files.
To make it easy in the future you can add it as function in your bashrc
:
function decompile_apk {
docker run --rm -v $(pwd):/apk morxander/apk_decompiler apktool d /apk/$1 -o /apk/$1_output
}
Then make sure to reload your bash profile and to use it execute :
decompile_apk file.apk