adb_revoke_permission
Revoke a runtime permission from an Android package to reset permission state, enabling first-run flow testing and denial-handling validation.
Instructions
Revoke a runtime permission from a package. Useful for resetting permission state to test first-run flows or denial handling.
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": {
"packageName": "<packageName>",
"permission": "<permission>"
},
"name": "adb_revoke_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial | |
| permission | Yes | Full permission string (e.g., 'android.permission.CAMERA') | |
| packageName | Yes | Package name (e.g., 'com.example.app') |