olef perm
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.
olef perm
Section titled “olef perm”Runtime permission grants
olef perm --helpOutput: json.
olef perm grant
Section titled “olef perm grant”Grant one or more runtime permissions (verify-by-readback)
olef perm grant --helpOutput: 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. |
olef perm revoke
Section titled “olef perm revoke”Revoke one or more runtime permissions
olef perm revoke --helpOutput: 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. |
olef perm list
Section titled “olef perm list”List a package’s runtime permission grant states
olef perm list --helpOutput: json.
| Argument | Description |
|---|---|
<package> |
Required. |
--json |
Accepted for compatibility; output is always JSON. |
olef perm reset
Section titled “olef perm reset”Revoke all granted runtime permissions (fresh-install prompt state)
olef perm reset --helpOutput: json.
| Argument | Description |
|---|---|
<package> |
Required. |
--json |
Accepted for compatibility; output is always JSON. |
olef perm dialog
Section titled “olef perm dialog”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
olef perm dialog --helpOutput: 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. |