How to Capture and Analyze Android Network Traffic Using a Local VPN Capture App (No Root)

7 min read Learn how to record Android network traffic with a VPN‑based capture app, export the pcap file and analyze it in Wireshark – all without rooting your device. October 12, 2026 09:00 How to Capture and Analyze Android Network Traffic Using a Local VPN Capture App (No Root)

Before you start

  • Android 6.0 or newer (VpnService is stable).
  • Device charged or connected to power.
  • Wi‑Fi or mobile data connection you want to monitor.
  • Computer with Wireshark installed if you plan to do deep analysis.
  • Optional: a USB cable for fast file transfer.

Why a VPN‑based capture works without root

Android provides the VpnService API, which lets an app create a virtual network interface and route all device traffic through it. Because the traffic passes through the app, the app can record packets before they reach the network stack. This approach does not require root privileges, making it safe for most users.

Step‑by‑step guide

  1. Choose a capture app. Two popular free options are:
    • HttpCanary – offers TLS decryption via a user‑installed certificate.
    • Packet Capture – simpler UI, works for most apps without extra setup.
    Both are available on the Google Play Store. If you prefer an APK, download from the developer’s official site.
  2. Install the app. Open the Play Store, search for the chosen app, tap Install. After installation, launch the app once to complete initial setup.
  3. Grant VPN permission. The first time you start a capture the app will ask: “Allow [App] to set up a VPN connection?” Tap OK. This permission does not give the app full VPN control over your traffic; it only creates a local tunnel for monitoring.
  4. Configure capture options. Inside the app:
    • Choose All apps or select specific packages you want to monitor.
    • Enable HTTPS/TLS decryption if you need to see inside encrypted traffic (requires installing the app’s certificate – see the note below).
    • Set a capture file name or leave the default.
  5. Start the capture. Press the Start button. Android will display a persistent VPN icon in the status bar – this indicates the virtual interface is active.
  6. Reproduce the network activity you want to analyze. Open the target app, browse a website, or perform the action you are investigating. The capture app records every packet that flows through the virtual interface.
  7. Stop the capture. Return to the capture app and tap Stop. The app will write a .pcap file to its internal storage, typically under /sdcard/PacketCapture/ or a similar folder.
  8. Export the capture file. Use one of the following methods:
    • Tap Share inside the app and choose Send via USB or Email.
    • Connect the phone to a PC, enable File Transfer mode, and copy the .pcap file.
  9. Open the file in Wireshark. On your PC, launch Wireshark, choose File → Open, and select the exported .pcap. You can now apply filters (e.g., http, tcp.port==443) to focus on the traffic of interest.

Optional: Decrypting HTTPS traffic

Most apps use TLS, which encrypts payloads. To see the clear‑text data you must install the capture app’s custom CA certificate:

  1. In the capture app, enable HTTPS decryption. The app will generate a certificate file.
  2. Navigate to Settings → Security → Encryption & credentials → Install a certificate → CA certificate (path may vary by manufacturer).
  3. Select the generated .crt file and confirm installation.
  4. Restart the capture. From now on, traffic from apps that respect the system’s trusted CAs will be decrypted.

Note: Some apps (e.g., banking apps) implement certificate pinning and will refuse the custom CA, so their traffic remains encrypted.

Troubleshooting

  • No packets appear in the capture.
    • Ensure the VPN icon is visible. If it disappears, the app may have been killed by the system – whitelist the app in battery optimization settings.
    • Check that you selected the correct network interface (Wi‑Fi vs. mobile data) in the app’s settings.
  • App crashes or “VPN not started” error.
    • Some manufacturers (e.g., Xiaomi, Huawei) restrict background VPN services. Disable aggressive battery saving or enable Auto‑start for the capture app.
    • Restart the device and try again.
  • HTTPS traffic is still encrypted.
    • Verify the custom CA is installed and trusted. On Android 10+, you may need to enable Install from unknown sources for the capture app.
    • Remember that apps with certificate pinning cannot be decrypted.
  • Large capture files consume storage.
    • Limit the capture duration or filter to specific apps.
    • Periodically delete old .pcap files.

Safety and privacy considerations

Capturing network traffic gives you visibility into passwords, tokens, and personal data. Treat the resulting .pcap files as sensitive:

  • Store them in an encrypted folder or delete them after analysis.
  • Never share captures that contain personal information without anonymising the data.
  • Only capture traffic on devices you own or have explicit permission to monitor.

When to use a root‑based approach instead

If you need to capture traffic from apps that enforce certificate pinning, or you want kernel‑level packet data (e.g., raw Wi‑Fi frames), a rooted solution such as tcpdump via adb is required. The VPN method described here covers the majority of everyday debugging scenarios without the risks associated with rooting.

Wrap‑up

By leveraging Android’s built‑in VPN service, you can record and analyse network traffic without rooting your device. The workflow outlined above—installing a capture app, configuring VPN permissions, exporting a .pcap file, and opening it in Wireshark—provides a practical, low‑risk method for developers, security enthusiasts, or anyone troubleshooting connectivity issues.

User Comments (0)

Add Comment
We'll never share your email with anyone else.