Skip to content

Commit f66e930

Browse files
author
Brian Colonna
committed
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
1 parent 425c726 commit f66e930

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/java/com/android/internal/policy/IFaceLockInterface.aidl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import com.android.internal.policy.IFaceLockCallback;
2020

2121
/** {@hide} */
2222
interface IFaceLockInterface {
23-
void startUi(IBinder containingWindowToken, int x, int y, int width, int height);
23+
void startUi(IBinder containingWindowToken, int x, int y, int width, int height,
24+
boolean useLiveliness);
2425
void stopUi();
2526
void registerCallback(IFaceLockCallback cb);
2627
void unregisterCallback(IFaceLockCallback cb);

policy/src/com/android/internal/policy/impl/FaceUnlock.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ public void start(IBinder windowToken, int x, int y, int w, int h) {
291291
if (!mServiceRunning) {
292292
if (DEBUG) Log.d(TAG, "Starting FaceLock");
293293
try {
294-
mService.startUi(windowToken, x, y, w, h);
294+
mService.startUi(windowToken, x, y, w, h,
295+
mLockPatternUtils.isBiometricWeakLivelinessEnabled());
295296
} catch (RemoteException e) {
296297
Log.e(TAG, "Caught exception starting FaceLock: " + e.toString());
297298
return;

0 commit comments

Comments
 (0)