android_prepare
Prepare an Android app for testing by granting usage-stats and overlay permissions, POST_NOTIFICATIONS, and optionally enabling an accessibility service. Safe to call repeatedly.
Instructions
Grant the special permissions that pm grant cannot, so an app is actually testable.
Sets usage-stats and overlay appops, grants POST_NOTIFICATIONS, and optionally enables an accessibility service. Safe to call repeatedly.
Args: package: App package id, e.g. com.example.app device: Device serial; defaults to the first physical device. accessibility_service: Fully-qualified service, e.g. com.x/.service.MyService
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| package | Yes | ||
| accessibility_service | No |