Packet capture process for Android mobile phones with root permissions
1. connect the computer to the mobile phone and enter adb mode: adb shell2. get the root permission of the mobile phone: su3. download tcpdump; 4. put tcpdump to the mobile phone/data/local/directory: adb push c: \ tcpdump/data/local/tcpdump5. grant/data/local/tcpdump the corresponding permissions: chmod 6755/data/local/tcpdump6. path: cd/data/local7. start to capture packets:/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 ent Ire packet # "-w": write packets to a file (rather than printing to stdout) Stop packet capture ctrl + c8. export/sdcard/test. pcap file: adb pull/sdcard/capture. pcap d:/9. use WireShark to view data.