[11+] UniversalAuth: Face Unlock for all ROMs

Search This thread

null-dev

Senior Member
May 11, 2015
91
185
Waterloo
LG V60 ThinQ

UniversalAuth: Face Unlock for all ROMs​


This module brings face unlock (and possibly other authentication methods) to any ROM.

face-unlock.gif


Requirements​

- Xposed/EdXposed/Lsposed
- Android 11, 12 or 13 DP (may also work on Android 10, but not tested)

Installation​

  1. Download the "universalauth-xposed-release.apk" file and install it. Enable the xposed module and reboot.
  2. Download the "faceunlock-release.apk" file and install it.
  3. A new app called "Face unlock" should now appear, open it.
  4. Allow the app to download the face unlock libraries when asked.
  5. Grant the app permission to unlock your phone when asked.
  6. Enable the accessibility service when asked.
  7. Press the "START SETUP" button to enroll your face. The app will ask you to grant it camera permissions, make sure to select "allow while using the app" if that option is available.
  8. Lock your phone and test that you are able to use face unlock!

Downloads​

Here: https://github.com/null-dev/UniversalAuth/releases/latest

Future plans​

The plan is to add more authentication methods, I'm working on Blackberry's picture password next.

Source code​

 
Last edited:

Lord Sithek

Senior Member
Dec 19, 2018
1,292
663
Xiaomi Redmi Note 4
Huawei Watch 2

UniversalAuth: Face Unlock for all ROMs​


This module brings face unlock (and possibly other authentication methods) to any ROM.

face-unlock.gif


Requirements​

- Xposed/EdXposed/Lsposed
- Android 11 (this module has only been tested on Android 11, but it should theoretically support Android 12 and maybe even Android 10, please help test!)
- The Megvii face unlock libraries, more information on this below

WARNING about the Megvii face unlock libraries​

This module needs the Megvii face unlock files. Megvii has been known to DMCA anybody who distributes these files so I cannot give you these files, you will have to find them yourself (should not be hard). Hint: they are usually next to each other in the same folder.

Here are the filenames and SHA1 hashes of the files you need:
Filename​
Hash​
Size​
libFaceDetectCA.so0e9e08c7cc976e86a8b2c80732b0f3cef3ed09be256088 bytes
libmegface.so9b598b767a124076d87bb7cc0097d968df620a1d7213272 bytes
libMegviiUnlock-jni-1.2.socd3747023c62b3f489da6d104ce3ab51dd3d8bb7260176 bytes
libMegviiUnlock.so25f86732d5bf05679b69e4fa41957efb5491ebc61066008 bytes

Please do not post the files here or link to them here for obvious reasons.

Installation​

  1. Download the "universalauth-xposed-release.apk" file and install it. Enable the xposed module and reboot.
  2. Download the "faceunlock-release.apk" file and install it.
  3. A new app called "Face unlock" should now appear, open it.
  4. Add the Megvii face unlock libraries when asked (see previous section).
  5. Grant the app permission to unlock your phone when asked.
  6. Enable the accessibility service when asked.
  7. Press the "START SETUP" button to enroll your face. The app will ask you to grant it camera permissions, make sure to select "allow while using the app" if that option is available.
  8. Lock your phone and test that you are able to use face unlock!

Future plans​

The plan is to add more authentication methods, I'm working on Blackberry's picture password next.

Source code​

Thanks for this tool! Managed to find libs and follow the procedure, but the app crashes when I start enrolling. I'm on Android 12 custom ROM, Octavi OS. Device: Xiaomi Mi Note 10 (tucana). Using LSPosed Framework

Crash log: https://hastebin.com/wiziqoviyu
Logcat attached
 

Attachments

  • logcat_03-21-2022_10-04-48.zip
    208.8 KB · Views: 295
Last edited:

null-dev

Senior Member
May 11, 2015
91
185
Waterloo
LG V60 ThinQ

Attachments

  • faceunlock-release.apk
    33.6 MB · Views: 1,490
  • Like
Reactions: Lord Sithek

null-dev

Senior Member
May 11, 2015
91
185
Waterloo
LG V60 ThinQ
The app detected my face and authenticates but the phone won't unlock it keeps saying detecting face. I'm on POSP, A11 Sept build
If you use the "TEST AUTH" button in the app does it successfully recognize your face?

Can you check what permissions the app has been granted? It needs the permission to unlock your phone, is that granted?

Also, does the phone unlock if you use a different unlock animation?
 
  • Like
Reactions: Lucky_069

Lucky_069

Member
Nov 2, 2020
40
8
Redmi Note 8 Pro
Xiaomi Poco X2
If you use the "TEST AUTH" button in the app does it successfully recognize your face?

Can you check what permissions the app has been granted? It needs the permission to unlock your phone, is that granted?

Also, does the phone unlock if you use a different unlock animation?
I tried with all animations and all permissions are given to the app yet it doesn't works!
 

Lord Sithek

