What is Android's WorkManager and how does it relate to background execution security limits?
- A.WorkManager is the recommended API for deferrable, guaranteed background work that respects Doze mode, battery saver, and background execution limits; it uses JobScheduler/Firebase Job Dispatcher internally depending on API level
- B.WorkManager is Google's replacement for the Thread class in Android apps
- C.WorkManager runs tasks with elevated permissions bypassing background execution limits
- D.WorkManager is an MDM API for scheduling compliance checks on enterprise devices
Why A is correct
WorkManager (Jetpack) abstracts background work scheduling across Android versions, automatically using JobScheduler (API 23+), AlarmManager, or BroadcastReceiver. It respects background execution limits (Android 8+) and Doze mode. Security relevance: apps can no longer run arbitrary long-lived background services silently; WorkManager tasks are visible in systrace and Device Health Services.
Know someone studying for Mobile Security Fundamentals? Send them this one.