美文网首页
Installing proxy certificate in

Installing proxy certificate in

作者: hynial | 来源:发表于2021-04-05 23:05 被阅读0次

[Emulator]ADB Mount /system

> adb root
> adb shell avbctl disable-verification
Successfully disabled verification. Reboot the device for changes to take effect.
> adb disable-verity
using overlayfs
Successfully disabled verity
Now reboot your device for settings to take effect
> adb reboot
> adb root && adb remount
remount succeeded
> adb push ScreenCap.apk /system/app/
ScreenCap.apk: 1 file pushed. 33.1 MB/s (1640812 bytes in 0.047s)
> adb reboot

Installing proxy certificate in Android emulator from command line

  1. Start MITM proxy and execute below command to start Android emulator

    emulator -avd <avd-name> -http-proxy <proxy-address>:<proxy-port> -writable-system & ## make sure that you don't miss '-writable-system'
    

    or:{Init Emulator Below}

    emulator -writable-system -avd $emuid -partition-size 1224 -no-boot-anim
    
  1. Push MITM’s custom proxy certificate to Android system

    file=~/.mitmproxy/mitmproxy-ca-cert.cer
    filename=openssl x509 -in $file  -hash -noout  ## creating filename for .0 file
    openssl x509 -in $file >> $filename.0  ##dumping content of the .cer file
    openssl x509 -in $file  -text -fingerprint -noout >> $filename.0
    adb push $filename.0 /system/etc/security/cacerts
    adb shell "mount -o remount,rw /system"
    adb push $filename.0 /system/etc/security/cacerts
    adb remount
    

相关文章

网友评论

      本文标题:Installing proxy certificate in

      本文链接:https://www.haomeiwen.com/subject/ksxykltx.html