Android指纹检测添加了新手指 [英] Android fingerprint detect new finger added
问题描述
在用户对我的应用程序中的手指进行身份验证之后,如何检测用户是否在Android设置中添加了新指纹?
How to detect if the user add new fingerprint to Android settings after he/she authenticate finger inside my application ?
即iOS有一个名为(evaluatedPolicyDomainState)的东西来检测指纹目录中的更改,Android中有什么替代方法?
i.e. iOS have something called (evaluatedPolicyDomainState) to detect changes in fingerprint catalog what is the alternative in Android ?
出于安全原因,在这种情况下要求输入密码
This require for security reasons to prompt password in this case
推荐答案
来自
一旦安全锁定屏幕被禁用(重新配置为无",刷卡"或其他无法验证用户身份的模式)或强制重置安全锁定屏幕(例如,由设备管理员),密钥将不可逆转地失效.此外,如果密钥要求每次使用密钥都要进行用户身份验证,则一旦注册了新指纹或不再注册任何指纹,该密钥也将不可逆转地失效,除非
The key will become irreversibly invalidated once the secure lock screen is disabled (reconfigured to None, Swipe or other mode which does not authenticate the user) or when the secure lock screen is forcibly reset (e.g., by a Device Administrator). Additionally, if the key requires that user authentication takes place for every use of the key, it is also irreversibly invalidated once a new fingerprint is enrolled or once no more fingerprints are enrolled, unless 因此,要检查自创建指纹相关密钥以来是否已注册了任何新的指纹,只需使用该密钥创建一个密码并尝试 So to check if any new fingerprints have been enrolled since you created your fingerprint-associated key, just create a cipher with that key and try to 这篇关于Android指纹检测添加了新手指的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
setInvalidatedByBiometricEnrollment(boolean)
is used to allow validity after enrollment. Attempts to initialize cryptographic operations using such keys will throw KeyPermanentlyInvalidatedException.init
密码.如果已注册任何新指纹,则init
调用应触发KeyPermanentlyInvalidatedException
.init
the cipher. If any new fingerprints have been enrolled, the init
call should trigger a KeyPermanentlyInvalidatedException
.