call SetInvalidatedByBiometricEnrollment for security reasons, but show a warning to users (again) that they should not forget their master key

This commit is contained in:
Philipp Crocoll
2021-06-14 11:43:33 +02:00
parent 9d4ca67722
commit 712f476da8
3 changed files with 8 additions and 1 deletions

View File

@@ -376,7 +376,7 @@ namespace keepass2android
.SetUserAuthenticationRequired(true);
if ((int)Build.VERSION.SdkInt >= 24)
builder.SetInvalidatedByBiometricEnrollment(false);
builder.SetInvalidatedByBiometricEnrollment(true);
_keyGen.Init(
builder

View File

@@ -73,6 +73,12 @@
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:text="@string/CloseDbAfterFailedAttempts" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:text="@string/WarnFingerprintInvalidated"
/>
</LinearLayout>
<RelativeLayout
android:id="@+id/fingerprint_auth_container"

View File

@@ -814,6 +814,7 @@
<string name="EntryChannel_desc">Notification to simplify access to the currently selected entry.</string>
<string name="CloseDbAfterFailedAttempts">Close database after three failed biometric unlock attempts.</string>
<string name="WarnFingerprintInvalidated">Warning! Biometric authentication can be invalidated by Android, e.g. after adding a new fingerprint in your device settings. Make sure you always know how to unlock with your master password!</string>
<string-array name="ChangeLog_1_09a">