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
1 changed files with 1 additions and 1 deletions
|
@ -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