Debugging and decompiling Android APK files
Decompile and rebuild apk
Section titled “Decompile and rebuild apk”- Download ‘android.py’ tool
$ curl -o android.py https://github.com/SerhiiButryk/DevelopmentTools/blob/main/tools/android.py- Grant execute permissions to ‘android.py’ tool
$ chmod +x android.py- Assuming you placed ‘android.py’ in the same directory as your APK file, decompile your APK:
$ android.py -decomp <your file name>.apkWait while the tool downloads all necessary dependencies. If there are no errors, check the ‘output’ directory.
-
Modify sources
-
Rebuild APK
$ android.py -build <your folder with modified apk>- Sign your APK
$ android.py -resign-apk <your file name>.apk- Install the APK and enjoy!
$ adb install <your file name>.apk