Skip to content

Docker image to easily decompile (and recompile) Android APKs

Notifications You must be signed in to change notification settings

fopina/docker-dedroid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeDroid

Docker image to easily decompile (and recompile) Android APKs

This image contains the following tools:

Usage

Start the shell inside the container, mapping the APK directory to /work

docker run --rm -v PATH_TO_APK_DIR:/work -ti fopina/dedroid sh

All the tools are in the PATH (in /dedroid directory), so you just go ahead and do apktool d APK or d2j-dex2jar.sh APK

There's also an helper script:

$ docker run --rm fopina/dedroid helper > /usr/local/bin/dedroid
$ chmod a+x /usr/local/bin/dedroid
$ dedroid
Usage: dedroid d APK_FILE OUTPUT_DIR
       dedroid b INPUT_DIR APK_FILE
       dedroid j APK_FILE JAR_FILE

"d" will unpack the APK to OUTPUT_DIR and decode .dex to smali
"b" will rebuild APK from INPUT_DIR, zipalign it and sign it with new self-signed certificate
"j" will run dex2jar on APK_FILE

$ dedroid d some.test.apk tempdir
.... make changes in the smali files inside tempdir .....
$ dedroid b tempdir new.some.test.apk
.... ready to be installed in device/emulator!

About

Docker image to easily decompile (and recompile) Android APKs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages