Commit Graph

2007 Commits

Author SHA1 Message Date
Benjamin Berg 038c7108a6 goodixmoc: Further template parsing fixes
In commit 5c28654d9 ("goodixmoc: Fix print template parsing") the length
check for the verify and duplicate check responses by requiring two
extra bytes at the end of the message.

There were also issues in other places where the length was not checked
correctly, including a scenario that could cause a read beyond the end
of the buffer.

Related: #444
2022-02-03 14:49:44 +01:00
Aris Lin eb1013cdb6 synaptics: Remove PID 0xC9 2022-01-28 19:25:24 +08:00
mincrmatt12 5beac0ded7 elanspi: Try to avoid cancellation problems 2021-12-23 05:35:38 +00:00
mincrmatt12 7565562903 elanspi: Adjust register tables (fixes #438)
New values taken from a newer version of the official driver.
2021-12-22 00:20:57 -05:00
Dmitrii Shcherbakov 999bca076c Allow FpPrint data to be extended on enrollment.
* Allow FPI_PRINT_NBIS to be extended rather than overridden if a user
  supplies an existing FpPrint template with data;
* Prints will only be extended if a device has the required feature.
  For image-based devices this feature is added by default since they
  typically do not have storage (this can be overridden at the child
  class level).

Extending an existing FpPrint requires passing a template print with
existing data during the enrollment process. This is done because the
caller is responsible for maintaining the fingerprint database and doing
the necessary deserialization operations if needed. The existing
example program is updated to show how to do that.
2021-12-16 12:53:41 +01:00
Benjamin Berg e198b04222 elanspi: Silence some SSMs that may log excessively otherwise 2021-12-02 13:54:59 +01:00
Benjamin Berg 3981c42d3e ssm: Add API to silence most state change debug messages
Otherwise tightly looping SSMs (primarily SPI transfers), will flood the
logs in inappropriate ways.
2021-12-02 13:54:59 +01:00
Benjamin Berg 31afd3ba5c elanspi: Move debug print so that it contains all information
Two of the printed variables were only calculated after the message was
printed, making the logged information less useful than it could be.
2021-12-02 13:53:54 +01:00
Benjamin Berg 05fd2c58cb context: Ensure mainloop is idle before enumeration completes
This ensures that we have processed all hotplug events before
considering enumeration to be complete. This is important due to USB
persist being turned off. At resume time, devices will disappear and
immediately re-appear. In this situatoin, enumerate could first see the
old state with a removed device resulting in it to not be discovered.

As a hotplug event is semingly emitted by the kernel immediately, we
can simply make sure to process this hotplug event before returning
from enumerate.

Closes: fprintd#119
2021-12-01 15:29:18 +00:00
Matthew Mirvish a033154b2e doc: Fix broken documentation for FpiDeviceUdevSubtypeFlags enum
Added description and fixed incorrect name in comment, so now gtkdoc
actually shows useful information.
2021-11-15 17:10:44 -05:00
Marco Trevisan (Treviño) 8772056484 Upload to unstable 2021-11-03 17:39:27 +01:00
Marco Trevisan (Treviño) 683b882f97 Update changelog 2021-11-03 17:39:22 +01:00
Marco Trevisan (Treviño) e1dd1de320 debian/patches: Drop, all applied upstream 2021-11-03 17:37:19 +01:00
Marco Trevisan (Treviño) d4f1365d81 debian/watch: Use @PACKAGE@ 2021-11-03 17:31:25 +01:00
Marco Trevisan (Treviño) e7b6cfec6d debian/update-udev-triggers: Ignore errors on udevadm trigger
These are not fatal for package installation and rebuild postinst script
2021-11-03 17:31:21 +01:00
Marco Trevisan (Treviño) 7461f18466 debian/libfprint-2-*.install: Use more restrictive rules to reduce ubuntu delta 2021-11-03 17:30:25 +01:00
Marco Trevisan (Treviño) 8217d33581 debian/libfprint-2-2.postinst: Devices triggers updated 2021-11-03 17:28:45 +01:00
Marco Trevisan (Treviño) dae6dfe73a New upstream release 2021-11-03 17:28:44 +01:00
Marco Trevisan (Treviño) 06843005ac Update upstream source from tag 'upstream/1.94.2'
Update to upstream version '1.94.2'
with Debian dir ccbb696b9b
2021-11-03 17:28:43 +01:00
Marco Trevisan (Treviño) 84e920118a New upstream version 1.94.2 2021-11-03 17:28:34 +01:00
Benjamin Berg 5e4bb26801 Release 1.94.2 v1.94.2 2021-11-02 16:28:13 +01:00
Benjamin Berg 2cfff27729 udev-hwdb: Update unsupported device list 2021-11-02 16:28:13 +01:00
Marco Trevisan (Treviño) 378fae0ea2 doc: Add missing Drivers API SSM functions 2021-10-28 16:56:11 +02:00
Marco Trevisan (Treviño) 01b0f7aba0 doc: Include missing types (SPI) and functions to the Drivers API 2021-10-28 16:39:35 +02:00
Marco Trevisan (Treviño) 18ce8a4a60 Upload to unstable 2021-10-27 15:17:09 +02:00
Benjamin Berg 17ff49f85c goodixmoc: Fix template struct for required length calculation
The length is only a single byte in the transfer. However, the struct
had a uint32_t in that place, breaking the sizeof() calculation and
seemingly creating issues for certain lengths of user id strings (which
depend on the username).

Fix this by changing the type to uint8_t. Also add the initial 0x43
prefix byte and a byte of apparent padding that the struct contains.
Leave the two reserved bytes at the end, as they seem to actually have a
meaning (i.e. they are seemingly send in listings).

This effectively makes the struct one byte smaller, bringing it down to
127 bytes from 128 bytes.

Closes: #428, #404
2021-10-27 06:54:47 +00:00
Marco Trevisan (Treviño) a2f0a6558a Update changelog 2021-10-27 02:14:18 +02:00
Marco Trevisan (Treviño) a22ab8132b debian/libfprint-2-2.symbols: Add new symbols 2021-10-27 02:10:51 +02:00
Marco Trevisan (Treviño) 263518ceb3 debian/patches: Fix test device descriptors to get tests passing 2021-10-27 02:06:41 +02:00
Marco Trevisan (Treviño) 9ce599cb4b debian: Build-depend on gudev-1, and set back rules dir
This is needed for SPI devices
2021-10-27 02:06:41 +02:00
Marco Trevisan (Treviño) de46e1e4b8 tests: Add missing trailing new lines on devices attributes
This as per the same reasons of commit 63bfaf4, and without trailing new
lines such attributes aren't picked by umockdev in ubuntu and debian.
2021-10-27 02:01:50 +02:00
Marco Trevisan (Treviño) 9a699f56a1 debian/libfprint-2-2.postinst: Update to match new PIDs 2021-10-27 01:00:40 +02:00
Marco Trevisan (Treviño) dce792b5c4 debian/patches: Add support for new elan and goodix PIDs 2021-10-27 00:59:42 +02:00
Marco Trevisan (Treviño) 8ad656ceea debian/patches: Fix template struct in goodix drivers
LP: #1945296
2021-10-27 00:54:41 +02:00
Marco Trevisan (Treviño) cd3b0193f7 debian/patches: Remove all patches, they've been applied upstream 2021-10-27 00:50:08 +02:00
Marco Trevisan (Treviño) 7460ed1a3d debian/libfprint-2-2.postinst: Devices triggers updated 2021-10-27 00:36:40 +02:00
Marco Trevisan (Treviño) c2ba616309 New upstream release 2021-10-27 00:36:38 +02:00
Marco Trevisan (Treviño) c38501faa0 Update upstream source from tag 'upstream/1.94.1'
Update to upstream version '1.94.1'
with Debian dir e02e11ad9d
2021-10-27 00:36:38 +02:00
Marco Trevisan (Treviño) f3d55af43a New upstream version 1.94.1 2021-10-27 00:36:27 +02:00
Marco Trevisan (Treviño) 865f202473 debian/update-udev-triggers.sh: Fix hwdb path
It was set to a testing location for development purposes, and it got
wrongly committed.
2021-10-27 00:34:20 +02:00
boger 5e934a4fa0 goodixmoc: add PID 63CC
63CC: Dell Latitude series fingerprint sensor
2021-10-20 20:11:05 +08:00
hermanlin 5d0a3eab5c elanmoc: add PID 0x0c7d
Signed-off-by: hermanlin <herman.lin@emc.com.tw>
2021-10-12 14:02:48 +08:00
Benjamin Berg 7efb860381 Release 1.94.1 v1.94.1 2021-09-24 15:01:18 +02:00
Benjamin Berg f9492d5345 NEWS: Fix 1.94.0 release date 2021-09-24 14:25:01 +02:00
Benjamin Berg 46669e9f53 goodixmoc: Do not run identify step during enroll
While useful, there are advantages for this to be done by the
surrounding code (i.e. fprintd). As such, remove the identify stage from
the goodix driver and rely on fprintd doing it for us.

One can probably argue that neither solution is perfect. Ideally, we
would probably return the information required to delete the old print
to the upper stack and let the driver/device handle the duplicate
checking.

However, for now this works well. We may need to reconsider this if we
get devices that do the duplicate checking transparently and just throw
an enroll error.

NOTE: The driver did not report any progress for the identify step. As
such, the number of enroll steps reported by the device remain the same.

Closes: #415
2021-09-24 14:24:47 +02:00
Benjamin Berg a949594050 goodixmoc: Returned device print matched by verify/identify
This is needed for the fprintd duplicate checking code. The information
is needed to delete stale prints automatically from the device.

Related: #415
2021-09-21 19:13:02 +02:00
Benjamin Berg 20e8355c01 tests: Run custom.py from test creation helper when available
This allows creating tests both for image and non-image devices using
the same script.
2021-09-21 19:13:02 +02:00
boger f579a77bfd goodixmoc: add PID 63BC
63BC: Dell XPS series fingerprint sensor
2021-09-17 19:28:51 +08:00
Benjamin Berg 03deb3011b udev-hwdb: Update unsupported device list 2021-09-17 12:54:02 +02:00
Benjamin Berg c7650b6ec9 udev-hwdb: Set ID_PERSIST=0 in hwdb
See https://github.com/systemd/systemd/pull/20756
2021-09-17 12:46:29 +02:00