emulator -avd <avdName> -http-proxy 127.0.0.1:8888
with a Charles proxy. In Charles proxy, I have HTTP proxying enabled, but SSL proxying disabled. When I open my Android app, everything works great. I am able to login to my app via HTTPS, and see all of the HTTP calls that I want.
However, when I use an embedded BrowserMob proxy and try to log into my Android app, I get a login authentication error. I've tried the BrowserMobProxy settings proxy.setTrustAllServers(true) and proxy.setMitmDisabled(true), but still do not get HTTPS calls to resolve. I also tried adding the ca-certificate-rsa.cer certificate, but that didn't work either. (I want to avoid installing any certificates because then the Android Emulator requires a pin-code lock screen, and Appium cannot handle unlocking pin-code lock screens.)
Is there a way to turn off SSL proxying like Charles does? I also tried LittleProxy without BrowserMob, but had the same issues.
Thanks!