问题
I am trying to set charles proxy on Android 8.0( S8 ). I have installed the root certificate-> Changed WIFI settings to charles proxy settings. But After connecting to proxy, Internet connection is lost. Tried multiple times. Is there any other security certificate I need to install for Android 8.0. Please suggest. Thanks
回答1:
The sequence of steps is really important:
- Connect the Android device and the computer that running Charles to the same LAN (WiFi) network
- Start Charles
Then set the Charles machine LAN IP as manual proxy on your phone. Open the list of Wifi connections, then touch and hold the connected network, and select Modify network.
- Proxy: Manual
- Proxy hostname: Open the Help > Local IP Address menu in Charles and paste into it the address displayed
- Proxy port: 8888 (This is the default value that can be changed in the Proxy > Proxy Settings menu.)
Open a browser on your phone and make some network traffic
After that you have to click into the Charles app window. You will see a confirmation dialog that asking you to allow network traffic from the mobile device, press Allow.
After all, open the https://chls.pro/ssl URL on your device and install the .pem file for VPN and apps (Use Chrome browser on Android, and Safari for iOS devices.)
Troubleshooting
When Charles is the background, the confirmation dialog will not be visible automatically, you have to activate (bring back to the foreground) the Charles application window to see it.
To check the device connection permission, go to Proxy > Access Control Settings. You should also see its LAN IP on the list.
To getting your Android phone LAN IP address open the Dialer and enter:
*#*#4636#*#*
, then select Wi-Fi information > WiFi status and refresh stats.
来源:https://stackoverflow.com/questions/50296421/internet-connection-lost-when-setting-charles-proxy-on-android