Revoke permission
revoke_permissionRevoke an Android app's runtime permission to test denied access or re-trigger the permission-request dialog on next use; useful alongside granting permissions for permission-flow testing.
Instructions
Revoke a runtime permission from an app (pm revoke) — to test the denied path or re-trigger the permission-request dialog on next use. Pairs with grant_permission. Note: revoking some permissions kills the app process.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package": "<package>",
"permission": "<permission>"
},
"name": "revoke_permission"
}
}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. |