[11+] UniversalAuth: Face Unlock for all ROMs

Search This thread

Gabriel C

New member
Jun 2, 2023
2
0
The app doesn't download and doesn't even import the APK (I've tried several versions) help me please
Screenshot_20230602-171257.png
Screenshot_20230602-171257.png
Screenshot_20230602-171522.png
 

the6thfirmament

New member
Dec 13, 2021
1
1
Thank you, it works for my UMIDIGI S5 Pro with PixelExperience A13 unofficial GSI, LSPosed Zygisk.

In my testing, it won't work when;

"Even faster face unlock" is ON
(its auth process doesn't start) or

"Auto dismiss lockscreen" is ON
(the process starts and says Welcome, but not unlocked).

With both above OFF, it works smoothly.

And it seems to work best on PixelExperience or PixelOS. On other ROMs, a swipe is required to dismiss lockscreen after unlock.

The app is helpfull for some phones to survive "under-display fingerprint unlock loss" on GSIs. Thanks again.
 
  • Like
Reactions: Captain_cookie_200

KwstPap

Senior Member
Dec 4, 2013
215
106
PATRA
Pixel 6 Pro android 14 beta 3 doesnt unlock. inside the app seems the test working, but when lock your phone doesnt face unlock respond
 
  • Like
Reactions: zenaufa
Dec 15, 2022
37
18
Pixel 6 Pro android 14 beta 3 doesnt unlock. inside the app seems the test working, but when lock your phone doesnt face unlock respond
somewhere down this thread there someone suggesting using macrodroid in addition that did the trick on mine. (the full steps) it seems the unlock routine has changed and with macrodroid you can fix the routine again. (i known that works on andriod 13 google pixel 6 pro as that's what i'm using, but your reported issues are the same)
 
  • Like
Reactions: jcp2

hide12

Member
Feb 4, 2016
26
1

hide12

Member
Feb 4, 2016
26
1
For me. Working.
You try to change with the unlock pattern
 

Attachments

  • 1616257403363931792.mp4
    6.5 MB · Views: 0
Last edited:

Lanchon

Senior Member
Jun 19, 2011
2,742
4,478
hi @psychoela,

ive been monitoring this thread for a long time, waiting for news. are there plans to support "auto dismiss lockscreen" on android 13?

thanks!
 

fritzcola

Senior Member
Sep 27, 2014
803
645
Home of FCB
Google Pixel 6 Pro
I installed everything as I should and the app does recognise my face but whenever I want to unlock my phone, the face gets recognise my face but additionaly requires the pattern. I am using a Pixel 6 Pro. What could be the problem here
 

MohabMohie

New member
Nov 20, 2020
1
1
After reading the entire 31 pages, here's what I did to get this to work on my Pixel 6 - Stock (no root) - Android 14 Beta 5. My solution is based on several comments here and should be OS / Device agnostic and work on any Android version on any phone.

1. After following the main tutorial you should reach the following state "everything is installed, face unlock works inside the app, on your lock screen it shows you the welcome message but doesn't unlock the phone."

2. Install Macrodroid, there are several scripts mentioned and shared in previous comments, I tried all of them and none worked, so I made a new one reusing bits and pieces of all the ones I tried.

I attached a screenshot and will describe the logic.
- first your trigger should be to wait for this intent ```ax.nd.universalauth.unlock-device``` this is the one fired by universal auth when face unlock authentication succeeds.
- then you add "AND" constraints to ensure that this script doesn't run when your phone is already unlocked, ringing, or in a call. (I have disabled screen light up on notifications and pick up to view screen features, if you have them enabled you may need more constraints)
- then you need to use UI Interactions to do the gesture of scrolling up (to trigger your PIN unlock)
- and then do 6 or more UI Interactions to click each number in your PIN.
- lastly I have the auto-confirm unlock feature enabled, it's in the latest Android 14 beta, if you don't have that feature add another UI Interaction to click the submit button.

The above steps will apply this logic:
- If your phone is locked & not in a call & not ringing, and your face is detected correctly, then Macrodroid will swipe to unlock your device using PIN (bypassing fingerprint) insert your PIN correctly, and your device will unlock successfully.

Notes:
- I have a 6-digit PIN for increased security.
- I have a work profile installed on my phone.
- I have multiple fingerprints registered.
- I have Smart Unlock (now rebranded to Extended unlock) working to keep the phone unlocked at home and while connected to my car's bluetooth.
- I'm running Android 14 beta on my daily driver Pixel 6 stock phone with no root.
- I used Shizuku and LSPatch to install UniversalAuth without rooting my device.
- I'm also using Shizuku and Pixel IMS to enable VolTE and 5G.
- I live in Egypt, where the Pixel 6 is not officially sold or supported by my Telecom service provider.


Hope that helps someone to get face unlock to work and saves them the headache of reinventing this method.
 

Attachments

  • Screenshot_20230824-084328.png
    Screenshot_20230824-084328.png
    282.4 KB · Views: 58
  • 1000033652.png
    1000033652.png
    73.5 KB · Views: 60
  • 1000033653.png
    1000033653.png
    172.8 KB · Views: 60
Last edited:
  • Like
Reactions: felek73

felek73

Senior Member
Jun 28, 2009
868
186
Warsaw
OnePlus 7 Pro
After reading the entire 31 pages, here's what I did to get this to work on my Pixel 6 - Stock (no root) - Android 14 Beta 5. My solution is based on several comments here and should be OS / Device agnostic and work on any Android version on any phone.

1. After following the main tutorial you should reach the following state "everything is installed, face unlock works inside the app, on your lock screen it shows you the welcome message but doesn't unlock the phone."

2. Install Macrodroid, there are several scripts mentioned and shared in previous comments, I tried all of them and none worked, so I made a new one reusing bits and pieces of all the ones I tried.

I attached a screenshot and will describe the logic.
- first your trigger should be to wait for this intent ```ax.nd.universalauth.unlock-device``` this is the one fired by universal auth when face unlock authentication succeeds.
- then you add "AND" constraints to ensure that this script doesn't run when your phone is already unlocked, ringing, or in a call. (I have disabled screen light up on notifications and pick up to view screen features, if you have them enabled you may need more constraints)
- then you need to use UI Interactions to do the gesture of scrolling up (to trigger your PIN unlock)
- and then do 6 or more UI Interactions to click each number in your PIN.
- lastly I have the auto-confirm unlock feature enabled, it's in the latest Android 14 beta, if you don't have that feature add another UI Interaction to click the submit button.

The above steps will apply this logic:
- If your phone is locked & not in a call & not ringing, and your face is detected correctly, then Macrodroid will swipe to unlock your device using PIN (bypassing fingerprint) insert your PIN correctly, and your device will unlock successfully.

Notes:
- I have a 6-digit PIN for increased security.
- I have a work profile installed on my phone.
- I have multiple fingerprints registered.
- I have Smart Unlock (now rebranded to Extended unlock) working to keep the phone unlocked at home and while connected to my car's bluetooth.
- I'm running Android 14 beta on my daily driver Pixel 6 stock phone with no root.
- I used Shizuku and LSPatch to install UniversalAuth without rooting my device.
- I'm also using Shizuku and Pixel IMS to enable VolTE and 5G.
- I live in Egypt, where the Pixel 6 is not officially sold or supported by my Telecom service provider.


Hope that helps someone to get face unlock to work and saves them the headache of reinventing this method.
Thank's for hint .. I use your procedure but exchange Macrodriod to Tasker ... works as advertised :)
 
  • Like
Reactions: MohabMohie

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    After reading the entire 31 pages, here's what I did to get this to work on my Pixel 6 - Stock (no root) - Android 14 Beta 5. My solution is based on several comments here and should be OS / Device agnostic and work on any Android version on any phone.

    1. After following the main tutorial you should reach the following state "everything is installed, face unlock works inside the app, on your lock screen it shows you the welcome message but doesn't unlock the phone."

    2. Install Macrodroid, there are several scripts mentioned and shared in previous comments, I tried all of them and none worked, so I made a new one reusing bits and pieces of all the ones I tried.

    I attached a screenshot and will describe the logic.
    - first your trigger should be to wait for this intent ```ax.nd.universalauth.unlock-device``` this is the one fired by universal auth when face unlock authentication succeeds.
    - then you add "AND" constraints to ensure that this script doesn't run when your phone is already unlocked, ringing, or in a call. (I have disabled screen light up on notifications and pick up to view screen features, if you have them enabled you may need more constraints)
    - then you need to use UI Interactions to do the gesture of scrolling up (to trigger your PIN unlock)
    - and then do 6 or more UI Interactions to click each number in your PIN.
    - lastly I have the auto-confirm unlock feature enabled, it's in the latest Android 14 beta, if you don't have that feature add another UI Interaction to click the submit button.

    The above steps will apply this logic:
    - If your phone is locked & not in a call & not ringing, and your face is detected correctly, then Macrodroid will swipe to unlock your device using PIN (bypassing fingerprint) insert your PIN correctly, and your device will unlock successfully.

    Notes:
    - I have a 6-digit PIN for increased security.
    - I have a work profile installed on my phone.
    - I have multiple fingerprints registered.
    - I have Smart Unlock (now rebranded to Extended unlock) working to keep the phone unlocked at home and while connected to my car's bluetooth.
    - I'm running Android 14 beta on my daily driver Pixel 6 stock phone with no root.
    - I used Shizuku and LSPatch to install UniversalAuth without rooting my device.
    - I'm also using Shizuku and Pixel IMS to enable VolTE and 5G.
    - I live in Egypt, where the Pixel 6 is not officially sold or supported by my Telecom service provider.


    Hope that helps someone to get face unlock to work and saves them the headache of reinventing this method.
    Thank's for hint .. I use your procedure but exchange Macrodriod to Tasker ... works as advertised :)
    1
    mind sharing that tasker file please?
    here you go , just get rid of this scene actions, I use them to unlock it in the pocket so had to block big part of the screen
    1
    thank you very much mate
  • 51

    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
    Version 1.3:

    I have found out that the library files are actually available inside the "Moto Face Unlock" app: https://play.google.com/store/apps/details?id=com.motorola.faceunlock that Motorola is distributing publicly on Google Play.

    Therefore, I have updated the app and it will now automatically download the "Moto Face Unlock" app and pull the libraries out of it.

    No need to hunt around for libraries anymore.

    There are no other changes in this version so no need to upgrade if you already have the libraries setup.