You can use the method below to quickly identify the problems that will occur in the android application development phase. It was very useful for me. I think it will be useful for you.
Fiddler Download : https://www.telerik.com/fiddler
First, you should enable the Allow remote computers to connect setting in Fiddler
- Open Fiddler and select Tools -> Options
- Choose the Connections tab
- Select the Allow remote computers to connect checkbox to enable the setting
- Restart Fiddler in order the changes to take effect
Fiddler is now listening on port 8888 (this is the default port, you can change it from the setting above).
Setting up the Android Device
Once Fiddler is listening, we should use it as a proxy in Android.
- Open the WiFi menu.
- Tap and hold on your current network to show the network details
- Choose the Manage network settings option
- Check Show advanced options checkbox
- Choose Manual from the Proxy dropdown list
- Type your IP address in the Proxy host name field
NOTE: You can check your IP address by hovering over the Network Connection icon in the Fiddler toolbar. - Type the Fiddler listening port (8888 by default) in the Proxy port field
- Click Save to apply changes
Capture HTTPS Traffic
With the current setup you should be able to capture HTTP traffic. However, if you try to open any HTTPS website, you’ll get the This site’s security certificate is not trusted! error. To fix this, you should trust the Fiddler root certificate.
NOTE: By default, Fiddler-generated certificate is valid for 5 years. However, this can cause ERR_CERT_VALIDITY_TOO_LONG error in Chrome on Android. To fix this:
- Run about:config in Fiddler QuickExec.
- Create new variable fiddler.certmaker.ValidDays with value 820
Then, you can proceed with installing the Fiddler Root certificate as follow:
- In your browser, navigate to http://ipv4.fiddler:8888 or http://localhost:8888
- Download the Fiddler root certificate.
- Install the certificate on your device.
Now you should be able to capture HTTPS traffic too.
*you use this method for many application models, not just android.
Last updated: