1. Computer connected to the phone, into the ADB mode: adb shell
2. Get the phone root permission: su
3. Download tcpdump;
4. Place the tcpdump in the Mobile/data/local/directory: ADB push c:\tcpdump/data/local/tcpdump
5. Give /data/local/tcpdump the corresponding permission: chmod 6755/data/local/tcpdump
6. Access Path: cd/data/local
7. Start Grab Bag:/data/local/tcpdump-i any-p-S 0-w/sdcard/test.pcap
Command parameters:
# '-I any ': Listen on any network interface
# "-P": Disable promiscuous mode (doesn ' t work anyway)
# "-S 0": Capture the entire packet
# "-W": Write packets to a file (rather than printing to stdout)
Stop grasping the packet Ctrl + C
8. Export /sdcard/test.pcap file: adb pull/sdcard/capture.pcap d:/
9. Use Wireshark to view.
This article is from "MySpace" blog, please make sure to keep this source http://wangzhaoli.blog.51cto.com/7607113/1707726
The capture process for Android phones under root access