如何在Android上保存和比较2个指纹 [英] How to save and compare 2 fingerprints on Android

查看:148
本文介绍了如何在Android上保存和比较2个指纹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在项目的身份验证过程中集成指纹,然后保存并比较该指纹.

I would like to integrate fingerprint in the authentication process for my project and then save and compare this fingerprint.

我曾尝试集成几段代码,但到目前为止都没有奏效.如何在Android应用程序中保存和比较指纹?

I have tried integrate several pieces of code, but so far none have worked. How can I save and compare fingerprints in an Android app?

推荐答案

使用设备的指纹传感器无法做到这一点.根据设计,为了防止应用获取用户的指纹数据,没有允许应用访问指纹数据的API.也没有API可以区分不同的指纹,因为它们都被认为是来自运行该应用程序的设备用户.

This is not possible using the device's fingerprint sensor. By design, to prevent apps from obtaining the user's fingerprint data, there is no API that allows an app to access fingerprint data. There is also no API that allows different fingerprints to be distinguished, as they are all considered to be from the device user that is running the app.

如果您需要在Android应用中保存和比较指纹,唯一的选择是单独获取连接到Android设备的外部指纹传感器,并使用其SDK读取和存储指纹数据.

If you need to save and compare fingerprints in an Android app, your only option would be to separately obtain an external fingerprint sensor that connects to the Android device, and use its SDK to read and store fingerprint data.

这篇关于如何在Android上保存和比较2个指纹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