In my app there is a Broadcast Receiver which is called by an alarm with RTC_WAKEUP at specific times. This receiver first acquire a partial lock so it doesn't terminate and then checks a condition and if it's true start an activity which turns the phone completely on by a acquiring a full lock and unlocking keyguard.
After a little test and trial I found out lifecycle of Broadcast receiver ends before starting the activity, and as soon as it ends the partial lock is released.
So I wonder if the device is sleep, would the activity get started so it can acquire full lock?
Or as soon as the broadcast receiver ends the device goes back to sleep and start of activity is postponed to when it wakes again?