From 956b53bc4e7ede223ccc8582e67078f4326bd524 Mon Sep 17 00:00:00 2001
From: Bruno Martins <bgcngm@gmail.com>
Date: Tue, 20 Feb 2024 12:09:03 +0000
Subject: [PATCH] LMOSettings: FingerprintSettings: Add proximity check
 awareness if supported

Fingerprint authentication when screen is off doesn't nativelly
support checking the proximity sensor status to prevent accidental
unlocks. However, some devices implement this feature, so account
for that. The only thing really needed is just to adapt the
descriptions shown to the users.

Change-Id: I635f7b1a2970c0364b6cd22dfe20e69d009a3f91
---
 res/values/strings.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/res/values/strings.xml b/res/values/strings.xml
index fb547bd..17e5b7b 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -222,6 +222,9 @@
     <string name="fingerprint_enroll_touch_dialog_message_side" product="tablet">Touch the sensor on the side of your tablet.</string>
     <string name="fingerprint_enroll_touch_dialog_message_side" product="device">Touch the sensor on the side of your device.</string>
     <string name="fingerprint_enroll_touch_dialog_message_side" product="default">Touch the sensor on the side of your phone.</string>
+    <!-- Description for require screen on to auth toggle shown in fingerprint enrollment dialog once enrollment is completed.
+         Only for devices that support checking proximity prior to allowing fingerprint unlock. -->
+    <string name="security_settings_require_screen_on_to_auth_with_proximity_description">Touch the sensor to unlock, even when the screen is off. Proximity sensor prevents accidental unlocking.</string>
 
     <!-- Game Space -->
     <string name="game_space_title">Game Space</string>
-- 
GitLab