android - Android M版本中如何根据指纹识别用户?

标签 android authentication fingerprint identification android-6.0-marshmallow

我们可以使用 Android M (API 22) 中的 FingerprintManager 来识别(以及授权)用户吗?

例如,设备中注册了两个指纹,一个是用户 A 的,一个是用户 B 的。API 是否支持检测刚刚登录的用户是 A 还是 B?

最佳答案

没有。事实上,Android 6.0 的 Android 兼容性定义在指纹部分 (7.3.10) 中指出:

MUST NOT enable 3rd-party applications to distinguish between individual fingerprints.

因此,虽然您可以编写使用指纹作为对用户进行身份验证的机制的应用,但可以使用与当前用户帐户关联的任何已注册指纹。

Android Fingerprint 方法不提供指纹名称或任何唯一标识。它平等对待每个已注册的指纹,并且仅进行身份验证。 (有效用户或无效用户就是这样)

存储 指纹与设备相关联(来自 Nexus 常见问题解答):

Your fingerprint data is stored securely and never leaves your device. Your data is not shared with Google or any apps on your device.

因此,应用无法访问指纹数据以保存或跨设备使用。

建议 : 要区分多个用户或设备,您应该使用外部指纹扫描仪。有一些外部指纹扫描仪与 Android 平台和 SDK for Android 兼容。这些 SDK 允许注册和验证多个用户。

关于android - Android M版本中如何根据指纹识别用户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31579423/

相关文章:

android - 如何使用SAX PARSER解析android中的html内容

ssl - 没有ssl的登录表单

android - 尝试使用 volley 连接到 mysql

android - 将焦点设置在未填充的编辑文本中如何实现android应用程序

java - 用户名和密码未与 Spring 中的身份验证映射

spring - 在微服务架构中,Auth Server 是否应该与 User Service 结合?

security - 将指纹图像转换为可比较的模板

android - ionic 5 : how to secure mobile app with Fingerprint AIO

c# - 通过 .NET SDK 在 node.js 上的指纹读取器

android - 全屏显示带有 webview 的 AlertDialog