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 Merged-In: I24bbfdd39135bcb1cf1d670ee8bd7b13e5f27d60
This commit is contained in:
@@ -290,13 +290,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 = getSingleProvider();
|
||||
if (provider == null) {
|
||||
Slog.w(TAG, "Null provider for detectFace");
|
||||
|
||||
Reference in New Issue
Block a user