[PORT]Face Unlock for Mate 9 (OREO EMUI8 ONLY)

ante0

Senior Member
Dec 28, 2009
3,206
1,576
243
Stockholm
Face Unlock for Mate 9 Oreo
(Honor 8 Pro EMUI8 is confirmed too)

Download and flash in TWRP: https://mega.nz/#!FfxihZqD!vjF2rz0elfiay_ZYeQWwLfVG9lNI7FYAyi2vaohaiEs

Magisk module: https://mega.nz/#!1Xp0DbaC!fJvieuQWjbAauylqCvngHoM3wLPChTTCgPdO0yy0UC8
If anyone good at making modules looks at it, please find a proper way of doing it. Right now I only symlink files to /product and /odm. The symlinks in /odm stays after uninstall. Best would be to actually auto mount (like /system and /vendor is) it but I think magisk needs to be edited for that (?)

Also, check if you have /odm available in your TWRP version, else install this one:
TWRP 3.2.1: https://mega.nz/#!AP5DRA4Q!i02i8cCi_UWoF2XZl5gjLb5ESpeilpR_OD0MHSh6Ezg

To "enrol" (lol) face after installing, go to Settings -> Security & Privacy -> Face unlock

Face unlock is actually available already in Mate 9 from the start, it just needs to be enabled.
And a few files are missing which I took from Honor V10 firmware.
If you want to revert, just check the zip for what files to remove and remove
ro.config.face_detect=1
ro.config.face_recognition=true
from /product/etc/prop/local.prop

Thanks to @LastStandingDroid for testing and pointing out where prop was located.

Update 2: as a "side-effect", face recognition enables the Smart Rotate option in Settings -> Display (at the bottom). Thanks to @LastStandingDroid for pointing this out

Update: I've tested it on C432B363 now, and it doesn't work.
It's supposed to say "Settings -> Security & Privacy -> Face unlock" . But in this firmware it says "Face recognition".
I'm not sure what changed, maybe Settings.apk.
It definetly works on B365 but safetynet is not passing on this one yet.
 
Last edited:

ystokar

Senior Member
Aug 2, 2012
176
11
38
how could i have flashed it wrong?
could it be related to "/odm"? what is this?

---------- Post added at 09:29 AM ---------- Previous post was at 09:26 AM ----------

i'm using twrp 3.2.1.0 (fromthefuture)
 
L

LastStandingDroid

Guest
how could i have flashed it wrong?
could it be related to "/odm"? what is this?

---------- Post added at 09:29 AM ---------- Previous post was at 09:26 AM ----------

i'm using twrp 3.2.1.0 (fromthefuture)
If you can't backup files in odm in in twrp that means you didn't succeed. It looks like you don't as the setting is enabled.

Please use the one in op instead :)

Odm partition handles some camera and audio files. Much more isn't in there

Sent from my DUK-L09 using Tapatalk
 
Last edited:

Addymore

Senior Member
Aug 26, 2011
485
109
73
Kigali
@ante0 @LastStandingDroid....I don't know how this face unlock is supposed to work!!! I flashed ok, I can even add my face....but it is not unlocking my phone....always asking me to use FP....but the showing notification on locked screen is likely working.....!!!
 

ante0

Senior Member
Dec 28, 2009
3,206
1,576
243
Stockholm
@ante0 @LastStandingDroid....I don't know how this face unlock is supposed to work!!! I flashed ok, I can even add my face....but it is not unlocking my phone....always asking me to use FP....but the showing notification on locked screen is likely working.....!!!
When you're in Face unlock in settings, do you see "Direct unlock" option?
And if you don't, do you use Firedance data mod?
 

ante0

Senior Member
Dec 28, 2009
3,206
1,576
243
Stockholm
Updated OP with magisk module.

I will test B363 with Firedance mod today, another user reported it as not working and it may have to do with mod...
He could only see one option in Face unlock, "Direct unlock" and "swipe to unlock" was missing. But those strings are in Settings.apk in B363 s they're not missing.
 
L

LastStandingDroid

Guest
@ante0 @LastStandingDroid....I don't know how this face unlock is supposed to work!!! I flashed ok, I can even add my face....but it is not unlocking my phone....always asking me to use FP....but the showing notification on locked screen is likely working.....!!!
Remove fingerprint unlock I don't think you can use both.

Also if you have locked screen press power and just look at your screen it shall unlock fast

Sent from my DUK-L09 using Tapatalk
 

Addymore

Senior Member
Aug 26, 2011
485
109
73
Kigali
When you're in Face unlock in settings, do you see "Direct unlock" option?
And if you don't, do you use Firedance data mod?
Direct unlock in not there....!!! I am on L29C185B371......!!!! I dont use Firedance mod neither.....

---------- Post added at 03:30 PM ---------- Previous post was at 03:28 PM ----------

Remove fingerprint unlock I don't think you can use both.

Also if you have locked screen press power and just look at your screen it shall unlock fast

Sent from my DUK-L09 using Tapatalk
I tried removing FP too....!!! same issue....!!! I cannot use Face unlock.....if there is a way I can make some logs.....u can tell me so I do it.....
 
L

LastStandingDroid

Guest
Direct unlock in not there....!!! I am on L29C185B371......!!!! I dont use Firedance mod neither.....

---------- Post added at 03:30 PM ---------- Previous post was at 03:28 PM ----------



I tried removing FP too....!!! same issue....!!! I cannot use Face unlock.....if there is a way I can make some logs.....u can tell me so I do it.....
Try setup it again. For me it works. Sometimes (rare cases) it might not show up

Sent from my DUK-L09 using Tapatalk
 

Addymore

Senior Member
Aug 26, 2011
485
109
73
Kigali
Try setup it again. For me it works. Sometimes (rare cases) it might not show up
U mean flashing it again....? In twrp?

---------- Post added at 03:05 PM ---------- Previous post was at 03:00 PM ----------

Try setup it again. For me it works. Sometimes (rare cases) it might not show up
U mean flashing it again...! I tried removing the face data.... It didn't work...
 
L

LastStandingDroid

Guest
U mean flashing it again....? In twrp?

---------- Post added at 03:05 PM ---------- Previous post was at 03:00 PM ----------



U mean flashing it again...! I tried removing the face data.... It didn't work...
I was reefering to face data. Let's try

Remove all current password/fingerprint

Remove faceunlock

Enroll face again and setup a pattern or pin/password.

If it doesn't work there might be a data bug.

Side note: for thus who has issues installing this mod use magisk and the magisk module. It's easy as 123 ;) also won't need u to have a twrp with odm support
 

Addymore

Senior Member
Aug 26, 2011
485
109
73
Kigali
I was reefering to face data. Let's try

Remove all current password/fingerprint

Remove faceunlock

Enroll face again and setup a pattern or pin/password.

If it doesn't work there might be a data bug.

Side note: for thus who has issues installing this mod use magisk and the magisk module. It's easy as 123 ;) also won't need u to have a twrp with odm support
I didn't work....! Tried magisk to.... It didn't work neither! :crying: