如何从Android设备添加/编辑/删除指纹 [英] How to Identify Fingerprint is add/edit/deleted from the android device

查看:518
本文介绍了如何从Android设备添加/编辑/删除指纹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Android应用程序进行指纹认证。
我已经完成了与认证相关的部分。
现在我正在做研究,以识别用户添加新指纹,编辑或从设备中删除指纹的天气。但是我没有找到任何资源可以帮助我识别这一点。

I am working on the fingerprint authentication for android app. In which I have done with the authentication related part. Now I am doing the research to identify weather the user has added a new fingerprint, edit or delete the fingerprint from the device. But i didn't find any resource which helps me to identify this.

因此,如果有人可以帮助我识别这一点,它将对我很有帮助。

So, if anyone can help me how to identify this, it will be very helpful to me.

推荐答案

KeyPermanentlyInvalidatedException ,如果添加了新指纹或在创建密钥后删除了所有指纹。但是据我所知,实际上只有一堆三星设备会抛出该异常。因此,如果您想知道所有设备上已注册指纹的任何变化,可能不够可靠。

KeyPermanentlyInvalidatedException would be thrown when the SecretKey is used, if a new fingerprint is added or all the fingerprints are removed after the key was created. But from what I've seen, only a bunch of Samsung devices actually throw this exception. So it probably is not reliable enough if you want to know any change in the enrolled fingerprints across all devices.

如果您担心事物的安全性,请查看 setInvalidatedByBiometricEnrollment 方法(适用于N或更高版本)。

If you're concerned about the security side of things, check out the setInvalidatedByBiometricEnrollment method which is available on N and above.

这篇关于如何从Android设备添加/编辑/删除指纹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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