Use Fiddler to perform HTTP monitoring on the android Module

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.