Skip to content

Debugging and decompiling Android APK files

  1. Download ‘android.py’ tool
Terminal window
$ curl -o android.py https://github.com/SerhiiButryk/DevelopmentTools/blob/main/tools/android.py
  1. Grant execute permissions to ‘android.py’ tool
Terminal window
$ chmod +x android.py
  1. Assuming you placed ‘android.py’ in the same directory as your APK file, decompile your APK:
Terminal window
$ android.py -decomp <your file name>.apk

Wait while the tool downloads all necessary dependencies. If there are no errors, check the ‘output’ directory.

  1. Modify sources

  2. Rebuild APK

Terminal window
$ android.py -build <your folder with modified apk>
  1. Sign your APK
Terminal window
$ android.py -resign-apk <your file name>.apk
  1. Install the APK and enjoy!
Terminal window
$ adb install <your file name>.apk