Force-stop an app
force_stop_appStop all processes of an Android app package by name on a specified device using adb am force-stop. Safe to call even if the app is not running.
Instructions
Stop all processes of a package on one device (am force-stop). Idempotent; safe to call when the app is not running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| package | Yes | Package name to stop, e.g. "com.example.app". |