Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddeceea2 authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Remove framework faceDetect requirement

Let SysUI handle whether to run faceDetect or not.
This follows similar CUJs as fingerprint.

Test: manually test with ag/20600813, run
SysUI tests in ag/20600813. (reference: ag/20386526)
Bug: 259908246

Change-Id: I24bbfdd39135bcb1cf1d670ee8bd7b13e5f27d60
parent 338af253
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -278,13 +278,6 @@ public class FaceService extends SystemService {
                return -1;
            }

            if (!Utils.isUserEncryptedOrLockdown(mLockPatternUtils, userId)) {
                // If this happens, something in KeyguardUpdateMonitor is wrong. This should only
                // ever be invoked when the user is encrypted or lockdown.
                Slog.e(TAG, "detectFace invoked when user is not encrypted or lockdown");
                return -1;
            }

            final Pair<Integer, ServiceProvider> provider = mRegistry.getSingleProvider();
            if (provider == null) {
                Slog.w(TAG, "Null provider for detectFace");