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

Commit 5d14cf98 authored by Beverly's avatar Beverly
Browse files

Update fingerprint error strings

Bug: 216570369
Test: atest SystemUITests
Test: manually use wrong finger to authenticate on device
with UDPFS enrolled - see new error message
Test: manually use wrong finger to authenticate on device
without UDFPS enrolled - see other new error message

Change-Id: Ifc36b8e663640ccf80143db5d8d62f43464a11e9
parent d7c5ca76
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1689,9 +1689,10 @@
    <!-- Message shown during fingerprint acquisision when the fingerprint cannot be recognized -->
    <string name="fingerprint_acquired_insufficient">Couldn\'t process fingerprint. Please try again.</string>
    <!-- Message shown during fingerprint acquisision when the fingerprint sensor needs cleaning -->
    <string name="fingerprint_acquired_imager_dirty">Clean the sensor</string>
    <string name="fingerprint_acquired_imager_dirty">Clean fingerprint sensor and try again</string>
    <string name="fingerprint_acquired_imager_dirty_alt">Clean sensor and try again</string>
    <!-- Message shown during fingerprint acquisision when the user removes their finger from the sensor too quickly -->
    <string name="fingerprint_acquired_too_fast">Hold a little longer</string>
    <string name="fingerprint_acquired_too_fast">Press firmly on the sensor</string>
    <!-- Message shown during fingerprint acquisision when the user moves their finger too slowly -->
    <string name="fingerprint_acquired_too_slow">Finger moved too slow. Please try again.</string>
    <!-- Message shown during fingerprint acquisition when the fingerprint was already enrolled.[CHAR LIMIT=50] -->
@@ -1705,6 +1706,10 @@
    <!-- Array containing custom messages shown during fingerprint acquisision from vendor.  Vendor is expected to add and translate these strings -->
    <string-array name="fingerprint_acquired_vendor">
    </string-array>
    <!-- Message shown when fingerprint fails to match -->
    <string name="fingerprint_error_not_match">Fingerprint not recognized</string>
    <!-- Message shown when UDFPS fails to match -->
    <string name="fingerprint_udfps_error_not_match">Press firmly on the sensor</string>

    <!-- Accessibility message announced when a fingerprint has been authenticated [CHAR LIMIT=NONE] -->
    <string name="fingerprint_authenticated">Fingerprint authenticated</string>
+2 −0
Original line number Diff line number Diff line
@@ -2583,6 +2583,8 @@
  <java-symbol type="string" name="fingerprint_error_timeout" />
  <java-symbol type="array" name="fingerprint_error_vendor" />
  <java-symbol type="string" name="fingerprint_error_vendor_unknown" />
  <java-symbol type="string" name="fingerprint_error_not_match" />
  <java-symbol type="string" name="fingerprint_udfps_error_not_match" />
  <java-symbol type="string" name="fingerprint_acquired_partial" />
  <java-symbol type="string" name="fingerprint_acquired_insufficient" />
  <java-symbol type="string" name="fingerprint_acquired_imager_dirty" />
+0 −3
Original line number Diff line number Diff line
@@ -217,9 +217,6 @@
     the force lock button. [CHAR LIMIT=80] -->
    <string name="kg_prompt_reason_user_request">Device was locked manually</string>

    <!-- Fingerprint hint message when finger was not recognized.-->
    <string name="kg_fingerprint_not_recognized">Not recognized</string>

    <!-- Face hint message when finger was not recognized. [CHAR LIMIT=20] -->
    <string name="kg_face_not_recognized">Not recognized</string>

+9 −2
Original line number Diff line number Diff line
@@ -749,8 +749,15 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
                cb.onBiometricAuthFailed(BiometricSourceType.FINGERPRINT);
            }
        }
        if (isUdfpsSupported()) {
            handleFingerprintHelp(BIOMETRIC_HELP_FINGERPRINT_NOT_RECOGNIZED,
                    mContext.getString(
                            com.android.internal.R.string.fingerprint_udfps_error_not_match));
        } else {
            handleFingerprintHelp(BIOMETRIC_HELP_FINGERPRINT_NOT_RECOGNIZED,
                mContext.getString(R.string.kg_fingerprint_not_recognized));
                    mContext.getString(
                            com.android.internal.R.string.fingerprint_error_not_match));
        }
    }

    private void handleFingerprintAcquired(int acquireInfo) {