App Management
Android 1.0+
Risk: SAFE
Start Background Service
Starts a declared Android Service component.
Command Syntax
adb shell am startservice
Generic Syntax:
am startservice [--user <USER_ID>] [-a <ACTION>] [-n <COMPONENT>]
Options & Parameters
| Flag | Description |
|---|---|
| -n <COMPONENT> | Component name (package/service). |
| -a <ACTION> | Action intent. |
| --user <ID> | User profile target. |
Real-World Usage Examples
Start custom service
Starts the SyncService component.
adb shell am startservice -n com.example.app/.SyncService
Output:
Starting service: Intent { cmp=com.example.app/.SyncService }