Reverse
Links & Tools
ApkTools
Decompress apk file
Bash
apktool d <myFile>.apk
# Alternative methode without decoding ressources and files. Easier to repack app after
apktool d -fs <myFile>.apk
Repack apk file from source folder
Frida
Install frida cli
Frida gadget injection
We can use Frida Gadget Lief Injector
Sign apk
Generate a keystore
Bash
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
Signing the apk
Bash
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_app.apk alias_name
Exploitation
Enumerate processes
Hook frida