tcpdump
A powerful command-line packet analyzer; and libpcap, a portable C/C++ library for network traffic capture.
How to sniff traffic from Android emulator
emulator -list-avdsemulator -avd <non_production_avd_name> -writable-system -no-snapshotadb root
adb remount
adb push /wherever/you/put/tcpdump /system/xbin/tcpdump
adb shell chmod 6755 /system/xbin/tcpdumpadb forward tcp:11111 tcp:11111adb shell
tcpdump -i wlan0 -s0 -w - | nc -l -p 11111nc localhost 11111 | wireshark -k -S -i -References
Last updated