Launch the app
devilge_launch_appMeasure Android app cold-start performance by launching via ADB. Supports clean state, deep links, and specific activity targeting.
Instructions
Launches the app via am start -W. Returns cold-start metrics (waitTimeMs / totalTimeMs / thisTimeMs) when available. With clean=true, force-stops and wipes app data first. With deepLink, opens an arbitrary URI handled by the app. With activity, targets a specific component. Without either, devilge resolves the launcher activity automatically (falls back to monkey if resolution fails).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"packageName": "<packageName>"
},
"name": "devilge_launch_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | No | If true, run force-stop + pm clear before launch — guaranteed cold start with empty state. Default false. | |
| serial | No | Device serial. Defaults to DEVILGE_DEFAULT_DEVICE_SERIAL or the only attached device. | |
| activity | No | Activity name (relative ".MainActivity" or fully-qualified). If omitted, devilge tries to resolve the launcher activity. | |
| deepLink | No | Deep link URI to open instead of the main activity (mutually compatible with `activity`). | |
| packageName | Yes | App applicationId, e.g. "com.example.app". |