Install Adb Package
install_adb_packageInstalls a local APK on an Android device via adb, with optional replace mode that keeps existing app data, and records the APK digest, size, and device install verdict.
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.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"serial": "emulator-5554",
"apk_path": "/tmp/app.apk"
},
"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 |