Senior Member
Dec 19, 2018
1,292
663
Xiaomi Redmi Note 4
Huawei Watch 2
If you use the "TEST AUTH" button in the app does it successfully recognize your face?

Can you check what permissions the app has been granted? It needs the permission to unlock your phone, is that granted?

Also, does the phone unlock if you use a different unlock animation?
Here the same like with @Lucky_069. Permission is granted, test auth is correct, but phone doesnt get unlock with any animation

I can provide logs if needed
 

null-dev

Senior Member
May 11, 2015
91
185
Waterloo
LG V60 ThinQ

Lord Sithek

Senior Member
Dec 19, 2018
1,292
663
Xiaomi Redmi Note 4
Huawei Watch 2

Attachments

  • logcat_03-21-2022_17-36-16.zip
    38.9 KB · Views: 42

Lucky_069

Member
Nov 2, 2020
40
8
Redmi Note 8 Pro
Xiaomi Poco X2

Attachments

  • logcat_03-21-2022_22-10-31.txt.zip
    49.6 KB · Views: 26
  • Like
Reactions: null-dev

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    not working for me can you share installing instructions?

    I'm in feb. update also, thank u
    Installed face unlock 1.8. Installed latest UniversalAuth Xposed Release v1.9. Activated UniversalAuth Xposed Release v1.9 in LSPosed modules. Open faceunlock app and manually import the libraries from Motorola Face Unlock v1.03.0312. Setup face capture in faceunlock. Go to face unlock info, Tap on 3 dots, Choose "allow restricted settings". You'll asked for you lock code. Now you can enable accessibility. Reboot phone.
    1
    I have a "Welcome" text but phone is still locked. Why so?
    U tried this one?

    1
    Installed face unlock 1.8. Installed latest UniversalAuth Xposed Release v1.9. Activated UniversalAuth Xposed Release v1.9 in LSPosed modules. Open faceunlock app and manually import the libraries from Motorola Face Unlock v1.03.0312. Setup face capture in faceunlock. Reboot phone.

    Now working, the problem was with accesibility and app permissions.

    I need to make this, after set up the app:

    1. Go to face unlock info.
    2. Tap on 3 dots.
    3. Choose "allow restricted settings".
    4. You'll asked for you lock code.
    Now you can enable accessibility.
    1
    Now working, the problem was with accesibility and app permissions.

    I need to make this, after set up the app:
    I forgot to mention that step. Glad to hear you got it working.
    1
    Alright, I'm finally back, I've made some changes to the Xposed module, if you are on Android 13 and it doesn't work, give this APK a shot as it should fix the issues. Please let me know if it works!
    Works like a charm on pixel 6 with stock android 13 5th of Feb update, thank you!
  • 50

    UniversalAuth: Face Unlock for all ROMs​


    This module brings face unlock (and possibly other authentication methods) to any ROM.

    face-unlock.gif


    Requirements​

    - Xposed/EdXposed/Lsposed
    - Android 11, 12 or 13 DP (may also work on Android 10, but not tested)

    Installation​

    1. Download the "universalauth-xposed-release.apk" file and install it. Enable the xposed module and reboot.
    2. Download the "faceunlock-release.apk" file and install it.
    3. A new app called "Face unlock" should now appear, open it.
    4. Allow the app to download the face unlock libraries when asked.
    5. Grant the app permission to unlock your phone when asked.
    6. Enable the accessibility service when asked.
    7. Press the "START SETUP" button to enroll your face. The app will ask you to grant it camera permissions, make sure to select "allow while using the app" if that option is available.
    8. Lock your phone and test that you are able to use face unlock!

    Downloads​

    Here: https://github.com/null-dev/UniversalAuth/releases/latest

    Future plans​

    The plan is to add more authentication methods, I'm working on Blackberry's picture password next.

    Source code​

    20
    Alright, I'm finally back, I've made some changes to the Xposed module, if you are on Android 13 and it doesn't work, give this APK a shot as it should fix the issues. Please let me know if it works!
    13
    Version 1.5:
    • Attempt to fix the issues that some users are having with the accessibility service (doubt it will actually fix the issue as I have no idea why it's happening)
    • Add support for "Even faster face unlock" to Android 12L+ ROMs
    • Allow user to choose whether or not they want to bypass the lockscreen
    • Add option to hide status text on lockscreen
    Downloads have been updated on Github.

    If you were having issues with the "Even faster face unlock" option, please try the new release and let me know if it's still not working.
    9
    Sorry for the lack of updates, I've been super busy lately. I'm currently trying to fix this on Android 13 but I don't have an Android 13 phone unfortunately and getting a rooted emulator up is very painful. Can someone who is experiencing problems send me a log?

    Here's how to do it: Go to LSposed, go to the log section and hit the save button in the top right. Then attach the log in your post.
    6
    This is amazing. Thank you Dev!
    I work in construction and not having face unlock has been really tiresome - gloves, dirty/rough fingertips etc - This will make everyday use so much better.