[fprint] Libfprint for Xiaomi

Igor Filatov ia.filatov at gmail.com
Mon Jan 8 18:24:38 UTC 2018


You'll have to start by finding out how the device communicates with
the host. Probably the only feasible way to do it is capturing the
traffic under the original Windows driver. Doesn't matter if it's a
normal install or a VM. See
https://wiki.wireshark.org/CaptureSetup/USB. You'll need to find out
the commands the driver sends when you connect the device and during
the imaging phase and write a driver that would do the same. Easy,
right? :)

There's already a driver in libfprint for another Elan device
(https://cgit.freedesktop.org/libfprint/libfprint/tree/libfprint/drivers/elan.c)
and it's quite possible that your device needs similar commands. You
can use it as a reference. See elan.h for the commands and compare
them to what you see in your device traces. You can quickly hack up a
prototype in Python with pyusb
(https://github.com/pyusb/pyusb/blob/master/docs/tutorial.rst#lets-get-it-started)
or just use it to send commands and observe responses. The goal at
this point is to find out how to get an image from your scanner. Once
you can do it you're half way through. If your reader is similar to
the supported one, you could be 70% through.

Things might get complicated of course but much can be said until more
is known about your reader.

2018-01-08 19:17 GMT+02:00 TeEmZe <timo at teemze.de>:
> Hello,
>
> I'm willing to try it, but I don't know much C. I am however familiar with programming in general (mainly Java and C#) and would be willing to learn the necessary part of C to accomplish this.
> I do however not have unlimited access to the laptop with the reader, which could increase the difficulty.
> I also have absolutely no idea at where to start, as I never did anything like this before. Some help would be very much appreciated here.
>
> Cheers
>
> Timo
>
> -----Original Message-----
> From: Igor Filatov [mailto:ia.filatov at gmail.com]
> Sent: Monday, 8 January 2018 18:02
> To: TeEmZe <timo at teemze.de>
> Cc: fprint at lists.freedesktop.org
> Subject: Re: [fprint] Libfprint for Xiaomi
>
> Hi Timo,
>
> Unfortunately, libfprint doesn't support your reader. Elan devices that I've seen people mention so far seem to have quite simple protocols so it should be relatively easy to write one yourself if you know some C (a bit harder if you don't). If you're willing to try I'm sure people on this list will support you but I doubt that someone will have the resources to write one on request.
>
> 2018-01-08 18:19 GMT+02:00 TeEmZe <timo at teemze.de>:
>> Hello developers,
>>
>>
>>
>> I have a question regarding the libfprint library. I have a Xiaomi
>> notebook with a fingerprint reader from Elan Microelectronics Corp
>> (device 04f3:0c1a) running on Ubuntu. I already tried multiple
>> packages for using it’s fingerprint device, but non detected it.
>>
>> Is it possible to use the libfprint library for this device? And if
>> so, how do I use it?
>>
>> I’d be very thankful for a hint into the right direction, as I’m
>> struggling with this problem for quite some while now.
>>
>> I’d also be ready to compile and test the driver on the laptop or help
>> you otherwise as much as I can.
>>
>>
>>
>> Best regards
>>
>>
>>
>> Timo
>>
>>
>>
>>
>> _______________________________________________
>> fprint mailing list
>> fprint at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/fprint
>>
>
>
>
> --
> Igor Filatov
> ia.filatov at gmail.com
>



-- 
Igor Filatov
ia.filatov at gmail.com


More information about the fprint mailing list