Loading services/core/java/com/android/server/biometrics/AuthenticationClient.java +1 −0 Original line number Diff line number Diff line Loading @@ -232,6 +232,7 @@ public abstract class AuthenticationClient extends ClientMonitor { public boolean onAuthenticated(BiometricAuthenticator.Identifier identifier, boolean authenticated, ArrayList<Byte> token) { if (authenticated) { mAlreadyDone = true; if (mRequireConfirmation) { // Store the token so it can be sent to keystore after the user presses confirm mEscrow = new TokenEscrow(identifier, token); Loading services/core/java/com/android/server/biometrics/BiometricServiceBase.java +2 −1 Original line number Diff line number Diff line Loading @@ -408,7 +408,8 @@ public abstract class BiometricServiceBase extends SystemService mActivityTaskManager.getTasks(1); if (!runningTasks.isEmpty()) { final String topPackage = runningTasks.get(0).topActivity.getPackageName(); if (!topPackage.contentEquals(currentClient)) { if (!topPackage.contentEquals(currentClient) && !mCurrentClient.isAlreadyDone()) { Slog.e(getTag(), "Stopping background authentication, top: " + topPackage + " currentClient: " + currentClient); mCurrentClient.stop(false /* initiatedByClient */); Loading services/core/java/com/android/server/biometrics/ClientMonitor.java +6 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ public abstract class ClientMonitor implements IBinder.DeathRecipient { protected final Metrics mMetrics; protected boolean mAlreadyCancelled; protected boolean mAlreadyDone; /** * @param context context of BiometricService Loading Loading @@ -136,6 +137,11 @@ public abstract class ClientMonitor implements IBinder.DeathRecipient { public abstract boolean onEnumerationResult( BiometricAuthenticator.Identifier identifier, int remaining); public boolean isAlreadyDone() { return mAlreadyDone; } /** * Called when we get notification from the biometric's HAL that an image has been acquired. * Common to authenticate and enroll. Loading Loading
services/core/java/com/android/server/biometrics/AuthenticationClient.java +1 −0 Original line number Diff line number Diff line Loading @@ -232,6 +232,7 @@ public abstract class AuthenticationClient extends ClientMonitor { public boolean onAuthenticated(BiometricAuthenticator.Identifier identifier, boolean authenticated, ArrayList<Byte> token) { if (authenticated) { mAlreadyDone = true; if (mRequireConfirmation) { // Store the token so it can be sent to keystore after the user presses confirm mEscrow = new TokenEscrow(identifier, token); Loading
services/core/java/com/android/server/biometrics/BiometricServiceBase.java +2 −1 Original line number Diff line number Diff line Loading @@ -408,7 +408,8 @@ public abstract class BiometricServiceBase extends SystemService mActivityTaskManager.getTasks(1); if (!runningTasks.isEmpty()) { final String topPackage = runningTasks.get(0).topActivity.getPackageName(); if (!topPackage.contentEquals(currentClient)) { if (!topPackage.contentEquals(currentClient) && !mCurrentClient.isAlreadyDone()) { Slog.e(getTag(), "Stopping background authentication, top: " + topPackage + " currentClient: " + currentClient); mCurrentClient.stop(false /* initiatedByClient */); Loading
services/core/java/com/android/server/biometrics/ClientMonitor.java +6 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ public abstract class ClientMonitor implements IBinder.DeathRecipient { protected final Metrics mMetrics; protected boolean mAlreadyCancelled; protected boolean mAlreadyDone; /** * @param context context of BiometricService Loading Loading @@ -136,6 +137,11 @@ public abstract class ClientMonitor implements IBinder.DeathRecipient { public abstract boolean onEnumerationResult( BiometricAuthenticator.Identifier identifier, int remaining); public boolean isAlreadyDone() { return mAlreadyDone; } /** * Called when we get notification from the biometric's HAL that an image has been acquired. * Common to authenticate and enroll. Loading