android 6.0支持指纹识别api了,但是并没有开放区分的接口。
指纹识别 就不重复了网上例子很多,推荐google example的 https://github.com/googlesamples/android-FingerprintDialog
然而并没有如何区分的。
查看源码发现明明有接口只是被@hide了,呵呵。。我们可以用反射。
直接在google example 中测试
在识别成功时 FingerprintUiHelper类onAuthenticationSucceded方法下反射AuthenticationResult result 对象中的字段属性
代码如下:
https://github.com/Bjelijah/FingerprintDialogDistinguish-master