1

I'm troubleshooting my aCal installation and the good folks at aCal asked me for the output from tcpdump -A -- do I need to root my phone and install busybox or can I do this from a terminal emulator?

  • 1
    All apps on Google Play which use tcpdump seem to require root. A quick test on my Linux machine showed: as root it works, as unprivileged users I simply get an error message stating "tcpdump: no suitable device found". So I guess that would require root. On the other hand: it doesn't hurt to either install a terminal app and try, or try doing it via adb shell. – Izzy May 22 '13 at 18:56
3

Yes, tcpdump is an administrator-level application (I highly doubt there will ever be an Android permission level to view all other apps' network traffic). Once rooted, if you have tcpdump binary (compiled for your device's cpu type) on sdcard, try:

su
mount -o remount rw /system/
cd /sdcard
cp ./tcpdump /system/xbin

Now you can use tcpdump command.

Without rooting, you could intercept traffic on your wifi LAN by setting a proxy to your computer in your device settings, and installing mitmproxy in a virtualenv on your computer and running it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.