Settings: Add support for disabling fingerprint lockout [2/2]
Change-Id: Iaff463e98be8b8819685cf7e29ba4eb6152c77ae
diff --git a/res/values/leaf_strings.xml b/res/values/leaf_strings.xml
index 9d4dd59..b0711cb 100644
--- a/res/values/leaf_strings.xml
+++ b/res/values/leaf_strings.xml
@@ -93,4 +93,8 @@
<!-- Hardware info -->
<string name="soc_model">SoC Model</string>
<string name="total_ram">Total RAM</string>
+
+ <!-- fingerprint lockout -->
+ <string name="fingerprint_lockout_title">Disable fingerprint lockout</string>
+ <string name="fingerprint_lockout_summary">Deactivates 30 second timeout as well as permanent lockout after multiple failed fingerprint unlock attempts</string>
</resources>
diff --git a/res/xml/security_settings_fingerprint.xml b/res/xml/security_settings_fingerprint.xml
index 0156ef9..df9676c 100644
--- a/res/xml/security_settings_fingerprint.xml
+++ b/res/xml/security_settings_fingerprint.xml
@@ -41,6 +41,12 @@
android:summary="@string/security_settings_require_screen_on_to_auth_description"
settings:keywords="@string/security_settings_require_screen_on_to_auth_keywords"
settings:controller="com.android.settings.biometrics.fingerprint.FingerprintSettingsRequireScreenOnToAuthPreferenceController" />
+
+ <com.android.settings.support.SystemSettingSwitchPreference
+ android:key="fingerprint_lockout"
+ android:title="@string/fingerprint_lockout_title"
+ android:summary="@string/fingerprint_lockout_summary"
+ android:defaultValue="false" />
</PreferenceCategory>
<PreferenceCategory