Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
506 views
in Technique[技术] by (71.8m points)

android studio - FingerPrint API isHardwareDetected always returns false

I am using my Samsung S5 G900F(API 23, ANDROID 6.0.1) to test the latest Android Fingerprint API.

I tried to build Google Sample project https://github.com/googlesamples/android-FingerprintDialog

But I am facing some problems

mFingerprintManager.hasEnrolledFingerprints()

This always returns false. I have double checked on Settings that I have enrolled my fingerprint and I am using Fingerprint to unlock my device.

I had also tried this function

mFingerprintManager.isHardwareDetected() 

which also returns false.

Does this mean my Samsung S5 (which got its offical 6.0.1 update) is not supported or I am missing something?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I ran into this issue as well for Samsung Galaxy S5 running Android 6.0.1.

The Native Android SDK API for detecting the Device's Fingerprint reader always returns false:

fingerprintManager.isHardwareDetected()

After surfing around looking for solutions it appears that the Galaxy S5 is not compatible with Android's native SDK Api FingerprintManager: http://developer.samsung.com/forum/board/thread/view.do?boardName=SDK&messageId=294791&startId=zzzzz~&searchSubId=0000000030

The solution would appear to be installing the Samsung library for support if you wanted this ability: Android M FingerprintManager.isHardwareDetected() returns false on a Samsung Galaxy S5


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...