Fiddler capture package Android emulator application

The first time I tested the Android application, the environment did not allow the use of a real machine, so I installed an Android emulator on the computer to test the Android application. I encountered some problems when capturing the package. The online information is all about configuring the wifi in the emulator. , But the effect is not ideal, always fails, and later found a separate way to capture the traffic of the browser and the application, so record it.

It takes a little time to download Android Studio on the official website and install AVD (Android Virtual Device Manager). The main reason is that the network speed is slow and the download time is long. After AVD is installed, you can install the Android model emulator you need. There are many online materials.

After the Android emulator is opened, it is equivalent to an Android phone. First check whether the Android emulator can be networked. You can open the emulator's browser and visit the network to see if it is normal. If it is normal, you can start the next step.

The first step: open Fiddler, tools, options, Connections, the default port is 8888, you can adjust it according to your needs, I will not change it here. Tick ​​Allow remote computers to connect.

Step 2: Open Fiddler, tools, options, HTTPS, check Capture HTTPS CONNECTS, and grab the HTTPS protocol package.

The third step: open the simulator configuration (the lower right corner of the simulator ...), find settings, proxy, select manual proxy configuration, the hostname is configured as its own local ip, and the port number is configured as the port 8888 monitored by fiddler According to the previous configuration adjustment), my company network has proxy restrictions, and I need to enter the proxy authentication account password, click Apply. In theory, at this step, fiddler can grab the package of the Android emulator, but in order to grab A more complete (mainly https) package requires the next step

The fourth step: use the browser of the simulator to access the port where the local IP + Fiddler is listening, I am here http: //XX.XX.XX.XX: 8888 , and then download the authentication certificate, just name it later .

Published 30 original articles · Like 13 · Visits 100,000+

Guess you like

Origin blog.csdn.net/u013224189/article/details/82021413