mirror of
https://github.com/yurisieucuti/treble_evolution.git
synced 2024-11-24 08:36:19 +00:00
27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
From 597668915a8ee7b41c30a272351b15dd9e1e8f89 Mon Sep 17 00:00:00 2001
|
|
From: Pierre-Hugues Husson <phh@phh.me>
|
|
Date: Sat, 2 Apr 2022 18:04:01 -0400
|
|
Subject: [PATCH 25/51] Allow disabling of fingerprint cleanups, needed on some
|
|
Realme devices that cant enumerate
|
|
|
|
---
|
|
.../biometrics/sensors/fingerprint/hidl/Fingerprint21.java | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/Fingerprint21.java b/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/Fingerprint21.java
|
|
index d3cecd0e34c7..91f515161146 100644
|
|
--- a/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/Fingerprint21.java
|
|
+++ b/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/Fingerprint21.java
|
|
@@ -1004,6 +1004,8 @@ public class Fingerprint21 implements IHwBinder.DeathRecipient, ServiceProvider
|
|
|
|
private void scheduleInternalCleanup(int userId,
|
|
@Nullable ClientMonitorCallback callback) {
|
|
+ final boolean mNocleanup = android.os.SystemProperties.getBoolean("persist.sys.phh.fingerprint.nocleanup", false);
|
|
+ if(mNocleanup) return;
|
|
mHandler.post(() -> {
|
|
scheduleUpdateActiveUserWithoutHandler(userId);
|
|
|
|
--
|
|
2.25.1
|
|
|