Sunday, 4 August 2013

Useful Android adb Network debugging commands



Capture network traffic to pcap file:

adb -e shell tcpdump -s 1500 -w /sdcard/capture.pcap

Transfer pcap file from emulator to host pc

adb pull /sdcard/capture.pcap

The pcap file can then be opened in Wireshark.

No comments: