wait_for_install
Waits for an Android APK install to finish after the user confirms it, then returns on successful installation, installer exit, or timeout—avoid shell polling loops.
Instructions
After opening the Android installer for an APK, wait until the user has tapped Install/Update and confirmed. Returns as soon as the package is installed (at least min_version_code if given), or early if the installer is no longer on screen, or after the timeout. Use this instead of shell polling loops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | Package name, e.g. com.buddyapps.flappy | |
| timeout_s | No | Default 120, max 300 | |
| min_version_code | No | Wait for at least this versionCode (for updates) |