1.安装tcpdump到手机的/system/bin目录
adb push tcpdump /system/bin
2.给tcpdump添加可执行权限
adb shell
cd /system/bin
chmod 777
exit
3.抓取网络数据包,执行如下命令,/data/capture.pcap为生成的数据文件,可自行定义目录和文件名
adb shell tcpdump -i any -p -s 0 -w /data/capture.pcap
4.开始浏览网页,浏览完毕后,将文件下载到本地
adb pull /data/capture.pcap ./
5.使用wireshark打开capture.pcap以分析