Skip to content

Instantly share code, notes, and snippets.

@gpsarkar
Last active May 10, 2022 06:18
Show Gist options
  • Save gpsarkar/ceecdba56c995737c7e637beace8e3c8 to your computer and use it in GitHub Desktop.
Save gpsarkar/ceecdba56c995737c7e637beace8e3c8 to your computer and use it in GitHub Desktop.
fiddler capture https with android emulator
emulator -avd AndroidEmulator -partition-size 1024 -writable-system
Install toot certificate from `http://ipv4.fiddler:8888`
The certificate will now be located in /data/misc/user/0/cacerts-added/.
Remount /system R/W as root if you haven't already (mount -o remount,rw /system).
adb shell
su
mount -o remount,rw /system
Move the .0 file to /system/etc/security/cacerts/ and chmod the file to 644.
cd /data/misc/user/0/cacerts-added/
mv 269953fb.0 /system/etc/security/cacerts/269953fb.0
chmod 644 /system/etc/security/cacerts/269953fb.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment