android_install
Install an already-built APK onto a connected Android device, resolving signature or version conflicts by optionally uninstalling the existing app and granting runtime permissions at install time.
Instructions
Install an already-built APK (no Gradle involved).
Args: project_dir: Gradle root; the APK is found from the module's build outputs. apk: Explicit APK path instead of project_dir. module: App module inside project_dir. variant: Build variant whose APK to install. device: Device serial; defaults to the first physical device. allow_uninstall: On signature/version conflicts, uninstall first (WIPES APP DATA). grant_permissions: Grant all runtime permissions at install time (-g).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "android_install"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apk | No | ||
| device | No | ||
| module | No | app | |
| variant | No | debug | |
| project_dir | No | ||
| allow_uninstall | No | ||
| grant_permissions | No |