Skip to content

Instantly share code, notes, and snippets.

@palawer
Last active February 1, 2024 10:24
Show Gist options
  • Save palawer/2769aab28586104fe088bfc6a5d3467d to your computer and use it in GitHub Desktop.
Save palawer/2769aab28586104fe088bfc6a5d3467d to your computer and use it in GitHub Desktop.
Get apk from android device
# pull apk from device
adb shell pm list packages
adb shell pm path com.example.someapp
adb pull /data/app/com.example.someapp.apk path/to/desired/destination
# add mitm certificate
apk-mitm someapp.apk --certificate ~/.mitmproxy/mitmproxy-ca-cert.pem --apktool ~/bin/apktool_2.9.3.jar
# push to the device
adb install -r someapp.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment