# olef appops

Source: https://olef.dev/docs/reference/cli/appops

Generated from **Olef 3.0.2**. [All commands](https://olef.dev/docs/reference/commands) · [Capabilities and requirements](https://olef.dev/docs/reference/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](https://olef.dev/docs/reference/commands#global-options).

## olef appops

App-ops (allow|deny|ignore|default|… per operation)

```bash
olef appops --help
```

Output: **json**.

### olef appops get

Get appop mode(s), preserving UID/package scopes and effective precedence

```bash
olef appops get --help
```

Output: **json**.

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

### olef appops set

Set and verify an appop mode at an explicit UID or package scope

```bash
olef appops set --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `<package>` | **Required.** |
| `<op>` | **Required.** |
| `<mode>` | **Required.** |
| `--scope <SCOPE>` | **Required.** Android policy scope. UID modes govern package modes when both exist Values: `uid`, `package`. |
| `--json` | Accepted for compatibility; output is always JSON. |
