【问题标题】:fingerprint not working after new fingerprint addition添加新指纹后指纹不起作用
【发布时间】:2017-10-14 18:08:41
【问题描述】:

我已在我的应用中成功建立指纹认证。但是,当我在我的 android 设置中添加新指纹时,指纹传感器在我的应用程序中没有响应(扫描仪仍然可以正常工作以解锁我的手机)。我错过了什么重要的东西吗?

【问题讨论】:

  • Am i missing something important there? 是:发布您的代码。
  • 我只是想知道这背后的原理,为什么传感器一般会被阻塞。我的指纹身份验证流程按预期工作,所以我认为应该有一些我不知道的指纹安全性,这会导致传感器阻塞。
  • 但是你在这一切中的努力在哪里?

标签: android security fingerprint android-fingerprint-api


【解决方案1】:

是的,你错过了一些非常重要的东西。这是一个安全案例。添加新指纹后,无法读取指纹保护数据,因此一切正常。

希望我对你有帮助:)

【讨论】:

  • 您能否进一步解释一下或提供任何有用的链接?现在我在这种情况下看不到任何可能的漏洞。用户应该通过一些安全方法(密码、PIN 或图形模式)来添加新的指纹,那么为什么 Android 在添加后会阻止传感器?
  • Android 在添加新指纹后不会阻止传感器。如果没有代码,我只能猜测在添加新手指后尝试初始化密码时出现异常。最后传感器没有被阻塞 - 它只是没有开始监控。
  • 正如我所料,这是 Android Keystore 限制,正如@Karol 提到的 (developer.android.com/training/articles/keystore.html):User authentication authorizes a specific cryptographic operation associated with one key. In this mode, each operation involving such a key must be individually authorized by the user. Such keys can only be generated or imported if at least one fingerprint is enrolled. These keys become permanently invalidated once a new fingerprint is enrolled or all fingerprints are unenrolled.
  • 在 API 级别 24+ 上,您可以使用 setInvalidatedByBiometricEnrollment 控制此行为。
猜你喜欢
  • 2017-04-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多