install_adb_package
Installs a local APK on a connected Android device, optionally replacing an existing package while keeping its data, and returns the device’s Success/Failure verdict with reason.
Instructions
Install one local APK on the device (adb install [-r]), recording the APK's host digest and byte size. A device-mutating tool: replace re-installs over an existing package while keeping its data; the device's own Success/Failure verdict is preserved with its reason.
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": {
"serial": "<serial>",
"apk_path": "<apk_path>"
},
"name": "install_adb_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | Device serial exactly as `adb devices` reports it | |
| replace | No | Replace an existing installation and keep its data (adb install -r) | |
| apk_path | Yes | Existing local APK file to install | |
| analysis_project_id | No | Optional investigation to retain this tool result in. Does not prove target identity or causal relationships. |