From 06497f1db0782edb587cf83825f0400dffb0c2e1 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 23 Aug 2020 17:10:13 +0530 Subject: [PATCH] BiometricAuthenticator: also allow Class 2 biometric implementations (#1046) Android OEMs are hellspawn Signed-off-by: Harsh Shandilya --- .../java/com/zeapo/pwdstore/utils/BiometricAuthenticator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/BiometricAuthenticator.kt b/app/src/main/java/com/zeapo/pwdstore/utils/BiometricAuthenticator.kt index 648ed3e1..0792c1fc 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/BiometricAuthenticator.kt +++ b/app/src/main/java/com/zeapo/pwdstore/utils/BiometricAuthenticator.kt @@ -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()?.isDeviceSecure == true if (canAuth || deviceHasKeyguard) {