Fix FingerprintManager won't display BP on SFPS devices

Bug: b/272416953
Test: [Pre-setup]
      1. Enroll at least 1 finger
      2. Download Telegram and set the Biometrics lock (settings > Privacy and Security > Passcode Lock > Unlock with Fingerprint)
      [Test]
      1. Open "Telegram" app
      2. Check BP shows
Change-Id: I7ed1d3d425a6bb7f58796abf2735e60f119e0bce
This commit is contained in:
Vincent Wang
2023-03-13 09:55:45 +00:00
parent 5af264c1f5
commit ebe48a4aab

View File

@@ -343,7 +343,8 @@ public class FingerprintService extends SystemService {
final FingerprintSensorPropertiesInternal sensorProps =
provider.second.getSensorProperties(sensorId);
if (!isKeyguard && !Utils.isSettings(getContext(), opPackageName)
&& sensorProps != null && sensorProps.isAnyUdfpsType()) {
&& sensorProps != null && (sensorProps.isAnyUdfpsType()
|| sensorProps.isAnySidefpsType())) {
try {
return authenticateWithPrompt(operationId, sensorProps, callingUid,
callingUserId, receiver, opPackageName, ignoreEnrollmentState);