hmaarrfk / Validity91

Reverse engineering the Validity 138a:0091 fingerprint sensor (Dell XPS 15/13 2016-2017 9X50 and 9X60)
BSD 3-Clause "New" or "Revised" License
236 stars 16 forks source link

Any support for Dell XPS 9570 ? #10

Closed sahlouls closed 6 years ago

sahlouls commented 6 years ago

Hi,

I don't know if it is the right place to ask this question. Any support for Dell XPS 9570 fingerprint reader ?

Regards

hmaarrfk commented 6 years ago

not sure, it is probably a different sensor TBH

See https://github.com/hmaarrfk/Validity91/issues/5 for a similar discussion

sahlouls commented 6 years ago

~ -> lsusb Bus 002 Device 002: ID 13b1:0041 Linksys Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 27c6:5395 Bus 001 Device 003: ID 0cf3:e300 Atheros Communications, Inc. Bus 001 Device 005: ID 0c45:671d Microdia Bus 001 Device 002: ID 25a7:fa23 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Dell XPS 9570 has another updated godfix reader: 27c6:5395

How to learn to reverse engineer this thing ?

hmaarrfk commented 6 years ago

you have to sniff packets from the USB. Wireshark is your friend.

hmaarrfk commented 6 years ago

sahlouls, thank you for reaching out, but reverse engineering the sensor on the 9570 seems to be out of scope for this project.

May I close this issue?

berglh commented 6 years ago

@hmaarrfk apart from sniffing the USB protocol on wireshark (it would be possible for me to do this), what else is involved with making this work. Would be great to add support, but shouldn't this be more of a linux driver support issue than for Validity 91 specifically; excuse my ignorance.

I am using a 9570 also FWIW and thinking about the usefulness of the fingerprint scanner.

hmaarrfk commented 6 years ago

it depends what is returned.

Does it return a match/no match

or a whole image?

This one returns a tiny image. Not good enough for the libfprint on linux..

xerpi commented 6 years ago

Hi, I'm a C developer with some experience with writing Linux drivers, reverse engineering and Wireshark. I also own a Dell XPS 9570 and I'd like to get the fingerprint sensor working. Maybe we could create a separate Gitter or Discord room specifically for the 27c6:5395 Goodix Fingerprint sensor to discuss about it.

hmaarrfk commented 6 years ago

@xerpi that is a good idea. 9570 is definitely out of scope for this project

leoheck commented 6 years ago

@xerpi you have a good knowledge to start this. What if you create a new repo on github for that?

leoheck commented 6 years ago

I also found this, https://github.com/IDerr/Goodix92/issues But it is empty.

xerpi commented 6 years ago

@leoheck Unfortunately I had to pause the reverse engineering because I've started to get busy with the University. I have a quite nice IDA database (.idb) of the Windows driver DLL and I wouldn't mind sharing it.

leoheck commented 6 years ago

Oh, ok.

Your IDA database can be put on a google drive or similar? Why not share online and add an issue here with the url https://github.com/IDerr/Goodix92/issues Maybe the guy can use it.

I just finished my windows VM to test the reverse engineering process described here by @hmaarrfk

Everything looks good the fingerprint sensor was recognized by the windows but the setup is not working for some reason. I am currently stuck in this screen and notthing happens.

image

IDerr commented 6 years ago

Hi everyone @leoheck : It will be stuck at this part, because your VM can't emulate intel SGX :( You have to create a VM with KVM patched for sgx : https://github.com/intel/kvm-sgx

I think that the best way to create the driver is to reverse engineer the windows driver :) We can create a gitter or something to keep in touch if you want

IDerr commented 6 years ago

I have opened a gitter chat, you can find the link here : https://github.com/IDerr/Goodix92

leoheck commented 6 years ago

Hi @IDerr thanks for pointing me this Intel SGX patch. I will give it a try. I couldn't find your URL to the gitter chat. Where it should be? On your Readme.md file?

IDerr commented 6 years ago

Yup.

I think you can close this issue @hmaarrfk :D Thanks for the work btw

hmaarrfk commented 6 years ago

Thanks, I liked to it on the front page. Enjoy the traffic!

IDerr commented 6 years ago

Hello @xerpi is it possible to have your ida database for the driver ?

xerpi commented 6 years ago

@IDerr Sure, send me a mail to: xerpi.g.12@gmail.com and I'll send it back.