Pārlūkot izejas kodu

sm8450-common: Add fingerprint configuration to overlay

The framework was changed in Android R to require explicit authenticator registration.
This change allows apps to continue to use the fingerprint sensor.

Bug: 147445115

Test: Builds
Change-Id: Id3385edc784b2053c8b54ec3153728f4e6e22a45
Kevin Chyn 5 gadi atpakaļ
vecāks
revīzija
1a10435e07
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 8 0
      overlay/FrameworksResXiaomi/res/values/config.xml

+ 8 - 0
overlay/FrameworksResXiaomi/res/values/config.xml

@@ -102,4 +102,12 @@
     <!-- Default refresh rate in the zone defined by brightness and ambient thresholds.
          If non-positive, then the refresh rate is unchanged even if thresholds are configured. -->
     <integer name="config_defaultRefreshRateInZone">120</integer>
+
+    <!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
+         when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
+         where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,
+         and Strength as defined in Authenticators.java -->
+    <string-array name="config_biometric_sensors" translatable="false">
+        <item>0:2:15</item>
+    </string-array>
 </resources>