Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Muneefm opened this issue Mar 24, 2017 · 23 comments

Comments

@Muneefm
Copy link

Muneefm commented Mar 24, 2017

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

@pro100svitlo
Copy link
Owner

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

@Muneefm
Copy link
Author

Muneefm commented Mar 24, 2017

@pro100svitlo the OS version is 5.1 , API level 22

@pro100svitlo
Copy link
Owner

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!

@Muneefm
Copy link
Author

Muneefm commented Mar 24, 2017

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

@Bombo
Copy link
Contributor

Bombo commented Apr 19, 2017

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.

@hwalidh
Copy link

hwalidh commented May 2, 2017

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

@Bombo
Copy link
Contributor

Bombo commented May 2, 2017

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?

@hwalidh
Copy link

hwalidh commented May 2, 2017

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.

@pro100svitlo
Copy link
Owner

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
Copy link
Owner

@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?

@hwalidh
Copy link

hwalidh commented May 2, 2017

@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 ()?

@pro100svitlo
Copy link
Owner

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

@Muneefm
Copy link
Author

Muneefm commented May 2, 2017

@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.

@hwalidh
Copy link

hwalidh commented May 2, 2017

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

@pro100svitlo
Copy link
Owner

@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?

@FlogFly
Copy link

FlogFly commented May 3, 2017

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 ????

@pro100svitlo
Copy link
Owner

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

@FlogFly
Copy link

FlogFly commented May 3, 2017

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

@pro100svitlo
Copy link
Owner

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

@FlogFly
Copy link

FlogFly commented May 4, 2017

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 .

@hwalidh
Copy link

hwalidh commented May 4, 2017

@pro100svitlo
Copy link
Owner

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

@jimmyleonardo
Copy link

@qaz349293703 I got same issue here..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants