mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 06:15:48 +00: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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user