Install APK on device (fast)
devilge_install_apkInstall an APK directly via adb, bypassing Gradle for faster reinstallation after assembly. Specify the APK path or module and variant.
Instructions
Installs an APK via adb install -r directly, bypassing Gradle. Much faster than run_gradle_task installDebug for the iterate-on-source-then-reinstall loop. Pass either apkPath (explicit file) or module (auto-locate <projectRoot>/<module>/build/outputs/apk/<variant>/*.apk). Recommended workflow: assemble once with run_gradle_task assembleDebug, then re-install with this tool on each iteration — saves the Gradle configuration overhead each time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | No | Gradle module path, e.g. ":app". devilge auto-locates the APK under <module>/build/outputs/apk/<variant>/. | |
| serial | No | Device serial. Defaults to DEVILGE_DEFAULT_DEVICE_SERIAL or the only attached device. | |
| apkPath | No | Absolute or project-relative path to a .apk file. Mutually exclusive with `module`. | |
| variant | No | Build variant (default "debug"). Used only when `module` is given. |