diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2019-10-02 11:00:45 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 11:00:45 +0530 |
commit | 9a1a54a6fcfa6fd6cf142f2af9804375255d14cf (patch) | |
tree | 5535d9be1196a6a1f98719e2f92e0e26cd92cc5d /app/src/main/res | |
parent | 27592dde1087804442ea37e17c2e13aad5c72b01 (diff) |
Initial biometric authentication support (#541)
* [WIP] Initial biometric authentication support
* Redirect decryption app shortcut to go through LaunchActivity
* UserPreference: Clear existing shortcuts when toggling password auth
Clears out any auth-bypassed entries that exist
* Fix hilarious copypasta derp
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/values/strings.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/xml/preference.xml | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e39558b1..ebb4b413 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -263,4 +263,12 @@ <string name="sdcard_root_warning_title">SD-Card root selected</string> <string name="sdcard_root_warning_message">You have selected the root of your sdcard for the store. This is extremely dangerous and you will lose your data as its content will, eventually, be deleted</string> <string name="git_abort_and_push_title">Abort and Push</string> + <string name="biometric_prompt_title">Biometric Prompt</string> + <string name="biometric_prompt_negative_text">Cancel</string> + <string name="biometric_prompt_retry">Retry</string> + <string name="biometric_prompt_cancelled">Authentication canceled</string> + <string name="biometric_prompt_no_hardware">No Biometric hardware was found</string> + <string name="biometric_auth_title">Enable biometric authentication</string> + <string name="biometric_auth_summary">When enabled, Password Store will prompt you for your fingerprint when launching the app</string> + <string name="biometric_auth_summary_error">Fingerprint hardware not accessible or missing</string> </resources> diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml index 194053e6..9124d218 100644 --- a/app/src/main/res/xml/preference.xml +++ b/app/src/main/res/xml/preference.xml @@ -88,6 +88,10 @@ android:entries="@array/sort_order_entries" android:entryValues="@array/sort_order_values" android:persistent="true" /> + <androidx.preference.SwitchPreference + android:key="biometric_auth" + android:title="@string/biometric_auth_title" + android:summary="@string/biometric_auth_summary" /> </androidx.preference.PreferenceCategory> <androidx.preference.PreferenceCategory android:title="@string/pref_autofill_title"> |