Mobilebox
Menu

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.

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.

FolderWhat you findUseful for
databases/SQLite files, Room includedChecking that a tap saved the right row
shared_prefs/XML key-value filesFeature flags, onboarding done, settings
files/The app's own files and log filesExports, saves, a log your app writes
cache/Cached responses and imagesWhat 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
  1. 1

    Run the flow

    Install your build and drive it with act or a Maestro flow.

  2. 2

    List the folder

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

  3. 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.

Read more

Next questions