diff options
Diffstat (limited to 'core/java/android/hardware')
3 files changed, 20 insertions, 1 deletions
diff --git a/core/java/android/hardware/fingerprint/FingerprintManager.java b/core/java/android/hardware/fingerprint/FingerprintManager.java index 82d3e0a..15c7aaf 100644 --- a/core/java/android/hardware/fingerprint/FingerprintManager.java +++ b/core/java/android/hardware/fingerprint/FingerprintManager.java @@ -520,6 +520,21 @@ public class FingerprintManager { } /** + * Finishes enrollment and cancels the current auth token. + * @hide + */ + @RequiresPermission(MANAGE_FINGERPRINT) + public int postEnroll() { + int result = 0; + if (mService != null) try { + result = mService.postEnroll(mToken); + } catch (RemoteException e) { + Log.w(TAG, "Remote exception in post enroll: ", e); + } + return result; + } + + /** * Remove given fingerprint template from fingerprint hardware and/or protected storage. * @param fp the fingerprint item to remove * @param callback an optional callback to verify that fingerprint templates have been diff --git a/core/java/android/hardware/fingerprint/IFingerprintDaemon.aidl b/core/java/android/hardware/fingerprint/IFingerprintDaemon.aidl index 186d36e..9c13523 100644 --- a/core/java/android/hardware/fingerprint/IFingerprintDaemon.aidl +++ b/core/java/android/hardware/fingerprint/IFingerprintDaemon.aidl @@ -21,7 +21,7 @@ import android.hardware.fingerprint.IFingerprintDaemonCallback; * Communication channel from FingerprintService to FingerprintDaemon (fingerprintd) * @hide */ - + interface IFingerprintDaemon { int authenticate(long sessionId, int groupId); int cancelAuthentication(); @@ -34,4 +34,5 @@ interface IFingerprintDaemon { long openHal(); int closeHal(); void init(IFingerprintDaemonCallback callback); + int postEnroll(); } diff --git a/core/java/android/hardware/fingerprint/IFingerprintService.aidl b/core/java/android/hardware/fingerprint/IFingerprintService.aidl index f596c93..5e233b8 100644 --- a/core/java/android/hardware/fingerprint/IFingerprintService.aidl +++ b/core/java/android/hardware/fingerprint/IFingerprintService.aidl @@ -54,6 +54,9 @@ interface IFingerprintService { // Get a pre-enrollment authentication token long preEnroll(IBinder token); + // Finish an enrollment sequence and invalidate the authentication token + int postEnroll(IBinder token); + // Determine if a user has at least one enrolled fingerprint boolean hasEnrolledFingerprints(int groupId, String opPackageName); |