App Management
Android 1.0+
Risk: SAFE
Stop Background Service
Stops a running Android Service.
Command Syntax
adb shell am stopservice
Generic Syntax:
am stopservice [--user <USER_ID>] [-n <COMPONENT>]
Options & Parameters
| Flag | Description |
|---|---|
| -n <COMPONENT> | Component name. |
Real-World Usage Examples
Stop service
Stops the running service.
adb shell am stopservice -n com.example.app/.SyncService
Output:
Stopping service: Intent { cmp=com.example.app/.SyncService }