A Wireshark
1. Make the computer network a hotspot
2. When the WiFi hotspot is turned on, the mobile phone is connected to the hotspot;
3. Start Wireshark, select the network card as the hotspot, click Start to grab the packet;
4. Operation mobile phone, can crawl to the phone all the network interaction with the packet, if need to stop, directly click on the Wireshark stop.
Two Fiddler
This method only adapts to crawling HTTP. The biggest advantage of this approach is that HTTP can be intercepted or received, and HTTP request and response data can be modified.
1. Computer and mobile phone connected to the same LAN (such as computer and mobile phone connected to the same WiFi)
2. The computer opens Fiddler, under Fiddler, Tools-fiddler Options, set the listening port number under the Connections tab and tick "Allow remote computers connect", click "OK"
3. Mobile phone under the WiFi option, select "Modify Network/Settings Agent", then the host name to fill in the computer's IP address, the port number is filled in just set the "8888" after the save.
4. After the setup is complete, the direct operation of the phone can be seen on the computer's Fiddler on the HTTP code stream.
Android Wireshark grab bag and fiddler grab bag