android_install
Install an already-built APK onto a connected Android device, resolving signature or version conflicts by optionally uninstalling the existing app and granting runtime permissions at install time.
Instructions
Install an already-built APK (no Gradle involved).
Args: project_dir: Gradle root; the APK is found from the module's build outputs. apk: Explicit APK path instead of project_dir. module: App module inside project_dir. variant: Build variant whose APK to install. device: Device serial; defaults to the first physical device. allow_uninstall: On signature/version conflicts, uninstall first (WIPES APP DATA). grant_permissions: Grant all runtime permissions at install time (-g).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apk | No | ||
| device | No | ||
| module | No | app | |
| variant | No | debug | |
| project_dir | No | ||
| allow_uninstall | No | ||
| grant_permissions | No |