0

I have configured AVD Manager like this:

enter image description here

and configured simulator settings:

enter image description here

Charles HTTP Proxy is 8888. But When I requesting network connection with the simulator, it still not connect to charles. I did something wrong ? Or AVD can not connect charles?

ZeroChow
  • 422
  • 2
  • 5
  • 16

2 Answers2

0

As just said in a similar thread, the simulator will likely use your computer's internet connection, unlike real devices that connect to Charlesproxy through the external http port that you specify (8888 by default).

While http traffic proxied through that port will always be recorded by Charles, recording the traffic of desktop apps like your simulator is optional. Thus the simulator's traffic will only be recorded if you check the corresponding option in the "Proxy" menu. (In Charles on Windows, the available options are "Windows Proxy" and "Firefox Proxy", not sure which are the options on a Mac.)

Community
  • 1
  • 1
aaadddmmm
  • 66
  • 5
0

It is very simple as you can route your emulators traffic through terminal. The command for that will be somewhat like:-

./emulator -netdelay none -netspeed full -avd AVD_NAME -http-proxy http://SYSTEM_IP:8888

As far as settings in emulators you have to do nothing, just a simple fiddler cert would be fine. That too you can easily push though Android Device Monitor by pushing a file in emulators internal mem.

Let me know if you face any issues i would be happy to help.

Regards,

Akshat
  • 76
  • 1
  • 9