mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2026-04-23 08:04:58 +02:00
BiometricAuthenticator: also allow Class 2 biometric implementations (#1046)
Android OEMs are hellspawn Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
2414c48d9f
commit
06497f1db0
|
|
@ -61,7 +61,7 @@ object BiometricAuthenticator {
|
|||
callback(Result.Success(result.cryptoObject))
|
||||
}
|
||||
}
|
||||
val validAuthenticators = Authenticators.DEVICE_CREDENTIAL or Authenticators.BIOMETRIC_STRONG
|
||||
val validAuthenticators = Authenticators.DEVICE_CREDENTIAL or Authenticators.BIOMETRIC_WEAK
|
||||
val canAuth = BiometricManager.from(activity).canAuthenticate(validAuthenticators) == BiometricManager.BIOMETRIC_SUCCESS
|
||||
val deviceHasKeyguard = activity.getSystemService<KeyguardManager>()?.isDeviceSecure == true
|
||||
if (canAuth || deviceHasKeyguard) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue