From 47d74ccfd754d3126bdb09cdb355a9a9d2519d57 Mon Sep 17 00:00:00 2001 From: Curtis Belmonte Date: Fri, 14 May 2021 15:54:56 -0700 Subject: [PATCH] Update Face Unlock strings to the latest versions Makes the following changes to strings related to Face Unlock: - Standardize capitalization of "Face Unlock" - Use latest versions of traffic light face enroll strings - Use latest versions of combined biometrics settings strings - Set SUW description strings programmatically instead of in XML Test: Manually tested Face Unlock traffic light and grid UIs Bug: 183649070 Change-Id: Ie67978ae2630493a5b03b00c3f8a639066ab8f3a --- res/layout/face_enroll_education.xml | 8 - res/values/strings.xml | 198 ++++++++++++------ .../security_settings_combined_biometric.xml | 14 +- res/xml/security_settings_face.xml | 4 +- .../biometrics/face/FaceEnrollEducation.java | 37 +++- .../contextualcards/FaceReEnrollDialog.java | 10 +- .../settings/password/SetupSkipDialog.java | 103 +++++++-- .../password/SetupSkipDialogTest.java | 96 ++++----- 8 files changed, 305 insertions(+), 165 deletions(-) diff --git a/res/layout/face_enroll_education.xml b/res/layout/face_enroll_education.xml index d94e7c6c026..4ef32b77854 100644 --- a/res/layout/face_enroll_education.xml +++ b/res/layout/face_enroll_education.xml @@ -31,14 +31,6 @@ android:clipToPadding="false" android:orientation="vertical"> - - diff --git a/res/values/strings.xml b/res/values/strings.xml index 5badbb28e30..6a56993af62 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -652,7 +652,7 @@ Show lockdown option - Display power button option that turns off Smart Lock, biometric unlocking, and notifications on the lock screen + Display Power button option that turns off Smart Lock, Face Unlock, Fingerprint Unlock, and notifications on the lock screen Lock screen when trust is lost @@ -736,24 +736,26 @@ Face added - - Set up face unlock + + Tap to set up face - Face unlock + Face Unlock - Face unlock for work - - How to set up face unlock - - Set up face unlock + Face Unlock for work + + How to set up Face Unlock + + Set up Face Unlock Use your face to authenticate + + Start - If accessibility face unlock is turned off, some setup steps may not work properly with TalkBack. + If accessibility Face Unlock is turned off, some setup steps may not work properly with TalkBack. Go back @@ -823,27 +825,25 @@ Done - Improve face unlock performance + Improve Face Unlock performance - Set up face unlock again + Set up Face Unlock again - Set up face unlock again + Set up Face Unlock again Improve security and performance - Set up face unlock + Set up Face Unlock - Delete your current face data to set up face unlock again.\n\nThe face data used by face unlock will be permanently and securely deleted. After removal, you will need your PIN, pattern, or password to unlock your phone, sign in to apps, and confirm payments. + Delete your current face model to set up Face Unlock again.\n\nYour face model will be permanently and securely deleted.\n\nAfter deletion, you will need your PIN, pattern, or password to unlock your phone or for authentication in apps. + + Delete your current face model to set up Face Unlock again.\n\nYour face model will be permanently and securely deleted.\n\nAfter deletion, you will need your fingerprint, PIN, pattern, or password to unlock your phone or for authentication in apps. - Use face unlock for - - Unlocking your phone - - App sign-in \u0026 payments + Use Face Unlock for - Requirements for face unlock + Requirements for Face Unlock - When using face unlock + When using Face Unlock Require eyes to be open @@ -851,17 +851,17 @@ Always require confirmation - When using face unlock in apps, always require confirmation step + When using Face Unlock in apps, always require confirmation step Delete face model - Set up face unlock + Set up Face Unlock - Use face unlock to unlock your device, sign in to apps, and confirm payments. + Use Face Unlock to unlock your device, sign in to apps, and confirm payments. - Keep in mind:\nLooking at the phone can unlock it when you don\u2019t intend to.\n\nYour phone can be unlocked by someone else if it\u2019s held up to your face.\n\nYour phone can be unlocked by someone who looks a lot like you, say, an identical sibling. + Use your face to unlock your phone or for authentication in apps, like when you sign in or approve a purchase.\n\nKeep in mind:\nYou can only have one face set up at a time. To add another face, delete the current one.\n\nLooking at the phone can unlock it when you don\u2019t intend to.\n\nYour phone can be unlocked by someone else if it\u2019s held up to your face.\n\nYour phone can be unlocked by someone who looks a lot like you, like an identical sibling. - Keep in mind:\nLooking at the phone can unlock it when you don\u2019t intend to.\n\nYour phone can be unlocked by someone else if it\u2019s held up to your face, even if your eyes are closed.\n\nYour phone can be unlocked by someone who looks a lot like you, say, an identical sibling. + Use your face to unlock your phone or for authentication in apps, like when you sign in or approve a purchase.\n\nKeep in mind:\nYou can only have one face set up at a time. To add another face, delete the current one.\n\nLooking at the phone can unlock it when you don\u2019t intend to.\n\nYour phone can be unlocked by someone else if it\u2019s held up to your face, even if your eyes are closed.\n\nYour phone can be unlocked by someone who looks a lot like you, like an identical sibling. Delete face model? @@ -871,7 +871,7 @@ Your face model will be permanently and securely deleted.\n\nAfter deletion, you will need your fingerprint, PIN, pattern, or password to unlock your phone or for authentication in apps. - Use face unlock to unlock your phone + Use Face Unlock to unlock your phone @@ -978,11 +978,11 @@ Face and fingerprint added - When you set up face unlock and fingerprint, your phone will ask for your fingerprint when you wear a mask or are in a dark area. + 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 to + Use face and fingerprint for Unlocking your phone @@ -1054,30 +1054,102 @@ Skip fingerprint setup? You\u2019ve chosen to use your fingerprint as one way to unlock your phone. If you skip now, you\u2019ll need to set this up later. Setup takes only a minute or so. - - Protect your tablet with a screen lock option so no one will be able to use it if it is lost or stolen. You also need a screen lock option to set up fingerprint. Tap Cancel, then set a PIN, pattern, or password. - - Protect your device with a screen lock option so no one will be able to use it if it is lost or stolen. You also need a screen lock option to set up fingerprint. Tap Cancel, then set a PIN, pattern, or password. - - Protect your phone with a screen lock option so no one will be able to use it if it is lost or stolen. You also need a screen lock option to set up fingerprint. Tap Cancel, then set a PIN, pattern, or password. - - By protecting your tablet with a screen lock option, no one will be able to use it if it is lost or stolen. You also need a screen lock option to set up face unlock. To go back, tap Cancel. - - By protecting your device with a screen lock option, no one will be able to use it if it is lost or stolen. You also need a screen lock option to set up face unlock. To go back, tap Cancel. - - By protecting your phone with a screen lock option, no one will be able to use it if it is lost or stolen. You also need a screen lock option to set up face unlock. To go back, tap Cancel. - - By protecting your tablet with a screen lock option, no one will be able to use it if it is lost or stolen. You also need a screen lock option to set up biometrics. To go back, tap Cancel. - - By protecting your device with a screen lock option, no one will be able to use it if it is lost or stolen. You also need a screen lock option to set up biometrics. To go back, tap Cancel. - - By protecting your phone with a screen lock option, no one will be able to use it if it is lost or stolen. You also need a screen lock option to set up biometrics. To go back, tap Cancel. + + A PIN protects your tablet if it\u2019s lost or stolen + + A pattern protects your tablet if it\u2019s lost or stolen + + A password protects your tablet if it\u2019s lost or stolen + + A PIN protects your device if it\u2019s lost or stolen + + A pattern protects your device if it\u2019s lost or stolen + + A password protects your device if it\u2019s lost or stolen + + A PIN protects your phone if it\u2019s lost or stolen + + A pattern protects your phone if it\u2019s lost or stolen + + A password protects your phone if it\u2019s lost or stolen + + A PIN is required to set up Fingerprint Unlock.\n\nA PIN protects your tablet if it\u2019s lost or stolen. + + A pattern is required to set up Fingerprint Unlock.\n\nA pattern protects your tablet if it\u2019s lost or stolen. + + A password is required to set up Fingerprint Unlock.\n\nA password protects your tablet if it\u2019s lost or stolen. + + A PIN is required to set up Fingerprint Unlock.\n\nA PIN protects your device if it\u2019s lost or stolen. + + A pattern is required to set up Fingerprint Unlock.\n\nA pattern protects your device if it\u2019s lost or stolen. + + A password is required to set up Fingerprint Unlock.\n\nA password protects your device if it\u2019s lost or stolen. + + A PIN is required to set up Fingerprint Unlock.\n\nA PIN protects your phone if it\u2019s lost or stolen. + + A pattern is required to set up Fingerprint Unlock.\n\nA pattern protects your phone if it\u2019s lost or stolen. + + A password is required to set up Fingerprint Unlock.\n\nA password protects your phone if it\u2019s lost or stolen. + + A PIN is required to set up Face Unlock.\n\nA PIN protects your tablet if it\u2019s lost or stolen. + + A pattern is required to set up Face Unlock.\n\nA pattern protects your tablet if it\u2019s lost or stolen. + + A password is required to set up Face Unlock.\n\nA password protects your tablet if it\u2019s lost or stolen. + + A PIN is required to set up Face Unlock.\n\nA PIN protects your device if it\u2019s lost or stolen. + + A pattern is required to set up Face Unlock.\n\nA pattern protects your device if it\u2019s lost or stolen. + + A password is required to set up Face Unlock.\n\nA password protects your device if it\u2019s lost or stolen. + + A PIN is required to set up Face Unlock.\n\nA PIN protects your phone if it\u2019s lost or stolen. + + A pattern is required to set up Face Unlock.\n\nA pattern protects your phone if it\u2019s lost or stolen. + + A password is required to set up Face Unlock.\n\nA password protects your phone if it\u2019s lost or stolen. + + A PIN is required to set up Face Unlock and Fingerprint Unlock.\n\nA PIN protects your tablet if it\u2019s lost or stolen. + + A pattern is required to set up Face Unlock and Fingerprint Unlock.\n\nA pattern protects your tablet if it\u2019s lost or stolen. + + A password is required to set up Face Unlock and Fingerprint Unlock.\n\nA password protects your tablet if it\u2019s lost or stolen. + + A PIN is required to set up Face Unlock and Fingerprint Unlock.\n\nA PIN protects your device if it\u2019s lost or stolen. + + A pattern is required to set up Face Unlock and Fingerprint Unlock.\n\nA pattern protects your device if it\u2019s lost or stolen. + + A password is required to set up Face Unlock and Fingerprint Unlock.\n\nA password protects your device if it\u2019s lost or stolen. + + A PIN is required to set up Face Unlock and Fingerprint Unlock.\n\nA PIN protects your phone if it\u2019s lost or stolen. + + A pattern is required to set up Face Unlock and Fingerprint Unlock.\n\nA pattern protects your phone if it\u2019s lost or stolen. + + A password is required to set up Face Unlock and Fingerprint Unlock.\n\nA password protects your phone if it\u2019s lost or stolen. Skip PIN setup? + + Skip setup for PIN and face? + + Skip setup for PIN and fingerprint? + + Skip setup for PIN, face, and fingerprint? Skip password setup? + + Skip setup for password and face? + + Skip setup for password and fingerprint? + + Skip setup for password, face, and fingerprint? Skip pattern setup? + + Skip setup for pattern and face? + + Skip setup for pattern and fingerprint? + + Skip setup for pattern, face, and fingerprint? Set up screen lock @@ -1423,14 +1495,14 @@ You can unlock your phone using your fingerprint. For security, this option requires a backup screen lock. - - Face unlock + Pattern - - Face unlock + PIN - - Face unlock + Password - - Continue without face unlock + + Face Unlock + Pattern + + Face Unlock + PIN + + Face Unlock + Password + + Continue without Face Unlock You can unlock your phone using your face. For security, this option requires a backup screen lock. @@ -4327,12 +4399,12 @@ PIN has been set Pattern has been set - - To use face unlock, set password - - To use face unlock, set pattern - - To use face unlock, set PIN + + To use Face Unlock, set password + + To use Face Unlock, set pattern + + To use Face Unlock, set PIN To use biometrics, set password @@ -8836,7 +8908,7 @@ Skip lock screen - After face unlock, go directly to last used screen + After unlocking, go directly to last used screen Lock screen, Lockscreen, Skip, Bypass diff --git a/res/xml/security_settings_combined_biometric.xml b/res/xml/security_settings_combined_biometric.xml index f7d053994d3..6ab21e40171 100644 --- a/res/xml/security_settings_combined_biometric.xml +++ b/res/xml/security_settings_combined_biometric.xml @@ -26,13 +26,6 @@ android:key="biometric_ways_to_unlock" android:title="@string/biometric_settings_category_ways_to_unlock"> - - + +