Use Android's New Fingerprint API for Multiple Users

We are creating a timestamp application on Android, and ideally this would use a fingerprint to identify the user.

One organization can have 150 users. Will the fingerprint API allow multiple users? Or is it currently only for the device owner? If this is only for current users, is there another API available that would allow this? If not, I think we need to completely abandon this road.

+5
source share
2 answers

Android M or Samsung or iPhone API only allow checking the current user from the device user.

There are fingerprint scanners compatible with the Android Platform and the Android SDK. These SDKs provide an image or fingerprint template. The scanners are connected to the USB port, so you cannot charge the tablet and use the fingerprint scanner at the same time. For example:

There are also devices with a built-in fingerprint scanner and SDK for acquiring an image or fingerprint template.

+2
source

you can use android.hardware.fingerprint.Fingerprint.class

/**
* Container for fingerprint metadata.
* @hide
*/
public final class Fingerprint implements Parcelable {
    private CharSequence mName;
    private int mGroupId;
    private int mFingerId;
    private long mDeviceId; // physical device this is associated with
 ...
}

FingerprintManager, api ,

 /**
 * Container for callback data from {@link FingerprintManager#authenticate(CryptoObject,
 *     CancellationSignal, int, AuthenticationCallback, Handler)}.
 */
public static class AuthenticationResult {
    private Fingerprint mFingerprint;
...
}
+2

Source: https://habr.com/ru/post/1611590/


All Articles