android / security-samples

Multiple samples showing the best practices in security APIs on Android.
Apache License 2.0
938 stars 395 forks source link

Problem checkPassword #10

Closed codingjeremy closed 4 years ago

codingjeremy commented 5 years ago

Issue by moisesvs Friday Dec 11, 2015 at 10:36 GMT Originally opened as https://github.com/googlesamples/android-FingerprintDialog/issues/23


I am checking the source code of the fingerprintDialog and I saw the method checkPassword in the FingerprintAuthenticationDialogFragment class but this method isn't working because only checked if the password isn't empty and nothing else.

My question is: This method should check the pin code of the phone, no?

Regards

codingjeremy commented 5 years ago

Comment by thagikura Friday Jan 29, 2016 at 04:59 GMT


Hi,

It may be a belated reply, but the checkPassword method in the FingerprintDialog is meant to check the app specific password for the user instead of the pin code of the phone.

If you want to check the pin code of the phone, you can use KeyguardManager.createDeviceCredentialIntent.

isaidamier commented 4 years ago

Please refer to the new sample https://github.com/android/security-samples/tree/master/BiometricLoginKotlin