Fixed
Status Update
Comments
ra...@google.com <ra...@google.com> #2
Thanks for filing the issue.
This is a particularly hard device to come by - do you happen to have access to the device? If so could you provide us with the output of: adb shell dumpsys media.camera > info.txt
Thanks!
This is a particularly hard device to come by - do you happen to have access to the device? If so could you provide us with the output of: adb shell dumpsys media.camera > info.txt
Thanks!
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.