Loading core/java/android/hardware/biometrics/BiometricManager.java +19 −0 Original line number Diff line number Diff line Loading @@ -639,5 +639,24 @@ public class BiometricManager { } } } /** * Notifies AuthService that keyguard has been dismissed for the given userId. * * @param userId * @param hardwareAuthToken * @hide */ @RequiresPermission(USE_BIOMETRIC_INTERNAL) public void resetLockout(int userId, byte[] hardwareAuthToken) { if (mService != null) { try { mService.resetLockout(userId, hardwareAuthToken); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } } } core/java/android/hardware/biometrics/BiometricStateListener.java +1 −0 Original line number Diff line number Diff line Loading @@ -73,4 +73,5 @@ public abstract class BiometricStateListener extends IBiometricStateListener.Stu */ public void onEnrollmentsChanged(int userId, int sensorId, boolean hasEnrollments) { } } core/java/android/hardware/biometrics/IAuthService.aidl +3 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,9 @@ interface IAuthService { void resetLockoutTimeBound(IBinder token, String opPackageName, int fromSensorId, int userId, in byte[] hardwareAuthToken); // See documentation in BiometricManager. void resetLockout(int userId, in byte[] hardwareAuthToken); // Provides a localized string that may be used as the label for a button that invokes // BiometricPrompt. CharSequence getButtonLabel(int userId, String opPackageName, int authenticators); Loading core/java/android/hardware/biometrics/IBiometricService.aidl +4 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,10 @@ interface IBiometricService { void resetLockoutTimeBound(IBinder token, String opPackageName, int fromSensorId, int userId, in byte[] hardwareAuthToken); // See documentation in BiometricManager. @EnforcePermission("USE_BIOMETRIC_INTERNAL") void resetLockout(int userId, in byte[] hardwareAuthToken); @EnforcePermission("USE_BIOMETRIC_INTERNAL") int getCurrentStrength(int sensorId); Loading services/core/java/com/android/server/biometrics/AuthService.java +11 −0 Original line number Diff line number Diff line Loading @@ -409,6 +409,17 @@ public class AuthService extends SystemService { } } @Override public void resetLockout(int userId, byte[] hardwareAuthToken) throws RemoteException { checkInternalPermission(); final long identity = Binder.clearCallingIdentity(); try { mBiometricService.resetLockout(userId, hardwareAuthToken); } finally { Binder.restoreCallingIdentity(identity); } } @Override public CharSequence getButtonLabel( int userId, Loading Loading
core/java/android/hardware/biometrics/BiometricManager.java +19 −0 Original line number Diff line number Diff line Loading @@ -639,5 +639,24 @@ public class BiometricManager { } } } /** * Notifies AuthService that keyguard has been dismissed for the given userId. * * @param userId * @param hardwareAuthToken * @hide */ @RequiresPermission(USE_BIOMETRIC_INTERNAL) public void resetLockout(int userId, byte[] hardwareAuthToken) { if (mService != null) { try { mService.resetLockout(userId, hardwareAuthToken); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } } }
core/java/android/hardware/biometrics/BiometricStateListener.java +1 −0 Original line number Diff line number Diff line Loading @@ -73,4 +73,5 @@ public abstract class BiometricStateListener extends IBiometricStateListener.Stu */ public void onEnrollmentsChanged(int userId, int sensorId, boolean hasEnrollments) { } }
core/java/android/hardware/biometrics/IAuthService.aidl +3 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,9 @@ interface IAuthService { void resetLockoutTimeBound(IBinder token, String opPackageName, int fromSensorId, int userId, in byte[] hardwareAuthToken); // See documentation in BiometricManager. void resetLockout(int userId, in byte[] hardwareAuthToken); // Provides a localized string that may be used as the label for a button that invokes // BiometricPrompt. CharSequence getButtonLabel(int userId, String opPackageName, int authenticators); Loading
core/java/android/hardware/biometrics/IBiometricService.aidl +4 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,10 @@ interface IBiometricService { void resetLockoutTimeBound(IBinder token, String opPackageName, int fromSensorId, int userId, in byte[] hardwareAuthToken); // See documentation in BiometricManager. @EnforcePermission("USE_BIOMETRIC_INTERNAL") void resetLockout(int userId, in byte[] hardwareAuthToken); @EnforcePermission("USE_BIOMETRIC_INTERNAL") int getCurrentStrength(int sensorId); Loading
services/core/java/com/android/server/biometrics/AuthService.java +11 −0 Original line number Diff line number Diff line Loading @@ -409,6 +409,17 @@ public class AuthService extends SystemService { } } @Override public void resetLockout(int userId, byte[] hardwareAuthToken) throws RemoteException { checkInternalPermission(); final long identity = Binder.clearCallingIdentity(); try { mBiometricService.resetLockout(userId, hardwareAuthToken); } finally { Binder.restoreCallingIdentity(identity); } } @Override public CharSequence getButtonLabel( int userId, Loading