[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
-
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
-
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
网友评论