Skip to content

olef perm

CLI v3.0.2View Markdown

Generated from Olef 3.0.2. All commands · Capabilities and requirements

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.

Runtime permission grants

Terminal window
olef perm --help

Output: json.

Grant one or more runtime permissions (verify-by-readback)

Terminal window
olef perm grant --help

Output: json.

Argument Description
<package> Required.
<perms> Required. Permissions to grant (e.g. android.permission.CAMERA); one or more
--json Accepted for compatibility; output is always JSON.

Revoke one or more runtime permissions

Terminal window
olef perm revoke --help

Output: json.

Argument Description
<package> Required.
<perms> Required. Permissions to revoke (e.g. android.permission.CAMERA); one or more
--json Accepted for compatibility; output is always JSON.

List a package’s runtime permission grant states

Terminal window
olef perm list --help

Output: json.

Argument Description
<package> Required.
--json Accepted for compatibility; output is always JSON.

Revoke all granted runtime permissions (fresh-install prompt state)

Terminal window
olef perm reset --help

Output: json.

Argument Description
<package> Required.
--json Accepted for compatibility; output is always JSON.

Answer the runtime-permission dialog on screen: allow-foreground (“While using the app”, or “Allow” where that is the only grant), allow-once (“Only this time”) or deny (“Don’t allow”). Waits for the dialog, taps the answer whatever its id on this Android version, and waits for the dialog to close or the next one to replace it

Terminal window
olef perm dialog --help

Output: json.

Argument Description
<choice> Required. Values: allow-foreground, allow-once, deny.
--wait-ms <WAIT_MS> How long to wait for a permission dialog to appear, in milliseconds Default: 5000.
--timeout-ms <TIMEOUT_MS> How long to wait for the dialog to close after the tap, in milliseconds Default: 5000.
--json Accepted for compatibility; output is always JSON.