First, make sure that the computer and mobile phone that install fiddler are in the LAN that can be accessed from each other. It is impossible to direct the mobile phone proxy to a PC without mutual access.
2. Enable the remote connection with Fiddler. Fiddler Main Menu tools> fiddler OPTIONS... -> Connections tab
The remote computer connection is allowed to be checked. The above port number does not need to be changed. Keep the default value.
After checking, restart Fiddler. This step is very important.
3. Before setting the proxy for the mobile phone, we need to first obtain the IP address of the computer with fiddler installed in the LAN. It will be used when setting proxy server on the mobile phone. Open the Run window (shortcut: Win + r) in the Start Menu, Enter cmd and press enter to go to the Windows command line tool, and enter ipconfig and press Enter, the result is shown as follows:
4. simulator Configuration
Select a project, right-click, and choose run as-> RUN configuration...
Select the "target" tab and enter "-http-proxy 192.168.1.105: 8888" in the additional emulator command line option. The IP address is the local IP address, the port is set as the connection Port 5 in Fiddler and runs ADB shell. Run the following add proxy statement to add the proxy sqlite3/data/COM. android. providers. settings/databases/settings. DB "insert into system values (99, 'HTTP _ proxy', '2017. 168.1.105: 8888 ') "querying sqlite3/data/COM. android. providers. settings/databases/settings. DB "select * from system" deletes sqlite3/data/COM. android. providers. settings/databases/settings. DB "delete from system where _ id = 99"
Tip: garbled data is returned when you view the monitoring address.