install_apk
Install APK files from project root or ADB_APK_ROOT to Android devices via ADB, supporting replacement, test builds, permission grants, and device selection.
Instructions
Install an APK contained within the active session project root, or the configured ADB_APK_ROOT when no session root is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replace | No | Replace an existing application | |
| apk_path | Yes | Absolute path or path relative to the server process | |
| allow_test | No | Allow test-only APKs | |
| device_serial | No | ADB serial such as emulator-5554, a USB serial, or host:port. If omitted, the active device is used; a sole ready device is selected automatically. | |
| grant_permissions | No | Grant runtime permissions |