Skip to content

Debugging Api Calls With Charles proxy

Valeria Rogatchevskikh edited this page Dec 20, 2016 · 9 revisions

If you want to debug connections, for example to the api, you can use charles with the Android emulator. Here is how:

  1. Install charles proxy and start it https://www.charlesproxy.com/download/

  2. Configure: Proxy -> Proxy Settings Just like on this image:

    Imgur

  3. Configure: Proxy -> SSL Proxying Settings Just like on this image:

    Imgur

  4. Chose an emulator to use, to get a list: android list avd

  5. Run and enjoy emulator -netdelay none -netspeed full -avd <emulator> -http-proxy http://<your_local_ip>:8888

    Example: emulator -netdelay none -netspeed full -avd Nexus_5X_API_25_x86 -http-proxy http://192.168.1.100:8888