diff options
author | Sasha Levitskiy <sanek@google.com> | 2015-07-08 22:59:49 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-08 22:59:51 +0000 |
commit | 12328ef422027f2f5f033ed65c8a09535f9ca81d (patch) | |
tree | 208afb702274230de68a0c04368e1fe47ba67018 /core/java/android/hardware | |
parent | e6fd76c23591c90cc8f8ae64d323e22abf491fdf (diff) | |
parent | e0943cf5665b3d7b0870debda771032f77db094c (diff) | |
download | frameworks_base-12328ef422027f2f5f033ed65c8a09535f9ca81d.zip frameworks_base-12328ef422027f2f5f033ed65c8a09535f9ca81d.tar.gz frameworks_base-12328ef422027f2f5f033ed65c8a09535f9ca81d.tar.bz2 |
Merge "Fingerprint: Add post enroll interface." into mnc-dev
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); |