Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46971aca authored by Haining Chen's avatar Haining Chen
Browse files

Update Keyguard and bouncer strings for adaptive auth

Flag: NONE, minor changes to update strings
Bug: 285053096
Test: 1. Trigger 5 failed biometric attempts and/or primary auth
         attempts from BiometricPrompt or Settings (not on Keyguard),
         which will lock the device out
      2. See messages in the Keyguard bottom area and the bouncer,
         respectively
Change-Id: I28989035e246dfcc88c2bb56665f2b9c23e326c6
parent f5f650fe
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1427,8 +1427,11 @@
    <!-- Indication on the keyguard that appears when a trust agents unlocks the device. [CHAR LIMIT=40] -->
    <string name="keyguard_indication_trust_unlocked">Kept unlocked by TrustAgent</string>

    <!-- Message asking the user to authenticate with primary authentication methods (PIN/pattern/password) or biometrics after the device is locked by adaptive auth. [CHAR LIMIT=60] -->
    <string name="kg_prompt_after_adaptive_auth_lock">Theft protection\nDevice locked, too many unlock attempts</string>
    <!-- Message asking the user to authenticate with primary authentication methods (PIN/pattern/password) or biometrics after the device is locked by adaptive auth. [CHAR LIMIT=70] -->
    <string name="kg_prompt_after_adaptive_auth_lock">Device was locked, too many authentication attempts</string>

    <!-- Indication on the keyguard that appears after the device is locked by adaptive auth. [CHAR LIMIT=60] -->
    <string name="keyguard_indication_after_adaptive_auth_lock">Device locked\nFailed authentication</string>

    <!-- Accessibility string for current zen mode and selected exit condition. A template that simply concatenates existing mode string and the current condition description. [CHAR LIMIT=20] -->
    <string name="zen_mode_and_condition"><xliff:g id="zen_mode" example="Priority interruptions only">%1$s</xliff:g>. <xliff:g id="exit_condition" example="For one hour">%2$s</xliff:g></string>
+2 −2
Original line number Diff line number Diff line
@@ -756,8 +756,8 @@ public class KeyguardIndicationController {
            mRotateTextViewController.updateIndication(
                    INDICATION_TYPE_ADAPTIVE_AUTH,
                    new KeyguardIndication.Builder()
                            .setMessage(mContext
                                    .getString(R.string.kg_prompt_after_adaptive_auth_lock))
                            .setMessage(mContext.getString(
                                    R.string.keyguard_indication_after_adaptive_auth_lock))
                            .setTextColor(mInitialTextColorState)
                            .build(),
                    true);