Recently, due to project requirements, tcpdump is currently used
1. Get the root permission on the mobile phone
It is too cumbersome to use the cmd Tool to download the root mobile phone. We recommend a "Zhuo "tool to download and install the tool and run it.
The root mobile phone may have some problems. At first, I downloaded some files and root them through cmd. As a result, the mobile phone almost crashed and then gave up, I switched to this specialized flash Machine Tool. However, some models may be faulty. I used this software to root the g5, g10, and g13 mobile phones and tried it n times, g10 and g13 are successful if g5 is always root
For example, I downloaded it to the root directory of drive D.
Cmd command (below is my cmd record ):
Adb root
Adb remount
Adb push D: \ tcpdump/data/local/tcpdump (put the tcpdump file in the mobile phone/data/local/directory)
Adb shell chmod 6755/data/local/tcpdump (Set permissions)
Adb shell
Cd/data
Cd/data/local (enter the/data/local directory)
./Tcpdump-I any-p-s 0-w/mnt/sdcard/cap. cap (enter this line when you want to capture the network data of your mobile phone)
Adb pull/mnt/sdcard/cap. cap d:/(stop packet capture, and finally put the data file cap. cap house d in the root directory)