Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Steps to reproduce
1. Create an app that compiles in WorkManager but doesn't necessarily use it for anything.
2. Install the app
3. Open the app (to put it in the enabled state)
4. Reboot the device
Results:
Actual: The app launches at boot. This is because WorkManager has a BroadcastReceiver registered in the manifest for broadcasts for BOOT_COMPLETE, TIME_SET, and TIMEZONE_CHANGED. (The issue will also reproduce with those
Expected: The app shouldn't launch at boot because nothing has been set up within WorkManager.
An alternative implementation is the BroadcastReceiver set to disabled by default in the manifest and enabled by PackageManager.setComponentEnabledSetting() at runtime once an app has scheduled a job.