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

The Face unlock is not able to verify the users on a Huawei P30 Lite device #383

Open
Eng-OmarAli opened this issue Nov 5, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Eng-OmarAli
Copy link

  • The Face unlock prompt pops on Huawei P30 Lite, but it is not able to verify the user and doesn't respond.
  • The demo app identifies the Huawei p30 lite as Huawei Honor 8

Note: the demo app and the library works as expected on a Huawei p30, but not on a Huawei p30 lite. I have attached 2 log files from the demo app and screenshots.
deviceapi 4.log
image
image
image
deviceapi.log

@sergeykomlach
Copy link
Owner

sergeykomlach commented Nov 7, 2024

Hi.
1.
Wrong device detection - will be checked, sometimes false positive model detection happens due to an incomplete device database, so the library performs "dirty" matching to the "nearest" device model. I'll check the model names for the Huawei P30 Lite and Honor 8 and do some fixes for better matching. I think that's the easiest problem

The FaceId issue on Huawei/Honor devices has appeared a few times earlier.
The problem is that on some devices, Huawei's faceunlock API does nothing when the library starts authentication.
Stay in touch, I'll check and let you know

@sergeykomlach sergeykomlach added the bug Something isn't working label Nov 12, 2024
@sergeykomlach sergeykomlach self-assigned this Nov 12, 2024
@sergeykomlach
Copy link
Owner

sergeykomlach commented Nov 12, 2024

So, not sure that I'm coming with good news.

  • DeviceInfo - some improvements were done, but still due to the lack of information about Huawei/Honor devices - false positive detection may happen (my Honor 8 Lite was detected as Huawei 8; Mate 30 Pro - as Huawei Mate 10 Pro)
    Device Info is used for a few edge cases and should not affect general usage.
    Unfortunately, Huawei cleaned the CloudDebug console, and now only 2 devices - Mate XS and Mate 30 Pro remain accessible which doesn't help to fix the issue or do some research

image

  • FaceID methods now aligned with the current Android ecosystem state:
    • MIUI FaceID is not reachable anymore on Android 14, so it will work only on AOS 10 - AOS 13
    • Huawei/Honor FaceID separated - "legacy" API will work on AOS 8 - AOS 9, when "official" library - on AOS 10+

These changes mean that on some devices some biometric types will be not accessible anymore, but also - "broken" biometrics will gone.

I'm not sure about discussed here Huawei P30 Lite - it seems like the device has EMUI 9/AOS9 so "legacy" API should be used, but as you mentioned, it does nothing.
So for me is hard to predict how it will work now

@Eng-OmarAli
Copy link
Author

image

Firstly, thank you for your hard work. After the update, I can't see any face unlock option for the Huawei p30 lite. So this means that "broken" biometrics is gone for the Huawei p30 lite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants