Android Emulator - any way to turn off BrowserMobProxy SSL proxying?

184 views
Skip to first unread message

Bruce Tu

unread,
May 2, 2016, 5:52:21 PM5/2/16
to BrowserMob Proxy
I am trying to monitor HTTP requests/responses via BrowserMob.  I don't care about HTTPS.

I'm launching an Android Emulator using params:

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!

Bruce Tu

unread,
May 2, 2016, 5:54:46 PM5/2/16
to BrowserMob Proxy
BrowserMobProxy - 2.1.0-beta-6
Android Emulator - Android Studio 1 version
Android AVD - API 23
Reply all
Reply to author
Forward
0 new messages