App Management Android 8.0+ (API 26+) Risk: SAFE

Start Foreground Service

Starts a foreground service required for Android 8.0+ background execution limits.

Command Syntax

adb shell am start-foreground-service
Generic Syntax: am start-foreground-service [-n <COMPONENT>] [-a <ACTION>]

Options & Parameters

Flag Description
-n <COMPONENT> Component name.

Real-World Usage Examples

Start foreground tracking service
Starts foreground service.
adb shell am start-foreground-service -n com.example.app/.LocationService
Output:
Starting service: Intent { cmp=com.example.app/.LocationService }