Prerequisite: Must have a rooted Android device, preferably with Magisk installed. Find my previous blog for instructions on how to root a pixel 5 with Magisk: Link to the Blog post
- On your computer, open Burp Suite and go to Proxy -> Options -> Import /export CA certificates -> Export Burp certificate.
- Save the file in .cer format.
- Move the .cer file to the Androids downloads folder.
- Make sure you have the device connected via USB to your computer and file transfer turned on (on the Android device, go to setting-> connected devices->USB->file transfer)
- Go to settings->security->encryption & credentials->Install a certificate-> CA certificate-> Select the .cer file.
- Download MagiskTrustCerts on your computer:
- https://github.com/NVISOsecurity/MagiskTrustUserCerts/releases
- Move the file to the Android device downloads folder.
- Open Magisk and click on the puzzle piece.
- Select Install from storage.
- Select AlwaysTrustUserCerts.zip
- When prompted click on reboot
- On your computer go to Burp Suite proxy-> options->type in your computers IP address and port 8081
- On the Android device go to settings->WiFi->click the widget-> click the pencil->Advanced options-> change proxy to manual-> add the computers IP and port 8081
- Test to see if you can now proxy traffic