-
Create a Android Virtual Device (AVD) using a non Google image to enable root access
-
Start mitmproxy
-
Install DuckDuckGo browser via downloaded apk on AVD
Download via: https://apkcombo.com/duckduckgo/com.duckduckgo.mobile.android/
-
Start ADV emulator with mitmproxy configured:
.\emulator.exe -avd Pixel_7_API_28 -http-proxy 127.0.0.1:8080 -writable-system
-
Install mitmproxy certificate as User.
Go to mitm.it in your browser (DuckDuckGo) and download the certificate.
Install the certificate via Settings -> Security -> Advanced -> Encryption and credentials -> Install a certificate -> CA certificate (or similar) instead.
-
Move the User Certificate to Root CA store
./adb.exe root
./adb.exe shell avbctl disable-verification
./adb.exe reboot
./adb.exe remount
./adb.exe -s emulator-5554 shell
Run within the AVD:
# su
# whoami
# cp /data/misc/user/0/cacerts-added/* /system/etc/security/cacerts
References: