Member-only story

Map Remote Charles with Android device

Andres Sandoval
2 min readMay 11, 2020

--

The tutorial shows how to map an API endpoint response with a JSON file. This is good for testing API endpoint response and for faster prototyping.

Tools require:

Android Studio — to run Android emulator

Charles — Map response API to a JSON file

Setup Charles to connect with your Android device

Enable SSL Proxying:

  1. Charles -> Proxy -> Enable SSL Proxying (now we can see network responses)

Now connect an Android device to the laptop:

1. Go to the Android device’s wifi settings.

2. Select “Modify network” and select “advanced options”.

3. In the menu setting “Proxy” (select manual).

4. In the menu setting “Proxy hostname” enter your laptop’s IP address 192.xx.xx.xx. Get your laptop’s IP from Charles, open Charles, go to Help, Local IP address.

5. In the menu setting “Proxy Port” enter 8888.

6. Charles console now you can see the Android devices network logs.

Add Charles Cert to Android device:

Open Charles, go to Help -> SSL Proxying -> Install Charles Root Certificate on a Mobile Device or Remote Browser

  1. Setup an Android device with Charles: change wifi settings to use…

--

--

Andres Sandoval
Andres Sandoval

Written by Andres Sandoval

I'm a passionate Android Software Engineer with over 11 years of experience. andresand.github.io/andres-about-me/ buymeacoffee.com/andresand

No responses yet