force_stop_app
Force stop Android apps to resolve unresponsiveness, crashes, or testing scenarios by terminating their processes immediately.
Instructions
Force stop an app
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | ||
| device_serial | No |
Implementation Reference
- src/adb_mcp_server/server.py:607-610 (handler)Handler function for the 'force_stop_app' tool. Uses the @mcp.tool() decorator which also handles registration in FastMCP. Executes ADB shell command to force-stop the specified app package.@mcp.tool() def force_stop_app(package_name: str, device_serial: str | None = None) -> str: """Force stop an app""" return run_adb(["shell", "am", "force-stop", package_name], device_serial)