Use device password/pin for app to unlock screen

A bit of a sledgehammer to crack a nut, in order to cover all eventualities, and given there is little, if no, feedback from the various activities called. Anyway, see below my effort on authenticating an app using the device PIN (or pattern, or password, or fingerprint) Tested using the latest companion, 2.72u, on Android 6.01 (didn't show lock screen alerts), 12, and 14 (all google devices)

Credits @techxsarthak for the isLockEnabled extension which makes this a potentially useful solution. The whole thing could be much better in a full extension, probably using BiometricManager and Keyguard (Android < 10).

EnterAppWithDevicePIN.aia (9.1 KB)

3 Likes