# Inspect an Android app’s network traffic in a cloud sandbox

PCAPdroid next to the app on a cloud Android phone: capture that app only, use it, read every host with protocol, port and bytes. No root and no phone of your own; the exact calls from a production run.

By [Mustafa Yenler](https://mobilebox.dev/about#mustafa) [LinkedIn](https://www.linkedin.com/in/mustafa-yenler) Updated 17 November 2026

Guides4 min read

In this article

Install PCAPdroid next to the app on a cloud Android phone, start a capture for that app, use the app, then read PCAPdroid’s Connections tab: every host the app contacted, with protocol, port and bytes. No root, no proxy on your machine and no phone of your own. On Mobilebox the whole run took under five minutes of phone time on November 17, 2026, at $0.01 a minute.

[PCAPdroid](https://github.com/emanuele-f/PCAPdroid) is an open-source app (GPL-3.0) that captures a phone’s traffic through Android’s VPN interface and processes it on the phone; it doesn’t send it to a remote server. It reads host names from DNS, TLS and HTTP. Below are the exact calls we ran on production, with Wikipedia from F-Droid standing in for the app you want to inspect.

## 1. A phone with both apps

Create a phone, then install PCAPdroid and the app. Both by URL here; you can also upload the APK bytes.

```
create_phone {"name": "traffic-check"}
install_app  {"phone_id": "ph_…", "url": "https://f-droid.org/repo/com.emanuelef.remote_capture_95.apk"}
install_app  {"phone_id": "ph_…", "url": "https://f-droid.org/repo/org.wikipedia_50616.apk"}
```

```
Installed com.emanuelef.remote_capture 2.0.2 (versionCode 95).
Installed org.wikipedia r/50616-r-2026-11-03 (versionCode 50616).
```

The install result names the package, so you open the app by what was installed, not by what the file was called. Over REST the same steps are `POST /v1/phones` and `POST /v1/phones/{id}/apps`.

## 2. Start a capture for that app only

One `act` call walks PCAPdroid’s first start: Android’s full-screen notice, PCAPdroid’s intro, the notification permission, then Target apps, so the list holds only the app you inspect. Start asks twice: PCAPdroid explains the VPN, then Android asks for the VPN connection.

```
[{"type": "open_app", "package": "com.emanuelef.remote_capture"},
 {"type": "tap", "target": {"text": "GOT IT"}},
 {"type": "tap", "target": {"text": "SKIP"}},
 {"type": "tap", "target": {"text": "ALLOW"}},
 {"type": "tap", "target": {"id": "com.emanuelef.remote_capture:id/app_filter_switch"}},
 {"type": "scroll_to", "text": "org.wikipedia"},
 {"type": "tap", "target": {"text": "Wikipedia"}},
 {"type": "back"},
 {"type": "tap", "target": {"desc": "Start"}},
 {"type": "tap", "target": {"text": "OK"}},
 {"type": "tap", "target": {"text": "OK"}}]
```

The capture runs when the screen shows a Stop button and a byte counter:

```
[2] Button desc="Stop" (774,136)
[12] Text "0 B" (540,742)
```

A key icon in the status bar says the VPN is up. Leave Target apps off to capture every app on the phone.

## 3. Use the app

Open it and go through what you want to see: its first screens, a log-in form, a search. We opened Wikipedia, tapped through its intro and let the feed load.

```
[{"type": "open_app", "package": "org.wikipedia"}, {"type": "wait", "ms": 4000}]
```

## 4. Read the connections

```
[{"type": "open_app", "package": "com.emanuelef.remote_capture"},
 {"type": "tap", "target": {"text": "CONNECTIONS"}}]
```

Each connection comes back as one line your agent can read, from that run:

```
[13] Row "Wikipedia" — Closed · DNS, 53 · 08:49:10 · meta.wikimedia.org · 163 B
[14] Row "Wikipedia" — Closed · DNS, 53 · 08:49:10 · en.wikipedia.org · 169 B
[15] Row "Wikipedia" — Active · HTTPS, 443 · 206.5 KB · 08:49:44 · en.wikipedia.org
[16] Row "Wikipedia" — Closed · HTTPS, 443 · 08:49:10 · en.wikipedia.org · 6.6 KB
[17] Row "Wikipedia" — Closed · DNS, 53 · 08:49:10 · intake-analytics.wikimedia.org · 187 B
[18] Row "Wikipedia" — Closed · DNS, 53 · 08:49:10 · upload.wikimedia.org · 148 B
[19] Row "Wikipedia" — Active · HTTPS, 443 · 26.1 KB · 08:49:10 · upload.wikimedia.org
```

Four hosts: the article API, images, the metadata wiki and an analytics endpoint. A `screenshot` gives the same list as a PNG for a report. Scroll for longer lists.

## 5. Delete the phone

`delete_phone` removes the phone, both apps and everything they stored. The next app gets a clean phone.

## What you see and what you don’t

You see which hosts and ports the app contacts, over which protocol, how much data, and when, while you use it. HTTPS payloads stay encrypted; PCAPdroid has its own TLS decryption setup, which we didn’t use here. An app may also wait hours before it calls home, or call only after a log-in, so a short session shows what it does in that session.

For a suspicious APK, read [what a throwaway phone gives you and how it is isolated](https://mobilebox.dev/blog/android-sandbox-apk-analysis) first. To hand the whole loop to an agent, see [let your AI agent check what an APK connects to](https://mobilebox.dev/blog/ai-agent-apk-network-analysis).

[Mustafa Yenler](https://mobilebox.dev/about#mustafa) is the founder of fifteenA and builds Mobilebox, from Berlin and San Francisco. [LinkedIn](https://www.linkedin.com/in/mustafa-yenler)

## Try it in your agent in 60 seconds

Paste this into Claude Code, Cursor, Codex or any agent that can read a web page. It asks for your email, gets its own key at once and adds the phone tools; the 6-digit code from your inbox keeps the workspace.

```
Set up Mobilebox for me: read https://mobilebox.dev/setup.md?via=inspect-android-app-network-traffic and follow it.
```

[What your agent reads](https://mobilebox.dev/setup.md?via=inspect-android-app-network-traffic)

In this article

[All articles](https://mobilebox.dev/blog)

## Next question

- [Can I watch my agent work live?](https://mobilebox.dev/live-view?via=next-live)
