FingerprintAuthHelper icon indicating copy to clipboard operation
FingerprintAuthHelper copied to clipboard

mFAH.isHardwareEnable() returns false, for Oppo F1 plus fingerprint phone.

Open Muneefm opened this issue 8 years ago • 23 comments

my code is working well with oneplus 3, but when i try debugging in Oppo F1 plus mFAH.isHardwareEnable() returns false

Muneefm avatar Mar 24 '17 08:03 Muneefm

i see that they use some special os. can you please tell me the sdk number of this os version?

pro100svitlo avatar Mar 24 '17 09:03 pro100svitlo

@pro100svitlo the OS version is 5.1 , API level 22

Muneefm avatar Mar 24 '17 09:03 Muneefm

official docs say that fingerprint scanner works from api level 23. but there are also few chinas phones with api level lover the 23 (Oppo for example), that have fingerprint scanner... to be honest - i have no idea how they work correctly!

i know about this issue, but still doesn't know how to fix it. I will try again to find some solution in nearest future!

pro100svitlo avatar Mar 24 '17 09:03 pro100svitlo

Well, i cannot find any fingerprint API information of oppo phones. guess will have to skip those phones. :D

Muneefm avatar Mar 24 '17 16:03 Muneefm

From my point-of-view this library only supports the official Android SDK23 Fingerprint API. Yes, it does work back to SDK 14, but just to fail gracefully for unsupported versions/devices.

Bombo avatar Apr 19 '17 11:04 Bombo

The same problem with oppo F1s the OS version 5.1 API 22. Is there still no solution for this problem?

hwalidh avatar May 02 '17 13:05 hwalidh

I don't know if there even an exposed API for these kinds of proprietary fingerprint solutions. Do you know of any (optimally open source) apps which do work with that sensor?

Bombo avatar May 02 '17 13:05 Bombo

I tried several source code but it does not work with oppo. I figured that can be oppo uses his own SDK. PS: the Samsung have their own SDK for the fingerprint sensor.

hwalidh avatar May 02 '17 14:05 hwalidh

I know there also same problem with some models of xiaomi. API 21 and 22. so i think this "few" models implement their own code. cos as was said before, the lowest official API is 23.

pro100svitlo avatar May 02 '17 18:05 pro100svitlo

@Bombo what if add some try/catch for lower sdk version? :) @hwalidh i will create new branch soon, and will try to fix this issue. but i have no oppo or xiaomi phone, so can I ask for test later?

pro100svitlo avatar May 02 '17 18:05 pro100svitlo

@pro100svitlo yes of course. What did you think if I do the version OS 6.0 manually on my oppo F1s. Will it work isHardwareDetected ()?

hwalidh avatar May 02 '17 18:05 hwalidh

in fact - I have no idea :) chinas phones - its a mystery...

pro100svitlo avatar May 02 '17 18:05 pro100svitlo

@Bombo @pro100svitlo @hwalidh hi if you have a oppo or xiomi phones can you check with other apps like paypal or any other third-party apps ( Not any apps of oppo ) using fingerprint features to see if they are using fingerprint in oppo also . if not these companies like oppo or xiomi are not letting developers to use their fingerprint hardware. and so we will have to implement other means of authentication for the false condition in mFAH.isHardwareEnable()

and for other brands which have fingerprint SDK like samsung we can check the model in code and implement their code accordingly. i think this is the best way right now.

please correct me if am wrong.

Muneefm avatar May 02 '17 19:05 Muneefm

@Muneefm very good idea, but I haven't found application under android 5.1 or 6.0 that use the digital fingerprint sensor...

hwalidh avatar May 02 '17 20:05 hwalidh

@Muneefm, i have no xiaomi or oppo, so I can't check... but i will try to fix this issue soon, i will inform you when it will be ready for test. about sumsung fingerprint sdk - as I know, thay use their own fingerprint sdk only in few early models that has scanners. all new phones has ordinary scanner and sdk provided by google.

@Muneefm can you post for link for this app?

pro100svitlo avatar May 03 '17 07:05 pro100svitlo

FingerprintManagerCompat.isHardwareDetected and FingerprintManagerCompat.hasEnrolledFingerprints always return false . but FingerprintManager.isHardwareDetected and FingerprintManager.hasEnrolledFingerprints return true . my phone is xiaomi for API 23 , Android 6。。。 why ????

FlogFly avatar May 03 '17 11:05 FlogFly

@qaz349293703 okey, and what the real situation? has your device sensor and enrolledFingerprints or no?

pro100svitlo avatar May 03 '17 12:05 pro100svitlo

real situation is isHardwareDetected and hasEnrolledFingerprints should return true . so the compat class is wrong return.

FlogFly avatar May 03 '17 12:05 FlogFly

@qaz349293703 so my library works fine, am I right? :)

pro100svitlo avatar May 03 '17 12:05 pro100svitlo

yes..you library works fine ,but i have this problem ,if you konw why ( my phone has fingerprint ,but FingerprintManagerCompat.isHardwareDetected and FingerprintManagerCompat.hasEnrolledFingerprints always return false). please tell me thanks .

FlogFly avatar May 04 '17 02:05 FlogFly

@qaz349293703 You can view this link https://github.com/multidots/android-fingerprint-authentication/issues/4#issuecomment-298834060

hwalidh avatar May 04 '17 11:05 hwalidh

Hi guys! @hwalidh @Muneefm sorry for so long time without answer.... have an idea! add some kind of deviceWhiteList, right now there only two: F1 plus and F1 s.

can you please check this apk on some of this devices?

sample-debug.apk.zip

pro100svitlo avatar Aug 18 '17 08:08 pro100svitlo

@qaz349293703 I got same issue here..

jimmyleonardo avatar Apr 11 '18 16:04 jimmyleonardo