ax/apk.sh ? reverse-engineered prompt

Reverse engineered prompt

Build me a Bash tool for Android app reverse engineering that makes the annoying parts much easier.

I want to be able to pull an app from a connected device, decode it, patch it, and rebuild it from the command line with simple commands. It should handle normal APKs as well as split APKs or app bundles, combine them into one installable APK when needed, and fix up the resources so they still work. I also want it to patch the app so it loads Frida Gadget on startup, with support for choosing the target architecture and optionally passing in a Gadget config file. If possible, include a way to skip decoding resources or source when that helps, and make sure the rebuilt APK gets signed and ready to install. No rooted device should be required. Use standard Android command line tools and look up current docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab