Install an APK
install_apkInstalls a local APK on one Android device via adb, with optional device serial, replacement flag, and timeout. Returns INSTALL_FAILED_* details when installation fails.
Instructions
Install a local APK on one device via adb install. Fails with INSTALL_FAILED_* details from the device when the package cannot be installed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| replace | No | Pass -r to replace an already installed package (default false). | |
| apk_path | Yes | Path to the APK on the host machine (not on the device). | |
| timeout_ms | No | Install timeout in milliseconds (default 120000; large APKs are slow). |