as_run_app
Build, install, and launch an Android app on a device or emulator, capture recent logcat logs, and detect crashes in a single command.
Instructions
Build, install and launch an app on a device/emulator, then capture logs.
One-shot equivalent of Android Studio's Run button:
assemble 2. install the APK 3. launch the launcher activity
capture the app's recent logcat (and detect crashes) 5. optional screenshot.
Args: params (RunAppInput): project_dir, variant, module, serial, install, launch, capture_logcat_lines, screenshot, timeout.
Returns: str: JSON with a 'steps' object (build/install/launch/logcat/screenshot), the apk path, package, and 'crash_detected' (bool).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |