current_app
Retrieves the foreground Android package and activity, optionally by device serial, so automation can target the active app.
Instructions
Package and activity in the foreground.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |