Elan-Fingerprint-0c4c-PoC icon indicating copy to clipboard operation
Elan-Fingerprint-0c4c-PoC copied to clipboard

How to setup udev properly to try out this PoC

Open Opposite34 opened this issue 4 months ago • 0 comments

I want to try get a PoC working for 04f3:0c80. For now, I am trying to do it the naive way by just adding said device id to the lua and python files in this repo, as I'm hoping that the protocol for said fingerprint sensor is the same with that of "elanmoc2". However, I am struggling to get LIBUSB access working properly:

python3.10/site-packages/usb1/__init__.py", line 119, in raiseUSBError
    raise __STATUS_TO_EXCEPTION_DICT.get(value, __USBError)(value)
usb1.USBErrorAccess: LIBUSB_ERROR_ACCESS [-3]

I have no idea how to do udev rules, so I copied one from a source I found (but it was for printers if I recall correctly) to be as such:

❯ cat 60-elan-fingerprint.rules

ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="04f3", ATTR{idProduct}=="0c80", TAG+="uaccess"

This works for doing ./elanfp.py info. However, when I try to do something like ./elanfp.py enroll -u 0 a similar LIBUSB error come up (maybe I only have read and not write access with the above udev)? Moreover, the fingerprint scanner got so hot so I have to disable it, so I reckon I did something wrong with this udev. If you have any idea how to give properly device access I'd be appreciated, as I really want to test out if this is working.

Opposite34 avatar Oct 04 '24 04:10 Opposite34