Revoke a runtime permission
revoke_permissionRevoke a runtime permission from an Android app to remove access immediately. Use package and permission names; the app may fail until the permission is granted again.
Instructions
Revoke a runtime permission from an app (pm revoke <package> <permission>). Destructive: the app loses the permission immediately and may fail until it is granted again.
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 |
|---|---|---|---|
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| package | Yes | Package name, e.g. "com.example.app". | |
| permission | Yes | Permission name, e.g. "android.permission.CAMERA". |