Ensure updateActiveUser is called before generateChallenge

generateChallenge may be invoked if the HAL crashes while the device
is on keyguard. Always schedule this for now. The updateActiveUser
client is already optimized to not invoke IBiometricsFace#setActiveUser
if we are already the target user.

Fixes: 172885666
Test: manual
Change-Id: I16f22ff3ffc18f031bc02c0cb37a3bc5fc591940
This commit is contained in:
Kevin Chyn
2021-03-23 17:32:58 -07:00
parent 5309214dfc
commit 3a9a64cc10

View File

@@ -528,6 +528,8 @@ public class Face10 implements IHwBinder.DeathRecipient, ServiceProvider {
}
}
scheduleUpdateActiveUserWithoutHandler(userId);
final FaceGenerateChallengeClient client = new FaceGenerateChallengeClient(mContext,
mLazyDaemon, token, new ClientMonitorCallbackConverter(receiver), opPackageName,
mSensorId, mCurrentChallengeOwner);