# Read your app's own databases, prefs and logs.

On a Mobilebox cloud Android phone your agent reads any file in an installed app's private folder, `/data/data/<package>/`: its SQLite databases, shared prefs, files and cache. One `pull_file` call over MCP, or `GET /v1/phones/{id}/files?path=…` over REST, returns the file or lists the folder, and `app_logs` returns the app's log lines. Nothing to set up on your side; $0.01 a minute.

[Start a phone](https://mobilebox.dev/signup?device=android_cloud&amp;via=need-app-data&via=md) [API reference](https://mobilebox.dev/docs/reference?via=md)

Sign up with GitHub, Google or email. New workspaces get free credit, no card.

## Where an app keeps its state

Every path below is under `/data/data/<package>/`; Android's `/data/user/0/<package>/` is the same folder.

| Folder | What you find | Useful for |
| --- | --- | --- |
| databases/ | SQLite files, Room included | Checking that a tap saved the right row |
| shared_prefs/ | XML key-value files | Feature flags, onboarding done, settings |
| files/ | The app's own files and log files | Exports, saves, a log your app writes |
| cache/ | Cached responses and images | What the app fetched last |

Files the app shares live in `/sdcard/`, which `pull_file` reads too, and `push_file` puts test files there for the app to import.

## Check the state, not only the screen.

A screen can say "Saved" while the row is missing. Your agent taps through the flow, then reads what the app actually stored.

[Data on agent phones](https://mobilebox.dev/blog/android-agent-data-boundaries?via=md)

1. Run the flow
   Install your build and drive it with `act` or a [Maestro flow](https://mobilebox.dev/maestro-cloud?via=md).

2. List the folder
   `pull_file {"path": "/data/data/com.example.app/databases"}` lists the files and their sizes.

3. Read the file
   Text comes back as text and anything else as base64 over MCP, up to 100 KB; over REST the file streams whole, up to 2 GB.

## Questions

Reading app data on cloud phones.

How can my AI agent read an Android app's SQLite database?

On a Mobilebox phone, call `pull_file` with `/data/data/<package>/databases/<name>.db`, or `GET /v1/phones/{id}/files?path=…` over REST, and open the file with any SQLite reader.

Do I need root or adb?

No. Give the path and Mobilebox reads the file from the phone for you; the app has to be installed on that phone.

How large a file can I read?

Over MCP, text or base64 up to 100 KB in the tool result, and PNG or JPEG as an image up to 1 MB. Over REST, any file up to 2 GB.

How do I read my app's logs?

`app_logs {package}` returns the app's log lines, one `time pid level tag: message` each, filtered by `since`, `lines` or `level`. A log file the app writes itself is in its `files/` folder.

Does the data stay between runs?

Yes, park the phone and the app's data stays with it, free while parked; see [stay logged in](https://mobilebox.dev/cloud-phone-stay-logged-in?via=md).

## Read more

[What leaves the phone when your agent reads the screen? Map credentials, model inputs, screenshots, traces and CI artifacts so the evidence you keep matches the task you need to judge. Engineering4 min read](https://mobilebox.dev/blog/android-agent-data-boundaries?via=md) [Android sandbox for APK analysis on a throwaway phone Install a suspicious APK on a clean cloud Android phone, watch its screens, see which servers it contacts, then delete the phone. How the phone is isolated, and when a malware sandbox like MobSF fits better. Decisions4 min read](https://mobilebox.dev/blog/android-sandbox-apk-analysis?via=md)

## 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=read-app-data-android and follow it.
```

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

## Next questions

- [Can each phone get a residential IP?](https://mobilebox.dev/blog/residential-ip-per-phone?via=next-residential-ip)

- [Does my agent stay logged in between runs?](https://mobilebox.dev/blog/park-resume-android?via=next-logins)

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

- [What does it cost for a team?](https://mobilebox.dev/blog/mobilebox-pricing-for-teams?via=next-team)

- [How fast do cloud phones start, measured?](https://mobilebox.dev/benchmarks?via=next-benchmarks)

- [Is there a Python package?](https://mobilebox.dev/blog/android-phone-for-python-ai-agent?via=next-python)

- [Does my agent need a real device?](https://mobilebox.dev/blog/real-android-devices-vs-cloud-phones?via=next-real-device)

- [Can my agent automate tasks in my apps?](https://mobilebox.dev/app-automation?via=next-automation)
