Apktool - How to Install (ibotpeaches.github.io)
Android APK Signing Tool (APK Signer) – Shatter-Box (shatter-box.com)
pip install Frida objection frida-tools
apktool d myapp.apk -o extractedFolder
Download frida-gadget from Releases · frida/frida · GitHub
copy the gadget into /lib/[armeabi or arm64-v8a]/
Insert the smali code just before return of main activity
const-string v0, "frida-gadget"
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
Add the Internet permission to the manifest if it’s not there already
<uses-permission android:name="android.permission.INTERNET" />
Repackage
apktool b -o repackaged.apk out_dir/
Sign the apk
https://blackhat.app.swapcard.com/event/black-hat-europe-2020/planning/UGxhbm5pbmdfMjQ4NzAw