get tcp traffic log
*** Please note that you need root to use this command ***
1: $ adb shell tcpdump -s 0 -w /data/capture.pcap (to start the logging)
2: Take the log
3: — CTRL-C ---- (to end logging)
4: $ adb pull /data/capture.pcap ./ (to extract the file from the phone)
Get TCP traffic
最新推荐文章于 2026-07-30 11:36:38 发布
本文介绍了一种通过adb命令在Android设备上捕获TCP流量的方法。主要包括启动日志记录、结束记录并从手机中提取日志文件的过程。此方法需要root权限。

295

被折叠的 条评论
为什么被折叠?



