Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can i launch the system PIN authentication from within an app?

Tags:

android

Is it possible to create an authentication from within my app that will validate the user with his device lock PIN? Any intent mechanism or something like that which will prompt the user for keying in his PIN code?

I have seen the DevicePolicyManager, but I was unable to come up with. Anything conclusive?

like image 815
dishooom Avatar asked Apr 17 '15 09:04

dishooom


People also ask

How do I enable biometrics for an app?

Turn on biometrics in the Android device settingsOpen your phone's Settings and locate the security or biometrics menu. From this menu, set your biometrics preferences to fingerprint.

What is More secure PIN or password?

An online password is transmitted to the server -- it can be intercepted in transmission or stolen from a server. A PIN is local to the device -- it isn't transmitted anywhere and it isn't stored on the server.

What Is PIN Authentication?

PIN based Authentication. This option allows user to login to ZigBank Application using a PIN instead of user id and password. User can define a 4 or 6 digit numeric PIN for login. User also has the option of resetting his PIN and changing his alternate login method from PIN to any other method.


1 Answers

Began from Android 5.0, you can use KeyguardManager.createConfirmDeviceCredentialIntent()

This method will create an Intent, which can be used to start system authentication(pin/pattern/password).

For more information, refer doc and Confirm Credential sample.

like image 63
cmoaciopm Avatar answered Sep 30 '22 10:09

cmoaciopm