5 min read

Mobile Packet Capture: How to Capture Traffic on Android & iOS (Wireshark for Mobile)

'How do I capture traffic on a phone?' and 'is there a Wireshark for mobile?' are high-volume long-tail questions. This guide compares the viable mobile packet capture approaches on Android and iOS — their use cases, steps, and limitations — and shows the four-step analysis in PcapDecoder right after the capture, so you can pick the right tool and skip the detours.

Mobile Packet Capture: How to Capture Traffic on Android & iOS (Wireshark for Mobile)
SummaryKey Points
  • Android: two mainstream paths — system-level capture (VPN Service) and a computer-shared hotspot
  • iOS: without root, you rely on Wi-Fi proxies or cable mirroring, and permissions are inherently limited
  • HTTPS is the biggest obstacle in mobile capture; certificate pinning (SSL Pinning) will block a proxy
  • After the capture: PcapDecoder's mobile client opens and analyzes files directly — no computer transfer needed

First Decide What You Want to Capture

Your goal determines the approach:

GoalRecommended method
Inspect an app's own HTTPS requests/responsesProxy + install a CA certificate (fails if Pinning is present)
Inspect all device traffic for security analysisSystem-level capture (VPN Service apps on Android)
Reproduce "this one page won't open"Computer-shared hotspot + capture mirrored traffic in Wireshark
Long-term collection for a sample libraryDedicated capture hardware / mirror ports — don't use a proxy

Details by platform below.

Android Capture Methods

Method 1: Capture apps (the easiest)

The Play Store and Chinese app markets offer several VPN Service-based capture apps (such as PCAPdroid, HttpCanary, etc.). How they work: the app establishes a local VPN, the system routes all traffic through it, and it forwards while recording. No root required.

  • Pros: install and go, with direct pcap export;
  • Limitations: TCP/UDP only, no link-layer details; some apps have incomplete ICMP and multicast support.

Method 2: Computer hotspot capture (the most complete)

Connect the phone to a hotspot hosted by your computer, and capture the mirrored hotspot traffic in Wireshark:

  • Pros: complete packets, the same experience as capturing on a computer;
  • Limitations: you need to carry a computer; capturing iOS traffic through a computer hotspot requires extra configuration (see below).

Method 3: adb + tcpdump (requires USB debugging)

Android 4.1+ ships with tcpdump (some vendors strip it out). After enabling USB debugging:

adb shell "tcpdump -i any -s 0 -w /sdcard/capture.pcap"
adb pull /sdcard/capture.pcap

Good for scripted, long-running captures; the resulting file is a standard pcap as-is.

iOS Capture Methods

iOS has no root, so options are inherently limited:

Method 1: Wi-Fi proxy (the most common)

Put the phone and computer on the same Wi-Fi, then point the phone's HTTP proxy setting at the computer (running mitmproxy / Charles). Pros: interactive request inspection; limitations: you only see traffic the proxy forwards, and apps with certificate pinning are a dead end.

Method 2: Cable mirroring (rvictl)

On macOS, the built-in rvictl tool mirrors the iPhone's network interface as a virtual NIC, which Wireshark can capture directly:

rvictl -s <device UDID>
# Then capture the rvi0 interface in Wireshark

Pros: full traffic visibility; limitations: macOS only.

Method 3: System-level VPN capture apps

The App Store has a few capture apps built on Network Extension that can export pcap. The experience is close to Android Method 1, but stability and feature depth are generally a notch below.

What If HTTPS Won't Decrypt

The biggest wall in mobile capture is HTTPS. Match symptoms to causes:

SymptomCauseFix
Proxy shows CONNECT but no contentNormal — HTTPS is encryptedInstall the CA certificate on the phone (on Android 7+, also configure the app's network_security_config)
Certificate installed but still gibberishApp certificate pinning (SSL Pinning)Bypass pinning (requires root/jailbreak or Frida)
No connectivity at allProxy misconfiguration or untrusted certificateCheck the proxy port and whether the certificate is installed as a "user certificate"

A reminder from the security analysis perspective: if you only want to see "which domains this app connects to, how much data it transfers, whether there are suspicious external connections" — you don't need to decrypt HTTPS at all. Capture the full traffic and use PcapDecoder to inspect DNS queries, SNI, destination IPs, and traffic patterns; that is already enough for initial triage. Decryption is a next step, not a necessity.

After the Capture: Four-Step Analysis with PcapDecoder

Once you have the pcap file, the analysis workflow runs in four steps inside PcapDecoder — entirely local, with traffic never leaving the device:

Step 1: Import and get the big picture. Open the file and the dashboard automatically gives you packet count, protocol distribution, top conversations, and the traffic curve. First answer: "what shape is this sample overall?"

Step 2: Review protocol cards layer by layer. Whatever protocol is hit gets a card rendered: DNS query lists, HTTP hosts and URIs, TLS handshakes and SNI, QUIC connections, SIP/RTP calls, routing protocol messages. On small mobile screens, card-style summaries are far friendlier than long lists.

Step 3: Run a deep scan for classification. One tap triggers threat fingerprints, DGA scoring, DNS tunneling, and Beacon detection. App connecting to unfamiliar domains? Suspicious external connections? The scan directly returns confidence levels and evidence packet locations.

Step 4: Timeline and report. Suspicious events are automatically chained into the attack timeline; conclusions and evidence export to PDF/CSV with one tap — ready to send to colleagues or paste into a ticket.

!Deep scan

Archiving advice: rename the sample with the date and scenario (e.g., 2026-10-13-app-login-issue.pcap) and record the SHA-256 in PcapDecoder's forensics panel — so you can compare against similar issues later; it is also standard practice for evidence handover.

!Forensics and certificates

!Opening a capture file


Related reading: What Is a PCAP File? A Beginner's Guide, How to Spot Plaintext Credentials in Traffic.

Mobile CaptureAndroidiOSMobile TrafficGuide
Share
Back to home