olef storage
Generated from Olef 3.18.0. All olef commands · ocloud commands · Capabilities
These entries describe available commands, not a sequence to run. Check prerequisites before changing app, device, or cloud state. Global options are listed in the command catalog.
olef storage
Section titled “olef storage”Inspect SQLite/Room databases, SharedPreferences, and Jetpack DataStore
olef storage --helpOutput: json.
olef storage ls
Section titled “olef storage ls”List databases, SharedPreferences, and DataStore files in a debuggable app
olef storage ls --helpOutput: json.
| Argument | Description |
|---|---|
--app <APP> |
App package or configured app alias. Defaults to configured app |
--json |
Accepted for compatibility; output is always JSON. |
olef storage db
Section titled “olef storage db”Inspect or query SQLite/Room databases
olef storage db --helpOutput: json.
olef storage db schema
Section titled “olef storage db schema”Print tables and sqlite_schema definitions for a database
olef storage db schema --helpOutput: json.
| Argument | Description |
|---|---|
<database> |
Required. Database filename (e.g. app.db) or relative path under databases/ or no_backup/ |
--app <APP> |
App package or configured app alias |
--quiescent |
Force-stop the app for a deterministic quiescent snapshot before reading Conflicts with: live. |
--live |
Query live open SQLiteDatabase instances through the attached runtime agent Conflicts with: quiescent. |
--max-db-bytes <MAX_DB_BYTES> |
Maximum database size to copy to host (default 64 MiB) Default: 67108864. |
--json |
Accepted for compatibility; output is always JSON. |
olef storage db query
Section titled “olef storage db query”Run a strictly read-only SQL query against an app database
olef storage db query --helpOutput: json.
| Argument | Description |
|---|---|
<database> |
Required. Database filename (e.g. app.db) or relative path under databases/ or no_backup/ |
<sql> |
Required. Single read-only SQL SELECT / WITH statement |
--app <APP> |
App package or configured app alias |
--param <PARAMS> |
Positional bind parameter as a JSON scalar (repeatable) |
--max-rows <MAX_ROWS> |
Maximum rows to return (1..=1000) Default: 100. |
--offset <OFFSET> |
Row offset for pagination Default: 0. |
--timeout-ms <TIMEOUT_MS> |
Query execution timeout in milliseconds (1..=10000) Default: 2000. |
--quiescent |
Force-stop the app for a deterministic quiescent snapshot before querying Conflicts with: live. |
--live |
Run the read-only query against the live in-process database via the runtime agent Conflicts with: quiescent. |
--allow-columns <ALLOW_COLUMNS> |
Additional column names permitted unredacted when global --redact is active |
--max-db-bytes <MAX_DB_BYTES> |
Maximum database size to copy to host (default 64 MiB) Default: 67108864. |
--json |
Accepted for compatibility; output is always JSON. |
olef storage db exec
Section titled “olef storage db exec”Execute a transactional write SQL statement against a live app database (--live runtime)
olef storage db exec --helpOutput: json.
| Argument | Description |
|---|---|
<database> |
Required. Database filename (e.g. app.db) or relative path under databases/ or no_backup/ |
<sql> |
Required. SQL statement to run inside an explicit transaction |
--app <APP> |
App package or configured app alias |
--live |
Explicit acknowledgement of live in-process execution (always runs live) |
--param <PARAMS> |
Positional bind parameter as a JSON scalar (repeatable) |
--timeout-ms <TIMEOUT_MS> |
Execution timeout in milliseconds (1..=10000) Default: 5000. |
--json |
Accepted for compatibility; output is always JSON. |
olef storage prefs
Section titled “olef storage prefs”Read or modify SharedPreferences XML files
olef storage prefs --helpOutput: json.
olef storage prefs get
Section titled “olef storage prefs get”Read all entries or one key from a SharedPreferences XML file
olef storage prefs get --helpOutput: json.
| Argument | Description |
|---|---|
<name> |
Required. SharedPreferences name (e.g. app_prefs or shared_prefs/app_prefs.xml) |
<key> |
Optional single key to read |
--app <APP> |
App package or configured app alias |
--allow-keys <ALLOW_KEYS> |
Keys permitted unredacted when global --redact is active |
--json |
Accepted for compatibility; output is always JSON. |
olef storage prefs set
Section titled “olef storage prefs set”Set a typed SharedPreferences value (live via runtime when running, or atomic --restart)
olef storage prefs set --helpOutput: json.
| Argument | Description |
|---|---|
<name> |
Required. SharedPreferences name |
<key> |
Required. Preference key |
<value> |
Value to write. Use --value-env for secrets |
--value-env <ENV> |
Read the preference value from this environment variable (never echoed) Conflicts with: value. |
--type <KIND> |
Value type Default: string. Values: string, int, long, float, bool, string-set. |
--restart |
Force-stop, write atomically (removing stale .xml.bak), relaunch, and read back |
--app <APP> |
App package or configured app alias |
--json |
Accepted for compatibility; output is always JSON. |
olef storage prefs rm
Section titled “olef storage prefs rm”Remove a SharedPreferences key (live via runtime when running, or atomic --restart)
olef storage prefs rm --helpOutput: json.
| Argument | Description |
|---|---|
<name> |
Required. SharedPreferences name |
<key> |
Required. Preference key to delete |
--restart |
Force-stop, delete atomically (removing stale .xml.bak), relaunch, and read back |
--app <APP> |
App package or configured app alias |
--json |
Accepted for compatibility; output is always JSON. |
olef storage datastore
Section titled “olef storage datastore”Decode Jetpack Preferences DataStore or raw Proto DataStore files
olef storage datastore --helpOutput: json.
olef storage datastore read
Section titled “olef storage datastore read”Decode a Jetpack Preferences DataStore (.preferences_pb) or raw Proto DataStore file
olef storage datastore read --helpOutput: json.
| Argument | Description |
|---|---|
<name> |
Required. DataStore filename (e.g. settings.preferences_pb) or relative files/datastore/... path |
--app <APP> |
App package or configured app alias |
--format <FORMAT> |
Wire format decoding mode Default: auto. Values: auto, preferences-pb, proto-raw. |
--allow-keys <ALLOW_KEYS> |
Keys or field numbers permitted unredacted when global --redact is active |
--json |
Accepted for compatibility; output is always JSON. |