According to http://android-developers.blogspot.co.il/2016/04/developing-for-direct-boot.html
Starting with Android N, a device that has been powered on can boot into a new mode called Direct Boot before the user has a chance to unlock it for the first time. In this mode, the operating system is fully operational, but access to private app data is limited and only apps that have been updated to be Direct Boot aware can run.
Is Direct Boot right for my app?
Not every app should run in Direct Boot mode, so before you start coding check if your app fits these common use cases:
- Apps that schedule alarms, such as alarm clocks.
- Apps that provide important and timely notifications, like
- Apps that provide services to other apps or the system, such as
Please note that this is not an exhaustive list and we look forward to seeing what other kinds of apps can benefit from Direct Boot.
My question is: if my app gets geofence events and gps locations. In this case, can i let my app run before the user unlocks the device by using Direct Boot?