install_apk
Installs or reinstalls an APK from an allowed server directory onto an Android device, optionally targeting a device by serial while preserving app data.
Instructions
Install (or reinstall, keeping data) an APK from the allowed APK directory.
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": {
"apk_path": "<apk_path>"
},
"name": "install_apk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | ||
| apk_path | Yes | File name or path of an .apk inside the server's APK directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apk | Yes | ||
| serial | Yes | ||
| sha256 | Yes | ||
| dry_run | Yes | ||
| installed | Yes | ||
| size_bytes | Yes |