grant_permission
Grant a runtime permission to an app using pm grant, bypassing the in-app permission dialog to directly enable features like camera access.
Instructions
Grant a runtime permission to an app (pm grant), e.g. android.permission.CAMERA — skips the in-app permission dialog so you can drive straight to the feature.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Target device serial (adb -s). Optional when exactly one device is attached. | |
| package | Yes | Application package name. | |
| permission | Yes | Full permission name, e.g. android.permission.CAMERA. |