adb_install
Install a signed APK onto a connected Android device via adb. Set reinstall to replace an existing app while keeping its data; unsigned APKs are rejected.
Instructions
Install an APK from this machine onto a connected device via adb install. The APK must already be signed (build_apk output is unsigned and will be rejected). Without reinstall, installing a package that's already present fails; with reinstall it replaces the installed version and keeps its app data. Returns { apkPath, stdoutTail, stderrTail? } - adb prints "Success" on success and an error like INSTALL_FAILED_* otherwise. To remove an app or run other device commands use adb_shell. Requires adb on PATH and an authorized device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apkPath | Yes | Absolute path, on this machine, of the signed .apk to install. Must exist. | |
| reinstall | No | Pass -r so an existing install is replaced (app data is kept). Default false. | |
| workspace | No | Workspace name (not id). Created if it doesn't exist, and this call is recorded as a job in its history. Defaults to "default". | |
| deviceSerial | No | Device serial from adb_devices, e.g. "emulator-5554" or "R58M123ABC". Only needed when more than one device is connected; omit otherwise. |