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

Commit 698f40ca authored by Joshua Mccloskey's avatar Joshua Mccloskey Committed by Android (Google) Code Review
Browse files

Merge changes from topic "faceCameraSensorPrivacy" into sc-v2-dev

* changes:
  Added sensor privacy message to biometric prompt
  Add SensorPrivacy error message to FaceService.
parents 611d320a 27db3c0a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -150,6 +150,12 @@ public interface BiometricConstants {
     */
    int BIOMETRIC_ERROR_RE_ENROLL = 16;

    /**
     * The privacy setting has been enabled and will block use of the sensor.
     * @hide
     */
    int BIOMETRIC_ERROR_SENSOR_PRIVACY_ENABLED = 18;

    /**
     * This constant is only used by SystemUI. It notifies SystemUI that authentication was paused
     * because the authentication attempt was unsuccessful.
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ public interface BiometricFaceConstants {
            BIOMETRIC_ERROR_NO_DEVICE_CREDENTIAL,
            BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED,
            BIOMETRIC_ERROR_RE_ENROLL,
            FACE_ERROR_UNKNOWN
            FACE_ERROR_UNKNOWN,
    })
    @Retention(RetentionPolicy.SOURCE)
    @interface FaceError {}
+2 −0
Original line number Diff line number Diff line
@@ -1666,6 +1666,8 @@
    <string name="face_setup_notification_title">Set up Face Unlock</string>
    <!-- Contents of a notification that directs the user to set up face unlock by enrolling their face. [CHAR LIMIT=NONE] -->
    <string name="face_setup_notification_content">Unlock your phone by looking at it</string>
    <!-- Error message indicating that the camera privacy sensor has been turned on [CHAR LIMIT=NONE] -->
    <string name="face_sensor_privacy_enabled">To use Face Unlock, turn on <b>Camera access</b> in Settings > Privacy</string>
    <!-- Title of a notification that directs the user to enroll a fingerprint. [CHAR LIMIT=NONE] -->
    <string name="fingerprint_setup_notification_title">Set up more ways to unlock</string>
    <!-- Contents of a notification that directs the user to enroll a fingerprint. [CHAR LIMIT=NONE] -->
+1 −0
Original line number Diff line number Diff line
@@ -2570,6 +2570,7 @@
  <java-symbol type="string" name="face_recalibrate_notification_name" />
  <java-symbol type="string" name="face_recalibrate_notification_title" />
  <java-symbol type="string" name="face_recalibrate_notification_content" />
  <java-symbol type="string" name="face_sensor_privacy_enabled" />
  <java-symbol type="string" name="face_error_unable_to_process" />
  <java-symbol type="string" name="face_error_hw_not_available" />
  <java-symbol type="string" name="face_error_no_space" />
+3 −0
Original line number Diff line number Diff line
@@ -219,6 +219,9 @@
    <!-- Face hint message when finger was not recognized. [CHAR LIMIT=20] -->
    <string name="kg_face_not_recognized">Not recognized</string>

     <!-- Error message indicating that the camera privacy sensor has been turned on [CHAR LIMIT=NONE] -->
    <string name="kg_face_sensor_privacy_enabled">To use Face Unlock, turn on <b>Camera access</b> in Settings > Privacy</string>

    <!-- Instructions telling the user remaining times when enter SIM PIN view.  -->
    <plurals name="kg_password_default_pin_message">
        <item quantity="one">Enter SIM PIN. You have <xliff:g id="number">%d</xliff:g> remaining
Loading