I’d like to disable/delay
the lock screen programmatically. In looking into this, KeyguardManager
is depreciated/doesn't work consistently, FLAG_DISMISS_KEYGUARD
is not an option because I want to do this in the background, I don't want to use WakeLock for battery reasons, Device Administration does not appear to be capable of this and, while SCREEN_OFF_TIMEOUT
is available to control when the screen sleeps, I was unable to find a similar timeout for the screen lock.
What am I missing here? Thanks.