phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.38k stars 655 forks source link

Blu Bold-N1 - Tips for in-screen fingerprint sensor needed #1083

Open Discombobulated88 opened 4 years ago

Discombobulated88 commented 4 years ago

Hello, I'm running v209 Vanilla with stock gapps on my Bold-N1 and it's running great except for the fingerprint.

The bold-n1 uses a goodix in-screen fingerprint sensor and I was hoping you could provide some tips on reverse engineering it or just some general tips on how I might get it working.

Currently when attempting fingerprint enrollment the application believes it is on the back of the phone.

Thank you!

Ps. The bold-n1 is a MediaTek p70 based device.

phhusson commented 4 years ago

Try setting persist.vendor.sys.fp.fod.location.X_Y

persist.vendor.sys.fp.fod.size.width_height

Separator is ,

Le lun. 27 janv. 2020 à 12:43, Discombobulated88 notifications@github.com a écrit :

Hello, I'm running v209 Vanilla with stock gapps on my Bold-N1 and it's running great except for the fingerprint.

The bold-n1 uses a goodix in-screen fingerprint sensor and I was hoping you could provide some tips on reverse engineering it or just some general tips on how I might get it working.

Currently when attempting fingerprint enrollment the application believes it is on the back of the phone.

Thank you!

Ps. The bold-n1 is a MediaTek p70 based device.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1083?email_source=notifications&email_token=AAAA4OWYQVEEH5CEXSEJLF3Q73CGVA5CNFSM4KL73FJKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4II4SQNA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OSB67Z3ZK7TIVCJGOTQ73CGVANCNFSM4KL73FJA .

Discombobulated88 commented 4 years ago

Hi Phhusson, Thanks for the tip, unfortunately it didn't seem to have any effect.

I tried adding those properties to my vendor build.prop as well as the system build.prob however there was no change in the way the fingerprint enrollment reacted. It still assumes the sensor is on the back of the device.

I used the following values as a test because I didn't have any stock reference that I could find: persist.vendor.sys.fp.fod.location.X_Y:455,1920 persist.vendor.sys.fp.fod.size.width_height:173,173 There is a goodix .APK in my stock priv-app, is that APK required for anything?

Any other suggestions you have are appreciated.

phhusson commented 4 years ago

So, persist.vendor can't be read, so you can do this instead since v213: persist.sys.fp.fod.location.X_Y:455,1920 persist.sys.fp.fod.size.width_height:173,173

but then, cf https://github.com/phhusson/treble_experimentations/issues/1183, there are more things to do.

I have reversed the HAL itself, though I haven't found how to use it yet.

You should try to reverse the goodixfingerprintmanager apk, and look for the calls to sendCommand (the only calls existing in goodix hal)