http://code.tutsplus.com/tutorials/analyzing-android-network-traffic--mobile-10663
http://cpiekarski.com/2013/05/02/sniffing-android-emulator/
In a nutshell, you can telnet into the emulator and start and stop the capture. This seems to work really well.
You can define any file name instead of emulator.cap and it shows up under your root directory.
In a nutshell, you can telnet into the emulator and start and stop the capture. This seems to work really well.
You can define any file name instead of emulator.cap and it shows up under your root directory.
telnet localhost 5554
network capture start emulator.cap
-- Do Something Cool --
network capture stop
emulator -avd myavd -verbose -tcpdump emulator.cap