FLAG_DISMISS_KEYGUARD constant
int
const FLAG_DISMISS_KEYGUARD
This constant was deprecated in API level 26. Use FLAG_SHOW_WHEN_LOCKED or KeyguardManager#requestDismissKeyguard instead. Since keyguard was dismissed all the time as long as an activity with this flag on its window was focused, keyguard couldn't guard against unintentional touches on the screen, which isn't desired.
Implementation
static const int FLAG_DISMISS_KEYGUARD = 0x00400000;