Back in 2014 I had a post on how to cross compile tcpdump for Android to record all network traffic from cellular and Wifi into files for later analysis for Wireshark. I’ve known for a while that it’s also possible to use adb and tcpdump to pipe all network traffic from the smartphone over USB to Wireshark running on a PC for real time tracing. I didn’t really follow up on this since then because most dumping data into a file on the device and later transferring it to the PC was good enough for me. Recently, however, a more real time approach was required and I was actually quite surprised how easy it is to set this up once tcpdump is on the device.
Continue reading ADB and tcpdump on Android for Live Wireshark Tracing