Merge changes from topic "lockoutreset" into rvc-dev am: 8838c087b0

Change-Id: Ibb50dcf231c0f20f07933763b70237029506c122
This commit is contained in:
Kevin Chyn
2020-05-15 22:23:39 +00:00
committed by Automerger Merge Worker
2 changed files with 5 additions and 0 deletions

View File

@@ -978,6 +978,10 @@ public abstract class BiometricServiceBase extends SystemService
}
protected void addLockoutResetCallback(IBiometricServiceLockoutResetCallback callback) {
if (callback == null) {
Slog.w(getTag(), "Null LockoutResetCallback");
return;
}
mHandler.post(() -> {
final LockoutResetMonitor monitor = new LockoutResetMonitor(callback);
if (!mLockoutMonitors.contains(monitor)) {

View File

@@ -330,6 +330,7 @@ public class FingerprintService extends BiometricServiceBase {
@Override
public void addLockoutResetCallback(final IBiometricServiceLockoutResetCallback callback)
throws RemoteException {
checkPermission(USE_BIOMETRIC_INTERNAL);
FingerprintService.super.addLockoutResetCallback(callback);
}