tcpdump on iOS and Android

iOS

  1. Use the command rvictl to create a virtual interface for attached mobile devices.
  2. Use the command tcpdump [-i interface] -AAl to capture a remote packet for the interface created before.

Android

  1. Download the tcpdump tool which is compiled for Android platform.
  2. Use the command adb push [source path] [destination path] to copy the command tool to Android device.
  3. Use the command adb shell to login into the Android device, then you could use tcpdump command.