I need to start a service after device boot before the user unlock the device. I have a BroadcastReceiver listening to LOCKED_BOOT_COMPLETED and BOOT_COMPLETED, and it is directBootAware. The service started by the BroadcastReceiver is also directBootAware. On device reboot, it seems the BroadcastReceiver is called and tried to start the service. but, the service is not started until user unlocks the device.
Anyone knows how to solve this?