Pentest / Tutorial

Frida android repinning

May 28, 20211 min read
Photo by

Installation of frida

pip3 install frida
pip3 install objection

Download frida-server (for the target)

xz –decompress frida-server-12.1.2-android-arm.xz

Setup frida-server on the phone

adb push frida-server-12.1.2-android-x86 /data/local/tmp/frida-server
adb shell chmod 777 /data/local/tmp/frida-server
adb shell "su -c '/data/local/tmp/frida-server &'"

Connect to frida server

# New terminal :
frida-ps -U # USB
frida-ps -R # Remote connection (via Wifi)
frida-ps -H # Remote connection

To inject script into the app

frida -U -f -l ANYTHING.js –no-pause
  • -U # USB
  • -f [Package name] # Package name
  • -l # location of the script
  • --no-pause # automatically start main thread after startup

See to learn how to build and inject any script on the apps or download scripts from or

Inject the Burp certificate to bypass the ssl pinning

adb push burpca-cert-der.crt /data/local/tmp/cert-der.crt
frida -U -f -l frida-android-repinning.js –no-pause


frida –codeshare pcipolloni/universal-android-ssl-pinning-bypass-with-frida -f YOUR_BINARY