From a9c582262ea91fe2eacb87c730db2e6674355ddf Mon Sep 17 00:00:00 2001 From: Curtis Belmonte Date: Mon, 27 Sep 2021 13:27:20 -0700 Subject: [PATCH] Make biometric setting toggles show dynamic auth types Updates the preference toggles shown on the combined biometric settings screen to indicate which types of biometric sensor (e.g. face and/or fingerprint) each setting applies to. This is done by checking the maximum registered strength for each type of sensor. Test: Manual Bug: 193714498 Bug: 201306569 Change-Id: I1f27bbe1fdd172ebc899c3c5f1daef9095b338bd --- res/values/strings.xml | 31 ++----- .../security_settings_combined_biometric.xml | 3 +- ...ty_settings_combined_biometric_profile.xml | 3 +- .../combination/BiometricsSettingsBase.java | 80 +++++++++++++++++++ .../CombinedBiometricProfileSettings.java | 12 +++ .../CombinedBiometricSettings.java | 12 +++ 6 files changed, 114 insertions(+), 27 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 41de5539a3b..d6f22fbb102 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -997,12 +997,16 @@ When you set up Face Unlock and Fingerprint Unlock, your phone will ask for your fingerprint when you wear a mask or are in a dark area Ways to unlock - - Use face and fingerprint for - Unlocking your phone + Unlock your phone - Authentication in apps + Verify it\u2019s you in apps + + Using face + + Using fingerprint + + Using face or fingerprint Hand the phone back to your parent @@ -1242,25 +1246,6 @@ Yes, remove - - Face \u0026 fingerprint unlock - - Tap to set up - - Face only - - Fingerprint only - - Face and fingerprint - - When you set up face and fingerprint unlock, your phone will ask for your fingerprint when you wear a mask or are in a dark area - - Ways to unlock - - Use face or fingerprint for - - Authentication in apps - Encryption diff --git a/res/xml/security_settings_combined_biometric.xml b/res/xml/security_settings_combined_biometric.xml index a394b7b4688..ef3a3fd1ff2 100644 --- a/res/xml/security_settings_combined_biometric.xml +++ b/res/xml/security_settings_combined_biometric.xml @@ -43,8 +43,7 @@ + android:key="biometric_ways_to_use"> + android:key="biometric_ways_to_use">