From f66e930e726f4caf49b7d47c08d160b14628c99f Mon Sep 17 00:00:00 2001 From: Brian Colonna Date: Mon, 9 Apr 2012 14:55:23 -0400 Subject: Passing useLiveliness flag to FUL in startUi call Because of changes in support of multi-user functionaity, the FUL 'eye blink' checkbox was no longer enabling liveliness detection. It no longer makes sense to check the biometric flags (such as the liveliness flag) inside of the Face Unlock service. Instead, that flag is now passed in from lockscreen via the aidl interface when startUi is called. Change-Id: I591cf1924fbb24da7d54b94ef29824e5197d3b20 --- policy/src/com/android/internal/policy/impl/FaceUnlock.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'policy/src') diff --git a/policy/src/com/android/internal/policy/impl/FaceUnlock.java b/policy/src/com/android/internal/policy/impl/FaceUnlock.java index 2ae99e6..985dcd3 100644 --- a/policy/src/com/android/internal/policy/impl/FaceUnlock.java +++ b/policy/src/com/android/internal/policy/impl/FaceUnlock.java @@ -291,7 +291,8 @@ public class FaceUnlock implements Handler.Callback { if (!mServiceRunning) { if (DEBUG) Log.d(TAG, "Starting FaceLock"); try { - mService.startUi(windowToken, x, y, w, h); + mService.startUi(windowToken, x, y, w, h, + mLockPatternUtils.isBiometricWeakLivelinessEnabled()); } catch (RemoteException e) { Log.e(TAG, "Caught exception starting FaceLock: " + e.toString()); return; -- cgit v1.1