A Python 3 script that automates installing the Burp Suite CA certificate into an Android Emulator (AVD), enabling HTTPS traffic interception.
- Python 3
adb(Android Debug Bridge) in yourPATHopensslin yourPATHcurlin yourPATH- Burp Suite running with its proxy listener on
127.0.0.1:8080 - An Android emulator started with a writable system image
1. Start the emulator with a writable system partition:
emulator @Pixel_2_XL_API_26 -writable-system -selinux disabled -no-audio -no-boot-anim2. Start Burp Suite and ensure the proxy is listening on 127.0.0.1:8080.
3. Run the script:
python3 install-burpsuite-ca.py- Verifies an emulator is connected via
adb devices - Gains root access with
adb rootand remounts the system partition as writable - Downloads the Burp CA certificate from
http://burp/certthrough the proxy, converts it from DER to PEM, and renames it to the Android-expected hash filename (<hash>.0) - Pushes the certificate to
/system/etc/security/cacerts/with644permissions
Once complete, the emulator will trust Burp Suite's CA and HTTPS traffic can be intercepted transparently.
- Android Emulator (AVD) — API 26 (Pixel 2 XL)