Doksi Docs
Device API

Logs & Data

Query application logs, capture HTTP traffic, and inspect internal app storage.

Read device logs, network traffic, and internal app state without navigating the UI.

get_application_logs

Read filtered logcat output from the device.

ParameterTypeRequiredDescription
filterstringNoLogcat filter expression (e.g. MyTag:D *:S)
limitnumberNoMaximum number of log lines
sincenumberNoReturn logs after this line number
sinceMinutesnumberNoReturn logs from the last N minutes
querystringNoText search or /regex/flags pattern

All parameters are optional. Combine sinceMinutes with query to scope efficiently — for example, crash logs from the last 5 minutes:

query: "/FATAL|AndroidRuntime|Exception/"
sinceMinutes: 5
[11:42:03] D/AuthManager: Token refreshed successfully
[11:42:03] I/NetworkClient: POST /api/v2/login -> 200 OK (312ms)
[11:42:04] D/MainActivity: onResume called
[11:42:04] E/ImageLoader: Failed to decode bitmap: out of memory

Priority levels: V (verbose) < D (debug) < I (info) < W (warning) < E (error) < F (fatal) < S (suppress).

get_network_logs

HTTP request/response log with headers, bodies, status codes, and timing. Captured at the network layer — works without any app-side instrumentation.

ParameterTypeRequiredDescription
filterstringNoFilter by HTTP method or status (e.g. POST, 5xx)
limitnumberNoMaximum number of entries
sincenumberNoReturn logs after this entry number
sinceMinutesnumberNoReturn logs from the last N minutes
querystringNoText search or /regex/flags pattern
[11:42:03] POST https://api.example.com/v2/login
  Request:  {"email":"user@example.com","password":"[REDACTED]"}
  Response: 200 OK (312ms)
            {"token":"eyJ...","userId":"u_abc123","expiresIn":3600}

[11:42:05] GET https://api.example.com/v2/profile
  Response: 401 Unauthorized (88ms)
            {"error":"token_expired"}

get_application_data

Read internal app storage: SharedPreferences, SQLite databases, and files in the app's private data directory. Useful for verifying persisted state without navigating the UI.

ParameterTypeRequiredDescription
packageNamestringYesPackage name
SharedPreferences (prefs.xml):
  user_id = "u_abc123"
  is_logged_in = true
  onboarding_complete = true
  last_sync_ts = 1741182923

Database (app.db - users table, 1 row):
  id=1, email=user@example.com, created_at=2026-01-15

Files:
  cache/avatar_u_abc123.jpg (42 KB)

On this page