mirror of
https://github.com/yurisieucuti/treble_evolution.git
synced 2024-11-24 08:36:19 +00:00
38 lines
2.2 KiB
Diff
38 lines
2.2 KiB
Diff
From f60ff0cae71ec0c41ec41a4a775a7d90b1bcc3ad Mon Sep 17 00:00:00 2001
|
|
From: Pierre-Hugues Husson <phh@phh.me>
|
|
Date: Sat, 3 Dec 2022 17:13:24 -0500
|
|
Subject: [PATCH 29/51] Set old fingerprint sensors to security "strong"
|
|
|
|
This allows removing config_biometric_sensors from overlays, which led
|
|
to Pixels not booting, because they are using AIDL biometric sensor, and
|
|
despite its name, config_biometric_sensors is HIDL-specific
|
|
---
|
|
.../core/java/com/android/server/biometrics/AuthService.java | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/services/core/java/com/android/server/biometrics/AuthService.java b/services/core/java/com/android/server/biometrics/AuthService.java
|
|
index dafea9a199fd..2fdba410c92d 100644
|
|
--- a/services/core/java/com/android/server/biometrics/AuthService.java
|
|
+++ b/services/core/java/com/android/server/biometrics/AuthService.java
|
|
@@ -702,7 +702,7 @@ public class AuthService extends SystemService {
|
|
final int firstApiLevel = SystemProperties.getInt(SYSPROP_FIRST_API_LEVEL, 0);
|
|
final int apiLevel = SystemProperties.getInt(SYSPROP_API_LEVEL, firstApiLevel);
|
|
String[] configStrings = mInjector.getConfiguration(getContext());
|
|
- if (configStrings.length == 0 && apiLevel == Build.VERSION_CODES.R) {
|
|
+ if (configStrings.length == 0 && apiLevel <= Build.VERSION_CODES.R) {
|
|
// For backwards compatibility with R where biometrics could work without being
|
|
// configured in config_biometric_sensors. In the absence of a vendor provided
|
|
// configuration, we assume the weakest biometric strength (i.e. convenience).
|
|
@@ -737,7 +737,7 @@ public class AuthService extends SystemService {
|
|
if (pm.hasSystemFeature(PackageManager.FEATURE_FACE)) {
|
|
modalities.add(String.valueOf(BiometricAuthenticator.TYPE_FACE));
|
|
}
|
|
- final String strength = String.valueOf(Authenticators.BIOMETRIC_CONVENIENCE);
|
|
+ final String strength = String.valueOf(Authenticators.BIOMETRIC_STRONG);
|
|
final String[] configStrings = new String[modalities.size()];
|
|
for (int i = 0; i < modalities.size(); ++i) {
|
|
final String id = String.valueOf(i);
|
|
--
|
|
2.25.1
|
|
|