Android SSL Pinning Bypass with Burp Suite
- Android Pentest Lab Build
- Android SSL Pinning Bypass with Burp Suite
- Frida Method Hooking for Android App Analysis
- Hooking Native Libraries with Frida Interceptor
- From APK to Source: Complete Android Reverse Engineering Workflow
- Bypassing Root Detection and Emulator Checks on Android
- Attacking Android IPC: Intents, Content Providers, and Broadcast Receivers
- Automating Android App Analysis with Frida and Objection
This post is a follow-up to my Android Pentest Lab Build where we set up an emulated Android device. Now we’ll put that lab to use by intercepting HTTPS traffic from Android apps.
If you’ve tried to proxy app traffic through Burp Suite before, you’ve probably run into SSL pinning. The app just refuses to connect or throws SSL errors everywhere. This is because modern apps embed the expected server certificate and reject anything else — including Burp’s CA. Great for security, annoying for us.
Let’s break it.
What You’ll Need
Before we begin, make sure you have:
- Android emulator from the previous post
- Burp Suite installed
- ADB working and in your PATH
- Frida (
pip install frida-tools)
Setting Up Burp
First we need Burp to listen on all interfaces so the emulator can reach it. Go to Proxy > Proxy settings and edit the listener. Older Burp builds call this tab Options. Set it to bind to “All interfaces” on port 8080.

Exporting the CA Certificate
We need to install Burp’s CA certificate on the Android device. In Burp, go to Proxy > Proxy settings and click Import / export CA certificate. Select Certificate in DER format and save it as burp-ca.der.
Now we need to convert it to a format Android expects:
openssl x509 -inform DER -in burp-ca.der -out burp-ca.pem
hash=$(openssl x509 -inform PEM -subject_hash_old -in burp-ca.pem | head -1)
mv burp-ca.pem ${hash}.0
Installing as a System Certificate
Here’s where it gets tricky. Android 7 and above don’t trust user-installed certificates for apps. We need to install it as a system certificate which requires root access.
Start the emulator from the lab post with a writable system partition. The AVD name is whatever you gave it. This example assumes the 7.1.1 (API 25) image:
emulator -avd Pixel_API_25 -writable-system
That push path is valid for the API 25 image. On Android 10 and later, adb remount fails until verified boot is off: adb root, adb shell avbctl disable-verification, reboot, then adb root and adb remount again. Android 14 keeps the CA store in the conscrypt module, so a file copied into /system/etc/security/cacerts/ is not the store those images actually use.
Then push the certificate to the system store:
adb root
adb remount
adb push ${hash}.0 /system/etc/security/cacerts/
adb shell chmod 644 /system/etc/security/cacerts/${hash}.0
adb reboot
After reboot, you can verify the certificate shows up in Settings > Security > Trusted credentials > System.
Configuring the Proxy
Now we need to tell Android to route traffic through Burp:
adb shell settings put global http_proxy $(hostname -I | awk '{print $1}'):8080
On a physical device you can set the same proxy under the Wi-Fi network settings. The emulator often has no Wi-Fi entry to edit, so the settings put command is the one that applies there.
At this point browser traffic should flow through Burp. But apps with SSL pinning will still fail. Time to bring out the big guns.
Setting Up Frida
The Frida server on the device has to be the same version as the frida client you just installed. A mismatch fails before any script runs. Download the server build that matches frida --version and the emulator ABI:
VER=$(frida --version)
ABI=$(adb shell getprop ro.product.cpu.abi | tr -d '\r')
wget "https://github.com/frida/frida/releases/download/${VER}/frida-server-${VER}-android-${ABI}.xz"
unxz "frida-server-${VER}-android-${ABI}.xz"
adb push "frida-server-${VER}-android-${ABI}" /data/local/tmp/frida-server
adb shell chmod 755 /data/local/tmp/frida-server
adb shell /data/local/tmp/frida-server &
Verify Frida can see the device:
frida-ps -U
You should see a list of running processes.
Bypassing SSL Pinning
This is the easy part. Objection is a toolkit built on Frida that makes SSL pinning bypass trivial.
pip install objection
Find your target app’s package name:
frida-ps -Ua
Launch it with SSL pinning disabled:
objection -n com.example.targetapp start
Older objection releases used objection -g com.example.targetapp explore. Same REPL if that spelling still works on your install.
Once inside the objection shell just run:
android sslpinning disable
That’s it. Traffic should now flow through Burp without any SSL errors.
Using a Frida Script Instead
If you prefer doing things manually, save this as ssl-bypass.js:
verifyChain has more than one overload on current Android. Assigning .implementation once throws. Replace every overload. The untrusted chain is the first argument.
Java.perform(function() {
var TrustManagerImpl = Java.use('com.android.org.conscrypt.TrustManagerImpl');
TrustManagerImpl.verifyChain.overloads.forEach(function(ov) {
ov.implementation = function() {
var host = arguments.length > 2 ? arguments[2] : "";
console.log('[+] Bypassing SSL Pinning for: ' + host);
return arguments[0];
};
});
});
Run it with:
frida -U -f com.example.targetapp -l ssl-bypass.js
Current Frida resumes a spawned app on its own. --no-pause was removed and the client rejects it. Pass --pause only when you want the process frozen until you type %resume.
Troubleshooting
Some common issues I’ve run into:
- App crashes on launch with Frida — Might have Frida detection. Try using an older version or renaming the frida-server binary.
- “Unable to connect to proxy” — Double check that Burp is listening on all interfaces and that you have the right IP in your proxy settings. It should be your host machine’s IP, not localhost.
- Certificate not trusted — Make sure you installed it as a system cert, not a user cert. You need the
-writable-systemflag when launching the emulator.
What’s Next
With traffic flowing through Burp you can start analyzing API endpoints and looking for vulnerabilities. The usual suspects I check for:
- Broken authentication and session management
- IDOR (Insecure Direct Object References)
- Sensitive data in API responses
- Hardcoded secrets in requests
- Missing rate limiting
In my next post I’ll cover using Frida to hook specific methods and extract secrets from running apps.
More to come!
If you enjoyed this post please consider subscribing to the feed!