I need to trigger the unlock screen directly, from an Activity launched with the WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
flag.
I don't want to start a new activity without the FLAG_SHOW_WHEN_LOCKED
lock, nor I want to re-launch the same activity removing the flag.
I don't want neither to prompt the user the "confirm credentials screen" using the KeyguardManager.createConfirmDeviceCredentialIntent()
. But I explicitly need to launch the system unlock screen and once unlocked, jump back to the same Activity, with the unlocked device.