Compare commits

...
Author SHA1 Message Date
Marco Trevisan (Treviño) dfc3d36816 Upload to noble 2026-06-08 12:11:37 +02:00
Dirk Su c3f580ec19 d/p: Add new Elan device 04f3:0ca8 (LP: #2147084) 2026-04-02 15:09:10 +08:00
Marco Trevisan (Treviño) 8487dd8e59 Upload to noble 2026-03-11 14:49:58 +01:00
Dirk SuandMarco Trevisan (Treviño) 90c384e102 d/p: Add new Goodix device 27c6:66a9 (LP: #2139061) 2026-03-11 14:44:18 +01:00
Bin LiandMarco Trevisan (Treviño) e36ae09461 Import Debian changes 1:1.94.7+tod1-0ubuntu5~24.04.5
libfprint (1:1.94.7+tod1-0ubuntu5~24.04.5) noble; urgency=medium
.
  * d/p: synaptics: add new PID 0x019F, 0x0109 and 0x010A. (LP: #2133704)
2026-03-11 14:27:04 +01:00
Atlas YuandMarco Trevisan (Treviño) c35b1a67c1 Import Debian changes 1:1.94.7+tod1-0ubuntu5~24.04.4
libfprint (1:1.94.7+tod1-0ubuntu5~24.04.4) noble; urgency=medium
.
  * d/p: Add new Synaptics device 06cb:019d (LP: #2114712)
2025-06-30 17:22:35 +02:00
Marco Trevisan (Treviño) a9dc992a82 Upload to noble 2025-03-10 16:54:46 +01:00
Marco Trevisan (Treviño) 652a443420 Update changelog 2025-03-10 16:54:17 +01:00
Dirk SuandMarco Trevisan (Treviño) 04c00175d5 d/p: only add 06cb:0107 and 06cb:0108 and drop the list fine tune 2025-03-10 16:44:25 +01:00
Dirk Su e9dd50b0b1 d/p: Add new Synaptics devices 06cb:0107 and 06cb:0108 (LP: #2097831) 2025-02-17 09:48:37 +08:00
Yao Wei (魏銘廷) fcbf71c711 debian/patches: Add new Elan device 04f3:0c9f (LP: #2089367) 2024-11-22 16:35:55 +08:00
Marco Trevisan (Treviño) 4ec45d7b67 Upload to noble 2024-06-14 04:50:33 +02:00
Marco Trevisan (Treviño) fea66b73fa Update changelog 2024-06-14 04:50:23 +02:00
Marco Trevisan (Treviño) e1731a75ec debian: Prepare for noble branching 2024-06-14 04:49:16 +02:00
Marco Trevisan (Treviño) 0fdb567797 d/p: Add new Broadcom device IDs to reduce the power consumption
LP: #2067785
2024-06-13 19:38:21 +02:00
Steve LangasekandMarco Trevisan (Treviño) 481727e0a1 Import Debian changes 1:1.94.7+tod1-0ubuntu4
libfprint (1:1.94.7+tod1-0ubuntu4) noble; urgency=medium
.
  * No-change rebuild for CVE-2024-3094
2024-06-13 19:37:32 +02:00
Steve LangasekandMarco Trevisan (Treviño) 388fc7403a Import Debian changes 1:1.94.7+tod1-0ubuntu3
libfprint (1:1.94.7+tod1-0ubuntu3) noble; urgency=medium
.
  * No-change rebuild against libglib2.0-0t64
.
libfprint (1:1.94.7+tod1-0ubuntu2) noble; urgency=medium
.
  * No-change rebuild against libglib2.0-0t64
2024-06-13 19:37:31 +02:00
Marco Trevisan (Treviño) 5b3f85168a Upload to noble 2024-02-20 09:27:26 +01:00
Marco Trevisan (Treviño) fc72ac6419 Update changelog 2024-02-20 09:26:00 +01:00
Marco Trevisan (Treviño) f407740db2 debian/upstream/metadata: Update for tod light-fork 2024-02-20 09:24:30 +01:00
Marco Trevisan (Treviño) 7f35c374ec Merge tag 'debian/1%1.94.7-2' into ubuntu
libfprint Debian release 1:1.94.7-2
2024-02-20 09:24:23 +01:00
Marco Trevisan (Treviño) b6df70ce0c debian/libfprint-2-2.postinst: Devices triggers updated 2024-02-20 09:12:18 +01:00
Marco Trevisan (Treviño) 4efdb738c5 New upstream release 2024-02-20 09:12:17 +01:00
Marco Trevisan (Treviño) 8060f4bce8 Update upstream source from tag 'upstream/1.94.7+tod1'
Update to upstream version '1.94.7+tod1'
with Debian dir 06d2027ceb
2024-02-20 09:12:17 +01:00
Marco Trevisan (Treviño) ef6d9ebfd6 New upstream version 1.94.7+tod1 2024-02-20 09:12:13 +01:00
Marco Trevisan (Treviño) 76a95ce45f build/tests: Skip a test if the test requires it during inspection
In case we don't have dependencies, we should skip the test, otherwise
we can just fail at test time
2024-02-20 08:58:28 +01:00
Marco Trevisan (Treviño) 90668816e3 build: Look for sh just once 2024-02-20 08:58:28 +01:00
Marco Trevisan (Treviño) bfb4272674 tests/tod-drivers: Test tod driver 1.94.1 not 1.94.0 as it was not released 2024-02-20 08:58:28 +01:00
Marco Trevisan (Treviño) 72922217fa tests/tod-drivers: Update binaries as per a test leak fix 2024-02-20 08:58:28 +01:00
Marco Trevisan (Treviño) 9e53d14fc4 Upload to unstable 2024-02-20 08:42:26 +01:00
Marco Trevisan (Treviño) 4427093248 Update changelog 2024-02-20 08:42:20 +01:00
Marco Trevisan (Treviño) c2b0b14c79 debian/control: Add gir depends and provides fields to dev package 2024-02-20 08:39:15 +01:00
Marco Trevisan (Treviño) 20ba90212b debian/control: Add build-dependency on gir1.2-{gobject,gio}-2.0-dev 2024-02-20 08:35:46 +01:00
Marco Trevisan (Treviño) 9e05793948 debian/patches: Cherry-pick patches to ignore tests missing dependencies
Closes: #1059027
2024-02-20 08:28:59 +01:00
Marco Trevisan (Treviño) b972866b25 tests/libfprint.supp: Ignore bash leaks 2024-02-20 07:47:12 +01:00
Marco Trevisan (Treviño) eb8ce585c6 tests: Add test files for tod 1.94.7 version 2024-02-20 07:25:35 +01:00
Marco Trevisan (Treviño) 11ad450af1 libfprint/tod/build: Require libgusb dependency on pkgconfig
We include the directories so we definitely need to depend on it at
compile time.
2024-02-20 07:19:51 +01:00
Marco Trevisan (Treviño) 619827ac7a tests: Use FP_DRIVERS_ALLOWLIST variable instead of old one 2024-02-20 07:02:25 +01:00
Marco Trevisan (Treviño) ecc33b5cc6 fpi-image: Add docstring for FPI_IMAGE_NONE 2024-02-20 07:00:07 +01:00
Marco Trevisan (Treviño) ef99359428 Merge tag 'v1.94.7' into tod
2024-02-20: v1.94.7 release

Highlights:
 * synaptics: fix enroll identify problem after user reset database.
 * synaptics: New PIDs 0x0173, 0x0106, 0x0124.
 * goodixmoc: New PID 0x6582.
 * build: Do not require bash to build, only posix sh.
 * fp-image: Simplify minutiae detection tasks.
 * GLib 2.68 is now required to build libfprint.

New drivers:
 * realtek (PID 0x5813).
 * focaltech_moc (PIDs 0x9E48, 0xD979, 0xA959).
 * egismoc (PIDs 0x0582, 0x05a1).

Git-EVTag-v0-SHA512: 17cc50269368e861ea751af2a3ff957329191ca66832033bb71995e8e9e56f86af955559b147217a19f218af5b1eec0fd2bce5dd2b4f4381be48ef3d6610003d
2024-02-20 06:59:53 +01:00
Marco Trevisan (Treviño) 034efaa849 Upload to unstable 2024-02-20 06:46:40 +01:00
Marco Trevisan (Treviño) 55036d3e5f Update changelog 2024-02-20 06:46:09 +01:00
Marco Trevisan (Treviño) 005af841f8 debian: use udev.pc to place udev rules and hwdb
Closes: #1058843
2024-02-20 06:39:21 +01:00
Marco Trevisan (Treviño) afd5ef4690 debian/patches: Drop, applied upstream 2024-02-20 06:34:26 +01:00
Marco Trevisan (Treviño) d5f19e380b debian/libfprint-2-2.postinst: Devices triggers updated 2024-02-20 06:30:10 +01:00
Marco Trevisan (Treviño) b9fefd1ed0 New upstream release 2024-02-20 06:30:08 +01:00
Marco Trevisan (Treviño) f1fdf3dd88 Update upstream source from tag 'upstream/1.94.7'
Update to upstream version '1.94.7'
with Debian dir 1c92bfb17d
2024-02-20 06:30:08 +01:00
Marco Trevisan (Treviño) 4c0d5aff6a New upstream version 1.94.7 2024-02-20 06:30:05 +01:00
Marco Trevisan (Treviño) bebe8565cd Release 1.94.7 2024-02-20 01:09:54 +01:00
Marco Trevisan (Treviño) 5501dc7b47 build: Stop using deprecated dep.get_pkgconfig_variable() method
Use generic get_variable() instead
2024-02-20 01:02:00 +01:00
Marco Trevisan (Treviño) 3e5ab6fdad egismoc: Convert value check values to big endian only when needed
Since the driver seem to require a big-endian value it's just better
to use architecture native endianness to compute the check value and
eventually just convert to big endian as the chip wants.
2024-02-19 23:38:40 +01:00
Marco Trevisan (Treviño) 5462db9901 egismoc: Convert the check value to little endian
In this way we can support the big-endian architectures too.
2024-02-19 23:38:40 +01:00
Marco Trevisan (Treviño) 59dc585ccd egismoc: Simplify check bytes computation
We use big endian values for generating the check bytes, but we can do
the same logic in a simpler way.
2024-02-19 23:38:40 +01:00
Marco Trevisan (Treviño) 6768bd0ff4 egismoc: Use strictly sized types to hold check bytes contents
So we are sure about the size we're sending at compile time too.
2024-02-19 23:38:40 +01:00
Marco Trevisan (Treviño) ed1815c3d9 build: Allow testing more drivers in both big and little endian
I've tested them in a s390x host and many more tests work fine, so let's
enable them.
2024-02-19 23:38:40 +01:00
Marco Trevisan (Treviño) 057c209beb build: Build-depend on glib 2.68
GLib 2.68 is now more than 3 years old, so we can definitely start
using it without thinking too much.

This allows us to drop lots of compat code that we had around.

And like the previous commit tells us, it will also help us to have
more correct code around.
2024-02-19 22:23:02 +01:00
Marco Trevisan (Treviño) 90c4afded4 cleanup: Use non-const pointers for non constant cases
We had various cases in which we were using const pointers for
non constant data, and in fact we were allocating and free'ing
them.

So let's handle all these case properly, so that we won't have
newer GLib complaining at us!
2024-02-19 22:14:14 +01:00
Marco Trevisan (Treviño) f8f28a066b egismoc: Simplify fingerprint id and firmware reading
We can do copy and duplicate in oneshot since we are handling strings
after all.
2024-02-19 17:25:21 +01:00
Marco Trevisan (Treviño) adc66edd8d egismoc: Implement suspension properly
In case of suspension we can't just cancel the operations but
also return when completed, and this may not happen immediately
if there are ongoing operations.

This is automagically handled by libfprint internals, but in order
to make it happen, we need to cancel the ongoing operations and then
mark it completed. libfprint will then wait for the task completion
before actually marking the device as suspended.
2024-02-19 17:21:58 +01:00
Marco Trevisan (Treviño) 9af211cc89 egismoc: Use device cancellable on transfers 2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) 904bddd988 egismoc: Use g_new0 instead of g_malloc to make the type clearer 2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) 8badfa84e9 egismoc: Assert that current transfer is unset when setting it
We need to ensure that we are not overwriting the instance transfer, so
that we can be sure that we are only doing one transfer at time.

Also we need to ensure that the ssm unsetting it, is the owner of it.
2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) b97efa6fed egismoc: Assert that task ssm is unset when setting it
We need to ensure that we are not overwriting the instance SSM, so that
we can be sure that we are only doing one operation at time.

Also we need to ensure that the task unsetting it, is the owner of it.
2024-02-19 17:12:12 +01:00
Joshua GrishamandMarco Trevisan (Treviño) 591f9ad3cf egismoc: clear task pointers also after dev_init_done 2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) 6767cd1a4f egismoc: Ensure that the command callback is after SSM is completed
We need to make sure that we won't trigger a callback when a SSM is
already in progress or we may end up overwriting it
2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) 226b6abfab egismoc: Use an autopointer to cleanup error on command done callback 2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) 9e2c14d64e egismoc: Clarify delete print ownership in delete callback 2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) 92aeb53ee8 egismoc: Simplify egismoc identification stage handling 2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) 87f68e3ac1 egismoc: Avoid gotos in init code, just handle the errors immediately 2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) 8073a5dc34 egismoc: Remove unused increments
This is also to please static analyzer
2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) eb09156244 egismoc: Clear enrolled IDs using nicer GLib api 2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) b8cfb95b49 egismoc: Ensure we've enough null bytes at the end of strings 2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) a7843add0f egismoc: Do not initialize to zero twice 2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) b0f0322726 egismoc: Indentation and syntax fixes 2024-02-19 17:12:12 +01:00
Marco Trevisan (Treviño) 7476faba68 data, libfprint: Update list of unsupported drivers 2024-02-19 16:16:02 +01:00
Joshua GrishamandMarco Trevisan (Treviño) 89ab54794e egismoc: added test and capture for 05a1 variant 2024-02-19 16:16:02 +01:00
Joshua GrishamandMarco Trevisan (Treviño) 85da0e104b egismoc: add support for 1c7a:05a1 2024-02-19 16:16:02 +01:00
Joshua GrishamandMarco Trevisan (Treviño) 47fe3668e4 egismoc: Return truncated text instead of null for description when using list 2024-02-19 16:16:02 +01:00
Joshua GrishamandMarco Trevisan (Treviño) 7aae2181e2 egismoc: Add support for usernames longer than 8 chars 2024-02-19 16:16:02 +01:00
Joshua GrishamandMarco Trevisan (Treviño) a9269980eb egismoc: Fix crash during close 2024-02-19 16:16:02 +01:00
Joshua GrishamandMarco Trevisan (Treviño) 0b9a64331f Initial commit of egismoc driver 2024-02-19 16:16:02 +01:00
Adam JonesandMarco Trevisan 54ff730f0c Fix typo of libfprint in supported devices list
This also updates the title of the website page at https://fprint.freedesktop.org/supported-devices.html
2024-02-13 16:13:10 +00:00
Marco Trevisan (Treviño) e05fbaa8ab realtek: Do not initialize variables in switch cases
Handles scan-build warning
2024-02-13 14:54:42 +00:00
Marco Trevisan (Treviño) 61f9346aaf realtek: Do not leak an error
Found by scan-build.
2024-02-13 14:54:42 +00:00
Marco Trevisan (Treviño) d878148b5e ci: Expose scan build artifacts on failures
That's the only case we care about
2024-02-13 14:54:42 +00:00
Marco Trevisan (Treviño) ee509c7ee6 libfprint/fprint-list-udev-hwdb: Update unsupported list from wiki 2024-02-13 15:28:53 +01:00
Marco Trevisan (Treviño) 2fa0975dec cleanup: Address some newer uncrustify syntax cleanups 2024-02-13 15:25:15 +01:00
Marco Trevisan (Treviño) f3ab1f996f fp-context: use g_strv_contains instead of manual labor 2024-02-13 15:25:15 +01:00
Marco Trevisan (Treviño) 92c5fc4643 cleanup: Use allow/deny lists instead of color based ones
There was nothing racist on those names here (what? Do human races even
exist?!), but let's avoid any confusion.
2024-02-13 15:19:47 +01:00
Puspendu BanerjeeandMarco Trevisan (Treviño) c64fa9c81b synaptics: Add new PID 0x0124 2024-02-13 14:45:47 +01:00
Marco Trevisan (Treviño) 85ec9ec5b2 ci: Allow flatpak failure
It's not a critical thing, so if it fails (as it does currently) we
should not block on that.
2024-02-13 14:42:18 +01:00
Marco Trevisan (Treviño) b8933d8f81 fp-print: Do not check compile-time macros at runtime 2024-02-13 14:36:46 +01:00
xiaofeiandMarco Trevisan (Treviño) 631da4654f focaltechmoc:Support FocalTech moc devices
Supported UID: 0x2808
    Supported PIDs: 0x9E48, 0xD979, 0xa959
2024-02-13 14:34:12 +01:00
Mohammed Anas 1701d72ff9 tests: make mktemp command call work with Chimera Linux's mktemp
On Chimera Linux, which uses FreeBSD's userland tools, the original call
fails with the following error:

mktemp: mkstemp failed on /tmp/libfprint-XXXXXX.hwdb: Invalid argument

Moving the X's to the end of the template passed to `mktemp` fixes the
error, and also works with GNU's `mktemp`.
2024-01-22 15:52:46 +00:00
Mohammed Anas d3ec9a80d3 tests: remove Bash dependency in favor of sh
The script works just fine with `sh`.

Also replace nonstandard `test` operator `==` with the standard `=`.

The other changes are mostly cosmetic.
2024-01-22 15:27:33 +00:00
Marco Trevisan (Treviño) 5a1253e37c fp-image: Do not start thread detection task thread if already running 2023-11-24 21:02:50 +01:00
Marco Trevisan (Treviño) 2b008b52d7 fp-image: Simplify minutiae detection tasks
We can just use a GTask to handle the detection while using the
finish function to process the results to the image, so that it
is more predictable when this happens and it does not depend on
a thread returning.

Also remove data duplication when possible, this class wasn't
fully safe anyway to be used concurrently, so there's no point
to copy data when not needed. Also added the hard constraint to
not proceed with minutiae detection if something else is already
doing this.

At the same time we can mark the task to finish early on
cancellation.
2023-11-21 16:43:04 +00:00
Marco Trevisan (Treviño) 83939abe10 fp-image: Add FP_IMAGE_NONE flags definition 2023-11-21 16:43:04 +00:00
Marco Trevisan (Treviño) 16d02b3ed5 fp-image: Remove unused ref_count flag
It's an object so we already ref-count it.
2023-11-21 16:43:04 +00:00
huan_huangandMarco Trevisan 79be91831c drivers: add realtek rts5813 driver 2023-10-27 13:21:06 +00:00
Aris Lin 427139f347 synaptics: Add new PID 0x0106 2023-10-24 14:56:15 +08:00
Aris Lin 3ebd2c3f97 synaptics: Add new PID 0x0173 2023-10-19 14:25:09 +08:00
Marco Trevisan (Treviño) 2414dbdbd4 libfprint/fprint-list-udev-hwdb: Update unsupported devices from wiki 2023-09-27 19:44:37 +02:00
swbgdxandMarco Trevisan 0eae0e8cc0 goodixmoc: Add PID 0x6582 2023-09-27 16:10:03 +00:00
Marco Trevisan (Treviño) efba965b0c ci: Build flatpak using gnome master
Also bump dependencies versions
2023-09-27 17:47:38 +02:00
Marco Trevisan (Treviño) 26d2c77c3d ci: Allow manual flatpak build in any fork and MR 2023-09-27 17:29:24 +02:00
Marco Trevisan (Treviño) eb01d7c97d ci: Fix building flatpak using GNOME 42 runtime
Use versioned ci template so we are sure what we're using
2023-09-27 17:10:31 +02:00
Vincent Huang 5bff5bfea6 synaptics: Add null check to prevent g_propagate_error assertion failure 2023-09-11 16:58:33 +08:00
Marco Trevisan (Treviño) af5c5064b9 Upload to mantic 2023-09-07 17:59:33 +02:00
Marco Trevisan (Treviño) 05e069937b Update changelog 2023-09-07 17:55:54 +02:00
Andy ChiandMarco Trevisan (Treviño) fb3f98576f debian/patches/synaptics-fix-enroll_identify-problem-after-user-reset-da.patch (LP: #2034481) 2023-09-07 17:40:30 +02:00
Vincent HuangandMarco Trevisan 206e92218c synaptics: fix enroll_identify problem after user reset database 2023-09-01 09:47:12 +00:00
Marco Trevisan (Treviño) ccb57e4a3a Upload to unstable 2023-08-24 09:19:31 +02:00
Marco Trevisan (Treviño) b2828faa4b Update changelog 2023-08-24 09:19:07 +02:00
Marco Trevisan (Treviño) 5b04729625 debian/control: Update standards-version to 4.6.2, no change needed 2023-08-24 09:17:56 +02:00
Marco Trevisan (Treviño) af4d774a08 debian/rules: Remove python cache files on clean
Closes: #1047209
2023-08-23 01:47:13 +02:00
Marco Trevisan (Treviño) b885874329 debian/changelog: Remove fixup line 2023-08-23 01:43:21 +02:00
Marco Trevisan (Treviño) 843ca987aa Merge tag 'debian/1%1.94.6-1' into ubuntu
libfprint Debian release 1:1.94.6-1
2023-08-23 01:24:15 +02:00
Marco Trevisan (Treviño) a530bb66b0 Upload to unstable 2023-08-23 01:11:51 +02:00
Marco Trevisan (Treviño) d057cc311f Update changelog 2023-08-23 01:11:05 +02:00
Marco Trevisan (Treviño) 381ea2292d debian/patches: Remove execution bit from test asset 2023-08-23 01:10:47 +02:00
Marco Trevisan (Treviño) fcbabf6cbd fixup! debian/patches: Use assets from correct paths 2023-08-23 01:10:16 +02:00
Marco Trevisan (Treviño) af3dca9003 tests/egis0570/capture.pcapng: Remove execution permission 2023-08-22 23:08:55 +00:00
Marco Trevisan (Treviño) 9ea3bba116 debian/rules: Always force building udev hwdb
We are more updated than systemd, so let's use libfprint own rules

Closes: #1024309
2023-08-23 00:59:55 +02:00
Marco Trevisan (Treviño) 8c238c83f2 debian/patches: Use assets from correct paths 2023-08-23 00:57:00 +02:00
Marco Trevisan (Treviño) 4c1b3b4da3 debian: Add libfprint-2-tests package 2023-08-23 00:57:00 +02:00
Marco Trevisan (Treviño) c676c281ba debian/patches: Drop, applied upstream 2023-08-23 00:57:00 +02:00
Marco Trevisan (Treviño) 196f8a9ea4 debian/libfprint-2-2.postinst: Devices triggers updated 2023-08-23 00:57:00 +02:00
Marco Trevisan (Treviño) 1b4dbf28f2 New upstream release 2023-08-23 00:57:00 +02:00
Marco Trevisan (Treviño) 557189329b Update upstream source from tag 'upstream/1.94.6'
Update to upstream version '1.94.6'
with Debian dir 95f93b760e
2023-08-23 00:57:00 +02:00
Marco Trevisan fabb09bbd7 Merge branch 'scrub-obsolete' into 'debian'
Remove unnecessary constraints

See merge request debian/libfprint!5
2023-08-22 22:56:37 +00:00
Marco Trevisan (Treviño) 0fdda75219 New upstream version 1.94.6 2023-08-23 00:43:29 +02:00
Marco Trevisan (Treviño) 31168e8f83 Upload to mantic 2023-08-23 00:31:57 +02:00
Marco Trevisan (Treviño) 3eadf227e4 Update changelog 2023-08-23 00:31:52 +02:00
Marco Trevisan (Treviño) 3e6500c2b9 debian/rules: Always force building udev hwdb
We are more updated than systemd, so let's use libfprint own rules
2023-08-23 00:31:37 +02:00
Marco Trevisan (Treviño) b924d715c9 ci: Move build dir during installed tests so we check that we don't use built artifacts 2023-08-21 14:19:27 +00:00
Marco Trevisan (Treviño) 1372d6f081 tests: Use native GTest utils to generate assets names 2023-08-21 14:19:27 +00:00
Marco Trevisan (Treviño) cf18fc3b68 debian/intian-overrides: Update lintian syntax to ignore built drivers 2023-08-21 13:07:09 +02:00
Marco Trevisan (Treviño) 362bbfae13 debian/patches: Use proper rpath and permissions on installed libraries 2023-08-21 13:07:09 +02:00
Marco Trevisan (Treviño) 3650ef8137 debian/control: Add explicit tests dependency on python3
It's already required since we do require python modules, but let's make
it more explicit to please lintian
2023-08-21 13:07:06 +02:00
Marco Trevisan (Treviño) 54f02c7799 tests: Remove executable bits from installed libraries 2023-08-21 12:42:02 +02:00
Marco Trevisan (Treviño) 2aeec32558 tests/tod-drivers: Remove RPATH information from libraries 2023-08-21 12:24:36 +02:00
Marco Trevisan (Treviño) 6607d9f10b tests: Use tests execdir install rpath 2023-08-21 12:23:00 +02:00
Marco Trevisan (Treviño) 95c2ac7085 Upload to mantic 2023-08-17 21:53:59 +02:00
Marco Trevisan (Treviño) a362755b04 Update changelog 2023-08-17 21:53:03 +02:00
Marco Trevisan (Treviño) 7338440264 debian/patches: Use assets from correct paths 2023-08-17 21:47:02 +02:00
Marco Trevisan (Treviño) 9f235e2121 tests: Use native GTest utils to generate assets names 2023-08-17 21:46:30 +02:00
Marco Trevisan (Treviño) 7ba960911a debian/patches: Install current tod driver for installed tests 2023-08-17 21:06:32 +02:00
Marco Trevisan (Treviño) eac5c1a9d4 tests: Install current TOD driver in installed tests and use it 2023-08-17 21:03:06 +02:00
Marco Trevisan (Treviño) 61f93ce92e ci: Move build dir during installed tests so we check that we don't use built artifacts 2023-08-17 20:38:26 +02:00
Marco Trevisan (Treviño) 2ddb480d42 debian/tests: Run installed tests as regression tests 2023-08-17 20:33:49 +02:00
Marco Trevisan (Treviño) 1b62b88dba debian/patches: Drop, applied upstream 2023-08-17 20:33:49 +02:00
Marco Trevisan (Treviño) 390dc89a5b debian: Add libfprint-2-tests package 2023-08-17 20:33:49 +02:00
Marco Trevisan (Treviño) e325b5b552 debian/libfprint-2-2.postinst: Devices triggers updated 2023-08-17 20:33:47 +02:00
Marco Trevisan (Treviño) 8941e79fea New upstream release 2023-08-17 20:33:00 +02:00
Marco Trevisan (Treviño) a57951458e Update upstream source from tag 'upstream/1.94.6+tod1'
Update to upstream version '1.94.6+tod1'
with Debian dir 28838af4e4
2023-08-17 19:53:13 +02:00
Marco Trevisan (Treviño) 2751494b8e New upstream version 1.94.6+tod1 2023-08-17 19:53:04 +02:00
Marco Trevisan (Treviño) c848abd272 tests: Add TOD installed tests 2023-08-17 19:45:37 +02:00
Marco Trevisan (Treviño) 3cc1e483fc tod: Adjust syntax as per new uncrustify 2023-08-17 05:31:28 +02:00
Marco Trevisan (Treviño) 8c6973aa26 Merge tag 'v1.94.6' into tod
v1.94.6

Git-EVTag-v0-SHA512: e1afaf08552dd3bc8e20229f4e8e141236a2133ce69cd3c68332e68483fb80a471ac0d7da1eedd6e4b0944b729433ac26e86ec12ef3accc78f86b1331150e185
2023-08-17 05:26:05 +02:00
Marco Trevisan (Treviño) 135a015b6a Release 1.94.6 2023-08-17 05:08:04 +02:00
swbgdxandMarco Trevisan 96645eaa7a goodixmoc: Add PID 0x633C and 0x6304 2023-08-17 01:37:56 +00:00
hermanlin d37b255a11 elanmoc: add PID 0x0C99 2023-07-10 11:17:27 +08:00
Marco Trevisan (Treviño) 903ee43b2d ci: Do not force-rebuild if an image with such tag exists 2023-06-28 16:35:16 +02:00
Marco Trevisan (Treviño) 8562f8a964 ci: Use meson commands only to setup, compile and install
Old ones are semi-deprecated, so let's adjust to what upstream suggests
2023-06-28 16:35:16 +02:00
Marco Trevisan (Treviño) 5ff794c105 ci: Run installed tests 2023-06-28 16:35:16 +02:00
Marco Trevisan (Treviño) f68e0972c2 ci: Auto-Retry jobs on infrastructure failures 2023-06-28 16:35:16 +02:00
Marco Trevisan (Treviño) ba3cc04e84 tests: Add support for installed tests
They allow distrubtions to check whether libfprint continues working as
expected, in different contexts.
2023-06-28 16:35:16 +02:00
Marco Trevisan (Treviño) 3d4cf44f9b ci: Add gnome-desktop-testing to the image
It can be used to run the installed tests.
2023-06-28 16:23:45 +02:00
Marco Trevisan (Treviño) 8e702012fd ci: Use debuginfo-install to install debug symbols
dnf doesn't seem to handle the plugin well in rawhide:

  bash-5.2# dnf -y debuginfo-install glib2
    Unknown argument "debuginfo-install" for command "dnf5".
    Add "--help" for more information about the arguments.
2023-06-28 15:58:48 +02:00
Marco Trevisan (Treviño) f49879b522 tests/virtual-image: Support passing specific FP_PRINTS_PATH env variable 2023-06-24 00:28:04 +02:00
Marco Trevisan (Treviño) 5e0bf2446b meson: Bump requirements to 0.56 and adapt deprecated functions 2023-06-24 00:28:04 +02:00
Marco Trevisan (Treviño) 4d96a3efaa tests/virtual-device: Check that removed devices are not in context anymore 2023-06-23 18:20:04 +02:00
Marco Trevisan (Treviño) c27d72e3a1 tests/virtual-device: Do not preserve context on unplug tests
The unplug tests assume that the device is removed from the context once
they run, however we may have left the device around in a removed state
causing other tests to fail.

So isolate them in a new class where we create context and device
instances every time we run a test case.
2023-06-22 06:59:00 +02:00
Marco Trevisan (Treviño) 0819df6988 virtual-device: Reset transient parameters on deinit
Tests may change some options so we need to reset these values, even
though some may need not to be reserved when not in keep-alive mode.
2023-06-22 06:55:44 +02:00
Marco Trevisan (Treviño) 28579239a6 tests/virtual-device: Reset keep alive status when test is done
We don't want this to be preserved across tests, since it's meant to be
used inside a single test case.
2023-06-22 06:55:44 +02:00
Marco Trevisan (Treviño) e48d2b467a tests/virtual-device: Restore default enroll steps on tearDown
When running the tests as a single script we may leave the device in an
inconsistent state, so reset the enroll steps when done.
2023-06-22 06:55:44 +02:00
Marco Trevisan (Treviño) 1c589336a2 meson: Remove duplicate gnome imports 2023-06-22 06:55:44 +02:00
Egor Ignatov 9546659c15 goodixmoc: add PID 0x60A4
Signed-off-by: Egor Ignatov <egori@altlinux.org>
2023-06-21 19:28:38 +03:00
haoweiloandMarco Trevisan c782298ae4 fpcmoc: Ensure the current SSM is never overwritten 2023-06-21 15:09:00 +00:00
Sebastien Bacher c97dde482e releasing package libfprint version 1:1.94.5+tod1-0ubuntu2 2023-04-12 10:45:19 +02:00
Sebastien Bacher 4fe5f0b4dc cherry pick a fix for the tests failing with the new glib version 2023-04-12 10:44:36 +02:00
Elytscha SmithandMarco Trevisan 682fce6a5b goodixmoc: add PID 0x60BC 2023-03-28 15:59:48 +00:00
swbgdxandMarco Trevisan 6ed1b707d5 goodixmoc: Add PID 0x6092 2023-03-15 15:45:56 +00:00
Marco Trevisan (Treviño) 9fd2ccff29 virtual-device-listener: Always return task even if we got zero bytes
See: https://gitlab.gnome.org/GNOME/glib/-/issues/1346
2023-03-15 15:26:37 +00:00
Marco Trevisan (Treviño) b6223a9d0a test-fpi-device: Only push pragma -wdanging-pointer in newer GCC versions
It may not be supported and warn otherwise
2023-03-15 15:23:17 +00:00
Marco Trevisan (Treviño) 5e98f10011 ci: Do not require coverage to always happen
meson coverage could be broken in some cases, so let's ignore the error
for now if it happens.
2023-03-15 16:18:17 +01:00
Marco Trevisan (Treviño) e7ca05e1bf ci: Use proper name for valgrind junit file 2023-03-15 16:18:17 +01:00
Marco Trevisan (Treviño) 677c50fc51 fprint-list-supported-devices: Do not double-free usb_list
We were leaking the spi_list instead.
2023-03-15 14:50:41 +01:00
Bastien Nocera bb5feeca77 ci: Use detached pipelines
See https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/438#what-it-means-for-me-a-maintainer-of-a-project-part-of-gitlabfreedesktoporg
2023-03-15 13:33:52 +01:00
wagner.oliveira 22683ec490 Fix AES4000 wrong IDs (swapped pid/vid) 2023-01-27 18:23:55 -05:00
Enrik Berkhan 0bf7d58c5e goodixmoc: cleanup enroll state machine
As suggested by @benzea, the following cleanup actions have been
performed:

  - let case order match enroll states enum

  - remove FP_ENROLL_IDENTIFY that is no longer used

  - finally use fpi_ssm_next_state instead of explicitly jumping to
    FP_ENROLL_CREATE

Additionally, all types/functions/variables referring to "enroll_init"
used for FP_ENROLL_CREATE have been renamed to match "enroll_create".
All other states use similar name matching.

Signed-off-by: Enrik Berkhan <Enrik.Berkhan@inka.de>
2023-01-19 20:30:05 +01:00
Enrik Berkhan 86566e8d0b goodixmoc: Fix missing "enroll create" state
After the driver internal duplicate check had been removed in
46669e9f53, all templates were saved with
an all-zeroes template ID.

By going through FP_ENROLL_CREATE before starting to capture, the
template ID returned from the device is taken into account again.

Signed-off-by: Enrik Berkhan <Enrik.Berkhan@inka.de>
2023-01-19 20:28:33 +01:00
Zoltán BöszörményiandVasily Khoruzhick 7080a5ff8b Abort initialization if unknown sensor dimensions are reported
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
2023-01-17 19:50:21 +00:00
Zoltán BöszörményiandVasily Khoruzhick 5e52ad2ad1 upektc_img: Add new unit test for the TCS1s chip variant 2023-01-17 19:50:21 +00:00
Zoltán BöszörményiandVasily Khoruzhick bfaa9a9241 upektc_img: Fix asynchronous problem in init_read_data_cb() 2023-01-17 19:50:21 +00:00
Zoltán BöszörményiandVasily Khoruzhick 9c900789de upektc_img: Add asserts for expected height reported by the device 2023-01-17 19:50:21 +00:00
Zoltán BöszörményiandVasily Khoruzhick 29a24ba67f upektc_img: Add finger status changes 2023-01-17 19:50:21 +00:00
Zoltán BöszörményiandVasily Khoruzhick 987f23698e upektc_img: Deduce sensor type from the information packet 2023-01-17 19:50:21 +00:00
ToniandVasily Khoruzhick cda4e6136c upektc_img: Fix protocol for area sensors 2023-01-17 19:50:21 +00:00
ToniandVasily Khoruzhick 522b481297 upektc_img: Add sensor chip detection
Move setting up sensor type and image dimensions to
activation time.
2023-01-17 19:50:21 +00:00
ToniandVasily Khoruzhick fafe70f985 upektc_img: Fix CRC for upek2020_init_capture. 2023-01-17 19:50:21 +00:00
Vasily Khoruzhick 62818b9407 fpcmoc: fix use-after free in multiple callbacks
Drop if statement that retrieves internal ssm->error.
"error" is already a copied ssm->error, so it makes no sense to return
internal copy which will be freed when ssm is marked as done.

Fixes #526
2023-01-10 11:22:22 -08:00
Vasily Khoruzhick db2fa81358 tests: valgrind: update python and libfprint suppressions list 2023-01-10 11:15:17 -08:00
Vasily Khoruzhick d492901c3e tests: valgrind: generate suppressions list for new tests-suppress-new-valgrind-errors-in-python
That will help with updating suppresions lists in future
2023-01-10 11:14:51 -08:00
Vasily Khoruzhick a5d52eb853 Fix indentation issues with uncrustify-0.76.0
Apparently older version didn't find this indentation issues
2023-01-08 23:36:18 -08:00
Debian Janitor 20b97dba8d Remove constraints unnecessary since buster (oldstable)
* Build-Depends: Drop versioned constraint on libglib2.0-dev, libgusb-dev and meson.

Changes-By: deb-scrub-obsolete
2022-11-23 21:01:33 +00:00
Jelmer Vernooij fa429d92e3 Merge branch 'lintian-fixes' into 'debian'
Fix some issues reported by lintian

See merge request debian/libfprint!7
2022-11-23 19:45:48 +00:00
Debian Janitor 6008222761 Update standards version to 4.6.1, no changes needed.
Changes-By: lintian-brush
Fixes: lintian: out-of-date-standards-version
See-also: https://lintian.debian.org/tags/out-of-date-standards-version.html
2022-11-21 15:22:08 +00:00
Debian Janitor b83f65bf61 Set upstream metadata fields: Bug-Database, Bug-Submit, Repository-Browse.
Changes-By: lintian-brush
Fixes: lintian: upstream-metadata-file-is-missing
See-also: https://lintian.debian.org/tags/upstream-metadata-file-is-missing.html
Fixes: lintian: upstream-metadata-missing-bug-tracking
See-also: https://lintian.debian.org/tags/upstream-metadata-missing-bug-tracking.html
2022-11-21 15:22:07 +00:00
Debian Janitor 16c690e8f2 Trim trailing whitespace.
Changes-By: lintian-brush
Fixes: lintian: trailing-whitespace
See-also: https://lintian.debian.org/tags/trailing-whitespace.html
2022-11-21 15:21:55 +00:00
Bastien Nocera 89509c76f4 build: Print the list of enabled drivers
This saves us from having to figure out which drivers were enabled
during a build in some other way.
2022-11-02 12:04:34 +01:00
Jelmer Vernooij 8c641a504c Merge branch 'multiarch-fixes' into 'debian'
Apply hints suggested by the multi-arch hinter

See merge request debian/libfprint!6
2022-10-30 17:07:44 +00:00
Debian Janitor 2c6578e4d9 Apply multi-arch hints.
+ libfprint-2-2: Drop Multi-Arch: same.

Changes-By: apply-multiarch-hints
2022-10-14 18:05:28 +00:00
Marco Trevisan (Treviño) 673aba6846 Upload to unstable 2022-10-14 01:09:06 +02:00
Marco Trevisan (Treviño) 3d6d5901a9 Update changelog 2022-10-14 01:06:23 +02:00
Marco Trevisan (Treviño) 01a462580b debian/docs: Update reference to README.md and remove TODO 2022-10-14 01:06:16 +02:00
Jeremy Bicha 0c91e8745e releasing package libfprint version 1:1.94.5+tod1-0ubuntu1 2022-10-13 19:05:05 -04:00
Marco Trevisan (Treviño) 73ceb9e39c debian/patches: Cherry-pick post-release upstream cleanups 2022-10-14 00:59:50 +02:00
Marco Trevisan (Treviño) 81230b793c debian/libfprint-2-2.postinst: Devices triggers updated 2022-10-14 00:55:33 +02:00
Marco Trevisan (Treviño) 42c823205b New upstream release 2022-10-14 00:55:31 +02:00
Marco Trevisan (Treviño) 8bb07377ab Update upstream source from tag 'upstream/1.94.5'
Update to upstream version '1.94.5'
with Debian dir 704eca5787
2022-10-14 00:55:30 +02:00
Marco Trevisan (Treviño) 3b901ff205 New upstream version 1.94.5 2022-10-14 00:55:22 +02:00
Marco Trevisan (Treviño) b0380415c0 debian/source: Remove include-binaries file, we've none now 2022-10-14 00:18:33 +02:00
Marco Trevisan (Treviño) 6395dda012 fp-image: Remove config.h inclusion in fpi-header
And also avoid defining a function we expose depending on it's presency.
2022-10-13 20:35:52 +00:00
Marco Trevisan (Treviño) 54bb0c12e6 fpi-image: Check for PIXMAN presency using #ifdef
That's a defined variable that may be there or not, and currently we
warn with:
 - fpi-image.c:29:5: warning: "HAVE_PIXMAN" is not defined, evaluates to 0
2022-10-13 20:35:52 +00:00
Marco Trevisan (Treviño) 1f1ed80dbf test-device-fake: Add more logging showing the current device action 2022-10-13 20:31:28 +00:00
Marco Trevisan (Treviño) 36bcb24b3a fp-device: Move FpDevice private functions to public library
This these functions are not really needed by anything else than
FpDevice, so move them back to the cpp file, so that we don't expose
them in the private library, given that we don't need them
2022-10-13 20:31:28 +00:00
Marco Trevisan (Treviño) ddacf07e3b meson: Actually bump the version to 1.94.5 2022-10-13 20:31:28 +00:00
Marco Trevisan (Treviño) 819a16842b Update changelog 2022-10-13 21:07:46 +02:00
Marco Trevisan (Treviño) 3d6814d48d debian/libfprint-2-tod1.symbols: Add new drivers symbols 2022-10-13 20:52:50 +02:00
Marco Trevisan (Treviño) 6e00b172be debian/patches: Drop all (applied upstream) 2022-10-13 20:52:49 +02:00
Marco Trevisan (Treviño) 87a9171d28 debian/libfprint-2-2.postinst: Devices triggers updated 2022-10-13 20:52:48 +02:00
Marco Trevisan (Treviño) 66337f7008 New upstream release 2022-10-13 20:52:27 +02:00
Marco Trevisan (Treviño) e41df1a318 Update upstream source from tag 'upstream/1.94.5+tod1'
Update to upstream version '1.94.5+tod1'
with Debian dir 4e0429ec4f
2022-10-13 20:52:27 +02:00
Marco Trevisan (Treviño) ac36b213ad New upstream version 1.94.5+tod1 2022-10-13 20:52:19 +02:00
Marco Trevisan (Treviño) 3ea2ee8a76 tod: Change namespace of internal functions to tod_*
In this way we don't have the risk of them being exported because
starting with `fpi_*`.
2022-10-13 20:42:31 +02:00
Marco Trevisan (Treviño) 17818cffe6 ci: allow failure on valgrind job
We have tests depending on external libraries that must not be updated
just to fix such issues
2022-10-13 20:21:15 +02:00
Marco Trevisan (Treviño) 18ca916c4d tod: Add fpi_device_suspend and fpi_device_resume to 1.94 version 2022-10-13 20:12:14 +02:00
Marco Trevisan (Treviño) 082b335300 Merge tag 'v1.94.5' into tod
v1.94.5

 * New driver: fpcmoc, supporting various FPC MOC Fingerprint Sensors
 * goodixmoc: New PIDs 0x6014, 0x6094, 0x631C, 0x634C, 0x6384, 0x659A.
 * goodixmoc: Support resetting device on firmware failure due to corrupted DB.
 * elanmoc: New PIDs 0x0c88, 0x0c8c, 0x0c8d.
 * synaptics: New PID 0x0104.
 * upektc: New PID 0x2017.
 * Fixed various memory leaks
 * More tests

Git-EVTag-v0-SHA512: a36e4b627ffc830a78932266119b73e53921965990bd1b6cae6fd8d166b1b8e62f5a538151a74b82a2a2d83a4ab7399ed17cb2bef39441f881a38a24252e4efa
2022-10-13 20:08:10 +02:00
Marco Trevisan (Treviño) 2e79e6f353 tod-goodix-wrapper: Fix syntax as per uncrustify 2022-10-13 20:06:13 +02:00
Marco Trevisan (Treviño) e96669208b test-fp-context-tod: Try to open/close a device from the public library
We need to skip this for devices with no close vfunc (like the SSM one)
2022-10-13 20:06:13 +02:00
Marco Trevisan (Treviño) f2816024e0 test-device-fake: Add more logging showing the current device action 2022-10-13 20:06:13 +02:00
Marco Trevisan (Treviño) 2f3d9240b7 tod-symbols: Define other macros that could be useful in future 2022-10-13 19:46:26 +02:00
Marco Trevisan (Treviño) c36310fed1 tod: Force libfprint-tod to be a shared library and link whole with private
Also unset the private library if set and make libfprint to only link
with the tod one.

This fixes the issue we had with wrong symbols shared by multiple
libraries
2022-10-13 19:45:17 +02:00
Marco Trevisan (Treviño) c04d15bbf1 fp-device: Move FpDevice private functions to public library
This these functions are not really needed by anything else than
FpDevice, so move them back to the cpp file, so that we don't expose
them in the private library, given that we don't need them
2022-10-13 19:42:50 +02:00
Marco Trevisan (Treviño) 8e7e5bf710 tests: Add tests to ensure that we don't duplicate symbols in libraries
We have an issue where some symbols are exposed by both the tod library
and the public one, and this may lead to big issues like GType's being
defined multiple times.

So add a test checking whether this is working

See: 3v1n0/libfprint#1
2022-10-13 19:41:39 +02:00
Marco Trevisan (Treviño) 4824380f79 Revert "fpi-device: Avoid using device action strings"
This reverts commit fbffb62ecb.
2022-10-13 14:09:25 +02:00
Marco Trevisan (Treviño) 994dfaf51f Upload to kinetic 2022-10-13 13:55:39 +02:00
Marco Trevisan (Treviño) 932d320670 Update changelog 2022-10-13 13:54:52 +02:00
Marco Trevisan (Treviño) 62a048ea6f debian/patches: Improve testing for various drivers 2022-10-13 13:50:55 +02:00
Marco Trevisan (Treviño) bacb72183d debian/patches: Add support for more device PIDs supported upstream 2022-10-13 13:50:55 +02:00
Marco Trevisan (Treviño) 3dd06634d5 elanmoc: Add support for more supported PIDs
And include more tests for specific cases.

LP: #1989314
2022-10-13 13:50:55 +02:00
Marco Trevisan (Treviño) 86961a9429 Release 1.94.5 2022-10-13 05:57:04 +02:00
Marco Trevisan (Treviño) 3ca20a8e70 ci: Do not run two image rebuild pipelines on schedules 2022-10-13 05:37:12 +02:00
Marco Trevisan (Treviño) 3100404419 ci: Install more debug symbols 2022-10-13 05:27:44 +02:00
Marco Trevisan (Treviño) 892c9767a2 tests: Be stricter on valgrind leak checks
We used to ignore leaks, and we are ending up in having various of them,
so let's make valgrind to exit with error when using the valgrind test
setup (so in CI) to catch them better.
2022-10-13 05:20:28 +02:00
Marco Trevisan (Treviño) 2718dc02e0 vfs0050: Initialize the usb transfer buffer when allocating it
Ensure that the memory that we're going to populate via USB transfer is
initialized, otherwise valgrind may complain about (even if that's not
really an issue).
2022-10-13 05:04:03 +02:00
Marco Trevisan (Treviño) abd7c66833 fp-device: Do not setup current action before updating temperature
At every action we update the device temperature, and this can
potentially lead to a failure, if the temperature is too hot.

However in such case we were failing a task that we had just stolen,
causing an error, tasks never returning and the device was left in an
undefined state.

So, just return early in case temperature is too hot, as we don't really
need to have the current task or action set at this point because
there's no active action to cancel yet.

This was causing random errors when running tests under valgrind
2022-10-13 05:04:03 +02:00
Marco Trevisan (Treviño) 8716ddb07a fp-print: Fix a typo in documentation 2022-10-13 05:04:03 +02:00
Marco Trevisan (Treviño) fd7d93e619 fpi-device: Do not leak suspend/resume tasks
We kept suspend/resume GTask's around but at the moment of completing
them we didn't unref them, leading to leaks.
2022-10-13 05:04:02 +02:00
Marco Trevisan (Treviño) 0592c0e5ad uru4000: Cleanup cancelled error before early return 2022-10-13 05:04:02 +02:00
Marco Trevisan (Treviño) 684e3c460a uru4000: Shutdown NSS on device close
We were allocating NSS during device opening but never closing it,
causing many leaks.
2022-10-13 05:04:02 +02:00
Marco Trevisan (Treviño) 4278668c8f egis0570: Cleanup the received image that is going to be resized
It's just temporary for us as we're providing the resized one instead.
2022-10-13 05:04:02 +02:00
Marco Trevisan (Treviño) a86ab6c854 test-fpi-device: Cleanup the device ID / driver before overriding it
Otherwise we'd leak the one that was initially set.
2022-10-13 05:04:02 +02:00
Marco Trevisan (Treviño) b04eed0aea test-device-fake: Consume the identify print if we're returning with error 2022-10-13 05:04:02 +02:00
Marco Trevisan (Treviño) 669e091b03 virtual-device: Use an autoptr to handle the new scan print
We may not use this print, so let's use an autoptr to handle its life
cycle to clean it up when not used.
2022-10-13 05:04:02 +02:00
Marco Trevisan (Treviño) 0b6a92150c tests/fpcmoc: Ensure python tests exit with error on every exception
We ignored assertions happening on callbacks as they only raise
exceptions that does not stop the execution.

So ensure that this is happening in all the tests as synaptics was
doing already

Same as commit: be8888431
2022-10-13 04:26:58 +02:00
Haowei Lo cca2b6a624 fpcmoc: Support FPC moc devices
Supported PID: 0xFFE0/A305/D805/DA04/D205
2022-10-11 08:11:38 +00:00
ElectronicsArchiverandMarco Trevisan (Treviño) 1d24037f14 README: Improved formatting 2022-10-10 23:35:24 +02:00
Lv Ying 6395228bb8 goodixmoc: add PID 0x6014
Signed-off-by: Lv Ying <lvying.system.thoughts@gmail.com>
2022-10-09 10:45:18 +08:00
Marco Trevisan (Treviño) b718f4d567 tests/meson: Avoid searching for programs multiple times 2022-09-28 01:23:58 +02:00
Marco Trevisan (Treviño) be88884315 tests: Ensure python tests exit with error on every exception
We ignored assertions happening on callbacks as they only raise
exceptions that does not stop the execution.

So ensure that this is happening in all the tests as synaptics was
doing already
2022-09-28 01:22:15 +02:00
Marco Trevisan (Treviño) d2a0eda56c synaptics, goodix: Properly check for finger status during enroll progress
It may contain other values, but for sure we finger must be neeeded
2022-09-28 01:21:31 +02:00
Marco Trevisan (Treviño) 5d9fc8b3c8 fpi-device: Do not leak USB devices while iterating
To compute the device ports we walked up through the devices using
g_usb_device_get_parent(), but this is supposed to return a device with
transfer full, so we need to unref it when done with it.

To handle this nicely, use a mixture of autopointer's and g_set_object
to ensure we're doing the right thing when passing the ownership around.
2022-09-27 18:21:20 +02:00
Marco Trevisan (Treviño) 62f2f34655 fpi-device: Fix a small leak when configuring the wakeup 2022-09-27 17:38:51 +02:00
Marco Trevisan (Treviño) 171e65f73f libfprint: Use g_memdup2 everywhere
It's just safer when available.
2022-09-27 17:10:33 +02:00
Marco Trevisan (Treviño) 446cedbcfc fpi-compat: Add definition for g_memdup2 when not available or deprecated
It's suggested to use g_memdup2 everywhere, but since we've a max-glib
version set we'd get a "deprecation" warning.

Avoid it this by re-defininig it through a macro in both cases.
2022-09-27 17:10:33 +02:00
Marco Trevisan (Treviño) 4012a4fe6f fpi-device: Clarify identify prints gallery usage in drivers docs 2022-09-27 16:43:33 +02:00
Marco Trevisan (Treviño) 70dc61d647 libfprint: Add top-level sync-udev-hwdb target for updating DB 2022-09-27 16:32:09 +02:00
Marco Trevisan (Treviño) ca481cce50 fprint-list-udev-hwdb: Update devices from wiki 2022-09-27 16:32:09 +02:00
Marco Trevisan (Treviño) 4d74838c50 ci: Generate Cobertura XML and use it to feed gitlab for MR integration
gitlab has coverage integration in MRs, but we need a cobertura
formatted XML files (each must be less than 10 MB) to show it, since
meson generates it already via gcovr, we can just inform gitlab about it

See https://docs.gitlab.com/ee/ci/testing/test_coverage_visualization.html
2022-09-27 13:05:01 +02:00
Marco Trevisan (Treviño) c429052e5e tests: Do not use deprecated declarations in virtual device tests 2022-09-27 12:52:38 +02:00
mbv06 1e55a066dc Update autosuspend.hwdb 2022-09-27 09:01:58 +00:00
mbv06 06abc256a4 upek: add PID 0x2017 2022-09-27 09:01:58 +00:00
Marco Trevisan (Treviño) 7ea2e55793 ci: Check for uncrustify changes in a safer way 2022-09-27 01:38:26 +02:00
Marco Trevisan (Treviño) 34e8655a08 ci: Use versioned image tags 2022-09-27 01:06:35 +02:00
Marco Trevisan (Treviño) c512a47e8a ci: Install debuginfo packages for better valgrind debugging
Related-to: https://gitlab.freedesktop.org/libfprint/libfprint/-/issues/507
2022-09-27 00:21:05 +02:00
Marco Trevisan (Treviño) 012d77ac41 libfprint-templates: Include exec commands 2022-09-27 00:15:16 +02:00
Marco Trevisan (Treviño) 2acd3ca571 ci: Rebuild the image in case deps changed 2022-09-27 00:15:16 +02:00
Paulo E. CastroandBastien Nocera c74a1ab6d1 goodixmoc: add PID 6094 2022-09-06 07:59:57 +00:00
hermanlin beac7f934d elanmoc: Fixed unreachable code
ISSUE=503

Signed-off-by: hermanlin <herman.lin@emc.com.tw>
2022-08-26 18:44:22 +08:00
Bastien Nocera 114097718a build: Fix run_command() warning
WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in future releases of meson.
         See also: https://github.com/mesonbuild/meson/issues/9300
2022-08-26 11:48:32 +02:00
mahaosen 151551b52b goodixmoc: add PID 0x634C 2022-08-26 16:46:16 +08:00
Aris LinandBastien Nocera 89a0d5f958 synaptics: Add new PID 0x0104 2022-08-16 15:45:13 +00:00
mahaosenandBastien Nocera 3a82991586 goodixmoc: add PID 0x631C 2022-08-16 15:30:47 +00:00
Bastien Nocera 08a90e911e flatpak: Remove obsolete libfprint branch 2022-08-16 17:14:07 +02:00
Bastien Nocera 3176eb8821 flatpak: Remove obsolete option
See 256c7cea07
2022-08-16 17:14:07 +02:00
Bastien Nocera f74b3f7794 flatpak: Update libusb module 2022-08-16 17:14:07 +02:00
Bastien Nocera fc6403899e flatpak: Only require X11 access on X11 2022-08-16 17:14:07 +02:00
Bastien Nocera b10baf02ea flatpak: Build Flatpak using GNOME 42
So the old meson in the 3.36 runtime doesn't choke on:
tests/meson.build:46:7: ERROR: Unknown method "project_source_root" in object.
2022-08-16 17:14:07 +02:00
Bastien Nocera 96013a03c5 test-generated-hwdb: Add missing test dep
E: UDEV_HWDB (/run/build/libfprint/_flatpak_build/libfprint/fprint-list-udev-hwdb) unset or not executable.
2022-08-16 17:14:07 +02:00
Bastien Nocera 3b3fc573da test-generated-hwdb: Add more debug on error 2022-08-16 17:14:07 +02:00
Bastien Nocera e782de3747 tests: Fix umockdev version detection
Traceback (most recent call last):
  File "/builds/libfprint/libfprint/tests/umockdev-test.py", line 17, in <module>
    version = tuple(int(_) for _ in umockdev_version.split(b'.'))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builds/libfprint/libfprint/tests/umockdev-test.py", line 17, in <genexpr>
    version = tuple(int(_) for _ in umockdev_version.split(b'.'))
                    ^^^^^^
ValueError: invalid literal for int() with base 10: b'g9049374\n'
2022-08-16 17:14:07 +02:00
Bastien Nocera c3e88f6e46 context: Fix race when shutting down context
Fix possible race which would happen when freeing the devices array
before cancelling the initialisation:
(/builds/libfprint/libfprint/_build/tests/test-fp-context:1449): GLib-CRITICAL **: 14:00:19.640: g_ptr_array_add: assertion 'rarray' failed
2022-08-16 17:14:07 +02:00
Bastien Nocera ac3b0d07ba hwdb: Add FT9201Fingerprint reader
To the unsupported list.
2022-08-16 15:58:53 +02:00
Bastien Nocera 9ca1564e2d hwdb: Add Lenovo ThinkPad E15 fingerprint reader
To the unsupported list.
2022-08-16 15:58:53 +02:00
Johnny Li fb63c39750 elanmoc: add PID 0x0c8c & 0x0c8d 2022-07-25 14:11:37 +08:00
Marcus PfefferandBenjamin Berg f007161bcd goodixmoc: add PID 0x6384
Closes: #489
2022-07-21 11:37:40 +02:00
yangdi 489332c07d goodixmoc: add PID 0x659A 2022-07-19 11:37:46 +08:00
Marco Trevisan (Treviño) 00a59af0dc Upload to kinetic 2022-07-17 17:37:33 +02:00
Marco Trevisan (Treviño) cbe9d5db69 Update changelog 2022-07-17 17:36:16 +02:00
Marco Trevisan (Treviño) ef6433c8be debian/patches: Ensure that identify works with old goodix driver
Newer fprintd supports duplicate-detection, this implies sending to the
device an empty prints gallery, expecting the device to give us a
matched print against its storage.

In case the device has no storage we're doing this anyway, but goodix
doesn't handle this properly, so let's just ignore the case if no prints
are passed.

Also, once returned the value we might initialize a type multiple times,
and let's avoid this not to have a dead-lock after the first action.

LP: #1966911
2022-07-17 17:35:31 +02:00
Marco Trevisan (Treviño) fbffb62ecb fpi-device: Avoid using device action strings
It may cause initializing a type twice in some cases, and thus some
hard-locking, let's just avoid it since we don't care about full debug
strings here.
2022-07-17 17:34:23 +02:00
Marco Trevisan (Treviño) 0d5c897b3d tod: Add wrapper for goodix-tod not handling identification with no prints
Newer fprintd supports duplicate-detection, this implies sending to the
device an empty prints gallery, expecting the device to give us a
matched print against its storage.

In case the device has no storage we're doing this anyway, but goodix
doesn't handle this properly, so let's just ignore the case if no prints
are passed.
2022-07-17 17:34:23 +02:00
Marco Trevisan (Treviño) 15bee898b8 ci: Use junit test reports
They can be used to show test failure logs directly in the MR's
pipelines page.
2022-07-14 22:13:49 +02:00
Marco Trevisan (Treviño) fb9e054637 test-fp-device: Add few tests to check identification init errors 2022-07-14 21:35:30 +02:00
Marco Trevisan (Treviño) 7f6ab61292 fp-device: Return an error if prints are invalid
We'd crash later otherwise, while it's better to return an error.
2022-07-14 21:14:29 +02:00
Marco Trevisan (Treviño) f03d9361e3 fpi-device: Improve documentation for identify/verify report and complete
We still mentioned variables that are not accepted anymore since we
switched to match reporting API.
2022-07-14 21:13:35 +02:00
Marco Trevisan (Treviño) 84d8f68d37 Upload to jammy 2022-03-27 23:48:11 +02:00
Marco Trevisan (Treviño) d10fe9c6fd Update changelog 2022-03-27 23:47:59 +02:00
Marco Trevisan (Treviño) a235937bad debian/docs: Update README name to use markdown file
And remove TODO file
2022-03-22 10:56:58 +01:00
Marco Trevisan (Treviño) 12c4f0d536 debian/libfprint-2-tod1.symbols: Add new symbols 2022-02-23 15:43:50 +01:00
Marco Trevisan (Treviño) 8b612cd1d6 debian/libfprint-2-2.postinst: Devices triggers updated 2022-02-23 15:43:15 +01:00
Marco Trevisan (Treviño) 0919392a9d New upstream release 2022-02-23 15:43:14 +01:00
Marco Trevisan (Treviño) d7276459b6 Update upstream source from tag 'upstream/1.94.3+tod1'
Update to upstream version '1.94.3+tod1'
with Debian dir 1e4c9d5856
2022-02-23 15:43:14 +01:00
Marco Trevisan (Treviño) 3a47ce48e3 New upstream version 1.94.3+tod1 2022-02-23 15:43:06 +01:00
Marco Trevisan (Treviño) 8c5a4e3b41 libfprint-tod.ver: Use explicit versioning for old symbols
Given that we won't go in the past, it's better to be explicit in
using versions for symbols so that all new symbols will be added to the
latest listed release, while others won't be moved from where they are.
2022-02-15 13:07:35 +01:00
Marco Trevisan (Treviño) 31f8d8c067 libfprint-tod.ver: Add new APIs to 1.94 symbols 2022-02-15 13:07:35 +01:00
Marco Trevisan (Treviño) a1340485b6 tests/tod-drivers: Add tests for 1.94.3-built tod drivers 2022-02-15 13:07:31 +01:00
Marco Trevisan (Treviño) f3187ad9f4 tod: Ensure we install tod-macros.h header 2022-02-15 13:06:35 +01:00
Benjamin BergandMarco Trevisan (Treviño) 20de7400c6 tests: Avoid -Wdangling-pointer warning
The code is correct, but gcc thinks the pointer is still NULL after the
call. As obvious workaround don't seem to work, just disable the warning
for now.
2022-02-14 19:00:10 +01:00
Marco Trevisan (Treviño) a328dfe1d9 tests/tod-drivers: Add tests for FpDeviceFeature on 1.94.3 2022-02-14 18:50:47 +01:00
Marco Trevisan (Treviño) b6ef314434 tests/tod-drivers: Move FpDeviceFeature definitions to base-fp-device
They're public enums, so put there in the expected file.
2022-02-14 18:50:11 +01:00
Marco Trevisan (Treviño) 600e6f2107 tests/meson: Remove unsupported sources_dir from gnome mkenums 2022-02-14 18:49:40 +01:00
Marco Trevisan (Treviño) 6b894dbd5c Merge tag 'v1.94.3' into tod
2021-11-02: v1.94.3 release

Highlights:
 * Ensure idle mainloop before completing enumeration (fprintd#119)
 * It is now possible to extend already enrolled prints
 * elanspi: Fix timeout error with some hardware (#438)
 * elanspi: Fix cancellation issues
 * goodixmoc: Return matching device print; fixes duplicate checking (#444)
 * goodixmoc: Support clearing the storage (usually unused)

Git-EVTag-v0-SHA512: 779b560b97bc7da5972d9a4854be5b74f8d310a22ac782fde50fa02c869cf93cc11254d75519076ac8ee59f81c8a9fc0466030eb249519827343ab84eb45e640
2022-02-14 17:03:21 +01:00
Marco Trevisan (Treviño) 5be5f5ac59 Upload to jammy 2021-12-14 19:57:05 +01:00
Marco Trevisan (Treviño) 73b185d1c4 Update changelog 2021-12-14 19:55:53 +01:00
Marco Trevisan (Treviño) 58781d5309 debian/patches: Drop, all applied upstream 2021-12-14 19:53:03 +01:00
Marco Trevisan (Treviño) 94f35d1d92 debian/libfprint-2-2.postinst: Devices triggers updated 2021-12-14 19:51:52 +01:00
Marco Trevisan (Treviño) 79ce870a65 New upstream release 2021-12-14 19:51:52 +01:00
Marco Trevisan (Treviño) 63320c998b Update upstream source from tag 'upstream/1.94.2+tod1'
Update to upstream version '1.94.2+tod1'
with Debian dir 8aa5295f88
2021-12-14 19:46:09 +01:00
Marco Trevisan (Treviño) 2be7eed63d New upstream version 1.94.2+tod1 2021-12-14 19:46:02 +01:00
Benjamin BergandMarco Trevisan (Treviño) c3ef68fa5e 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-14 19:33:50 +01:00
Matthew MirvishandMarco Trevisan (Treviño) 0b37a36874 doc: Fix broken documentation for FpiDeviceUdevSubtypeFlags enum
Added description and fixed incorrect name in comment, so now gtkdoc
actually shows useful information.
2021-12-14 19:33:41 +01:00
Marco Trevisan (Treviño) d46c34b21c Merge tag 'v1.94.2' into tod
Tag 1.94.2

Git-EVTag-v0-SHA512: 3eed67186b9533300d5ba70ce9abc36055068c3eafa663a48c655ef0e8c7a6928bb7cd875a7ae1860a65324fb806da79d83ca3c97a0640b10dc92dc497f04f11
2021-12-14 19:32:04 +01: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
Marco Trevisan (Treviño) a36a4f20ff tod-inspector: Add support for 1.94 device class members 2021-10-31 23:44:37 +01:00
Marco Trevisan (Treviño) 8ae5522201 tod-inspector: Support udev devices 2021-10-31 23:44:05 +01:00
Marco Trevisan (Treviño) fef4120ae1 test-fpi-todv1-types: Check missing device class members for 1.94
Not a problem now, as we're still on 1.94, but will be needed to ensure
that future versions will be checked.
2021-10-31 23:28:21 +01:00
Marco Trevisan (Treviño) dcfe3e0da9 Upload to jammy 2021-10-31 23:13:40 +01:00
Marco Trevisan (Treviño) e14493f340 Update changelog 2021-10-31 23:13:36 +01:00
Marco Trevisan (Treviño) 608a9f10df libfprint: Use a macro to easily compute TOD padding 2021-10-31 23:09:30 +01:00
Marco Trevisan (Treviño) d6eb249fd6 debian/patches: Ensure that structures padding is constant in all archs 2021-10-31 23:08:38 +01:00
Marco Trevisan (Treviño) ec8a9ba0fd fpi-device: Adjust padding based on actual gpointer size
In some architectures pointer size is different. So let's adapt it to it
2021-10-31 22:31:01 +01:00
Marco Trevisan (Treviño) bfbd8b5aee Upload to jammy 2021-10-28 20:32:43 +02:00
Marco Trevisan (Treviño) 164fecb343 Update changelog 2021-10-28 20:32:37 +02:00
Marco Trevisan (Treviño) 90a1d2d481 debian/control: Depend libfprint-2-tod-dev on libgudev-1.0-dev 2021-10-28 19:45:38 +02:00
Marco Trevisan (Treviño) 437d8fa0cf debian/libfprint-2-2.symbols: Remove virtual device symbols
These were wrongly exported before and not really part of any public
API.
2021-10-28 19:29:01 +02:00
Marco Trevisan (Treviño) d402f1bed9 debian/libfprint-2-tod1.symbols: Update TOD symbols 2021-10-28 19:24:33 +02:00
Marco Trevisan (Treviño) 34d317bbbe debian/patches: Drop, all applied on the TOD upstream branch 2021-10-28 19:24:32 +02:00
Marco Trevisan (Treviño) f0e53af57e debian/source/lintian-overrides: Update for new TOD drivers paths 2021-10-28 19:24:31 +02:00
Marco Trevisan (Treviño) 46ece03c62 debian/libfprint-2-2.postinst: Devices triggers updated 2021-10-28 19:24:18 +02:00
Marco Trevisan (Treviño) 5a45cb5023 New upstream release 2021-10-28 19:24:17 +02:00
Marco Trevisan (Treviño) abbc365b5c Update upstream source from tag 'upstream/1.94.1+tod1'
Update to upstream version '1.94.1+tod1'
with Debian dir 7437b3331b
2021-10-28 19:24:16 +02:00
Marco Trevisan (Treviño) 8839ed6b69 New upstream version 1.94.1+tod1 2021-10-28 19:24:08 +02:00
Marco Trevisan (Treviño) 77ff30e19d tod: Mark symbols that were added in 1.90 series as part of TOD 1.0.0
Otherwise we'd cause the symbols to disappear on such versions
2021-10-28 19:22:21 +02:00
Marco Trevisan (Treviño) d2d1834b6f Merge tag 'debian/1%1.94.1-1' into ubuntu
libfprint Debian release 1:1.94.1-1
2021-10-28 18:20:45 +02:00
Marco Trevisan (Treviño) 1153fc85a5 Merge with libfprint 1.94.1 and followup fixup commits 2021-10-28 15:46:02 +02:00
Marco Trevisan (Treviño) 18ce8a4a60 Upload to unstable 2021-10-27 15:17:09 +02: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) 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
Marco Trevisan (Treviño) bfa41fe183 Upload to jammy 2021-10-26 21:24:47 +02:00
Marco Trevisan (Treviño) cd4601c104 Update changelog 2021-10-26 21:24:11 +02:00
Marco Trevisan (Treviño) d845700226 debian/patches: Fix template struct in goodix drivers
LP: #1945296
2021-10-26 21:22:57 +02:00
Marco Trevisan (Treviño) 4058a81829 debian/patches: Add support for new elan, goodix and synaptics drivers
Most of the drivers only need to list new product IDs to work with new
devices, and including other changes that new devices may require.

LP: #1945296
LP: #1945298
2021-10-11 05:44:30 -04:00
Matthias KloseandMarco Trevisan (Treviño) c9bb40364e Import Debian changes 1:1.90.7+git20210222+tod1-0ubuntu3
libfprint (1:1.90.7+git20210222+tod1-0ubuntu3) impish; urgency=medium
.
  * No-change rebuild to build packages with zstd compression.
2021-10-11 04:49:57 -04:00
Marco Trevisan (Treviño) 312b75fe66 test-fp-todv1-types: Ensure we check all the enum values
We were ignoring enum values when there were gaps, so let's check that
all the values in the old version enums are present in the current one.
2021-09-04 04:13:15 +02:00
Marco Trevisan (Treviño) 125d6e276f tests: Repeat tests for TOD drivers compiled for each supported version 2021-09-04 03:20:58 +02:00
Marco Trevisan (Treviño) 4a337393a6 tests: Use more versioned types for fpi types tests
Also move images into its own header
2021-09-04 01:00:34 +02:00
Marco Trevisan (Treviño) 9c37ffa4be tests: Run TOD driver-independent tests alone 2021-09-03 20:18:36 +02:00
Marco Trevisan (Treviño) c63455d289 TOD: Add wrappers for SSM functions that are not compatible with 1.90
Expose new versioned symbols that work with previous API so that we can
keep compatibility with old drivers without having to recompile them.

We disable the GCancellable API in delayed SSM actions since that was
something that wasn't really needed and prone to errors, instead of
just re-implementing it as it was in the TOD case.
2021-09-03 20:18:36 +02:00
Marco Trevisan (Treviño) e4ef2ed7a0 tests: Do add TOD testing for SSM API
Driver is coming from the TOD drivers testing project [1].

https://gitlab.freedesktop.org/3v1n0/libfprint-tod-test-drivers
2021-09-03 19:41:17 +02:00
Marco Trevisan (Treviño) fdf86e65ec TOD: Add changed functions in libfprint 1.92, a fallback version is needed 2021-09-03 19:41:17 +02:00
Marco Trevisan (Treviño) 71827856c9 tod: Update version file to include new APIs per versions 2021-09-03 19:41:17 +02:00
Marco Trevisan (Treviño) d0aa30a435 tod: Check the message emission if the tod path isn't readable 2021-09-03 19:41:17 +02:00
Marco Trevisan (Treviño) 29b904b93d tests: Add versions check on TOD drivers based on their IDs
Recompile tod drivers using libfprint-tod-test-drivers project [1] so
that we don't have to reorder the private driver structure, plus use a
versioned driver ID and parse it to check whether a feature is supported
for such TOD test driver.

https://gitlab.freedesktop.org/3v1n0/libfprint-tod-test-drivers
2021-09-03 19:41:17 +02:00
Marco Trevisan (Treviño) 0a7473dce1 fpi-device: Do not include config.h in headers
It should be included in files requiring it only.
2021-09-02 13:43:43 +02:00
Marco Trevisan (Treviño) 4ed67f9084 build: Use host machine family from meson 2021-09-02 13:23:30 +02:00
Marco Trevisan (Treviño) 2d20c6a8f2 fpi-device: Ensure FpDeviceClass is still compatible with TODv1 ABI
Tests are ensuring it, adapt internal tests to ignore new features when
using old drivers
2021-08-28 03:07:23 +02:00
Marco Trevisan (Treviño) 2e00b03a43 Merge tag 'v1.94.0' into tod
Tag 1.94.0

Git-EVTag-v0-SHA512: 7cf9d7defb02433140f575589099569a5848ab34e8ecb0a4a90bb3c9eb1c228a16438afe1b23c381b59c1506f189a845752fead3dbd3c1c11f686cf47302cb1b
2021-08-28 02:19:40 +02:00
Marco Trevisan (Treviño) df36c66730 tod: Use dynamically defined version script
So we don't have to manage the soname manually
2021-04-14 18:15:07 +02:00
Marco Trevisan (Treviño) 35bcd4326c libfprint-tod.ver: Add new symbols to newer TOD subversion
This should be something to do every time, as it may allow to define
multiple symbol versions, if something changes upstream.
2021-04-14 18:14:35 +02:00
Marco Trevisan (Treviño) 00128e11fd README: Link to TOD README file 2021-04-13 22:35:34 +02:00
Marco Trevisan (Treviño) 81ecee3ead tests/tod-drivers: Add newly supported types 2021-04-13 22:35:34 +02:00
Marco Trevisan (Treviño) 18b3acdfb0 fpi-spi-transfer: Add structure padding 2021-04-13 22:35:34 +02:00
Marco Trevisan (Treviño) 1d7a561b0b tod-inspector: Add support reading features 2021-04-13 22:35:28 +02:00
Marco Trevisan (Treviño) a79a8d0e22 device: Keep device type ordering as default 2021-04-13 22:35:28 +02:00
Marco Trevisan (Treviño) 344d5cb2a9 fpi-device: Reduce padding on FpIdEntry to make space to new elements 2021-04-13 22:35:28 +02:00
Marco Trevisan (Treviño) c906b30cba tod: Add support for device features, keeping ABI compatibility 2021-04-13 22:35:28 +02:00
Marco Trevisan (Treviño) eb329903b4 test-fp-device-tod: Ignore deprecated functions and use new ones 2021-04-13 22:17:39 +02:00
Marco Trevisan (Treviño) 20ac5c10a4 Merge branch 'origin/master' into tod 2021-04-13 22:17:37 +02:00
Marco Trevisan (Treviño) 58756ab62e tests: Ensure that we don't break ABI with expected TODv1 structures
We can check whether each relevant structure element has not changed and
that the supported enum and flag values didn't change value.
2021-04-13 22:14:56 +02:00
Marco Trevisan (Treviño) e5e999de2c fpi-image: Add missing padding
This breaks the ABI with such TOD drivers, but we don't have any using
an image device so far, so it's a safe break.
2021-04-13 22:14:56 +02:00
Matthias KloseandMarco Trevisan (Treviño) 4f14b6e5b0 Import Debian changes 1:1.90.7+git20210222+tod1-0ubuntu2
libfprint (1:1.90.7+git20210222+tod1-0ubuntu2) hirsute; urgency=medium
.
  * Disable lto for now, failing test
    ibfprint:unit-tests+tod+fake_test_dev_tod_current / fpi-device-tod-fake_test_dev_tod_current
2021-04-02 00:51:06 +02:00
Marco Trevisan (Treviño) 447cd3f7ba fpi-assemping: Do not include unneeded headers and do not use absolute search paths 2021-03-03 19:35:16 +01:00
Marco Trevisan (Treviño) 08cf893e2e examples: Add TOD inspector tool, to do some basic analysis of TOD drivers
Will print some drivers data
2021-03-03 19:30:38 +01:00
Marco Trevisan (Treviño) 7d5dec796d Finalise changelog 2021-02-22 21:39:04 +01:00
Marco Trevisan (Treviño) 375d1e18ae Update changelog 2021-02-22 21:39:00 +01:00
Marco Trevisan (Treviño) bc8b3d497d debian/libfprint-2-2.postinst: Regenerate as per generator changes
LP: #1909023
2021-02-22 21:39:00 +01:00
Marco Trevisan (Treviño) f2dac228af debian/update-udev-triggers.sh: Ignore udevadm trigger failures
LP: #1909023
2021-02-22 21:39:00 +01:00
Marco Trevisan (Treviño) 77b9220178 debian/libfprint-2-2.symbols: Update symbols 2021-02-22 20:55:40 +01:00
Marco Trevisan (Treviño) 3f0aea923b debian/patches: Drop, they're all applied upstream 2021-02-22 20:45:38 +01:00
Marco Trevisan (Treviño) a5e2d8d7f0 debian/libfprint-2-2.postinst: Devices triggers updated 2021-02-22 20:42:18 +01:00
Marco Trevisan (Treviño) 5ef323521d New upstream release 2021-02-22 20:42:15 +01:00
Marco Trevisan (Treviño) 8ea21bb0a2 Update upstream source from tag 'upstream/1.90.7+git20210222+tod1'
Update to upstream version '1.90.7+git20210222+tod1'
with Debian dir 064359ef87
2021-02-22 20:42:15 +01:00
Marco Trevisan (Treviño) 1c73414f3c New upstream version 1.90.7+git20210222+tod1 2021-02-22 20:42:10 +01:00
Marco Trevisan (Treviño) bd2e9570f6 debian/watch: Support TOD upstream git snapshots 2021-02-22 20:41:58 +01:00
Marco Trevisan (Treviño) ffb6a00ee3 debian/update-udev-triggers.sh: Restore proper autosuspend.hwdb path
I wrongly committed it to a test location :(
2021-02-22 20:40:56 +01:00
Marco Trevisan (Treviño) 4f76dbc18f Merge tag 'debian/1%1.90.7-3' into ubuntu
libfprint Debian release 1:1.90.7-3
2021-02-22 20:35:41 +01:00
Marco Trevisan (Treviño) b65a775bae Merge tag 'upstream/1.90.7' into upstream-tod
Upstream version 1.90.7
2021-02-22 20:26:04 +01:00
Marco Trevisan (Treviño) c6da36a373 New upstream version 1.90.7+git20210222+tod1 2021-02-22 20:13:50 +01:00
Marco Trevisan (Treviño) a1ae3cfdaa meson: Bump version to 1.90.7+git20200222+tod1 2021-02-22 19:42:54 +01:00
Marco Trevisan (Treviño) 5804b25806 Merge libfprint/libfprint master branch into tod 2021-02-22 19:12:51 +01:00
Marco Trevisan (Treviño) 8b82ebeca5 Merge tag 'v1.90.7' into tod
Tag 1.90.7

Git-EVTag-v0-SHA512: 21642bcdac35b82cd3f56130603d09ebe62b321123f58ce4a491b8fa8f545ae86a7c3d670b212af474d561123efa91f0383ad416b07c3ce1d4df0d292e77bb94
2021-02-22 18:16:21 +01:00
Marco Trevisan (Treviño) 09d12b61ee debian/gbp.conf: Set back branch to debian 2021-02-02 15:49:37 +01:00
Marco Trevisan (Treviño) acb91a10df debian/patches/series: Add missing reference to the shared-library patch 2021-01-21 21:08:37 +01:00
Marco Trevisan (Treviño) 0e23cc18d4 debian/update-udev-triggers.sh: handle some minor shellcheck warnings 2021-01-21 19:59:25 +01:00
Marco Trevisan (Treviño) ec469dd2e1 Upload to experimental 2021-01-21 19:53:12 +01:00
Marco Trevisan (Treviño) 038fd70b28 Update changelog 2021-01-21 19:52:44 +01:00
Marco Trevisan (Treviño) 97b6e243b8 debian/update-udev-triggers.sh: Use perl to replace file content
envsubst is nice but may be not installed and can be confusing, so let's
use perl (+ printenv) to replace our file content.
2021-01-21 19:52:44 +01:00
Marco Trevisan (Treviño) 067020b36e debian/libfprint-2-2.postinst: Upgrade as per upstream hwdb
Blacklisted devices can be now removed from the trigger list as we don't
add them to plugdev anymore.
2021-01-21 19:34:13 +01:00
Marco Trevisan (Treviño) 4c4b444f21 debian: Generate postinst devices list automatically at gbp import phase
Alternatively provide a script to keep the post-inst script updated
2021-01-21 19:34:13 +01:00
Marco Trevisan (Treviño) b97f10d63d debian/patches: Explicitly mark libfprint as a shared library 2021-01-21 19:34:13 +01:00
Marco Trevisan (Treviño) 20d9b79584 New upstream version 1.90.7+git1 2021-01-21 19:23:22 +01:00
Marco Trevisan (Treviño) 327a8047b9 New upstream version 1.90.7+git1 2021-01-21 19:17:25 +01:00
Marco Trevisan (Treviño) 742513ee87 New upstream version 1.90.7+git1 2021-01-21 19:13:37 +01:00
Marco Trevisan (Treviño) e13a070cb5 debian/rules: Don't remove the meson generated private values from pc file
This is now generated correctly by upstream, so no need to drop anything
from it.
2021-01-21 17:41:02 +01:00
Marco Trevisan (Treviño) 0978747035 debian/rules: Manually set udev hwdb directory (was rules dir before) 2021-01-21 17:24:41 +01:00
Marco Trevisan (Treviño) eb21b898aa libfprint-2-2.install: Install hwdb file 2021-01-21 17:24:41 +01:00
Marco Trevisan (Treviño) 5f902c9298 debian/rules: Do not autorename upstream rules file anymore
It's not there, while there's no point to rename the hwdb one.
2021-01-21 17:24:41 +01:00
Marco Trevisan (Treviño) 3ccd267ad2 debian/patches: Use hwdb to store device autosuspend rules and drop debian specifics
Upstream will use an hwdb to store the device autosuspend (that will be
included in systemd also, so libfprint packagin may stop shipping it at
later point), so use it earlier.

Drop the debian specific rules to set the devices part of the `plugdev`
group as such devices should not be ever readable by an user, but the
access should be managed through a libfprint-based service (frpintd at
the date).
2021-01-21 17:24:34 +01:00
Marco Trevisan (Treviño) f2c4614779 gbp.conf: Prepare for experimental branching 2021-01-21 17:15:13 +01:00
Marco Trevisan (Treviño) c8a14db3d5 Upload to unstable 2021-01-21 17:10:57 +01:00
Marco Trevisan (Treviño) 8960e7f974 Update changelog 2021-01-21 17:10:06 +01:00
Marco Trevisan (Treviño) 8b7f8dc77b debian/libfprint-2-2.postinst: Regenerate the list based on new IDs 2021-01-21 17:06:51 +01:00
Marco Trevisan (Treviño) 702c58152c debian/patches: Skip udev rules tests when not all drivers are compiled 2021-01-21 17:01:50 +01:00
Marco Trevisan (Treviño) dd326c90c2 Upload to unstable 2021-01-21 13:38:59 +01:00
Marco Trevisan (Treviño) 8e5b192b00 Update changelog 2021-01-21 13:38:54 +01:00
Marco Trevisan (Treviño) eaff869235 debian/patches: Ensure that umockdev tests will pass with libusb 1.0.24
Closes: #977848, #978256
2021-01-21 13:32:48 +01:00
Marco Trevisan (Treviño) 36e8ef7ad9 debian/patches: Include upstream udev fixes and use hardcoded rules
Fixes the multi-arch file conflict
2021-01-21 13:29:50 +01:00
Marco Trevisan (Treviño) a342ae72af debian/patches: Refresh, dropping merged 2021-01-21 00:31:17 +01:00
Marco Trevisan (Treviño) 90142ed596 New upstream release 2021-01-21 00:09:14 +01:00
Marco Trevisan (Treviño) 261ab7cc82 Update upstream source from tag 'upstream/1.90.7'
Update to upstream version '1.90.7'
with Debian dir 6c3497e22e
2021-01-21 00:09:14 +01:00
Marco Trevisan (Treviño) 0ac97568dc New upstream version 1.90.7 2021-01-21 00:09:08 +01:00
Marco Trevisan (Treviño) ef5204c1e4 Finalise changelog 2020-12-10 21:37:13 +01:00
Marco Trevisan (Treviño) a09ac95adf Update changelog 2020-12-10 21:37:09 +01:00
Marco Trevisan (Treviño) baa5dcef0f debian/patches: Do not support drivers known to fail in big endian 2020-12-10 21:35:55 +01:00
Marco Trevisan (Treviño) 4b2440eecd Upload to unstable 2020-12-10 21:32:49 +01:00
Marco Trevisan (Treviño) 81cb0c8848 Update changelog 2020-12-10 21:27:57 +01:00
Marco Trevisan (Treviño) 7837f05ae4 debian/patches: Do not support drivers known to fail in big endian 2020-12-10 21:27:30 +01:00
Marco Trevisan (Treviño) 059911bb81 Finalise changelog 2020-12-10 17:26:27 +01:00
Marco Trevisan (Treviño) 3ad27425ce Update changelog 2020-12-10 17:21:54 +01:00
Marco Trevisan (Treviño) 8a76bc3e6f debian/rules: sync with debian (no change) 2020-12-10 17:20:42 +01:00
Marco Trevisan (Treviño) c8aed5e8a6 debian/control: Remove Didier Raboud from uploaders
2020-12-04 10:30:09 @bigon:
  Trevinho: I just found an old mail from Odyx/Didier asking me to remove him
  from the uploaders, maybe you could do that and add yourself if you plan to
  maintain the two packages in debian.
2020-12-10 17:19:11 +01:00
Marco Trevisan (Treviño) 1da37a2253 Mark libfprint-2-doc as Multi-Arch: foreign 2020-12-10 17:18:27 +01:00
Marco Trevisan (Treviño) 181f160f3c New upstream release 2020-12-10 17:17:55 +01:00
Marco Trevisan (Treviño) 37afa510d9 Update upstream source from tag 'upstream/1.90.6+tod1'
Update to upstream version '1.90.6+tod1'
with Debian dir 778e53fbe6
2020-12-10 16:28:08 +01:00
Marco Trevisan (Treviño) 2e18bb90ba New upstream version 1.90.6+tod1 2020-12-10 16:28:03 +01:00
Benjamin BergandMarco Trevisan (Treviño) 4b675a0691 nbis: Disable array-parameter and array-bounds warnings
NBIS just does weird things and while the array-parameter warning is
easy to fix, the other is not trivial. So disable these warnings so that
we can still build using newer GCC versions.
2020-12-10 16:22:26 +01:00
Marco Trevisan (Treviño) 52d30a88fc tests: Ensure we prepend the libfprint libraries path when testing TOD 2020-12-10 16:21:11 +01:00
Marco Trevisan (Treviño) f8cb985476 Merge tag 'v1.90.6' into tod
Tag 1.90.6

Git-EVTag-v0-SHA512: 1cca84a89332a674d822476e587e1d9f30dc11bfff13724548ec0be66ab32f910fb5e7a7c9403c9a813538fdd9e86661105af8e2a4865b0b30d301601c7bddab
2020-12-10 16:10:39 +01:00
Marco Trevisan (Treviño) b9ecbd5b2d Upload to unstable 2020-12-10 15:58:37 +01:00
Marco Trevisan (Treviño) ab4a6be813 Update changelog 2020-12-10 15:58:28 +01:00
Marco Trevisan (Treviño) d43f0867b7 debian/control: Remove Didier Raboud from uploaders
2020-12-04 10:30:09 @bigon:
  Trevinho: I just found an old mail from Odyx/Didier asking me to remove him
  from the uploaders, maybe you could do that and add yourself if you plan to
  maintain the two packages in debian.
2020-12-10 15:45:50 +01:00
Marco Trevisan (Treviño) 588c4a15b0 Mark libfprint-2-doc as Multi-Arch: foreign 2020-12-10 15:45:50 +01:00
Marco Trevisan (Treviño) 74bf7fb086 debian/patches: Add upstream patch to avoid nbis library warnings
These have been checked to be harmless upstream
2020-12-10 15:45:50 +01:00
Marco Trevisan (Treviño) ec4cde6ffb debian/patches: Refresh 2020-12-10 15:26:55 +01:00
Marco Trevisan (Treviño) 1789914aad New upstream release 2020-12-10 13:55:34 +01:00
Marco Trevisan (Treviño) 6c8d013c9d Update upstream source from tag 'upstream/1.90.6'
Update to upstream version '1.90.6'
with Debian dir b7eff36961
2020-12-10 13:45:13 +01:00
Marco Trevisan (Treviño) cf4df8292e New upstream version 1.90.6 2020-12-10 13:45:07 +01:00
Marco Trevisan (Treviño) 621550f2be Finalise changelog 2020-12-04 03:57:04 +01:00
Marco Trevisan (Treviño) 0c7eb81d6a Update changelog 2020-12-04 03:56:00 +01:00
Marco Trevisan (Treviño) ab834e1743 debian/libfprint.lintian-overrides: Add override for binary TOD for testing 2020-12-04 03:56:00 +01:00
Marco Trevisan (Treviño) e35391c976 debian/libfprint-2-tod1.symbols: Add new symbols 2020-12-04 03:56:00 +01:00
Marco Trevisan (Treviño) f7854bf953 debian/libfprint-2-2.symbols: Add new symbols 2020-12-04 03:56:00 +01:00
Marco Trevisan (Treviño) b49cdf6118 debian/rules: Increase testing timeout
As default might not be enough in some archs
2020-12-04 03:56:00 +01:00
Marco Trevisan (Treviño) cc3a29ca47 debian: Switch to debhelper 13 and use its features
As per this restrict more the .install files wilcards
2020-12-04 03:56:00 +01:00
Marco Trevisan (Treviño) 77351bf47d debian/rules: Ignore failures in s390x as it now builds and tests correctly 2020-12-04 02:49:35 +01:00
Marco Trevisan (Treviño) aeb0878ee4 Add myself to Uploaders 2020-12-04 02:49:10 +01:00
Marco Trevisan (Treviño) 8cd34e8b57 debian/patches: Use gbp pq topics for debian-specific patches 2020-12-04 02:47:53 +01:00
Marco Trevisan (Treviño) 68c377ae1e debian/patches: Drop patches applied upstream 2020-12-04 02:46:24 +01:00
Marco Trevisan (Treviño) 0849cb0476 New upstream release 2020-12-04 02:44:12 +01:00
Marco Trevisan (Treviño) 8d7628ba0f Update upstream source from tag 'upstream/1.90.5+tod1'
Update to upstream version '1.90.5+tod1'
with Debian dir b9a5b8de31
2020-12-04 02:44:12 +01:00
Marco Trevisan (Treviño) e84208896c New upstream version 1.90.5+tod1 2020-12-04 02:44:07 +01:00
Marco Trevisan (Treviño) 14d24c49f8 debian/control: Mark libfprint-2-tod-dev as Multi-Arch: same 2020-12-04 02:42:01 +01:00
Laurent BigonvilleandMarco Trevisan (Treviño) 39927ef448 debian/control: Mark libfprint-2-dev as Multi-Arch: same 2020-12-04 02:41:18 +01:00
Laurent BigonvilleandMarco Trevisan (Treviño) 44807e379a debian/control: Bump Standards-Version to 4.5.1 (no further changes) 2020-12-04 02:41:03 +01:00
Marco Trevisan (Treviño) 80cf417b30 tests: Check if loading a pre-built binary keep working with libfprint
The libfprint tod fake library is built using using libtod v1.90.1+tod1
and we need to ensure that it will continue working until we won't
change ABI/API.
2020-12-04 02:16:16 +01:00
Marco Trevisan (Treviño) 7b0df77c49 tests: Get tod driver name from env variable 2020-12-04 02:06:54 +01:00
Marco Trevisan (Treviño) 1613c0de43 fp-device: Return valid finger status value on error
Not that the two enums have different value, but indeed the type is
wrong.
2020-12-04 00:53:29 +01:00
Marco Trevisan (Treviño) 4da4a7041a fp-device: Ensure finger status is set to proper type on property getter
Finger status is a flag not an enum.

Add tests.
2020-12-04 00:49:53 +01:00
Marco Trevisan (Treviño) c9579ab21b test: Run all the fpi-device tests with the dynamically loaded TOD driver
We can ensure better that it works as expected repeating all the device
tests for it too.

The nice part is that we can just do this by re-defininig its GType as
the gtype of the loaded driver.
2020-12-03 04:38:15 +01:00
Marco Trevisan (Treviño) 9cbb3e5f55 tests: Isolate more the TOD tests so that we build the driver without clashes 2020-12-03 04:35:41 +01:00
Marco Trevisan (Treviño) d83453de02 tests: Move tod context creation into test-utils-tod library 2020-12-03 02:39:33 +01:00
Marco Trevisan (Treviño) 99063246b7 fpi-image-device: Reorder image state not to change values
We need this to avoid breaking already present TOD image devices
drivers.
2020-12-03 02:05:08 +01:00
Marco Trevisan (Treviño) 7dc2cbf8d9 fp-print: Don't byte-swap two times the NBIS array contents
When serializing an image print in big endian machine we ended up
swapping the arrays contents two times, first when adding the values and
eventually when calling g_variant_byteswap which already handles this
properly.

With this, we get the test passing into s390x.

Fixes: #236
2020-12-03 01:34:45 +01:00
Marco Trevisan (Treviño) bbd113594d test-fpi-device: Always check the return values for the API calls
Ensure that the return value of the API calls match the expected one,
as we need to ensure that it also matches with the error/no-error case.
2020-12-03 01:34:44 +01:00
Marco Trevisan (Treviño) 11d4bc2981 fpi-device: Return proper type on identification success
Identify function is supposed to propagate a boolean value, but we make
it return an integer instead on idle, this can be normally the same in
most of architectures, but not in BE ones.

So, make it return the proper type.
Fixes test failures in s390x.

Related to #236
2020-12-03 01:34:42 +01:00
Aris LinandMarco Trevisan (Treviño) f33a282bb0 synaptics: add support PID 0xE7 2020-12-03 01:34:35 +01:00
Marco Trevisan (Treviño) a3aadd8398 Merge tag 'v1.90.5' into tod
Tag 1.90.5

Git-EVTag-v0-SHA512: 05650e2a6cf2290542936271b140e79015f56e35fbffc4677e37bf30963b2a38b49eb699db80cee6677ff348ea9e8548514a9f1e06a767269e44d7fac3334c45
2020-12-03 01:32:45 +01:00
Marco Trevisan (Treviño) bb38a8c99c debian/gbp.conf: Include suggested settings by GNOME team
Even if libfprint is not part of GNOME I think these settings are good
practice anyways.
2020-12-02 21:16:41 +01:00
Marco Trevisan (Treviño) cb0eb5c5be debian/rules: Increase testing timeout
As default might not be enough in some archs
2020-12-02 20:58:21 +01:00
Marco Trevisan (Treviño) 776c789533 debian: Switch to debhelper 13 and use its features
As per this restrict more the .install files wilcards
2020-12-02 20:58:21 +01:00
Marco Trevisan (Treviño) 899d5c309f debian/rules: Enable tests in s390x as it now builds and tests correctly 2020-12-02 19:01:08 +01:00
Marco Trevisan (Treviño) 632a2abf62 Upload to unstable 2020-12-02 17:53:32 +01:00
Marco Trevisan (Treviño) 616dbcaad6 Update changelog 2020-12-02 17:52:57 +01:00
Marco Trevisan (Treviño) 0494815d57 Add myself to Uploaders 2020-12-02 17:52:11 +01:00
Marco Trevisan (Treviño) 4f85d9e1b3 debian/patches: Don't byte-swap two times the NBIS print array contents
Fixes virtual-image test in libfprint for s390x
2020-12-02 17:48:28 +01:00
Marco Trevisan (Treviño) f58ac0a499 debian/patches: Properly handle identify return value and add tests
This fixes fprintd test failures in s390x
2020-12-02 17:47:37 +01:00
Marco Trevisan (Treviño) 5cc6a64502 Upload to unstable 2020-12-02 05:11:33 +01:00
Marco Trevisan (Treviño) 6a22714677 Update changelog 2020-12-02 05:09:33 +01:00
Marco Trevisan (Treviño) 457f8c818c debian/patches: Use gbp pq topics for debian-specific patches 2020-12-02 05:09:33 +01:00
Marco Trevisan (Treviño) e696d77514 New upstream release 2020-12-02 04:57:16 +01:00
Marco Trevisan (Treviño) c083be9ed6 Update upstream source from tag 'upstream/1.90.5'
Update to upstream version '1.90.5'
with Debian dir af3de02221
2020-12-02 04:53:48 +01:00
Marco Trevisan (Treviño) 5f93ff8536 New upstream version 1.90.5 2020-12-02 04:53:44 +01:00
Laurent Bigonville 90f41d13a0 debian/control: Mark libfprint-2-dev as Multi-Arch: same 2020-12-01 12:12:25 +01:00
Laurent Bigonville d44b1bacbd Release to unstable 2020-12-01 11:38:38 +01:00
Laurent Bigonville 82286e7496 debian/control: Bump Standards-Version to 4.5.1 (no further changes) 2020-12-01 11:35:11 +01:00
Laurent Bigonville efa3c0cbb9 Merge branch 'debian' into 'debian'
Update to libfprint 1.90.4

See merge request debian/libfprint!4
2020-12-01 10:29:12 +00:00
Marco Trevisan (Treviño) 4d978f23d1 debian/rules: Also build the virtual drivers, as they're useful for testing 2020-11-30 20:28:48 +01:00
Marco Trevisan (Treviño) f59e608351 Update changelog 2020-11-30 20:25:35 +01:00
Marco Trevisan (Treviño) c8503f301a Update changelog 2020-11-30 20:24:37 +01:00
Marco Trevisan (Treviño) 2866d8a247 debian/patches: Reorder to give upstream more priority 2020-11-30 20:24:11 +01:00
Marco Trevisan (Treviño) 0c9f7cf5ea debian/patches: Don't use power-save mode for USB controller
LP: #1906296
2020-11-30 20:14:09 +01:00
Marco Trevisan (Treviño) b27542b02e Update changelog 2020-11-30 19:58:52 +01:00
Marco Trevisan (Treviño) c595b5b170 debian/libfprint-2-2.symbols: Add new symbols 2020-11-27 16:48:03 +01:00
Marco Trevisan (Treviño) 71676bd2e8 debian/rules: Also build the virtual drivers, as they're useful for testing
Mostly it allows testing fprintd fully.
2020-11-27 16:35:08 +01:00
Marco Trevisan (Treviño) aff0fe6553 Update upstream source from tag 'upstream/1.90.4'
Update to upstream version '1.90.4'
with Debian dir 1ef71fb7ce
2020-11-27 16:28:28 +01:00
Marco Trevisan (Treviño) 480451d784 New upstream version 1.90.4 2020-11-27 16:28:21 +01:00
Marco Trevisan (Treviño) 8ab27bb03f Finalise changelog 2020-11-25 19:18:20 +01:00
Marco Trevisan (Treviño) bdaf73c01d Update changelog 2020-11-25 19:17:58 +01:00
Marco Trevisan (Treviño) aa75b6f027 debian/patches: Add identification support to synaptics driver
It allows to unlock / log-in with any finger.

LP: #1905600
2020-11-25 19:04:33 +01:00
Marco Trevisan (Treviño) e8d6f1bd01 debian/patches: Ensure we do not waste power for unsupported devices
LP: #1905603
2020-11-25 19:04:33 +01:00
Marco Trevisan (Treviño) 3c35c01af9 debian/patches: Fix vfs301 verification using device pointer on callbacks
LP: #1905597
2020-11-25 18:56:26 +01:00
Marco Trevisan (Treviño) 576beb1ff5 debian/patches: Add support for new Synaptics devices IDs
LP: #1905593
2020-11-25 18:56:08 +01:00
Marco Trevisan (Treviño) 32767f4e16 debian/patches: Properly handle aes3k devices, resubmitting commands
This also needs proper commands cancellation

LP: #1897613
2020-11-25 18:15:09 +01:00
Marco Trevisan (Treviño) e4d2eaeff7 debian/patches: Refresh 2020-11-25 18:15:05 +01:00
Marco Trevisan (Treviño) de761cd741 debian/gbp.conf: Include debian's GNOME team preferred settings 2020-11-25 18:06:51 +01:00
Laurent Bigonville 3fd3cf5ac5 Release to unstable 2020-11-15 16:06:27 +01:00
Laurent Bigonville 9799bc4161 New upstream release 2020-11-15 13:48:58 +01:00
Laurent Bigonville b875f55302 Update upstream source from tag 'upstream/1.90.3'
Update to upstream version '1.90.3'
with Debian dir f057e302e6
2020-11-15 13:48:25 +01:00
Laurent Bigonville 3300d5cde7 New upstream version 1.90.3 2020-11-15 13:48:21 +01:00
Laurent Bigonville 004d7ab7d5 Update debian/watch now that upstream relies on tags for the released tarballs
See: https://gitlab.freedesktop.org/libfprint/libfprint/-/issues/329
2020-11-15 13:46:50 +01:00
Laurent Bigonville 3892d2bd2c Merge remote-tracking branch '3v1n0/debian' into debian 2020-11-13 10:56:16 +01:00
Laurent Bigonville 1910e2ed79 Update upstream source from tag 'upstream/1.90.2'
Update to upstream version '1.90.2'
with Debian dir b87656b655
2020-11-13 10:43:11 +01:00
Laurent Bigonville 3feb85af19 New upstream version 1.90.2 2020-11-13 10:43:04 +01:00
Marco Trevisan (Treviño) 8366e397d8 Finalise changelog 2020-09-24 06:22:04 +02:00
Marco Trevisan (Treviño) db56b71caf Update changelog 2020-09-24 06:22:04 +02:00
Marco Trevisan (Treviño) 4cf41fcd24 debian/libfprint-2-tod1.symbols: Added new GType symbols 2020-09-24 06:21:07 +02:00
Marco Trevisan (Treviño) dfecdf9ff3 Update upstream source from tag 'upstream/1.90.3+tod1'
Update to upstream version '1.90.3+tod1'
with Debian dir 26b22ab421
2020-09-24 06:06:17 +02:00
Marco Trevisan (Treviño) 2ef6d1886b New upstream version 1.90.3+tod1 2020-09-24 06:06:08 +02:00
Marco Trevisan (Treviño) 52410c3310 Merge tag 'v1.90.3' into tod
Tag 1.90.3

Git-EVTag-v0-SHA512: 67e0d995146cb82107480520589b6c90583602b3945e03f71c2fdb5f0f2c681143c67e824e0572ae93995e75112c402efaad101f01be5e86a75389e4f1421821
2020-09-24 05:45:35 +02:00
Marco Trevisan (Treviño) 16c780c302 debian/changelog: Fix bug number
Damned copy-paste (and my vimrc...)!
2020-06-19 19:34:27 +02:00
Marco Trevisan (Treviño) 349e30e3ae Finalise changelog 2020-06-19 17:38:55 +02:00
Marco Trevisan (Treviño) 13dcb8620b Update changelog 2020-06-19 17:37:26 +02:00
Marco Trevisan (Treviño) 70f4f2c5a4 libfprint-2-tod1.symbols: Add new TOD symbols
No ABI change
2020-06-19 17:37:26 +02:00
Marco Trevisan (Treviño) 5e6ce9fe55 debian/rules: Be strictier about symbol changes 2020-06-19 17:37:26 +02:00
Marco Trevisan (Treviño) dc0371256f debian/rules: Be strictier about symbol changes 2020-06-19 17:35:01 +02:00
Marco Trevisan (Treviño) ef37ef2004 debian/control: Add missing libfprint-2-tod-dev dependencies
Compiling drivers with TOD requires various libraries that we were not
properly listing.

This is based on the libfprint-2-tod-1.pc content file.

LP: #1884267
2020-06-19 17:11:19 +02:00
Marco Trevisan (Treviño) 28bbd94ec9 git_reading_pointer.patch: Dopping 2020-06-19 16:44:18 +02:00
Marco Trevisan (Treviño) 369e91feb4 Update upstream source from tag 'upstream/1.90.2+tod1'
Update to upstream version '1.90.2+tod1'
with Debian dir 65dc429037
2020-06-19 16:43:04 +02:00
Marco Trevisan (Treviño) 1d94579d84 New upstream version 1.90.2+tod1 2020-06-19 16:42:56 +02:00
Marco Trevisan (Treviño) 0e123d0752 Merge tag 'v1.90.2' into tod
Tag 1.90.2
2020-06-19 16:27:51 +02:00
Marco Trevisan (Treviño) 7c359b9135 Update changelog 2020-06-19 16:17:54 +02:00
Marco Trevisan (Treviño) 7b9a8e0dfb git_reading_pointer.patch: Dopping 2020-06-19 16:17:54 +02:00
Marco Trevisan (Treviño) 2ba95f2ad5 Update upstream source from tag 'upstream/1.90.2'
Update to upstream version '1.90.2'
with Debian dir b87656b655
2020-06-19 15:48:35 +02:00
Marco Trevisan (Treviño) 748bfa09ce New upstream version 1.90.2 2020-06-19 15:48:26 +02:00
Sebastien BacherandMarco Trevisan (Treviño) bb4844012b Import Debian changes 1:1.90.1+tod1-0ubuntu4
libfprint (1:1.90.1+tod1-0ubuntu4) focal; urgency=medium

  * Rebuild with the new libgusb

libfprint (1:1.90.1+tod1-0ubuntu3) focal; urgency=medium

  * Rebuild with the current libgusb (lp: #1867639)
2020-06-11 20:51:00 +02:00
Evgeny GagauzandMarco Trevisan (Treviño) d6809bf457 vfs0050: Stop capture after a timeout happens
If a transfer errors out then actual_length is negative. The only error
that is not caught is a timeout error, which should also result in the
SSM to move to the next state.
2020-05-15 17:56:30 +02:00
Benjamin BergandMarco Trevisan (Treviño) bdb7ebc317 upekts: Fix possible NULL pointer access
Reported by scan-build.
2020-05-15 17:55:02 +02:00
Benjamin BergandMarco Trevisan (Treviño) 79306adc24 vfs5011: Prevent too small images
We need more than 1 line for assembling, but in general, we should
have a reasonable amount of lines. So use the width in the hope we'll
get an image that is about square at least.

Closes: #135
2020-05-15 17:52:32 +02:00
Benjamin BergandMarco Trevisan (Treviño) 6c56e0369d upekts: Fix regression during initialisation
The driver has two helper functions to format a command. In one case,
the function was accidentally changed during the port to the new driver
APIs.

See https://bugzilla.redhat.com/show_bug.cgi?id=1832229
2020-05-15 17:52:10 +02:00
Marco Trevisan (Treviño) 737d41ee43 image-device: Terminate the current action with error on print failure
If we fail when setting the scanned image to a print, we'll have a fatal
error, in such case we can terminate the current action and deactivate the
device.
2020-05-15 17:50:18 +02:00
Marco Trevisan (Treviño) 1a2e525039 image: Return an error if we got an empty or NULL minutiae array
In some cases nbim's get_minutiae returns no minutiae without providing an
error code, and if this happens we would crash in the task callback function
as we would try to deference the data->minutiae pointer.

Related to: #251
2020-05-15 17:50:09 +02:00
Marco Trevisan (Treviño) 66a2df595f etes603: Return TOO_SHORT retry error for small images
If the image height is less than the sensor horizontal resolution, then
return a retry error rather than trying to submit the image for further
processing.

Related to: #251
2020-05-15 17:50:04 +02:00
Benjamin BergandMarco Trevisan (Treviño) 61efd09515 image: Check for task success rather than just cancellation
The minutiae detection might fail and we must not copy any data at that
point. So check g_task_had_error to ensure that we only do so when the
task was successful.

Fixes: #251
2020-05-15 17:49:58 +02:00
Bastien NoceraandMarco Trevisan (Treviño) 72115bff04 upekts: Fix memory leak
Don't allocate a new finger print structure,
the fpi_device_get_enroll_data() just below will overwrite it.
2020-05-15 17:47:39 +02:00
Bastien NoceraandMarco Trevisan (Treviño) 3722c875ec vfs0050: Fix incorrect destructor for GError 2020-05-15 17:46:04 +02:00
Bastien NoceraandMarco Trevisan (Treviño) ee877259d7 aes1610: Fix memory leak
Fix small memory leak when reading some data that's not going to be
processed.
2020-05-15 17:45:50 +02:00
Iain Lane 657dffe962 Finalise changelog 2020-03-03 09:21:37 +00:00
Iain Lane e67392d535 Update changelog 2020-03-03 08:42:22 +00:00
Iain Lane 209f0ade93 Fix the version in the symbols file
Gbp-Dch: Ignore
2020-03-03 08:42:20 +00:00
Iain Lane 91badb1f6e Rename the .install / .symbols files too
Gbp-Dch: Ignore
2020-03-03 08:33:04 +00:00
Marco Trevisan (Treviño) f791577134 debian/control: Make package to match soname, rename to libfprint-2-tod1 2020-03-03 09:01:27 +01:00
Iain Lane 3029be82d8 Finalise changelog 2020-03-02 17:10:54 +00:00
Iain Lane 1b8614c25f Update changelog 2020-03-02 17:10:54 +00:00
Iain Lane f9cb4dc91c gbp.conf: Specify ubuntu tag pattern
Gbp-Dch: Ignore
2020-03-02 17:10:54 +00:00
Iain Lane 27cda550a6 debian/libfprint-2-tod-1.symbols: Add +tod1 version
Gbp-Dch: Ignore
2020-03-02 16:43:17 +00:00
Iain Lane 9b19329530 control: Point Vcs-* to salsa/ubuntu-dev-team/libfprint 2020-03-02 15:50:26 +00:00
Marco Trevisan (Treviño) f164d4f4cb Update changelog 2020-02-28 18:19:25 +01:00
Marco Trevisan (Treviño) a8e81cdabb debian/control: Point Vcs tag to the ubuntu branch 2020-02-28 18:18:32 +01:00
Marco Trevisan (Treviño) 57790cf413 debian/README.tod.md: Added informations about the TOD fork 2020-02-28 17:58:07 +01:00
Marco Trevisan (Treviño) 453aed42d6 debian/control: Set ubuntu as maintainer 2020-02-28 17:58:07 +01:00
Marco Trevisan (Treviño) a93bdd27d4 debian: Add libfprint-2-tod library and headers
Add packaging for libfprint-TOD
2020-02-28 17:58:07 +01:00
Marco Trevisan (Treviño) 562401943b Update upstream source from tag 'upstream/1.90.1+tod1'
Update to upstream version '1.90.1+tod1'
with Debian dir c02802d539
2020-02-28 17:56:54 +01:00
Marco Trevisan (Treviño) 0442d58a11 New upstream version 1.90.1+tod1 2020-02-28 17:56:53 +01:00
Marco Trevisan (Treviño) b1cf057468 Bump libfprint-tod version to v1.90.1+tod1 2020-02-28 17:49:44 +01:00
Marco Trevisan (Treviño) b2a78ddadc README.tod.md: Add a basic readme file 2020-02-28 17:49:44 +01:00
Marco Trevisan (Treviño) d9e208a0d7 debian/watch: Monitor libfprint-tod versions only 2020-02-28 17:11:21 +01:00
Marco Trevisan (Treviño) 0646cc7b66 debian/gbp.conf: Use 'upstream-tod' branch as our upstream branch 2020-02-28 17:11:21 +01:00
Marco Trevisan (Treviño) 3db8cec669 debian/gbp.conf: Track ubuntu branch 2020-02-28 15:59:30 +01:00
Laurent Bigonville 18fd52457d Release to experimental 2020-02-27 16:28:59 +01:00
Marco Trevisan (Treviño) 19225aaa3e meson: Add fpi-compat.h to the private headers 2020-02-27 06:04:20 +01:00
Marco Trevisan (Treviño) 7b7fc2423e tod: Simplify the lib versioning as per upstream libname based on soname
No need to keep track of both revisions, as now that's part of the name
2020-02-27 05:58:33 +01:00
Marco Trevisan (Treviño) 337fe867e9 tod-shared-loader: Only allow drivers starting with "lib" prefix 2020-02-27 05:26:32 +01:00
Marco Trevisan (Treviño) 49fd3a5035 Merge tag 'v1.90.1' into tod
Tag 1.90.1
2020-02-27 05:24:32 +01:00
Sebastien Bacher fd87b0daf6 Use the correct indentation for the previous changes 2020-02-24 17:31:53 +01:00
Sebastien Bacher 21a02ce472 * debian/rules:
- don't fail the build on s390x test results, upstream stated that
    fixing those is low priority for them since there is no real
    usecase for fingerprint authentification on that architecture.
2020-02-24 17:30:38 +01:00
Sebastien Bacher e2a4e3900e * debian/patches/git_reading_pointer.patch:
- backport an upstream fix for a test issue
2020-02-24 17:22:39 +01:00
Laurent Bigonville 6392dbcb80 debian/control: Add libcairo-dev and python3 to build-dependencies as they are explicitly required for some tests 2020-02-13 17:37:30 +01:00
Laurent Bigonville cb5346069f Release to unstable 2020-02-13 16:36:07 +01:00
Laurent Bigonville acbab37922 d/p/udev-rules-creation-add-Debian-specifics.patch: Avoid unprivileged users to be able to read the devices, this is not necessary and could lead to fingerprint images being captured. 2020-02-13 11:21:19 +01:00
Laurent Bigonville 477213a6c9 debian/control: Bump Standards-Version to 4.5.0 (no further changes) 2020-02-13 11:17:48 +01:00
Laurent Bigonville d0ddfbfa4f The soname changed again, adjust it accordingly 2020-02-13 11:17:48 +01:00
Laurent Bigonville bca8ec86b8 debian/gbp.conf: Upstream tags have changed format 2020-02-13 11:17:48 +01:00
Laurent Bigonville 338dae9dc4 New upstream release (1.90.1)
New upstream release (1.90.1) and bump libglib2.0-dev and meson minimal versions
2020-02-13 11:17:43 +01:00
Laurent Bigonville b5c714185d Update upstream source from tag 'upstream/1.90.1'
Update to upstream version '1.90.1'
with Debian dir 0b911193c7
2020-02-12 18:13:09 +01:00
Laurent Bigonville b3d4a61194 New upstream version 1.90.1 2020-02-12 18:13:06 +01:00
Laurent Bigonville 6851a9643e debian/control: Drop libxv-dev from the build-dep, not needed anymore 2020-01-11 02:02:54 +01:00
Laurent Bigonville 4e33d1dd28 Update debian/libfprint2.postinst for the new supported readers 2020-01-11 02:02:10 +01:00
Laurent Bigonville df2a530b20 debian/patches/udev-rules-creation-add-Debian-specifics.patch: credit Sebastien Bacher 2020-01-11 02:02:04 +01:00
Laurent Bigonville 053fc7f489 debian/control: Build-Depends on python3-cairo, python3-gi, umockdev for the testsuite 2020-01-11 01:51:49 +01:00
Laurent Bigonville 153a519a41 debian/control: Bump Standards-Version to 4.4.1 (no further changes) 2020-01-10 20:34:23 +01:00
Laurent Bigonville 3c023b7b7a Add gobject-introspection and libgirepository1.0-dev to the build-dependencies and install the GObject introspection bindings 2020-01-10 20:34:23 +01:00
Laurent Bigonville 6e21b46f55 Bump the soname to libfprint2 2020-01-10 20:34:22 +01:00
Laurent Bigonville e8fe42536e Bump debhelper compatibility version to 12 2020-01-10 20:34:07 +01:00
Laurent Bigonville 1751baec91 debian/patches/udev-rules-creation-add-Debian-specifics.patch: refreshed 2020-01-10 20:33:45 +01:00
Laurent Bigonville 50e8754206 Drop d/patches/kFreeBSD_FTBFS_add_ETIME_definition.patch and d/patches/use-non-versionned-libusbh-path.patch, not needed anymore 2020-01-10 20:33:08 +01:00
Laurent Bigonville c8677bedbf New upstream release
* New upstream release
  - Replace libusb-1.0 build-dependency by gusb and add libgusb-doc to the
    Build-Depends-Indep
2020-01-10 03:08:50 +01:00
Laurent Bigonville e926421740 Update upstream source from tag 'upstream/1.90.0'
Update to upstream version '1.90.0'
with Debian dir 70b1bcbdcc
2020-01-10 02:21:53 +01:00
Laurent Bigonville 3f38ffd3bf New upstream version 1.90.0 2020-01-10 02:21:50 +01:00
Marco Trevisan (Treviño) edd5d08bed Merge remote-tracking branch 'origin/master' into tod 2020-01-08 19:04:08 +01:00
Marco Trevisan (Treviño) d078c78171 fpi: Add paddings to the private structs 2019-12-19 15:03:17 +01:00
Marco Trevisan (Treviño) 4e972724a8 fp-image: Remove config.h inclusion in fpi-header 2019-12-19 15:03:17 +01:00
Marco Trevisan (Treviño) d998fb436e tests: Add TOD unit tests re-using the fake-driver 2019-12-19 15:03:16 +01:00
Marco Trevisan (Treviño) 29be067297 TOD: Add TOuch Drivers loader 2019-12-19 15:03:16 +01:00
Laurent Bigonville 17913ecd04 Release to unstable 2019-08-23 17:30:04 +02:00
Laurent Bigonville 755b06448f Run wrap-and-sort 2019-08-23 17:24:14 +02:00
Laurent Bigonville ec32735d32 debian/libfprint0.postinst: Call udevadm --trigger also for the new supported readers 2019-08-23 17:19:27 +02:00
Laurent Bigonville 6e64a6b16a Revert "debian/rules: Install the NEWS file as the upstream changelog"
This reverts commit 6a1a956029.
2019-08-23 17:14:27 +02:00
Laurent Bigonville f7d8e9f935 New upstream release (1.0) 2019-08-23 17:11:08 +02:00
Laurent Bigonville 1799dd159a Update upstream source from tag 'upstream/1.0'
Update to upstream version '1.0'
with Debian dir b867236012
2019-08-23 17:06:46 +02:00
Laurent Bigonville 91c67d430e New upstream version 1.0 2019-08-23 17:06:45 +02:00
Laurent Bigonville 88730a852d debian/README.source: Document how the list of devices in debian/libfprint0.postinst is generated 2019-07-12 02:13:53 +02:00
Laurent Bigonville 8539a0984e debian/libfprint0.postinst: Call udevadm --trigger also for the new supported readers 2019-07-12 01:15:49 +02:00
Laurent Bigonville 6a1a956029 debian/rules: Install the NEWS file as the upstream changelog 2019-07-12 01:03:03 +02:00
Laurent Bigonville c813d2873f debian/control: Add libglib2.0-doc to Build-Depends-Indep, this allows gtk-doc to properly resolve all the links in the documentation 2019-07-12 01:02:15 +02:00
Laurent Bigonville 8d01ce9b7e debian/libfprint0.symbols: Add the Build-Depends-Package field 2019-07-12 00:55:31 +02:00
Laurent Bigonville 1c8d4fe027 debian/control: Bump Standards-Version to 4.4.0 (no further changes) 2019-07-12 00:55:29 +02:00
Laurent Bigonville c18510091e debian/libfprint0.symbols: Add newly exported symbol 2019-07-12 00:55:05 +02:00
Laurent Bigonville 5ebcc1cedd debian/rules: Disable the build of the GTK+ test application for now, this is not ready yet 2019-07-12 00:54:56 +02:00
Laurent Bigonville 8fbeacf13b Other patches: Refreshed 2019-07-12 00:19:50 +02:00
Laurent Bigonville 6fc665135d d/p/lib-Add-accessor-for-minutia-coordinates.patch, d/p/fix_ftbfs_meson.patch: Dropped, applied upstream 2019-07-12 00:19:50 +02:00
Laurent Bigonville d116695da6 debian/control: Update Vcs-* fields (Closes: #909256) 2019-07-12 00:19:44 +02:00
Laurent Bigonville 5b1ca62c7c New upstream release 2019-07-12 00:07:40 +02:00
Laurent Bigonville e3adf40324 Update upstream source from tag 'upstream/0.99.0'
Update to upstream version '0.99.0'
with Debian dir 53fd957197
2019-07-12 00:01:49 +02:00
Laurent Bigonville 521b7a3029 New upstream version 0.99.0 2019-07-12 00:01:48 +02:00
Laurent Bigonville fa439ded05 debian/gbp.conf: Set pristine-tar and upstream-vcs-tag 2019-07-12 00:01:39 +02:00
Laurent Bigonville 1473e8093a Release to unstable 2018-10-10 17:31:17 +02:00
Laurent Bigonville 388666f5c0 d/p/lib-Add-accessor-for-minutia-coordinates.patch: Add a way to access minutia coordinates, this will help to fix ftbfs in fprint_demo
In reality a API breakage was introduced in a previous version and even
if it's not fixing it completely it reintroduce the same
functionalities.
2018-10-10 17:31:17 +02:00
Laurent Bigonville bef704b74e Release to unstable 2018-08-23 15:03:57 +02:00
Laurent Bigonville cafa248fed debian/rules: Remove the *.private fields of libfprint.pc
debian/rules: Remove the *.private fields of libfprint.pc, these are not
needed anymore as we are not installing a static library

Closes: #906975
2018-08-23 15:01:05 +02:00
Laurent Bigonville 5e10d87a17 Release to unstable 2018-08-12 17:51:53 +02:00
Laurent Bigonville 4e1828640c New upstream release 0.8.2 2018-08-12 17:51:20 +02:00
Laurent Bigonville ca30b70d38 New upstream version 0.8.2 2018-08-12 17:45:45 +02:00
Laurent Bigonville c91d6f33f0 Update upstream source from tag 'upstream/0.8.2'
Update to upstream version '0.8.2'
with Debian dir 1c95a3ea0c
2018-08-12 17:45:45 +02:00
Laurent Bigonville 8d3a867821 debian/control: Bump Standards-Version to 4.2.0 (no further changes) 2018-08-12 17:41:37 +02:00
Laurent Bigonville 0ed8d4aafd d/p/fix_ftbfs_meson.patch: Fix FTBFS with newer meson 2018-08-12 17:41:13 +02:00
Laurent Bigonville 3207a658de Bump debhelper version to >= 10.3 to have meson support 2018-07-16 16:29:52 +02:00
Laurent Bigonville dc7c2a03e4 Ship the API doc in a new libfprint-doc package 2018-07-16 16:21:12 +02:00
Laurent Bigonville 6da130a512 debian/libfprint0.postinst: Call udevadm --trigger also for the new supported readers 2018-06-21 22:59:02 +02:00
Laurent Bigonville 3f29741cc2 debian/rules: Simplify the installation of the udev rules file 2018-06-21 21:13:12 +02:00
Laurent Bigonville 98bc488e44 debian/control: Bump all the packages to priority optional, priority extra is now deprecated 2018-06-21 21:12:21 +02:00
Laurent Bigonville d88da3380f debian/control: Bump Standards-Version to 4.1.4 (no further changes) 2018-06-21 21:12:21 +02:00
Laurent Bigonville 847a201bfe debian/rules: Do not explicitly pass --parallel to debhelper as it's the default now 2018-06-21 21:12:21 +02:00
Laurent Bigonville dee696cdd1 debian/libfprint0.lintian-overrides: Overrides udev-rule-missing-uaccess, we don't want the readers to be accessible by unprivileged users 2018-06-21 21:12:21 +02:00
Laurent Bigonville f1f19c3c6e debian/libfprint0.symbols: Add newly exported symbols 2018-06-21 21:12:21 +02:00
Laurent Bigonville 8cbe405004 Build the documentation 2018-06-21 15:32:12 +02:00
Laurent Bigonville 98d3045da3 Switch to meson, the static library is not built anymore 2018-06-21 15:31:32 +02:00
Laurent Bigonville fbd763a849 d/p/use-non-versionned-libusbh-path.patch: Updated 2018-06-21 13:14:37 +02:00
Laurent Bigonville 9a5c958c0c d/p/kFreeBSD_FTBFS_add_ETIME_definition.patch: Updated 2018-06-21 13:08:58 +02:00
Laurent Bigonville f24d71f1ec New upstream release
* New upstream release
  - Fix security hole by zero out memory when allocated (Closes: #890827)
2018-06-21 12:59:07 +02:00
Laurent Bigonville 74d89aa856 Update upstream source from tag 'upstream/0.8.1'
Update to upstream version '0.8.1'
with Debian dir cff2f30a93
2018-06-21 12:54:14 +02:00
Laurent Bigonville 7bf73eb3d0 New upstream version 0.8.1 2018-06-21 12:54:13 +02:00
Laurent Bigonville 6573095680 debian/watch: Update the watch file to point to the freedesktop gitlab release page 2018-06-21 12:46:03 +02:00
Laurent Bigonville c0d25ad3b7 Release to unstable 2017-05-17 16:58:51 +02:00
Laurent Bigonville 167de38223 debian/libfprint0.postinst: Add new calls to "udevadm --trigger" to also properly set the permissions to the newest supported readers. 2017-05-17 16:58:28 +02:00
Laurent Bigonville 4569b31b41 Bump debhelper compatibility to 10 and rely on dh_autoreconf instead of calling the autotools explicitly 2017-05-16 12:54:13 +02:00
Laurent Bigonville 5684939c33 Drop libmagickcore-dev build-dep and add libpixman-1-dev instead, ImageMagick is not supported since 0.6.0 2017-05-16 12:09:46 +02:00
Laurent Bigonville 105a5a791e Drop libssl-dev build-dependency, not needed anymore (Closes: #854710) 2017-05-16 11:55:02 +02:00
Laurent Bigonville 9b43b851e8 Add debian/watch file 2017-05-16 11:45:52 +02:00
Laurent Bigonville 7bd46f692d Use https for the Homepage and Vcs-* fields 2017-05-16 11:40:00 +02:00
Laurent Bigonville 3c27a33acf Bump Standards-Version to 3.9.8 (no further changes)
* debian/control:
  - Bump Standards-Version to 3.9.8 (no further changes)
2017-05-16 11:37:05 +02:00
Laurent Bigonville 22a563066a Refresh the patches, drop all the upstreamed ones 2017-05-16 11:27:44 +02:00
Laurent Bigonville 4085726996 New 0.7.0 upstream release
* Team upload.
* New 0.7.0 upstream release:
  - Add VFS0050 driver (Closes: #843626)
2017-05-16 10:56:37 +02:00
Laurent Bigonville 14bcbcc08d Merge tag 'upstream/0.7.0' into debian
Upstream version 0.7.0
2017-05-16 10:53:13 +02:00
Laurent Bigonville 5d530f452c New upstream version 0.7.0 2017-05-16 10:53:10 +02:00
Didier Raboud 07f8b7ad47 libfprint 1:0.6.0-2 Debian release. 2015-05-03 15:19:39 +02:00
Didier Raboud e417fc2fd1 Add simple gbp.conf to help with releasing 2015-05-03 15:19:10 +02:00
Didier Raboud 4d8ea9ef60 libfprint 1:0.6.0-1 Debian experimental release. 2015-03-27 08:34:28 +01:00
Didier Raboud d61485b2ff Add two new 0.6.0 symbols 2015-03-26 15:33:40 +01:00
Didier Raboud ceb8c8fdff Backport two upstream patches:
- imgdev: fix enum mismatch for dev_change_state() call
- vfs101: Logical conjunction always evaluates to false
2015-03-03 09:15:04 +01:00
Didier Raboud 1ed83cabed Refresh patches 2015-03-03 08:59:54 +01:00
Didier Raboud 276b43591a Merge tag 'upstream/0.6.0' into debian 2015-03-03 08:53:35 +01:00
Didier Raboud 2386478ded libfprint 1:0.5.1-1 Debian release. 2013-09-29 13:47:14 +02:00
Didier Raboud 30322db108 Update patches list for 0.5.1, drop 6 patches incorporated or backported from upstream, refresh one 2013-09-29 13:34:09 +02:00
Didier Raboud 034597a598 Merge tag 'upstream/0.5.1' into debian 2013-09-29 13:31:20 +02:00
Didier Raboud 7513657198 libfprint 1:0.5.0-6 Debian release. 2013-06-24 11:25:18 +02:00
Didier Raboud 0d18e678a4 Run udevadm trigger on 147e:2020 too 2013-06-24 11:22:20 +02:00
Jeremy BichaandDidier Raboud 68af27aa46 Fix underlinking against glib
Closes: #710381
Closes: #713466
Thanks: Julian Taylor
2013-06-24 11:18:27 +02:00
Didier Raboud aa12be94b2 libfprint 1:0.5.0-5 Debian release. 2013-05-18 16:38:00 +02:00
Didier Raboud b62c1ad22a Backport two more bugfixes from upstream:
- imgdev: fix cancelling of enrollment from stage_completed callback
- upeke2: Add support for 147e:2020 ID
2013-05-18 16:02:25 +02:00
Didier Raboud 3cf2ce61eb libfprint 1:0.5.0-4 Debian experimental release. 2013-03-03 15:22:36 +01:00
Didier Raboud e146b9bf05 Correct the kFreeBSD ETIME patch update to define ETIME later.
Should fix the new kFreeBSD FTBFS.
2013-03-03 15:22:18 +01:00
Didier Raboud 3d7032fc16 libfprint 1:0.5.0-3 Debian experimental release. 2013-03-03 13:56:28 +01:00
Didier Raboud 9e492717f4 Update kFreeBSD ETIME patch to also correct the vfs301 driver.
Should fix the new kFreeBSD FTBFS.
2013-03-03 13:55:56 +01:00
Didier Raboud f43b360f0b libfprint 1:0.5.0-2 Debian experimental release. 2013-03-03 13:08:14 +01:00
Didier Raboud ba44808b7e Patch vfs301 driver to look for libusb.h without the versionned path.
Hopefully fixes the kFreeBSD FTBFS.
2013-03-03 12:54:29 +01:00
Didier Raboud bc8b0590cc Bump Standards-Version to 3.9.4 without changes needed. 2013-03-02 20:05:25 +01:00
Didier Raboud 2f24ad983f Only execute the udevadm commands if udevadm is in the script path 2013-03-02 20:01:55 +01:00
Didier Raboud a0f001d5ee libfprint 1:0.5.0-1 Debian experimental release. 2013-03-02 18:52:31 +01:00
Luca CapelloandDidier Raboud a0af522ced Apply udev rules at install time with udevadm --trigger
Closes: #683863
2013-01-15 18:39:20 +01:00
Didier Raboud 15bea49681 Backport two upstream hotfixes for uru4000.
Both patches are on top of 0.5.0:

- uru4000: fix race condition on waiting power up irq
- uru4000: fix cancelling of imaging from error callback

Thanks-To: Timo Teräs <timo.teras@iki.fi>
2013-01-15 18:34:21 +01:00
Didier Raboud 9fa5335ea1 Refresh all patches for 0.5.0
- Drop fix-libusb-global-variables-FTBFS.patch implemented upstream.
2013-01-15 18:03:40 +01:00
Didier Raboud cab9941e00 Merge tag 'v_0_5_0' into debian
0.5.0
2013-01-15 17:58:15 +01:00
Didier Raboud deefd5c04f libfprint 1:0.4.0-4-gdfff16f-4 Debian release. 2012-07-09 00:46:33 +02:00
Didier Raboud d7d940575e Fix libusb global variables FTBFS.
Closes: #680838
2012-07-08 16:35:59 -06:00
Didier Raboud d3b47bb1d7 libfprint 1:0.4.0-4-gdfff16f-3 Debian release. 2012-06-26 10:52:23 +02:00
Didier Raboud aa679f6a12 Patch the udev rules creator to handle blacklists correctly.
The blacklist covered whole vendorID ranges; with the patch it will
cover the mentionned vendorID:productID pairs.

(This was not a problem as the blacklist contained only one device and
it was the only productID for this vendorID.)
2012-06-26 10:12:50 +02:00
Didier Raboud 8019e85967 Patch the udev rules creator to include all devices.
The power/control blacklist is respected: 0483:2016 is blacklisted for
power/control but is supported by a built driver and as such, should get
a mode and group specification.

Closes: #679001
2012-06-26 09:56:36 +02:00
Didier Raboud f45eb60488 libfprint 1:0.4.0-4-gdfff16f-2 Debian release. 2012-05-21 10:55:42 +02:00
Didier Raboud edfc461a48 Add patch to define ETIME for the kFreeBSD flavours.
This fixes the FTBFS on kFreeBSD without guaranteeing that it actually
works.

Closes: #673704
2012-05-21 10:53:39 +02:00
Didier Raboud 04fad3f9b3 Mark libfprint0 Multi-Arch: same.
This allows it to be a satisfiable depends of fprintd.
2012-05-20 22:33:56 +02:00
Didier Raboud 8bef73626c releasing version 1:0.4.0-4-gdfff16f-1 2012-05-19 17:37:26 +02:00
Didier Raboud 17f612175f Drop useless dirs specifications. 2012-05-19 17:02:31 +02:00
Didier Raboud 1688d6896a Put epoch in the symbols' versions. 2012-05-19 16:55:35 +02:00
Didier Raboud bb7f0d3f69 Avoid duplication of Section snippet in control. 2012-05-19 16:05:20 +02:00
Didier Raboud 67994293f3 Drop the mention of the old synchronous library from the description. 2012-05-19 15:27:58 +02:00
Didier Raboud 8f73f03722 Add Vcs-* to reflect the new Git repository. 2012-05-19 15:27:03 +02:00
Didier Raboud 38b5a05db3 Add myself as uploader. 2012-05-19 15:26:04 +02:00
Didier Raboud ddab7bfc89 Bump Standards-Version to 3.9.3 without changes needed. 2012-05-19 15:25:37 +02:00
Didier Raboud 9dc27b0a00 Update homepage to the new home at freedesktop.org. 2012-05-19 15:25:12 +02:00
Didier Raboud 79a4038256 Add symbols tracking for libfprint0. 2012-05-19 15:24:19 +02:00
Didier Raboud d520edfa71 Use the built udev rules for autosuspend; append our mode and group specificities. 2012-05-19 15:20:10 +02:00
Didier Raboud 192cef0cdd Use short debhelper style; migrate to multiarch. 2012-05-19 14:59:42 +02:00
Didier Raboud d3628eda97 Bump debhelper Build-Depends and compat to 9.
Brings hardened buildflags and multiarch.
2012-05-19 14:39:20 +02:00
Didier Raboud 2d55732900 Merge branch 'master' into debian
Many conflicts.
2012-05-19 14:18:01 +02:00
Ulises Vitulli 786868d735 Transitioning from libmagick9 to libmagickcore 2011-06-13 00:37:01 +00:00
Ulises Vitulli cbff4b73a5 No more patches! :D :D :D 2011-04-19 22:33:30 +00:00
Ulises Vitulli c1b8b7950b Closing #595719 and #620447. 2011-04-19 22:10:40 +00:00
Ulises Vitulli 7cee8069fd Uploading new upstream release 0.4.0plus 2011-04-19 19:16:04 +00:00
Ulises Vitulli c744d42325 Pull new git checkout for applying the patches we submitted upstream. 2010-08-23 12:56:11 +00:00
Ulises Vitulli c3c3419512 Add new supported devices to udev rules. 2010-08-23 10:01:25 +00:00
Ulises Vitulli 808dd08c47 Added upstream "current tarball" and deleted old symlinks to old "current tarball". 2010-08-19 18:48:51 +00:00
Ulises Vitulli f0105e0c91 Replaced files with current release. 2010-08-19 17:31:14 +00:00
Ulises Vitulli 380e25fa20 Upgraded to 0.2.0, commit 20100819git-1. 2010-08-19 17:28:38 +00:00
Ulises Vitulli 82f7dca028 Minor changes and testing commit permissions 2010-05-31 21:22:42 +00:00
Ulises Vitulli ce229867a6 Include aes2500-wy udev rule. 2010-04-21 17:39:56 +00:00
Ulises Vitulli 59b5f7213c Sync'ing source with policyd and polishing descriptions. 2010-04-14 19:22:54 +00:00
Ulises Vitulli e4ddac09c9 Last details for uploading into directly into experimental and waiting 10 days for going to Sid! :-D 2010-01-21 23:37:50 +00:00
Ulises Vitulli 7d75f84431 Fixing dependences missing and some advices. 2009-07-29 11:40:47 +00:00
Ulises Vitulli b82d270083 Migration from libmagick10 to libmagickcore and experimental upload. 2009-07-24 10:44:07 +00:00
Ulises Vitulli 71eb508693 Updates on packaging (no upstream diffs). 2009-06-06 15:34:55 +00:00
Ulises Vitulli e39bdcca5f Make clean and distclean targets work.
Next step, finishing understanding why dbus module doesn't work :-)
2009-01-02 22:52:17 +00:00
Ulises Vitulli 63c6aaaa76 Synchronized to upstream v0.1.0-pre1 release.
Upstream git checkout fixing little issues.
2008-11-28 05:45:16 +00:00
Ulises Vitulli ffe0b4732e Near an acceptable status 2008-10-13 20:13:36 +00:00
Ulises Vitulli e4ab7bcd23 Foo files and adopting Aurelio's libusb-1.0 package \o/ 2008-09-20 09:33:38 +00:00
Ulises Vitulli 9e3f41a170 Created Async libusb branch. Still working on it. 2008-09-19 21:33:01 +00:00
188 changed files with 16769 additions and 721 deletions
+110 -25
View File
@@ -1,20 +1,36 @@
include:
- local: '.gitlab-ci/libfprint-image-variables.yaml'
- local: '.gitlab-ci/libfprint-templates.yaml'
- project: 'freedesktop/ci-templates'
ref: master
file: '/templates/fedora.yml'
- remote: 'https://gitlab.gnome.org/GNOME/citemplates/-/raw/master/flatpak/flatpak_ci_initiative.yml'
default:
# Auto-retry jobs in case of infra failures
retry:
max: 1
when:
- 'runner_system_failure'
- 'stuck_or_timeout_failure'
- 'scheduler_failure'
- 'api_failure'
variables:
extends: .libfprint_common_variables
FDO_DISTRIBUTION_TAG: latest
FDO_DISTRIBUTION_TAG: $LIBFPRINT_IMAGE_TAG
FDO_DISTRIBUTION_VERSION: rawhide
FDO_UPSTREAM_REPO: "libfprint/$CI_PROJECT_NAME"
FEDORA_IMAGE: "$CI_REGISTRY/libfprint/$CI_PROJECT_NAME/fedora/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG"
BUNDLE: "org.freedesktop.libfprint.Demo.flatpak"
LAST_ABI_BREAK: "056ea541ddc97f5806cffbd99a12dc87e4da3546"
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_PIPELINE_SOURCE == 'push'
stages:
- image-build
- check-source
- build
- test
@@ -25,16 +41,16 @@ image: $FEDORA_IMAGE
.build_one_driver_template: &build_one_driver
script:
# Build with a driver that doesn't need imaging, or nss
- meson --werror -Ddrivers=$driver . _build
- ninja -C _build
- meson setup _build --werror -Ddrivers=$driver
- meson compile -C _build
- rm -rf _build/
.build_template: &build
script:
# And build with everything
- meson --werror -Ddrivers=all . _build
- ninja -C _build
- ninja -C _build install
- meson setup _build --werror -Ddrivers=all
- meson compile -C _build
- meson install -C _build
.build_template: &check_abi
script:
@@ -63,12 +79,16 @@ test:
variables:
- $CI_PIPELINE_SOURCE == "schedule"
script:
- meson --werror -Ddrivers=all -Db_coverage=true . _build
- ninja -C _build
- meson setup _build --werror -Ddrivers=all -Db_coverage=true
- meson test -C _build --print-errorlogs --no-stdsplit --timeout-multiplier 3
- ninja -C _build coverage
- cat _build/meson-logs/coverage.txt
- cat _build/meson-logs/coverage.txt || true
artifacts:
reports:
junit: "_build/meson-logs/testlog.junit.xml"
coverage_report:
coverage_format: cobertura
path: _build/meson-logs/coverage.xml
expose_as: 'Coverage Report'
when: always
paths:
@@ -79,14 +99,17 @@ test:
test_valgrind:
stage: test
allow_failure: true
except:
variables:
- $CI_PIPELINE_SOURCE == "schedule"
script:
- meson -Ddrivers=all . _build
- ninja -C _build
- meson setup _build -Ddrivers=all
- meson compile -C _build
- meson test -C _build --print-errorlogs --no-stdsplit --setup=valgrind
artifacts:
reports:
junit: "_build/meson-logs/testlog-valgrind.junit.xml"
expose_as: 'Valgrind test logs'
when: always
paths:
@@ -94,6 +117,29 @@ test_valgrind:
- _build/meson-logs/testlog-valgrind.txt
expire_in: 1 week
test_installed:
stage: test
except:
variables:
- $CI_PIPELINE_SOURCE == "schedule"
script:
- meson setup _build --prefix=/usr -Ddrivers=all
- meson install -C _build
- mv _build _build_dir
- rm -rf tests
- gnome-desktop-testing-runner --list libfprint-2
- gnome-desktop-testing-runner libfprint-2
--report-directory=_installed-tests-report/failed/
--log-directory=_installed-tests-report/logs/
--parallel=0
artifacts:
expose_as: 'GNOME Tests Runner logs'
when: always
paths:
- _build_dir/meson-logs
- _installed-tests-report
expire_in: 1 week
test_scan_build:
stage: test
@@ -102,10 +148,12 @@ test_scan_build:
- $CI_PIPELINE_SOURCE == "schedule"
allow_failure: true
script:
- meson -Ddrivers=all . _build
- meson setup _build -Ddrivers=all
# Wrapper to add --status-bugs and disable malloc checker
- SCANBUILD=$CI_PROJECT_DIR/.gitlab-ci/scan-build ninja -C _build scan-build
- SCANBUILD=$CI_PROJECT_DIR/.gitlab-ci/scan-build
ninja -C _build scan-build
artifacts:
when: on_failure
paths:
- _build/meson-logs
expire_in: 1 week
@@ -118,7 +166,7 @@ test_indent:
script:
- scripts/uncrustify.sh
- git diff
- "! git status -s | grep -q ."
- git diff-index --name-only --exit-code HEAD
test_unsupported_list:
stage: check-source
@@ -131,36 +179,45 @@ test_unsupported_list:
flatpak:
stage: flatpak
extends: .flatpak
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.36
extends: .flatpak@x86_64
variables:
MANIFEST_PATH: "demo/org.freedesktop.libfprint.Demo.json"
FLATPAK_MODULE: "libfprint"
APP_ID: "org.freedesktop.libfprint.Demo"
BUNDLE: "org.freedesktop.libfprint.Demo.flatpak"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
# Build with any builder
tags: []
rules:
- if: '$CI_PROJECT_PATH != "libfprint/libfprint"'
when: never
when: manual
allow_failure: true
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_COMMIT_BRANCH == "master"'
allow_failure: true
when: always
- if: '$CI_COMMIT_TAG'
allow_failure: true
when: always
# For any other (commit), allow manual run.
# This excludes MRs which would create a duplicate pipeline
- if: '$CI_COMMIT_BRANCH'
when: manual
allow_failure: true
- if: '$CI_MERGE_REQUEST_ID'
when: manual
allow_failure: true
# CONTAINERS creation stage
container_fedora_build:
.container_fedora_build_base:
extends: .fdo.container-build@fedora
stage: image-build
only:
variables:
- $CI_PIPELINE_SOURCE == "schedule" && $CRON_TASK == "BUILD_CI_IMAGES"
- $CI_PIPELINE_SOURCE == "never"
variables:
GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
FDO_FORCE_REBUILD: 1
# a list of packages to install
FDO_DISTRIBUTION_PACKAGES:
$LIBFPRINT_DEPENDENCIES
@@ -168,7 +225,35 @@ container_fedora_build:
libpcap-devel
libudev-devel
FDO_DISTRIBUTION_EXEC: |
git clone https://github.com/martinpitt/umockdev.git && \
cd umockdev && \
meson _build --prefix=/usr && \
ninja -C _build && ninja -C _build install
$LIBFPRINT_EXEC
.container_fedora_build_forced:
variables:
FDO_FORCE_REBUILD: 1
container_fedora_build_schedule:
extends:
- .container_fedora_build_base
- .container_fedora_build_forced
only:
variables:
- $CI_PIPELINE_SOURCE == "schedule" && $CRON_TASK == "BUILD_CI_IMAGES"
container_fedora_build_manual:
extends:
- .container_fedora_build_base
- .container_fedora_build_forced
only:
variables:
- $LIBFPRINT_CI_ACTION == "build-image"
container_fedora_build_on_deps_changed:
extends: .container_fedora_build_base
only:
variables:
- $CI_PROJECT_NAMESPACE == "libfprint" && $CI_PIPELINE_SOURCE != "schedule"
refs:
- branches
- merge_requests
changes:
- .gitlab-ci/libfprint-image-variables.yaml
@@ -0,0 +1,2 @@
variables:
LIBFPRINT_IMAGE_TAG: v3
+20
View File
@@ -1,6 +1,10 @@
# Bump image version on .gitlab-ci/libfprint-image-variables.yaml to trigger
# a rebuild on changes to this file
.libfprint_common_variables:
LIBFPRINT_DEPENDENCIES:
doxygen
dnf-plugins-core
flatpak-builder
gcc
gcc-c++
@@ -9,6 +13,7 @@
glib2-devel
glibc-devel
gobject-introspection-devel
gnome-desktop-testing
gtk-doc
gtk3-devel
libabigail
@@ -27,3 +32,18 @@
valgrind
clang-analyzer
diffutils
LIBFPRINT_EXEC: |
dnf -y install dnf-utils
debuginfo-install -y \
glib2 \
glibc \
libgusb \
libusb \
nss \
pixman
git clone https://github.com/martinpitt/umockdev.git && \
cd umockdev && \
meson _build --prefix=/usr && \
ninja -C _build && ninja -C _build install
+44 -2
View File
@@ -1,6 +1,48 @@
This file lists notable changes in each release. For the full history of all
changes, see ChangeLog.
2024-02-20: v1.94.7 release
Highlights:
* synaptics: fix enroll identify problem after user reset database.
* synaptics: New PIDs 0x0173, 0x0106, 0x0124.
* goodixmoc: New PID 0x6582.
* build: Do not require bash to build, only posix sh.
* fp-image: Simplify minutiae detection tasks.
* GLib 2.68 is now required to build libfprint.
New drivers:
* realtek (PID 0x5813).
* focaltech_moc (PIDs 0x9E48, 0xD979, 0xA959).
* egismoc (PIDs 0x0582, 0x05a1).
2023-08-17: v1.94.6 release
Highlights:
* goodixmoc: New PIDs 0x60A4, 0x60BC, 0x6092, 0x633C and 0x6304.
* goodixmoc: Fix missing "enroll create" state.
* elanmoc: New PID 0x0C99.
* upektc: Improve compatibility with sensors 147e:2016.
* aes4000: Actually support 08FF:5501 devices.
* virtual-device-listener: Fix failing tests with GLib 2.76
* tests: Add installed tests
Bugs fixed:
* #526 libfprint: fpcmoc: use after free if enrollment or identification is
cancelled (Vasily Khoruzhick)
2022-10-13: v1.94.5 release
Highlights:
* New driver: fpcmoc, supporting various FPC MOC Fingerprint Sensors
* goodixmoc: New PIDs 0x6014, 0x6094, 0x631C, 0x634C, 0x6384, 0x659A.
* goodixmoc: Support resetting device on firmware failure due to corrupted DB.
* elanmoc: New PIDs 0x0c88, 0x0c8c, 0x0c8d.
* synaptics: New PID 0x0104.
* upektc: New PID 0x2017.
* Fixed various memory leaks
* More tests
2022-05-24: v1.94.4 release
Highlights:
@@ -330,7 +372,7 @@ tests of the drivers using umockdev.
- Mark fp_dscv_print functions as deprecated
* Udev rules:
- Add some unsupported devices to the whitelist
- Add some unsupported devices to the allowlist
2017-05-14: v0.7.0 release
* Drivers:
@@ -380,7 +422,7 @@ tests of the drivers using umockdev.
- Fix possible race condition, and cancellation in uru4000 driver
* Udev rules:
- Add Microsoft keyboard to the suspend blacklist
- Add Microsoft keyboard to the suspend denylist
* Plenty of build fixes
+25
View File
@@ -0,0 +1,25 @@
### libfprint-TOD v1
- First public release
- Based on [libfprint 1.90.1](https://gitlab.freedesktop.org/libfprint/libfprint/-/releases#v1.90.1)
- Bumped TOD version to 1
### Highlights of the Drivers API changes
Both the driver and external APIs have changed, as both the verify and the identify functions now have early reporting mechanisms.
- Added API for early report of matching results or retry errors
- Verify and identification completion functions have been simplified
- Support variadic arguments in error functions
- Various re-definitions of ownership handling
- Add convenience API to change state after a timeout
- Add unit tests for all the drivers API
### Drivers required changes
As per the early report mechanism, drivers need to adapt, in particular:
- New pkg-config dependency name is `libfprint-2-tod-1`
- Verification and Identification API for non-image drivers has changed and drivers need to both `report` the result of the action and complete it:
- `fpi_device_{verify,identify}_report` must inform whether a match/no-match or identification happened or report a *retry error*.
- `fpi_device_{verify,identify}_complete` must be called once the device has completed the verification / identification process, in case reporting device errors (not retry ones!)
You can see examples of changes needed in the [reference example driver](https://gitlab.freedesktop.org/3v1n0/libfprint-tod-example-driver/-/commit/8308f84f7d1cfd1b9ed0936c13c73b43a4a46772) or the [upstream synaptics driver](https://gitlab.freedesktop.org/libfprint/libfprint/-/merge_requests/112/diffs)
+74 -38
View File
@@ -1,54 +1,90 @@
# libfprint
libfprint is part of the fprint project:
https://fprint.freedesktop.org/
<div align="center">
# LibFPrint
*LibFPrint is part of the **[FPrint][Website]** project.*
<br/>
[![Button Website]][Website]
[![Button Documentation]][Documentation]
[![Button Supported]][Supported]
[![Button Unsupported]][Unsupported]
[![Button Contribute]][Contribute]
[![Button Contributors]][Contributors]
</div>
## TOD Informations
See https://gitlab.freedesktop.org/3v1n0/libfprint/-/blob/tod/README.tod.md
## History
libfprint was originally developed as part of an academic project at the
University of Manchester with the aim of hiding differences between different
consumer fingerprint scanners and providing a single uniform API to application
developers. The ultimate goal of the fprint project is to make fingerprint
scanners widely and easily usable under common Linux environments.
**LibFPrint** was originally developed as part of an
academic project at the **[University Of Manchester]**.
The academic university project runs off a codebase maintained separately
from this one, although I try to keep them as similar as possible (I'm not
hiding anything in the academic branch, it's just the open source release
contains some commits excluded from the academic project).
It aimed to hide the differences between consumer
fingerprint scanners and provide a single uniform
API to application developers.
## Goal
The ultimate goal of the **FPrint** project is to make
fingerprint scanners widely and easily usable under
common Linux environments.
## License
THE UNIVERSITY OF MANCHESTER DOES NOT ENDORSE THIS THIS SOFTWARE RELEASE AND
IS IN NO WAY RESPONSIBLE FOR THE CODE CONTAINED WITHIN, OR ANY DAMAGES CAUSED
BY USING OR DISTRIBUTING THE SOFTWARE. Development does not happen on
university computers and the project is not hosted at the university either.
`Section 6` of the license states that for compiled works that use
this library, such works must include **LibFPrint** copyright notices
alongside the copyright notices for the other parts of the work.
For more information on libfprint, supported devices, API documentation, etc.,
see the homepage:
https://fprint.freedesktop.org/
**LibFPrint** includes code from **NIST's** **[NBIS]** software distribution.
libfprint is licensed under the GNU LGPL version 2.1. See the COPYING file
for the license text.
We include **Bozorth3** from the **[US Export Controlled]**
distribution, which we have determined to be fine
being shipped in an open source project.
Section 6 of the license states that for compiled works that use this
library, such works must include libfprint copyright notices alongside the
copyright notices for the other parts of the work. We have attempted to
make this process slightly easier for you by grouping these all in one place:
the AUTHORS file.
<br/>
libfprint includes code from NIST's NBIS software distribution:
http://fingerprint.nist.gov/NBIS/index.html
We include bozorth3 from the US export controlled distribution. We have
determined that it is fine to ship bozorth3 in an open source project,
see https://fprint.freedesktop.org/us-export-control.html
<div align="right">
## Historical links
[![Badge License]][License]
Older versions of libfprint are available at:
https://sourceforge.net/projects/fprint/files/
</div>
Historical mailing-list archives:
http://www.reactivated.net/fprint_list_archives/
Historical website:
http://web.archive.org/web/*/https://www.freedesktop.org/wiki/Software/fprint/
<!----------------------------------------------------------------------------->
[Documentation]: https://fprint.freedesktop.org/libfprint-dev/
[Contributors]: https://gitlab.freedesktop.org/libfprint/libfprint/-/graphs/master
[Unsupported]: https://gitlab.freedesktop.org/libfprint/wiki/-/wikis/Unsupported-Devices
[Supported]: https://fprint.freedesktop.org/supported-devices.html
[Website]: https://fprint.freedesktop.org/
[Contribute]: ./HACKING.md
[License]: ./COPYING
[University Of Manchester]: https://www.manchester.ac.uk/
[US Export Controlled]: https://fprint.freedesktop.org/us-export-control.html
[NBIS]: http://fingerprint.nist.gov/NBIS/index.html
<!---------------------------------[ Badges ]---------------------------------->
[Badge License]: https://img.shields.io/badge/License-LGPL2.1-015d93.svg?style=for-the-badge&labelColor=blue
<!---------------------------------[ Buttons ]--------------------------------->
[Button Documentation]: https://img.shields.io/badge/Documentation-04ACE6?style=for-the-badge&logoColor=white&logo=BookStack
[Button Contributors]: https://img.shields.io/badge/Contributors-FF4F8B?style=for-the-badge&logoColor=white&logo=ActiGraph
[Button Unsupported]: https://img.shields.io/badge/Unsupported_Devices-EF2D5E?style=for-the-badge&logoColor=white&logo=AdBlock
[Button Contribute]: https://img.shields.io/badge/Contribute-66459B?style=for-the-badge&logoColor=white&logo=Git
[Button Supported]: https://img.shields.io/badge/Supported_Devices-428813?style=for-the-badge&logoColor=white&logo=AdGuard
[Button Website]: https://img.shields.io/badge/Homepage-3B80AE?style=for-the-badge&logoColor=white&logo=freedesktopDotOrg
+9
View File
@@ -0,0 +1,9 @@
### libfprint-TOD - libfprint for Touch OEM Drivers
This is a light fork of libfprint to expose internal Drivers API in order to
create drivers as shared libraries.
Fork is hosted at: https://gitlab.freedesktop.org/3v1n0/libfprint/tree/tod
An example driver implementation is available:
- https://gitlab.freedesktop.org/3v1n0/libfprint-tod-example-driver
+70 -1
View File
@@ -67,7 +67,7 @@ usb:v08FFp5731*
ID_PERSIST=0
# Supported by libfprint driver aes4000
usb:v5501p08FF*
usb:v08FFp5501*
ID_AUTOSUSPEND=1
ID_PERSIST=0
@@ -77,6 +77,12 @@ usb:v1C7Ap0571*
ID_AUTOSUSPEND=1
ID_PERSIST=0
# Supported by libfprint driver egismoc
usb:v1C7Ap0582*
usb:v1C7Ap05A1*
ID_AUTOSUSPEND=1
ID_PERSIST=0
# Supported by libfprint driver elan
usb:v04F3p0903*
usb:v04F3p0907*
@@ -147,6 +153,9 @@ usb:v04F3p0C7D*
usb:v04F3p0C7E*
usb:v04F3p0C82*
usb:v04F3p0C88*
usb:v04F3p0C8C*
usb:v04F3p0C8D*
usb:v04F3p0C99*
ID_AUTOSUSPEND=1
ID_PERSIST=0
@@ -155,19 +164,47 @@ usb:v1C7Ap0603*
ID_AUTOSUSPEND=1
ID_PERSIST=0
# Supported by libfprint driver focaltech_moc
usb:v2808p9E48*
usb:v2808pD979*
usb:v2808pA959*
ID_AUTOSUSPEND=1
ID_PERSIST=0
# Supported by libfprint driver fpcmoc
usb:v10A5pFFE0*
usb:v10A5pA305*
usb:v10A5pDA04*
usb:v10A5pD805*
usb:v10A5pD205*
ID_AUTOSUSPEND=1
ID_PERSIST=0
# Supported by libfprint driver goodixmoc
usb:v27C6p5840*
usb:v27C6p6014*
usb:v27C6p6092*
usb:v27C6p6094*
usb:v27C6p609C*
usb:v27C6p60A2*
usb:v27C6p60A4*
usb:v27C6p60BC*
usb:v27C6p6304*
usb:v27C6p631C*
usb:v27C6p633C*
usb:v27C6p634C*
usb:v27C6p6384*
usb:v27C6p639C*
usb:v27C6p63AC*
usb:v27C6p63BC*
usb:v27C6p63CC*
usb:v27C6p6496*
usb:v27C6p6582*
usb:v27C6p6584*
usb:v27C6p658C*
usb:v27C6p6592*
usb:v27C6p6594*
usb:v27C6p659A*
usb:v27C6p659C*
usb:v27C6p6A94*
ID_AUTOSUSPEND=1
@@ -178,6 +215,11 @@ usb:v298Dp1010*
ID_AUTOSUSPEND=1
ID_PERSIST=0
# Supported by libfprint driver realtek
usb:v0BDAp5813*
ID_AUTOSUSPEND=1
ID_PERSIST=0
# Supported by libfprint driver synaptics
usb:v06CBp00BD*
usb:v06CBp00DF*
@@ -188,10 +230,14 @@ usb:v06CBp0100*
usb:v06CBp00F0*
usb:v06CBp0103*
usb:v06CBp0123*
usb:v06CBp0124*
usb:v06CBp0126*
usb:v06CBp0129*
usb:v06CBp0168*
usb:v06CBp015F*
usb:v06CBp0104*
usb:v06CBp0173*
usb:v06CBp0106*
ID_AUTOSUSPEND=1
ID_PERSIST=0
@@ -204,6 +250,7 @@ usb:v147Ep1001*
# Supported by libfprint driver upektc
usb:v0483p2015*
usb:v0483p2017*
usb:v147Ep3001*
ID_AUTOSUSPEND=1
ID_PERSIST=0
@@ -259,13 +306,24 @@ usb:v138Ap0091*
ID_PERSIST=0
# Known unsupported devices
usb:v047Dp00F2*
usb:v04E8p730B*
usb:v04F3p036B*
usb:v04F3p0C00*
usb:v04F3p0C4C*
usb:v04F3p0C57*
usb:v04F3p0C5E*
usb:v04F3p0C5A*
usb:v04F3p0C6C*
usb:v04F3p0C70*
usb:v04F3p0C72*
usb:v04F3p0C77*
usb:v04F3p2706*
usb:v04F3p3032*
usb:v04F3p3057*
usb:v04F3p3104*
usb:v04F3p310D*
usb:v04F3p3128*
usb:v06CBp0081*
usb:v06CBp0088*
usb:v06CBp008A*
@@ -299,6 +357,7 @@ usb:v0BDAp5812*
usb:v10A5p0007*
usb:v10A5p9200*
usb:v10A5p9800*
usb:v10A5pE340*
usb:v1188p9545*
usb:v138Ap0007*
usb:v138Ap003A*
@@ -311,21 +370,25 @@ usb:v138Ap0094*
usb:v138Ap0097*
usb:v138Ap009D*
usb:v138Ap00AB*
usb:v138Ap00A6*
usb:v147Ep1002*
usb:v1491p0088*
usb:v16D1p1027*
usb:v1C7Ap0300*
usb:v1C7Ap0575*
usb:v1C7Ap0576*
usb:v1C7Ap0577*
usb:v27C6p5042*
usb:v27C6p5110*
usb:v27C6p5117*
usb:v27C6p5120*
usb:v27C6p5125*
usb:v27C6p5201*
usb:v27C6p521D*
usb:v27C6p5301*
usb:v27C6p530C*
usb:v27C6p532D*
usb:v27C6p5335*
usb:v27C6p533C*
usb:v27C6p5381*
usb:v27C6p5385*
@@ -333,13 +396,19 @@ usb:v27C6p538C*
usb:v27C6p538D*
usb:v27C6p5395*
usb:v27C6p5503*
usb:v27C6p550A*
usb:v27C6p550C*
usb:v27C6p5584*
usb:v27C6p55A2*
usb:v27C6p55A4*
usb:v27C6p55B4*
usb:v27C6p5740*
usb:v27C6p5E0A*
usb:v27C6p581A*
usb:v27C6p589A*
usb:v27C6p6382*
usb:v2808p9338*
usb:v2808p93A9*
usb:v298Dp2020*
usb:v298Dp2033*
usb:v3538p0930*
+10
View File
@@ -0,0 +1,10 @@
The libfprint-2-2 postinst script calls udevadmin trigger for all the supported
USB readers. The list of readers used in that file is generated using the gbp
import hook when `gbp import-orig` (via --uscan or with a tarball) is used.
Alternatively it can be called manually by using:
GBP_SOURCES_DIR=. debian/update-udev-triggers.sh
When preparing a new upstream release, this script should be called against the
upstream provided .hwdb file.
+14
View File
@@ -0,0 +1,14 @@
### libfprint-TOD - libfprint for Touch OEM Drivers
This is a light fork of libfprint to expose internal Drivers API in order to
create drivers as shared libraries.
Fork is hosted at: https://gitlab.freedesktop.org/3v1n0/libfprint/tree/tod
Packaging for this is handled via gbp, so you need to make sure that you have
added the remote:
git remote add origin-tod https://gitlab.freedesktop.org/3v1n0/libfprint.git
git fetch origin-tod --tags
To get the latest tod release, just use `gbp import-orig --uscan`.
+1012
View File
File diff suppressed because it is too large Load Diff
+203
View File
@@ -0,0 +1,203 @@
Source: libfprint
Priority: optional
Section: libs
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
XSBC-Original-Maintainer: FingerForce Team <fingerforce-devel@lists.alioth.debian.org>
Uploaders: Marco Trevisan <marco@ubuntu.com>
Build-Depends: debhelper-compat (= 13),
gir1.2-gobject-2.0-dev <!nogir>,
gir1.2-gio-2.0-dev <!nogir>,
gobject-introspection,
gtk-doc-tools,
libcairo-dev <!nocheck>,
libgirepository1.0-dev,
libglib2.0-dev,
libgudev-1.0-dev,
libgusb-dev,
libnss3-dev,
libpixman-1-dev,
meson,
python3 <!nocheck>,
python3-cairo <!nocheck>,
python3-gi <!nocheck>,
systemd-dev,
umockdev <!nocheck>
Build-Depends-Indep: libglib2.0-doc <!nodoc>, libgusb-doc <!nodoc>
Standards-Version: 4.6.2
Homepage: https://www.freedesktop.org/wiki/Software/fprint/libfprint
Vcs-Browser: https://salsa.debian.org/ubuntu-dev-team/libfprint/tree/noble
Vcs-Git: https://salsa.debian.org/ubuntu-dev-team/libfprint.git -b noble
Package: libfprint-2-2
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Pre-Depends: ${misc:Pre-Depends}
Description: async fingerprint library of fprint project, shared libraries
The fprint project aims to support for consumer fingerprint reader devices.
.
Previously, Linux support for such devices has been scattered amongst different
projects (many incomplete) and inconsistent in that application developers
would have to implement support for each type of fingerprint reader separately.
The idea is to change that by providing a central system to support all the
fingerprint readers as it's possible to get hands on.
.
libfprint is the centre of efforts, this component does the dirty job of
talking to fingerprint reading devices, and processing fingerprint data.
.
This library depends on the new libusb, which performs asynchronous callbacks,
allowing fprint to perform non-blocking device tasks.
.
This package provides shared libraries.
Package: libfprint-2-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: gir1.2-fprint-2.0 (= ${binary:Version}),
libfprint-2-2 (= ${binary:Version}),
${misc:Depends},
${gir:Depends},
Provides: ${gir:Provides},
Suggests: libfprint-2-doc
Description: async fingerprint library of fprint project, development headers
The fprint project aims to support for consumer fingerprint reader devices.
.
Previously, Linux support for such devices has been scattered amongst different
projects (many incomplete) and inconsistent in that application developers
would have to implement support for each type of fingerprint reader separately.
The idea is to change that by providing a central system to support all the
fingerprint readers as it's possible to get hands on.
.
libfprint is the centre of efforts, this component does the dirty job of
talking to fingerprint reading devices, and processing fingerprint data.
.
This library depends on the new libusb, which performs asynchronous callbacks,
allowing fprint to perform non-blocking device tasks.
.
This package provides development headers.
Package: libfprint-2-doc
Section: doc
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}
Description: async fingerprint library of fprint project, API documentation
The fprint project aims to support for consumer fingerprint reader devices.
.
Previously, Linux support for such devices has been scattered amongst different
projects (many incomplete) and inconsistent in that application developers
would have to implement support for each type of fingerprint reader separately.
The idea is to change that by providing a central system to support all the
fingerprint readers as it's possible to get hands on.
.
libfprint is the centre of efforts, this component does the dirty job of
talking to fingerprint reading devices, and processing fingerprint data.
.
This library depends on the new libusb, which performs asynchronous callbacks,
allowing fprint to perform non-blocking device tasks.
.
This package provides the API documentation.
Package: gir1.2-fprint-2.0
Architecture: any
Multi-Arch: same
Section: introspection
Depends: ${gir:Depends}, ${misc:Depends}, ${shlibs:Depends}
Pre-Depends: ${misc:Pre-Depends}
Description: async fingerprint library of fprint project, gir bindings
The fprint project aims to support for consumer fingerprint reader devices.
.
Previously, Linux support for such devices has been scattered amongst different
projects (many incomplete) and inconsistent in that application developers
would have to implement support for each type of fingerprint reader separately.
The idea is to change that by providing a central system to support all the
fingerprint readers as it's possible to get hands on.
.
libfprint is the centre of efforts, this component does the dirty job of
talking to fingerprint reading devices, and processing fingerprint data.
.
This library depends on the new libusb, which performs asynchronous callbacks,
allowing fprint to perform non-blocking device tasks.
.
This package can be used by other packages using the GIRepository format to
generate dynamic bindings.
Package: libfprint-2-tod1
Architecture: any
Multi-Arch: same
Depends: ${misc:Depends}, ${shlibs:Depends}
Pre-Depends: ${misc:Pre-Depends}
Description: async fingerprint library of fprint project, drivers shared libraries
The fprint project aims to support for consumer fingerprint reader devices.
.
Previously, Linux support for such devices has been scattered amongst different
projects (many incomplete) and inconsistent in that application developers
would have to implement support for each type of fingerprint reader separately.
The idea is to change that by providing a central system to support all the
fingerprint readers as it's possible to get hands on.
.
libfprint is the centre of efforts, this component does the dirty job of
talking to fingerprint reading devices, and processing fingerprint data.
.
This library depends on the new libusb, which performs asynchronous callbacks,
allowing fprint to perform non-blocking device tasks.
.
This package provides shared libraries for the TOD drivers.
Package: libfprint-2-tod-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libfprint-2-tod1 (= ${binary:Version}),
libfprint-2-dev (= ${binary:Version}),
libglib2.0-dev (>= 2.56),
libgudev-1.0-dev,
libgusb-dev (>= 0.2.0),
libpixman-1-dev,
libnss3-dev,
${misc:Depends}
Description: async fingerprint library of fprint project, drivers development headers
The fprint project aims to support for consumer fingerprint reader devices.
.
Previously, Linux support for such devices has been scattered amongst different
projects (many incomplete) and inconsistent in that application developers
would have to implement support for each type of fingerprint reader separately.
The idea is to change that by providing a central system to support all the
fingerprint readers as it's possible to get hands on.
.
libfprint is the centre of efforts, this component does the dirty job of
talking to fingerprint reading devices, and processing fingerprint data.
.
This library depends on the new libusb, which performs asynchronous callbacks,
allowing fprint to perform non-blocking device tasks.
.
This package provides development headers for creating device drivers.
An example driver is available at:
https://gitlab.freedesktop.org/3v1n0/libfprint-tod-example-driver
Package: libfprint-2-tests
Architecture: any
Depends: gir1.2-fprint-2.0 (= ${binary:Version}),
libfprint-2-2 (= ${binary:Version}),
python3,
python3-cairo,
python3-gi,
umockdev,
${misc:Depends}, ${shlibs:Depends}
Description: Tests for async fingerprint library of fprint project
The fprint project aims to support for consumer fingerprint reader devices.
.
Previously, Linux support for such devices has been scattered amongst different
projects (many incomplete) and inconsistent in that application developers
would have to implement support for each type of fingerprint reader separately.
The idea is to change that by providing a central system to support all the
fingerprint readers as it's possible to get hands on.
.
libfprint is the centre of efforts, this component does the dirty job of
talking to fingerprint reading devices, and processing fingerprint data.
.
This library depends on the new libusb, which performs asynchronous callbacks,
allowing fprint to perform non-blocking device tasks.
.
This package contains test programs, designed to be run as part of a
regression testsuite.
+45
View File
@@ -0,0 +1,45 @@
This package was debianized by Ulises Vitulli <uvitulli@fi.uba.ar> on
Fri, 19 Sep 2008 05:14:30 -0300.
It was downloaded from <http://reactivated.net/fprint/wiki/Libfprint>
Upstream Authors, and Copyright:
Copyright © 2007 Daniel Drake <dsd@gentoo.org>
Copyright © 2006-2007 Timo Hoenig <thoenig@suse.de>
Copyright © 2006 Pavel Machek <pavel@suse.cz>
Copyright © 1999 Erik Walthinsen <omega@cse.ogi.edu>
Copyright © 2004,2006 Thomas Vander Stichele <thomas at apestaart dot org>
Copyright © 2007 Cyrille Bagard
Copyright © 2007 Vasily Khoruzhick
Copyright © 2007 Jan-Michael Brummer <buzz2@gmx.de>
Copyright © 2007 Anthony Bretaudeau <wxcover@users.sourceforge.net>
License:
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
The files under libfprint/nbis directory has this license:
This software was developed at the National Institute of Standards and
Technology (NIST) by employees of the Federal Government in the course
of their official duties. Pursuant to title 17 Section 105 of the
United States Code, this software is not subject to copyright protection
and is in the public domain. NIST assumes no responsibility whatsoever for
its use by other parties, and makes no guarantees, expressed or implied,
about its quality, reliability, or any other characteristic.
The Debian packaging is © 2008, Ulises Vitulli <uvitulli@fi.uba.ar> and is
licensed under the LGPL v2.1, see `/usr/share/common-licenses/LGPL-2.1'.
Vendored
+2
View File
@@ -0,0 +1,2 @@
NEWS
README.md
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -e
dch -v"$GBP_DEBIAN_VERSION" "New upstream release"
git add debian/changelog
debcommit
debian/update-udev-triggers.sh
+19
View File
@@ -0,0 +1,19 @@
[DEFAULT]
pristine-tar = True
debian-branch = noble
upstream-vcs-tag = v%(version)s
upstream-branch = upstream-tod
debian-tag=ubuntu/%(version)s
[buildpackage]
sign-tags = True
[dch]
multimaint-merge = True
[import-orig]
postimport = debian/gbp-post-import-hook.sh
[pq]
patch-numbers = False
+1
View File
@@ -0,0 +1 @@
usr/lib/${DEB_HOST_MULTIARCH}/girepository-1.0/FPrint-*.typelib
+3
View File
@@ -0,0 +1,3 @@
usr/lib/udev/hwdb.d/
usr/lib/udev/rules.d/
usr/lib/${DEB_HOST_MULTIARCH}/libfprint-[0-9].so.*
+3
View File
@@ -0,0 +1,3 @@
# For security reasons, we don't want the fingerprint readers to be accessible
# by unprivileged users
udev-rule-missing-uaccess
+315
View File
@@ -0,0 +1,315 @@
#!/bin/sh
set -e
#DEBHELPER#
if [ "$1" = "configure" -o "$1" = "upgrade" ] && command -V udevadm >/dev/null 2>&1; then
# apply hwdb rules at package installation, see
# <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683863#27>
# NOTA BENE: after the DEBHELPER section since dh_installudev
# adds stuff there
# The devices ID list is auto-generated using the gbp postimport hook
# see debian/README.sources for more details.
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1600 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1660 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1680 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1681 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1682 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1683 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1684 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1685 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1686 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1687 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1688 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1689 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=168a || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=168b || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=168c || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=168d || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=168e || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=168f || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2500 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2580 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2550 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2810 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2660 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2680 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2681 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2682 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2683 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2684 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2685 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2686 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2687 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2688 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2689 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=268a || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=268b || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=268c || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=268d || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=268e || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=268f || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2691 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=5731 || true
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=5501 || true
udevadm trigger --action=add --attr-match=idVendor=1c7a --attr-match=idProduct=0570 || true
udevadm trigger --action=add --attr-match=idVendor=1c7a --attr-match=idProduct=0571 || true
udevadm trigger --action=add --attr-match=idVendor=1c7a --attr-match=idProduct=0582 || true
udevadm trigger --action=add --attr-match=idVendor=1c7a --attr-match=idProduct=05a1 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0903 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0907 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c01 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c02 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c03 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c04 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c05 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c06 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c07 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c08 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c09 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c0a || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c0b || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c0c || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c0d || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c0e || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c0f || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c10 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c11 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c12 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c13 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c14 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c15 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c16 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c17 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c18 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c19 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c1a || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c1b || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c1c || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c1d || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c1e || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c1f || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c20 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c21 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c22 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c23 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c24 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c25 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c26 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c27 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c28 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c29 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c2a || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c2b || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c2c || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c2d || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c2e || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c2f || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c30 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c31 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c32 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c33 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c3d || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c42 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c4b || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c4d || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c4f || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c63 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c6e || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c58 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c7d || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c7e || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c82 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c88 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c8c || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c8d || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c99 || true
udevadm trigger --action=add --attr-match=idVendor=1c7a --attr-match=idProduct=0603 || true
udevadm trigger --action=add --attr-match=idVendor=2808 --attr-match=idProduct=9e48 || true
udevadm trigger --action=add --attr-match=idVendor=2808 --attr-match=idProduct=d979 || true
udevadm trigger --action=add --attr-match=idVendor=2808 --attr-match=idProduct=a959 || true
udevadm trigger --action=add --attr-match=idVendor=10a5 --attr-match=idProduct=ffe0 || true
udevadm trigger --action=add --attr-match=idVendor=10a5 --attr-match=idProduct=a305 || true
udevadm trigger --action=add --attr-match=idVendor=10a5 --attr-match=idProduct=da04 || true
udevadm trigger --action=add --attr-match=idVendor=10a5 --attr-match=idProduct=d805 || true
udevadm trigger --action=add --attr-match=idVendor=10a5 --attr-match=idProduct=d205 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5840 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=6014 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=6092 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=6094 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=609c || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=60a2 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=60a4 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=60bc || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=6304 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=631c || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=633c || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=634c || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=6384 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=639c || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=63ac || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=63bc || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=63cc || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=6496 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=6582 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=6584 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=658c || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=6592 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=6594 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=659a || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=659c || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=6a94 || true
udevadm trigger --action=add --attr-match=idVendor=298d --attr-match=idProduct=1010 || true
udevadm trigger --action=add --attr-match=idVendor=0bda --attr-match=idProduct=5813 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00bd || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00df || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00f9 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00fc || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00c2 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=0100 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00f0 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=0103 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=0123 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=0124 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=0126 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=0129 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=0168 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=015f || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=0104 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=0173 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=0106 || true
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=2016 || true
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=1000 || true
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=1001 || true
udevadm trigger --action=add --attr-match=idVendor=0483 --attr-match=idProduct=2015 || true
udevadm trigger --action=add --attr-match=idVendor=0483 --attr-match=idProduct=2017 || true
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=3001 || true
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=2020 || true
udevadm trigger --action=add --attr-match=idVendor=045e --attr-match=idProduct=00bc || true
udevadm trigger --action=add --attr-match=idVendor=045e --attr-match=idProduct=00bd || true
udevadm trigger --action=add --attr-match=idVendor=045e --attr-match=idProduct=00ca || true
udevadm trigger --action=add --attr-match=idVendor=05ba --attr-match=idProduct=0007 || true
udevadm trigger --action=add --attr-match=idVendor=05ba --attr-match=idProduct=0008 || true
udevadm trigger --action=add --attr-match=idVendor=05ba --attr-match=idProduct=000a || true
udevadm trigger --action=add --attr-match=idVendor=061a --attr-match=idProduct=0110 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0050 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0001 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0005 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0008 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0010 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0011 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0015 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0017 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0018 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0091 || true
udevadm trigger --action=add --attr-match=idVendor=047d --attr-match=idProduct=00f2 || true
udevadm trigger --action=add --attr-match=idVendor=04e8 --attr-match=idProduct=730b || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=036b || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c00 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c4c || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c57 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c5e || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c5a || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c6c || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c70 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c72 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c77 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=2706 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=3032 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=3057 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=3104 || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=310d || true
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=3128 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=0081 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=0088 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=008a || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=009a || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=009b || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00a2 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00a8 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00b7 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00bb || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00be || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00c4 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00cb || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00c9 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00d8 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00da || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00dc || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00e4 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00e7 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00e9 || true
udevadm trigger --action=add --attr-match=idVendor=06cb --attr-match=idProduct=00fd || true
udevadm trigger --action=add --attr-match=idVendor=0a5c --attr-match=idProduct=5801 || true
udevadm trigger --action=add --attr-match=idVendor=0a5c --attr-match=idProduct=5805 || true
udevadm trigger --action=add --attr-match=idVendor=0a5c --attr-match=idProduct=5834 || true
udevadm trigger --action=add --attr-match=idVendor=0a5c --attr-match=idProduct=5840 || true
udevadm trigger --action=add --attr-match=idVendor=0a5c --attr-match=idProduct=5841 || true
udevadm trigger --action=add --attr-match=idVendor=0a5c --attr-match=idProduct=5842 || true
udevadm trigger --action=add --attr-match=idVendor=0a5c --attr-match=idProduct=5843 || true
udevadm trigger --action=add --attr-match=idVendor=0a5c --attr-match=idProduct=5844 || true
udevadm trigger --action=add --attr-match=idVendor=0a5c --attr-match=idProduct=5845 || true
udevadm trigger --action=add --attr-match=idVendor=0bda --attr-match=idProduct=5812 || true
udevadm trigger --action=add --attr-match=idVendor=10a5 --attr-match=idProduct=0007 || true
udevadm trigger --action=add --attr-match=idVendor=10a5 --attr-match=idProduct=9200 || true
udevadm trigger --action=add --attr-match=idVendor=10a5 --attr-match=idProduct=9800 || true
udevadm trigger --action=add --attr-match=idVendor=10a5 --attr-match=idProduct=e340 || true
udevadm trigger --action=add --attr-match=idVendor=1188 --attr-match=idProduct=9545 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0007 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=003a || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=003c || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=003d || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=003f || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0090 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0092 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0094 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0097 || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=009d || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=00ab || true
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=00a6 || true
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=1002 || true
udevadm trigger --action=add --attr-match=idVendor=1491 --attr-match=idProduct=0088 || true
udevadm trigger --action=add --attr-match=idVendor=16d1 --attr-match=idProduct=1027 || true
udevadm trigger --action=add --attr-match=idVendor=1c7a --attr-match=idProduct=0300 || true
udevadm trigger --action=add --attr-match=idVendor=1c7a --attr-match=idProduct=0575 || true
udevadm trigger --action=add --attr-match=idVendor=1c7a --attr-match=idProduct=0576 || true
udevadm trigger --action=add --attr-match=idVendor=1c7a --attr-match=idProduct=0577 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5042 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5110 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5117 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5120 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5125 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5201 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=521d || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5301 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=530c || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=532d || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5335 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=533c || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5381 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5385 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=538c || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=538d || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5395 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5503 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=550a || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=550c || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5584 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=55a2 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=55a4 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=55b4 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5740 || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=5e0a || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=581a || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=589a || true
udevadm trigger --action=add --attr-match=idVendor=27c6 --attr-match=idProduct=6382 || true
udevadm trigger --action=add --attr-match=idVendor=2808 --attr-match=idProduct=9338 || true
udevadm trigger --action=add --attr-match=idVendor=2808 --attr-match=idProduct=93a9 || true
udevadm trigger --action=add --attr-match=idVendor=298d --attr-match=idProduct=2020 || true
udevadm trigger --action=add --attr-match=idVendor=298d --attr-match=idProduct=2033 || true
udevadm trigger --action=add --attr-match=idVendor=3538 --attr-match=idProduct=0930 || true
fi
exit 0
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
set -e
#DEBHELPER#
if [ "$1" = "configure" -o "$1" = "upgrade" ] && command -V udevadm >/dev/null 2>&1; then
# apply hwdb rules at package installation, see
# <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683863#27>
# NOTA BENE: after the DEBHELPER section since dh_installudev
# adds stuff there
# The devices ID list is auto-generated using the gbp postimport hook
# see debian/README.sources for more details.
@UDEVADM_TRIGGERS@
fi
exit 0
+94
View File
@@ -0,0 +1,94 @@
libfprint-2.so.2 libfprint-2-2 #MINVER#
* Build-Depends-Package: libfprint-2-dev
LIBFPRINT_2.0.0@LIBFPRINT_2.0.0 1:1.90.1
fp_context_enumerate@LIBFPRINT_2.0.0 1:1.90.1
fp_context_get_devices@LIBFPRINT_2.0.0 1:1.90.1
fp_context_get_type@LIBFPRINT_2.0.0 1:1.90.1
fp_context_new@LIBFPRINT_2.0.0 1:1.90.1
fp_device_capture@LIBFPRINT_2.0.0 1:1.90.1
fp_device_capture_finish@LIBFPRINT_2.0.0 1:1.90.1
fp_device_capture_sync@LIBFPRINT_2.0.0 1:1.90.1
fp_device_clear_storage@LIBFPRINT_2.0.0 1:1.94.1
fp_device_clear_storage_finish@LIBFPRINT_2.0.0 1:1.94.1
fp_device_clear_storage_sync@LIBFPRINT_2.0.0 1:1.94.1
fp_device_close@LIBFPRINT_2.0.0 1:1.90.1
fp_device_close_finish@LIBFPRINT_2.0.0 1:1.90.1
fp_device_close_sync@LIBFPRINT_2.0.0 1:1.90.1
fp_device_delete_print@LIBFPRINT_2.0.0 1:1.90.1
fp_device_delete_print_finish@LIBFPRINT_2.0.0 1:1.90.1
fp_device_delete_print_sync@LIBFPRINT_2.0.0 1:1.90.1
fp_device_enroll@LIBFPRINT_2.0.0 1:1.90.1
fp_device_enroll_finish@LIBFPRINT_2.0.0 1:1.90.1
fp_device_enroll_sync@LIBFPRINT_2.0.0 1:1.90.1
fp_device_error_get_type@LIBFPRINT_2.0.0 1:1.90.1
fp_device_error_quark@LIBFPRINT_2.0.0 1:1.90.1
fp_device_feature_get_type@LIBFPRINT_2.0.0 1:1.94.1
fp_device_get_device_id@LIBFPRINT_2.0.0 1:1.90.1
fp_device_get_driver@LIBFPRINT_2.0.0 1:1.90.1
fp_device_get_features@LIBFPRINT_2.0.0 1:1.94.1
fp_device_get_finger_status@LIBFPRINT_2.0.0 1:1.90.4
fp_device_get_name@LIBFPRINT_2.0.0 1:1.90.1
fp_device_get_nr_enroll_stages@LIBFPRINT_2.0.0 1:1.90.1
fp_device_get_scan_type@LIBFPRINT_2.0.0 1:1.90.1
fp_device_get_temperature@LIBFPRINT_2.0.0 1:1.94.1
fp_device_get_type@LIBFPRINT_2.0.0 1:1.90.1
fp_device_has_feature@LIBFPRINT_2.0.0 1:1.94.1
fp_device_has_storage@LIBFPRINT_2.0.0 1:1.90.1
fp_device_identify@LIBFPRINT_2.0.0 1:1.90.1
fp_device_identify_finish@LIBFPRINT_2.0.0 1:1.90.1
fp_device_identify_sync@LIBFPRINT_2.0.0 1:1.90.1
fp_device_is_open@LIBFPRINT_2.0.0 1:1.90.1
fp_device_list_prints@LIBFPRINT_2.0.0 1:1.90.1
fp_device_list_prints_finish@LIBFPRINT_2.0.0 1:1.90.1
fp_device_list_prints_sync@LIBFPRINT_2.0.0 1:1.90.1
fp_device_open@LIBFPRINT_2.0.0 1:1.90.1
fp_device_open_finish@LIBFPRINT_2.0.0 1:1.90.1
fp_device_open_sync@LIBFPRINT_2.0.0 1:1.90.1
fp_device_resume@LIBFPRINT_2.0.0 1:1.94.1
fp_device_resume_finish@LIBFPRINT_2.0.0 1:1.94.1
fp_device_resume_sync@LIBFPRINT_2.0.0 1:1.94.1
fp_device_retry_get_type@LIBFPRINT_2.0.0 1:1.90.1
fp_device_retry_quark@LIBFPRINT_2.0.0 1:1.90.1
fp_device_supports_capture@LIBFPRINT_2.0.0 1:1.90.1
fp_device_supports_identify@LIBFPRINT_2.0.0 1:1.90.1
fp_device_suspend@LIBFPRINT_2.0.0 1:1.94.1
fp_device_suspend_finish@LIBFPRINT_2.0.0 1:1.94.1
fp_device_suspend_sync@LIBFPRINT_2.0.0 1:1.94.1
fp_device_type_get_type@LIBFPRINT_2.0.0 1:1.90.1
fp_device_verify@LIBFPRINT_2.0.0 1:1.90.1
fp_device_verify_finish@LIBFPRINT_2.0.0 1:1.90.1
fp_device_verify_sync@LIBFPRINT_2.0.0 1:1.90.1
fp_finger_get_type@LIBFPRINT_2.0.0 1:1.90.1
fp_finger_status_flags_get_type@LIBFPRINT_2.0.0 1:1.90.4
fp_image_detect_minutiae@LIBFPRINT_2.0.0 1:1.90.1
fp_image_detect_minutiae_finish@LIBFPRINT_2.0.0 1:1.90.1
fp_image_device_get_type@LIBFPRINT_2.0.0 1:1.90.1
fp_image_get_binarized@LIBFPRINT_2.0.0 1:1.90.1
fp_image_get_data@LIBFPRINT_2.0.0 1:1.90.1
fp_image_get_height@LIBFPRINT_2.0.0 1:1.90.1
fp_image_get_minutiae@LIBFPRINT_2.0.0 1:1.90.1
fp_image_get_ppmm@LIBFPRINT_2.0.0 1:1.90.1
fp_image_get_type@LIBFPRINT_2.0.0 1:1.90.1
fp_image_get_width@LIBFPRINT_2.0.0 1:1.90.1
fp_image_new@LIBFPRINT_2.0.0 1:1.90.1
fp_minutia_get_coords@LIBFPRINT_2.0.0 1:1.90.1
fp_print_compatible@LIBFPRINT_2.0.0 1:1.90.1
fp_print_deserialize@LIBFPRINT_2.0.0 1:1.90.1
fp_print_equal@LIBFPRINT_2.0.0 1:1.90.1
fp_print_get_description@LIBFPRINT_2.0.0 1:1.90.1
fp_print_get_device_id@LIBFPRINT_2.0.0 1:1.90.1
fp_print_get_device_stored@LIBFPRINT_2.0.0 1:1.90.1
fp_print_get_driver@LIBFPRINT_2.0.0 1:1.90.1
fp_print_get_enroll_date@LIBFPRINT_2.0.0 1:1.90.1
fp_print_get_finger@LIBFPRINT_2.0.0 1:1.90.1
fp_print_get_image@LIBFPRINT_2.0.0 1:1.90.1
fp_print_get_type@LIBFPRINT_2.0.0 1:1.90.1
fp_print_get_username@LIBFPRINT_2.0.0 1:1.90.1
fp_print_new@LIBFPRINT_2.0.0 1:1.90.1
fp_print_serialize@LIBFPRINT_2.0.0 1:1.90.1
fp_print_set_description@LIBFPRINT_2.0.0 1:1.90.1
fp_print_set_enroll_date@LIBFPRINT_2.0.0 1:1.90.1
fp_print_set_finger@LIBFPRINT_2.0.0 1:1.90.1
fp_print_set_username@LIBFPRINT_2.0.0 1:1.90.1
fp_scan_type_get_type@LIBFPRINT_2.0.0 1:1.90.1
fp_temperature_get_type@LIBFPRINT_2.0.0 1:1.94.1
+4
View File
@@ -0,0 +1,4 @@
usr/include/libfprint-[0-9]/*.h
usr/lib/${DEB_HOST_MULTIARCH}/libfprint-[0-9].so
usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/libfprint-[0-9].pc
usr/share/gir-1.0/FPrint-*.gir
+1
View File
@@ -0,0 +1 @@
usr/share/gtk-doc/*/libfprint-*
+2
View File
@@ -0,0 +1,2 @@
usr/libexec/installed-tests/libfprint-[0-9]
usr/share/installed-tests/libfprint-[0-9]
+3
View File
@@ -0,0 +1,3 @@
usr/include/libfprint-[0-9]/tod-[0-9]/*
usr/lib/${DEB_HOST_MULTIARCH}/libfprint-[0-9]-tod.so
usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/libfprint-[0-9]-tod-[0-9].pc
+1
View File
@@ -0,0 +1 @@
usr/lib/${DEB_HOST_MULTIARCH}/libfprint-[0-9]-tod.so.*
+239
View File
@@ -0,0 +1,239 @@
libfprint-2-tod.so.1 libfprint-2-tod1 #MINVER#
LIBFPRINT_TOD_1.0.0@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
LIBFPRINT_TOD_1_1.92@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
LIBFPRINT_TOD_1_1.94@LIBFPRINT_TOD_1_1.94 1:1.94.1+tod1
fpi_assemble_frames@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_assemble_lines@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_dup_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_dup_string_utf16@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_dup_string_utf32@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_dup_string_utf8@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_free@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_float32_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_float32_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_float64_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_float64_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_int16_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_int16_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_int24_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_int24_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_int32_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_int32_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_int64_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_int64_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_int8@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_pos@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_remaining@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_size@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_string_utf8@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_sub_reader@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_uint16_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_uint16_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_uint24_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_uint24_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_uint32_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_uint32_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_uint64_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_uint64_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_get_uint8@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_init@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_masked_scan_uint32@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_masked_scan_uint32_peek@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_new@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_float32_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_float32_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_float64_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_float64_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_int16_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_int16_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_int24_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_int24_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_int32_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_int32_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_int64_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_int64_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_int8@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_string_utf8@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_sub_reader@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_uint16_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_uint16_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_uint24_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_uint24_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_uint32_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_uint32_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_uint64_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_uint64_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_peek_uint8@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_set_pos@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_skip@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_skip_string_utf16@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_skip_string_utf32@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_reader_skip_string_utf8@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_ensure_free_space@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_fill@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_free@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_free_and_get_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_get_remaining@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_init@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_init_with_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_init_with_size@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_new@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_new_with_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_new_with_size@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_float32_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_float32_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_float64_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_float64_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_int16_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_int16_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_int24_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_int24_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_int32_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_int32_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_int64_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_int64_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_int8@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_string_utf16@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_string_utf32@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_string_utf8@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_uint16_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_uint16_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_uint24_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_uint24_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_uint32_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_uint32_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_uint64_be@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_uint64_le@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_put_uint8@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_reset@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_byte_writer_reset_and_get_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_action_error@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_action_get_type@LIBFPRINT_TOD_1.0.0 1:1.90.3+tod1
fpi_device_action_is_cancelled@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_add_timeout@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_capture_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_class_auto_initialize_features@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_device_clear_storage_complete@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_device_close_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_configure_wakeup@LIBFPRINT_TOD_1.0.0 1:1.94.1+tod1
fpi_device_critical_enter@LIBFPRINT_TOD_1_1.94 1:1.94.1+tod1
fpi_device_critical_leave@LIBFPRINT_TOD_1_1.94 1:1.94.1+tod1
fpi_device_delete_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_enroll_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_enroll_progress@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_error_new@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_error_new_msg@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_get_cancellable@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_get_capture_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_get_current_action@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_get_delete_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_get_driver_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_get_enroll_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_get_identify_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_get_udev_data@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_device_get_usb_device@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_get_verify_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_get_virtual_env@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_identify_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_identify_report@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_list_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_open_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_probe_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_remove@LIBFPRINT_TOD_1.0.0 1:1.90.5+tod1
fpi_device_report_finger_status@LIBFPRINT_TOD_1.0.0 1:1.90.5+tod1
fpi_device_report_finger_status_changes@LIBFPRINT_TOD_1.0.0 1:1.90.5+tod1
fpi_device_resume@LIBFPRINT_TOD_1_1.94 1:1.94.5+tod1
fpi_device_resume_complete@LIBFPRINT_TOD_1_1.94 1:1.94.1+tod1
fpi_device_retry_new@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_retry_new_msg@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_set_nr_enroll_stages@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_set_scan_type@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_suspend@LIBFPRINT_TOD_1_1.94 1:1.94.5+tod1
fpi_device_suspend_complete@LIBFPRINT_TOD_1_1.94 1:1.94.1+tod1
fpi_device_udev_subtype_flags_get_type@LIBFPRINT_TOD_1.0.0 1:1.94.1+tod1
fpi_device_update_features@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_device_update_temp@LIBFPRINT_TOD_1.0.0 1:1.94.1+tod1
fpi_device_verify_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_device_verify_report@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_do_movement_estimation@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_image_device_activate@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_image_device_activate_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_image_device_close_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_image_device_deactivate@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_image_device_deactivate_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_image_device_image_captured@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_image_device_open_complete@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_image_device_report_finger_status@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_image_device_retry_scan@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_image_device_session_error@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_image_device_set_bz3_threshold@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_image_device_state_get_type@LIBFPRINT_TOD_1.0.0 1:1.90.3+tod1
fpi_image_flags_get_type@LIBFPRINT_TOD_1.0.0 1:1.90.3+tod1
fpi_image_resize@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_match_result_get_type@LIBFPRINT_TOD_1.0.0 1:1.90.3+tod1
fpi_mean_sq_diff_norm@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_print_add_from_image@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_print_add_print@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_print_bz3_match@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_print_fill_from_user_id@LIBFPRINT_TOD_1.0.0 1:1.90.2+tod1
fpi_print_generate_user_id@LIBFPRINT_TOD_1.0.0 1:1.90.2+tod1
fpi_print_set_device_stored@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_print_set_type@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_print_type_get_type@LIBFPRINT_TOD_1.0.0 1:1.90.3+tod1
fpi_spi_transfer_get_type@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_spi_transfer_new@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_spi_transfer_read@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_spi_transfer_read_full@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_spi_transfer_ref@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_spi_transfer_submit@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_spi_transfer_submit_sync@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_spi_transfer_unref@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_spi_transfer_write@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_spi_transfer_write_full@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_ssm_cancel_delayed_state_change@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_dup_error@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_free@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_get_cur_state@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_get_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_get_device@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_ssm_get_error@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_jump_to_state@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_jump_to_state_delayed@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_jump_to_state_delayed@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_ssm_jump_to_state_delayed_1_90@LIBFPRINT_TOD_1.0.0 1:1.94.1+tod1
fpi_ssm_mark_completed@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_mark_completed_delayed@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_mark_completed_delayed@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_ssm_mark_completed_delayed_1_90@LIBFPRINT_TOD_1.0.0 1:1.94.1+tod1
fpi_ssm_mark_failed@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_new_full@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_new_full@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_ssm_new_full_1_90@LIBFPRINT_TOD_1.0.0 1:1.94.1+tod1
fpi_ssm_next_state@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_next_state_delayed@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_next_state_delayed@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_ssm_next_state_delayed_1_90@LIBFPRINT_TOD_1.0.0 1:1.94.1+tod1
fpi_ssm_set_data@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_silence_debug@LIBFPRINT_TOD_1_1.94 1:1.94.3+tod1
fpi_ssm_spi_transfer_cb@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_ssm_spi_transfer_with_weak_pointer_cb@LIBFPRINT_TOD_1_1.92 1:1.94.1+tod1
fpi_ssm_start@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_start_subsm@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_usb_transfer_cb@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_ssm_usb_transfer_with_weak_pointer_cb@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_std_sq_dev@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_transfer_type_get_type@LIBFPRINT_TOD_1.0.0 1:1.90.3+tod1
fpi_usb_transfer_fill_bulk@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_usb_transfer_fill_bulk_full@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_usb_transfer_fill_control@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_usb_transfer_fill_interrupt@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_usb_transfer_fill_interrupt_full@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_usb_transfer_get_type@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_usb_transfer_new@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_usb_transfer_ref@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_usb_transfer_submit@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_usb_transfer_submit_sync@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
fpi_usb_transfer_unref@LIBFPRINT_TOD_1.0.0 1:1.90.1+tod1
+37
View File
@@ -0,0 +1,37 @@
From a603b95786836d27679301ecd4e68e4227ab4c82 Mon Sep 17 00:00:00 2001
From: herman lin <herman.lin@emc.com.tw>
Date: Thu, 8 May 2025 15:34:37 +0800
Subject: [PATCH] elanmoc: Add new PID 0x0CA8
---
data/autosuspend.hwdb | 1 +
libfprint/drivers/elanmoc/elanmoc.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/data/autosuspend.hwdb b/data/autosuspend.hwdb
index 39dd316..43190cb 100644
--- a/data/autosuspend.hwdb
+++ b/data/autosuspend.hwdb
@@ -157,6 +157,7 @@ usb:v04F3p0C8C*
usb:v04F3p0C8D*
usb:v04F3p0C99*
usb:v04F3p0C9F*
+usb:v04F3p0CA8*
ID_AUTOSUSPEND=1
ID_PERSIST=0
diff --git a/libfprint/drivers/elanmoc/elanmoc.c b/libfprint/drivers/elanmoc/elanmoc.c
index 42a84a6..0e99e57 100644
--- a/libfprint/drivers/elanmoc/elanmoc.c
+++ b/libfprint/drivers/elanmoc/elanmoc.c
@@ -33,6 +33,7 @@ static const FpIdEntry id_table[] = {
{ .vid = 0x04f3, .pid = 0x0c8d, },
{ .vid = 0x04f3, .pid = 0x0c99, },
{ .vid = 0x04f3, .pid = 0x0c9f, },
+ { .vid = 0x04f3, .pid = 0x0ca8, },
{ .vid = 0, .pid = 0, .driver_data = 0 }, /* terminating entry */
};
--
2.43.0
+28
View File
@@ -0,0 +1,28 @@
Subject: elanmoc: Add new PID 0x0C9F
Origin: upstream, https://gitlab.freedesktop.org/libfprint/libfprint/-/merge_requests/501
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libfprint/+bug/2089367
diff --git a/data/autosuspend.hwdb b/data/autosuspend.hwdb
index 8e0e6eab12e772058a8957a2b9f2d39e0bdc8e11..342c6d0e6538028d90a11d1607cd9e07086aeb8c 100644
--- a/data/autosuspend.hwdb
+++ b/data/autosuspend.hwdb
@@ -156,6 +156,7 @@ usb:v04F3p0C88*
usb:v04F3p0C8C*
usb:v04F3p0C8D*
usb:v04F3p0C99*
+usb:v04F3p0C9F*
ID_AUTOSUSPEND=1
ID_PERSIST=0
diff --git a/libfprint/drivers/elanmoc/elanmoc.c b/libfprint/drivers/elanmoc/elanmoc.c
index e86b79a28ec2240a303ad602b567d10447e3b09b..42a84a627e68020bb070bce1a6cffa669cffe9ed 100644
--- a/libfprint/drivers/elanmoc/elanmoc.c
+++ b/libfprint/drivers/elanmoc/elanmoc.c
@@ -32,6 +32,7 @@ static const FpIdEntry id_table[] = {
{ .vid = 0x04f3, .pid = 0x0c8c, },
{ .vid = 0x04f3, .pid = 0x0c8d, },
{ .vid = 0x04f3, .pid = 0x0c99, },
+ { .vid = 0x04f3, .pid = 0x0c9f, },
{ .vid = 0, .pid = 0, .driver_data = 0 }, /* terminating entry */
};
+37
View File
@@ -0,0 +1,37 @@
From 763b6830006ca88bced7744c219c9a961d1637f4 Mon Sep 17 00:00:00 2001
From: jialei <jialei@egoodix.com>
Date: Wed, 29 Oct 2025 14:32:54 +0800
Subject: [PATCH] goodixmoc:add new PID 0x66A9
---
data/autosuspend.hwdb | 1 +
libfprint/drivers/goodixmoc/goodix.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/data/autosuspend.hwdb b/data/autosuspend.hwdb
index 74ac65b..df18494 100644
--- a/data/autosuspend.hwdb
+++ b/data/autosuspend.hwdb
@@ -207,6 +207,7 @@ usb:v27C6p6594*
usb:v27C6p659A*
usb:v27C6p659C*
usb:v27C6p6A94*
+usb:v27C6p66A9*
ID_AUTOSUSPEND=1
ID_PERSIST=0
diff --git a/libfprint/drivers/goodixmoc/goodix.c b/libfprint/drivers/goodixmoc/goodix.c
index 5a3ffac..8aea175 100644
--- a/libfprint/drivers/goodixmoc/goodix.c
+++ b/libfprint/drivers/goodixmoc/goodix.c
@@ -1632,6 +1632,7 @@ static const FpIdEntry id_table[] = {
{ .vid = 0x27c6, .pid = 0x659A, },
{ .vid = 0x27c6, .pid = 0x659C, },
{ .vid = 0x27c6, .pid = 0x6A94, },
+ { .vid = 0x27c6, .pid = 0x66A9, },
{ .vid = 0, .pid = 0, .driver_data = 0 }, /* terminating entry */
};
--
2.43.0
@@ -0,0 +1,44 @@
From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <mail@3v1n0.net>
Date: Wed, 22 May 2024 17:08:19 +0200
Subject: libfprint-fprint-list-udev-hwdb: Add new broadcom device IDs
(cherry picked from commit eaec2339ccaee64b2bdb1d1e27f51ada673e4087)
---
data/autosuspend.hwdb | 6 ++++++
libfprint/fprint-list-udev-hwdb.c | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/data/autosuspend.hwdb b/data/autosuspend.hwdb
index 74ac65b..cb3e74b 100644
--- a/data/autosuspend.hwdb
+++ b/data/autosuspend.hwdb
@@ -353,6 +353,12 @@ usb:v0A5Cp5842*
usb:v0A5Cp5843*
usb:v0A5Cp5844*
usb:v0A5Cp5845*
+usb:v0A5Cp5860*
+usb:v0A5Cp5863*
+usb:v0A5Cp5864*
+usb:v0A5Cp5865*
+usb:v0A5Cp5866*
+usb:v0A5Cp5867*
usb:v0BDAp5812*
usb:v10A5p0007*
usb:v10A5p9200*
diff --git a/libfprint/fprint-list-udev-hwdb.c b/libfprint/fprint-list-udev-hwdb.c
index bace9f9..4d056ae 100644
--- a/libfprint/fprint-list-udev-hwdb.c
+++ b/libfprint/fprint-list-udev-hwdb.c
@@ -76,6 +76,12 @@ static const FpIdEntry allowlist_id_table[] = {
{ .vid = 0x0a5c, .pid = 0x5843 },
{ .vid = 0x0a5c, .pid = 0x5844 },
{ .vid = 0x0a5c, .pid = 0x5845 },
+ { .vid = 0x0a5c, .pid = 0x5860 },
+ { .vid = 0x0a5c, .pid = 0x5863 },
+ { .vid = 0x0a5c, .pid = 0x5864 },
+ { .vid = 0x0a5c, .pid = 0x5865 },
+ { .vid = 0x0a5c, .pid = 0x5866 },
+ { .vid = 0x0a5c, .pid = 0x5867 },
{ .vid = 0x0bda, .pid = 0x5812 },
{ .vid = 0x10a5, .pid = 0x0007 },
{ .vid = 0x10a5, .pid = 0x9200 },
+7
View File
@@ -0,0 +1,7 @@
libfprint-fprint-list-udev-hwdb-Add-new-broadcom-device-I.patch
elanmoc-add-new-pid-0x0c9f.patch
synaptics-Add-new-PID-0x0107-and-0x108.patch
synaptics-Add-new-PID-0x019D.patch
synaptics-add-new-PID-0x019F-0x109-and-0x10A.patch
goodixmoc-add-new-PID-0x66A9.patch
elanmoc-Add-new-PID-0x0CA8.patch
@@ -0,0 +1,39 @@
From a8ef1672a4ca7e60760349ce320a8f5b778244d5 Mon Sep 17 00:00:00 2001
From: Aris Lin <aris.lin@synaptics.com>
Date: Mon, 18 Nov 2024 11:18:29 +0800
Subject: [PATCH] synaptics: Add new PID 0x0107 and 0x108
---
data/autosuspend.hwdb | 2 ++
libfprint/drivers/synaptics/synaptics.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/data/autosuspend.hwdb b/data/autosuspend.hwdb
index 74ac65b..386d8bd 100644
--- a/data/autosuspend.hwdb
+++ b/data/autosuspend.hwdb
@@ -229,6 +229,8 @@ usb:v06CBp00C2*
usb:v06CBp0100*
usb:v06CBp00F0*
usb:v06CBp0103*
+usb:v06CBp0107*
+usb:v06CBp0108*
usb:v06CBp0123*
usb:v06CBp0124*
usb:v06CBp0126*
diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c
index 138e734..a5d2990 100644
--- a/libfprint/drivers/synaptics/synaptics.c
+++ b/libfprint/drivers/synaptics/synaptics.c
@@ -39,6 +39,8 @@ static const FpIdEntry id_table[] = {
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0100, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x00F0, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0103, },
+ { .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0107, },
+ { .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0108, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0123, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0124, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0126, },
--
2.43.0
+40
View File
@@ -0,0 +1,40 @@
From 2e766904f0250873aaa2133f5d0e84440843ec8b Mon Sep 17 00:00:00 2001
From: Aris Lin <aris.lin@synaptics.com>
Date: Mon, 13 May 2024 16:21:57 +0800
Subject: [PATCH] synaptics: Add new PID 0x019D
Origin: upstream, https://gitlab.freedesktop.org/libfprint/libfprint/-/commit/2e766904f0250873aaa2133f5d0e84440843ec8b
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2114712
Signed-off-by: Atlas Yu <atlas.yu@canonical.com>
---
data/autosuspend.hwdb | 1 +
libfprint/drivers/synaptics/synaptics.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/data/autosuspend.hwdb b/data/autosuspend.hwdb
index 342c6d0..ef81674 100644
--- a/data/autosuspend.hwdb
+++ b/data/autosuspend.hwdb
@@ -243,6 +243,7 @@ usb:v06CBp015F*
usb:v06CBp0104*
usb:v06CBp0173*
usb:v06CBp0106*
+usb:v06CBp019D*
ID_AUTOSUSPEND=1
ID_PERSIST=0
diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c
index 138e734..7b7bf73 100644
--- a/libfprint/drivers/synaptics/synaptics.c
+++ b/libfprint/drivers/synaptics/synaptics.c
@@ -48,6 +48,7 @@ static const FpIdEntry id_table[] = {
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0104, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0173, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0106, },
+ { .vid = SYNAPTICS_VENDOR_ID, .pid = 0x019D, },
{ .vid = 0, .pid = 0, .driver_data = 0 }, /* terminating entry */
};
--
2.43.0
@@ -0,0 +1,54 @@
From: Aris Lin <aris.lin@synaptics.com>
Date: Mon, 14 Jul 2025 11:52:56 +0800
Subject: [PATCH] synaptics: add new PID 0x019F, 0x109 and 0x10A
Origin: upstream, https://gitlab.freedesktop.org/libfprint/libfprint/-/commit/7f5304d6eec37955c8d462e571c3d72af0be4684
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2133704
Signed-off-by: Bin Li <binli@ubuntu.com>
---
data/autosuspend.hwdb | 3 +++
libfprint/drivers/synaptics/synaptics.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/data/autosuspend.hwdb b/data/autosuspend.hwdb
index 7a1759e..10e643c 100644
--- a/data/autosuspend.hwdb
+++ b/data/autosuspend.hwdb
@@ -232,6 +232,8 @@ usb:v06CBp00F0*
usb:v06CBp0103*
usb:v06CBp0107*
usb:v06CBp0108*
+usb:v06CBp0109*
+usb:v06CBp010A*
usb:v06CBp0123*
usb:v06CBp0124*
usb:v06CBp0126*
@@ -242,6 +244,7 @@ usb:v06CBp0104*
usb:v06CBp0173*
usb:v06CBp0106*
usb:v06CBp019D*
+usb:v06CBp019F*
ID_AUTOSUSPEND=1
ID_PERSIST=0
diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c
index d272421..29fb5f1 100644
--- a/libfprint/drivers/synaptics/synaptics.c
+++ b/libfprint/drivers/synaptics/synaptics.c
@@ -41,6 +41,8 @@ static const FpIdEntry id_table[] = {
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0103, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0107, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0108, },
+ { .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0109, },
+ { .vid = SYNAPTICS_VENDOR_ID, .pid = 0x010A, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0123, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0124, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0126, },
@@ -51,6 +53,7 @@ static const FpIdEntry id_table[] = {
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0173, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0106, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x019D, },
+ { .vid = SYNAPTICS_VENDOR_ID, .pid = 0x019F, },
{ .vid = 0, .pid = 0, .driver_data = 0 }, /* terminating entry */
};
Vendored Executable
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = optimize=-lto
export DPKG_GENSYMBOLS_CHECK_LEVEL = 2
BUILDDIR = $(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)
# Configuration arguments
CONFIG_ARGS = \
-Dudev_hwdb=enabled \
-Dudev_rules=enabled \
-Ddrivers=all \
-Dgtk-examples=false
%:
dh $@ --with gir
override_dh_auto_configure:
dh_auto_configure -- $(CONFIG_ARGS)
override_dh_auto_test:
dh_auto_test -- -C $(BUILDDIR) --timeout-multiplier 5
override_dh_auto_clean:
rm -rf tests/__pycache__
dh_auto_clean
+1
View File
@@ -0,0 +1 @@
3.0 (quilt)
+3
View File
@@ -0,0 +1,3 @@
# This TOD driver binary is built using sources inside this package
# but at previous version, see tests/tod-drivers/README.md for more information
libfprint source: source-is-missing [tests/tod-drivers/tod-*.so]
+6
View File
@@ -0,0 +1,6 @@
Test-Command: gnome-desktop-testing-runner libfprint-2
Features: test-name=installed-tests
Classes: desktop
Depends: gnome-desktop-testing,
libfprint-2-tests
Restrictions: allow-stderr
+32
View File
@@ -0,0 +1,32 @@
#!/bin/bash
set -e
srcdir="${GBP_SOURCES_DIR:-.}"
debpath="$(dirname "$0")"
autosuspend_file="$srcdir/data/autosuspend.hwdb"
commands_lines=()
while IFS= read -r line; do
if [[ $line =~ ^usb:v([A-Fa-f0-9]{4})p([A-Fa-f0-9]{4}) ]]; then
vendor="$(echo "${BASH_REMATCH[1]}" | tr '[:upper:]' '[:lower:]')"
product="$(echo "${BASH_REMATCH[2]}" | tr '[:upper:]' '[:lower:]')"
commands_lines+=("\tudevadm trigger --action=add --attr-match=idVendor=$vendor --attr-match=idProduct=$product || true")
fi
done < "$autosuspend_file"
UDEVADM_TRIGGERS=$( IFS=$'\n'; echo -e "${commands_lines[*]}" )
export UDEVADM_TRIGGERS
for i in "$debpath"/libfprint-*.post*.in; do
out="${i%.in}"
perl -pe 's/\@UDEVADM_TRIGGERS\@/`printenv UDEVADM_TRIGGERS`/e' "$i" > "$out"
if [ -n "$GBP_BRANCH" ]; then
if ! git diff-index --quiet HEAD -- "$out"; then
git add "$out"
dch "${out#$srcdir}: Devices triggers updated"
git add debian/changelog
debcommit
fi
fi
done
+4
View File
@@ -0,0 +1,4 @@
---
Bug-Database: https://gitlab.freedesktop.org/3v1n0/libfprint/-/issues
Bug-Submit: https://gitlab.freedesktop.org/3v1n0/libfprint/-/issues/new
Repository-Browse: https://gitlab.freedesktop.org/3v1n0/libfprint/tree/tod
+5
View File
@@ -0,0 +1,5 @@
version=4
opts=versionmangle=s/_/./g \
https://gitlab.freedesktop.org/3v1n0/@PACKAGE@/tags \
.*\/archive\/[Vv]_?([\d_\+\.]+(?:\+git[0-9]+)?\+tod[0-9]+)\/@PACKAGE@-.*@ARCHIVE_EXT@
+3 -3
View File
@@ -102,9 +102,9 @@ plot_minutiae (unsigned char *rgbdata,
int i;
#define write_pixel(num) do { \
rgbdata[((num) * 3)] = 0xff; \
rgbdata[((num) * 3) + 1] = 0; \
rgbdata[((num) * 3) + 2] = 0; \
rgbdata[((num) * 3)] = 0xff; \
rgbdata[((num) * 3) + 1] = 0; \
rgbdata[((num) * 3) + 2] = 0; \
} while(0)
for (i = 0; i < minutiae->len; i++)
+15 -16
View File
@@ -1,12 +1,12 @@
{
"app-id": "org.freedesktop.libfprint.Demo",
"runtime": "org.gnome.Platform",
"runtime-version": "3.36",
"runtime-version": "master",
"sdk": "org.gnome.Sdk",
"command": "gtk-libfprint-test",
"finish-args": [
/* X11 + XShm access */
"--share=ipc", "--socket=x11",
"--share=ipc", "--socket=fallback-x11",
/* Wayland access */
"--socket=wayland",
/* OpenGL access */
@@ -18,7 +18,7 @@
"modules": [
{
"name": "libusb",
"config-opts": [ "--disable-static", "--disable-udev" ],
"config-opts": [ "--disable-static" ],
"cleanup": [
"/lib/*.la",
"/lib/pkgconfig",
@@ -26,48 +26,47 @@
],
"sources": [
{
"type": "archive",
"url": "https://github.com/libusb/libusb/archive/v1.0.22.tar.gz",
"sha256": "3500f7b182750cd9ccf9be8b1df998f83df56a39ab264976bdb3307773e16f48"
"type": "archive",
"url": "https://github.com/libusb/libusb/releases/download/v1.0.26/libusb-1.0.26.tar.bz2",
"sha256": "12ce7a61fc9854d1d2a1ffe095f7b5fac19ddba095c259e6067a46500381b5a5"
}
],
"post-install": [
"install -Dm644 COPYING /app/share/licenses/libgusb/COPYING"
"install -Dm644 COPYING /app/share/licenses/libusb/COPYING"
]
},
{
"name": "libgusb",
"buildsystem": "meson",
"config-opts": [ "-Dtests=false", "-Dvapi=false", "-Ddocs=false", "-Dintrospection=false" ],
"config-opts": [ "-Dtests=false", "-Dvapi=false", "-Ddocs=false" ],
"sources": [
{
"type": "archive",
"url": "https://github.com/hughsie/libgusb/archive/0.3.0.tar.gz",
"sha256": "b36310f8405d5fd68f6caf4a829f7ab4c627b38fd3d02a139d411fce0f3a49f1"
"url": "https://github.com/hughsie/libgusb/releases/download/0.4.6/libgusb-0.4.6.tar.xz",
"sha256": "1b0422bdcd72183272ac42eec9398c5a0bc48a02f618fa3242c468cbbd003049"
}
]
},
{
"name": "gudev",
"buildsystem": "meson",
"config-opts": [ "-Dtests=disabled", "-Dintrospection=disabled" ],
"config-opts": [ "-Dtests=disabled", "-Dintrospection=disabled", "-Dvapi=disabled" ],
"sources": [
{
"type": "archive",
"url": "https://download.gnome.org/sources/libgudev/236/libgudev-236.tar.xz",
"sha256": "e50369d06d594bae615eb7aeb787de304ebaad07a26d1043cef8e9c7ab7c9524"
"url": "https://download.gnome.org/sources/libgudev/238/libgudev-238.tar.xz",
"sha256": "61266ab1afc9d73dbc60a8b2af73e99d2fdff47d99544d085760e4fa667b5dd1"
}
]
},
{
"name": "libfprint",
"buildsystem": "meson",
"config-opts": [ "-Dudev_hwdb=disabled", "-Dudev_rules=disabled", "-Dx11-examples=false", "-Dgtk-examples=true", "-Ddrivers=all" ],
"config-opts": [ "-Dudev_hwdb=disabled", "-Dudev_rules=disabled", "-Dgtk-examples=true", "-Ddrivers=all" ],
"sources": [
{
"type": "git",
"url": "https://gitlab.freedesktop.org/libfprint/libfprint.git",
"branch": "wip/benzea/v2"
"url": "https://gitlab.freedesktop.org/libfprint/libfprint.git"
}
]
}
+2 -2
View File
@@ -19,13 +19,13 @@ content_files = [
expand_content_files = content_files
glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
glib_prefix = dependency('glib-2.0').get_variable(pkgconfig: 'prefix')
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
docpath = join_paths(get_option('datadir'), 'gtk-doc', 'html')
gnome.gtkdoc(versioned_libname,
main_xml: 'libfprint-docs.xml',
src_dir: join_paths(meson.source_root(), 'libfprint'),
src_dir: join_paths(meson.project_source_root(), 'libfprint'),
include_directories: include_directories('../libfprint'),
dependencies: libfprint_dep,
content_files: content_files,
+15
View File
@@ -21,3 +21,18 @@ executable('cpp-test',
'cpp-test.cpp',
dependencies: libfprint_dep,
)
if installed_tests
install_subdir('prints',
install_dir: installed_tests_testdir)
endif
if get_option('tod')
executable('tod-inspector',
sources: 'tod-inspector.c',
dependencies: [
libfprint_dep,
tod_dep,
],
)
endif
+161
View File
@@ -0,0 +1,161 @@
/*
* Shared library loader for libfprint
* Copyright (C) 2021 Marco Trevisan <marco.trevisan@canonical.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <libfprint/fprint.h>
#include "libfprint/tod/tod-shared-loader.h"
#include "libfprint/fpi-device.h"
static char *
id_table_to_string (FpDeviceType device_type,
const FpIdEntry *id_table)
{
const FpIdEntry *entry;
char *str = NULL;
if (!id_table)
return g_strdup ("INVALID: Empty ID table");
entry = id_table;
while (TRUE)
{
g_autofree char *value = NULL;
if (device_type == FP_DEVICE_TYPE_VIRTUAL)
{
if (entry->virtual_envvar)
value = g_strdup (entry->virtual_envvar);
}
else if (device_type == FP_DEVICE_TYPE_USB)
{
if (entry->vid)
value = g_strdup_printf ("%04x:%04x", entry->vid, entry->pid);
}
else if (device_type == FP_DEVICE_TYPE_UDEV)
{
if (entry->hid_id.vid)
{
g_autofree gchar *udev_flags = NULL;
udev_flags = g_flags_to_string (fpi_device_udev_subtype_flags_get_type (),
entry->udev_types);
value = g_strdup_printf ("%s (%04x:%04x) [%s]",
entry->spi_acpi_id,
entry->hid_id.vid, entry->hid_id.pid,
udev_flags);
}
else
{
value = g_strdup (entry->spi_acpi_id);
}
}
else
{
return g_strdup ("Unsupported device type");
}
if (!value)
return str;
if (!str)
{
str = g_steal_pointer (&value);
}
else
{
g_autofree char *tmp = g_steal_pointer (&str);
str = g_strconcat (tmp, ", ", value, NULL);
}
entry++;
}
return str;
}
static const char *
device_type_to_string (FpDeviceType device_type)
{
g_autoptr(GEnumClass) device_types = g_type_class_ref (fp_device_type_get_type ());
GEnumValue *value = g_enum_get_value (device_types, device_type);
return value->value_nick;
}
static const char *
scan_type_to_string (FpScanType scan_type)
{
g_autoptr(GEnumClass) scan_types = g_type_class_ref (fp_scan_type_get_type ());
GEnumValue *value = g_enum_get_value (scan_types, scan_type);
return value->value_nick;
}
int
main (void)
{
g_autoptr(GArray) shared_drivers = NULL;
guint i;
tod_shared_drivers_register ();
shared_drivers = tod_shared_drivers_get ();
g_print ("Found %u drivers\n", shared_drivers->len);
for (i = 0; i < shared_drivers->len; i++)
{
GType driver = g_array_index (shared_drivers, GType, i);
g_autoptr(FpDeviceClass) cls = g_type_class_ref (driver);
g_autofree char *id_table = NULL;
g_autofree char *features = NULL;
id_table = id_table_to_string (cls->type, cls->id_table);
features = g_flags_to_string (fp_device_feature_get_type (), cls->features);
g_print ("ID: %s\n", cls->id);
g_print ("Full Name: %s\n", cls->full_name);
g_print ("Type: %s\n", device_type_to_string (cls->type));
g_print ("Enroll stages: %d\n", cls->nr_enroll_stages);
g_print ("Scan type: %s\n", scan_type_to_string (cls->scan_type));
g_print ("Seconds to get Hot: %d\n", cls->temp_hot_seconds);
g_print ("Seconds to get Cold: %d\n", cls->temp_cold_seconds);
g_print ("Supported Devices: %s\n", id_table);
g_print ("Supported features: %s\n", features);
g_print ("Implemented VFuncs:\n");
g_print (" usb_discover: %s\n", cls->usb_discover ? "true" : "false");
g_print (" probe: %s\n", cls->probe ? "true" : "false");
g_print (" open: %s\n", cls->open ? "true" : "false");
g_print (" close: %s\n", cls->close ? "true" : "false");
g_print (" suspend: %s\n", cls->suspend ? "true" : "false");
g_print (" resume: %s\n", cls->resume ? "true" : "false");
g_print (" enroll: %s\n", cls->enroll ? "true" : "false");
g_print (" verify: %s\n", cls->verify ? "true" : "false");
g_print (" identify: %s\n", cls->identify ? "true" : "false");
g_print (" capture: %s\n", cls->capture ? "true" : "false");
g_print (" list: %s\n", cls->list ? "true" : "false");
g_print (" delete: %s\n", cls->delete ? "true" : "false");
g_print (" clear_storage: %s\n", cls->clear_storage ? "true" : "false");
g_print (" cancel: %s\n", cls->cancel ? "true" : "false");
if (i < shared_drivers->len - 1)
g_print ("------------\n");
}
tod_shared_drivers_unregister ();
}
+1 -1
View File
@@ -124,7 +124,7 @@ G_DEFINE_TYPE (FpiDeviceAes4000, fpi_device_aes4000, FPI_TYPE_DEVICE_AES3K);
static const FpIdEntry id_table[] = {
{ .pid = 0x08ff, .vid = 0x5501 },
{ .vid = 0x08ff, .pid = 0x5501 },
{ .vid = 0, .pid = 0, .driver_data = 0 },
};
+2 -2
View File
@@ -190,7 +190,7 @@ data_resp_cb (FpiUsbTransfer *transfer, FpDevice *dev, gpointer user_data, GErro
{
if (!self->stop && (self->strips_len > 0))
{
FpImage *img;
g_autoptr(FpImage) img = NULL;
self->strips = g_slist_reverse (self->strips);
fpi_do_movement_estimation (&assembling_ctx, self->strips);
img = fpi_assemble_frames (&assembling_ctx, self->strips);
@@ -199,7 +199,7 @@ data_resp_cb (FpiUsbTransfer *transfer, FpDevice *dev, gpointer user_data, GErro
self->strips = NULL;
self->strips_len = 0;
FpImage *resizeImage = fpi_image_resize (img, EGIS0570_RESIZE, EGIS0570_RESIZE);
fpi_image_device_image_captured (img_self, resizeImage);
fpi_image_device_image_captured (img_self, g_steal_pointer (&resizeImage));
}
fpi_image_device_report_finger_status (img_self, FALSE);
File diff suppressed because it is too large Load Diff
+222
View File
@@ -0,0 +1,222 @@
/*
* Driver for Egis Technology (LighTuning) Match-On-Chip sensors
* Originally authored 2023 by Joshua Grisham <josh@joshuagrisham.com>
*
* Portions of code and logic inspired from the elanmoc libfprint driver
* which is copyright (C) 2021 Elan Microelectronics Inc (see elanmoc.c)
*
* Based on original reverse-engineering work by Joshua Grisham. The protocol has
* been reverse-engineered from captures of the official Windows driver, and by
* testing commands on the sensor with a multiplatform Python prototype driver:
* https://github.com/joshuagrisham/galaxy-book2-pro-linux/tree/main/fingerprint/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
#include "fpi-device.h"
#include "fpi-ssm.h"
G_DECLARE_FINAL_TYPE (FpiDeviceEgisMoc, fpi_device_egismoc, FPI, DEVICE_EGISMOC, FpDevice)
#define EGISMOC_DRIVER_FULLNAME "Egis Technology (LighTuning) Match-on-Chip"
#define EGISMOC_DRIVER_CHECK_PREFIX_TYPE1 (1 << 0)
#define EGISMOC_DRIVER_CHECK_PREFIX_TYPE2 (1 << 1)
#define EGISMOC_EP_CMD_OUT (0x02 | FPI_USB_ENDPOINT_OUT)
#define EGISMOC_EP_CMD_IN (0x81 | FPI_USB_ENDPOINT_IN)
#define EGISMOC_EP_CMD_INTERRUPT_IN 0x83
#define EGISMOC_USB_CONTROL_TIMEOUT 5000
#define EGISMOC_USB_SEND_TIMEOUT 5000
#define EGISMOC_USB_RECV_TIMEOUT 5000
#define EGISMOC_USB_INTERRUPT_TIMEOUT 60000
#define EGISMOC_USB_IN_RECV_LENGTH 4096
#define EGISMOC_USB_INTERRUPT_IN_RECV_LENGTH 64
#define EGISMOC_ENROLL_TIMES 10
#define EGISMOC_MAX_ENROLL_NUM 10
#define EGISMOC_FINGERPRINT_DATA_SIZE 32
#define EGISMOC_LIST_RESPONSE_PREFIX_SIZE 14
#define EGISMOC_LIST_RESPONSE_SUFFIX_SIZE 2
/* standard prefixes for all read/writes */
static guchar egismoc_write_prefix[] = {'E', 'G', 'I', 'S', 0x00, 0x00, 0x00, 0x01};
static gsize egismoc_write_prefix_len = sizeof (egismoc_write_prefix) / sizeof (egismoc_write_prefix[0]);
static guchar egismoc_read_prefix[] = {'S', 'I', 'G', 'E', 0x00, 0x00, 0x00, 0x01};
static gsize egismoc_read_prefix_len = sizeof (egismoc_read_prefix) / sizeof (egismoc_read_prefix[0]);
/* hard-coded command payloads */
static guchar cmd_fw_version[] = {0x00, 0x00, 0x00, 0x07, 0x50, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x0c};
static gsize cmd_fw_version_len = sizeof (cmd_fw_version) / sizeof (cmd_fw_version[0]);
static guchar rsp_fw_version_suffix[] = {0x90, 0x00};
static gsize rsp_fw_version_suffix_len = sizeof (rsp_fw_version_suffix) / sizeof (rsp_fw_version_suffix[0]);
static guchar cmd_list[] = {0x00, 0x00, 0x00, 0x07, 0x50, 0x19, 0x04, 0x00, 0x00, 0x01, 0x40};
static gsize cmd_list_len = sizeof (cmd_list) / sizeof (cmd_list[0]);
static guchar cmd_sensor_reset[] = {0x00, 0x00, 0x00, 0x04, 0x50, 0x1a, 0x00, 0x00};
static gsize cmd_sensor_reset_len = sizeof (cmd_sensor_reset) / sizeof (cmd_sensor_reset[0]);
static guchar cmd_sensor_check[] = {0x00, 0x00, 0x00, 0x04, 0x50, 0x17, 0x02, 0x00};
static gsize cmd_sensor_check_len = sizeof (cmd_sensor_check) / sizeof (cmd_sensor_check[0]);
static guchar cmd_sensor_identify[] = {0x00, 0x00, 0x00, 0x04, 0x50, 0x17, 0x01, 0x01};
static gsize cmd_sensor_identify_len = sizeof (cmd_sensor_identify) / sizeof (cmd_sensor_identify[0]);
static guchar rsp_identify_match_suffix[] = {0x90, 0x00};
static gsize rsp_identify_match_suffix_len = sizeof (rsp_identify_match_suffix) / sizeof (rsp_identify_match_suffix[0]);
static guchar rsp_identify_notmatch_suffix[] = {0x90, 0x04};
static gsize rsp_identify_notmatch_suffix_len = sizeof (rsp_identify_notmatch_suffix) / sizeof (rsp_identify_notmatch_suffix[0]);
static guchar cmd_sensor_enroll[] = {0x00, 0x00, 0x00, 0x04, 0x50, 0x17, 0x01, 0x00};
static gsize cmd_sensor_enroll_len = sizeof (cmd_sensor_enroll) / sizeof (cmd_sensor_enroll[0]);
static guchar cmd_enroll_starting[] = {0x00, 0x00, 0x00, 0x07, 0x50, 0x16, 0x01, 0x00, 0x00, 0x00, 0x20};
static gsize cmd_enroll_starting_len = sizeof (cmd_enroll_starting) / sizeof (cmd_enroll_starting[0]);
static guchar cmd_sensor_start_capture[] = {0x00, 0x00, 0x00, 0x04, 0x50, 0x16, 0x02, 0x01};
static gsize cmd_sensor_start_capture_len = sizeof (cmd_sensor_start_capture) / sizeof (cmd_sensor_start_capture[0]);
static guchar cmd_read_capture[] = {0x00, 0x00, 0x00, 0x07, 0x50, 0x16, 0x02, 0x02, 0x00, 0x00, 0x02};
static gsize cmd_read_capture_len = sizeof (cmd_read_capture) / sizeof (cmd_read_capture[0]);
static guchar rsp_read_success_prefix[] = {0x00, 0x00, 0x00, 0x04};
static gsize rsp_read_success_prefix_len = sizeof (rsp_read_success_prefix) / sizeof (rsp_read_success_prefix[0]);
static guchar rsp_read_success_suffix[] = {0x0a, 0x90, 0x00};
static gsize rsp_read_success_suffix_len = sizeof (rsp_read_success_suffix) / sizeof (rsp_read_success_suffix[0]);
static guchar rsp_read_offcenter_prefix[] = {0x00, 0x00, 0x00, 0x04};
static gsize rsp_read_offcenter_prefix_len = sizeof (rsp_read_offcenter_prefix) / sizeof (rsp_read_offcenter_prefix[0]);
static guchar rsp_read_offcenter_suffix[] = {0x0a, 0x64, 0x91};
static gsize rsp_read_offcenter_suffix_len = sizeof (rsp_read_offcenter_suffix) / sizeof (rsp_read_offcenter_suffix[0]);
static guchar rsp_read_dirty_prefix[] = {0x00, 0x00, 0x00, 0x02, 0x64};
static gsize rsp_read_dirty_prefix_len = sizeof (rsp_read_dirty_prefix) / sizeof (rsp_read_dirty_prefix[0]);
static guchar cmd_commit_starting[] = {0x00, 0x00, 0x00, 0x07, 0x50, 0x16, 0x05, 0x00, 0x00, 0x00, 0x20};
static gsize cmd_commit_starting_len = sizeof (cmd_commit_starting) / sizeof (cmd_commit_starting[0]);
/* commands which exist on the device but are currently not used */
/*
static guchar cmd_sensor_cancel[] = {0x00, 0x00, 0x00, 0x04, 0x50, 0x16, 0x04, 0x00};
static gsize cmd_sensor_cancel_len = sizeof(cmd_sensor_cancel) / sizeof(cmd_sensor_cancel[0]);
static guchar cmd_sensor_verify[] = {0x00, 0x00, 0x00, 0x04, 0x50, 0x04, 0x01, 0x00};
static gsize cmd_sensor_verify_len = sizeof(cmd_sensor_verify) / sizeof(cmd_sensor_verify[0]);
static guchar cmd_read_verify[] = {0x00, 0x00, 0x00, 0x04, 0x50, 0x04, 0x02, 0x00};
static gsize cmd_read_verify_len = sizeof(cmd_read_verify) / sizeof(cmd_read_verify[0]);
*/
/* prefixes/suffixes and other things for dynamically created command payloads */
#define EGISMOC_CHECK_BYTES_LENGTH 2
#define EGISMOC_IDENTIFY_RESPONSE_PRINT_ID_OFFSET 46
#define EGISMOC_CMD_CHECK_SEPARATOR_LENGTH 32
static guchar cmd_new_print_prefix[] = {0x00, 0x00, 0x00, 0x27, 0x50, 0x16, 0x03, 0x00, 0x00, 0x00, 0x20};
static gsize cmd_new_print_prefix_len = sizeof (cmd_new_print_prefix) / sizeof (cmd_new_print_prefix[0]);
static guchar cmd_delete_prefix[] = {0x50, 0x18, 0x04, 0x00, 0x00};
static gsize cmd_delete_prefix_len = sizeof (cmd_delete_prefix) / sizeof (cmd_delete_prefix[0]);
static guchar rsp_delete_success_prefix[] = {0x00, 0x00, 0x00, 0x02, 0x90, 0x00};
static gsize rsp_delete_success_prefix_len = sizeof (rsp_delete_success_prefix) / sizeof (rsp_delete_success_prefix[0]);
static guchar cmd_check_prefix_type1[] = {0x50, 0x17, 0x03, 0x00, 0x00};
static gsize cmd_check_prefix_type1_len = sizeof (cmd_check_prefix_type1) / sizeof (cmd_check_prefix_type1[0]);
static guchar cmd_check_prefix_type2[] = {0x50, 0x17, 0x03, 0x80, 0x00};
static gsize cmd_check_prefix_type2_len = sizeof (cmd_check_prefix_type2) / sizeof (cmd_check_prefix_type2[0]);
static guchar cmd_check_suffix[] = {0x00, 0x40};
static gsize cmd_check_suffix_len = sizeof (cmd_check_suffix) / sizeof (cmd_check_suffix[0]);
static guchar rsp_check_not_yet_enrolled_suffix[] = {0x90, 0x04};
static gsize rsp_check_not_yet_enrolled_suffix_len = sizeof (rsp_check_not_yet_enrolled_suffix) / sizeof (rsp_check_not_yet_enrolled_suffix[0]);
/* SSM task states and various status enums */
typedef enum {
CMD_SEND,
CMD_GET,
CMD_STATES,
} CommandStates;
typedef enum {
DEV_INIT_CONTROL1,
DEV_INIT_CONTROL2,
DEV_INIT_CONTROL3,
DEV_INIT_CONTROL4,
DEV_INIT_CONTROL5,
DEV_GET_FW_VERSION,
DEV_INIT_STATES,
} DeviceInitStates;
typedef enum {
IDENTIFY_GET_ENROLLED_IDS,
IDENTIFY_CHECK_ENROLLED_NUM,
IDENTIFY_SENSOR_RESET,
IDENTIFY_SENSOR_IDENTIFY,
IDENTIFY_WAIT_FINGER,
IDENTIFY_SENSOR_CHECK,
IDENTIFY_CHECK,
IDENTIFY_COMPLETE_SENSOR_RESET,
IDENTIFY_COMPLETE,
IDENTIFY_STATES,
} IdentifyStates;
typedef enum {
ENROLL_GET_ENROLLED_IDS,
ENROLL_CHECK_ENROLLED_NUM,
ENROLL_SENSOR_RESET,
ENROLL_SENSOR_ENROLL,
ENROLL_WAIT_FINGER,
ENROLL_SENSOR_CHECK,
ENROLL_CHECK,
ENROLL_START,
ENROLL_CAPTURE_SENSOR_RESET,
ENROLL_CAPTURE_SENSOR_START_CAPTURE,
ENROLL_CAPTURE_WAIT_FINGER,
ENROLL_CAPTURE_READ_RESPONSE,
ENROLL_COMMIT_START,
ENROLL_COMMIT,
ENROLL_COMMIT_SENSOR_RESET,
ENROLL_COMPLETE,
ENROLL_STATES,
} EnrollStates;
typedef enum {
ENROLL_STATUS_DEVICE_FULL,
ENROLL_STATUS_DUPLICATE,
ENROLL_STATUS_PARTIAL_OK,
ENROLL_STATUS_RETRY,
ENROLL_STATUS_COMPLETE,
} EnrollStatus;
typedef enum {
LIST_GET_ENROLLED_IDS,
LIST_RETURN_ENROLLED_PRINTS,
LIST_STATES,
} ListStates;
typedef enum {
DELETE_GET_ENROLLED_IDS,
DELETE_DELETE,
DELETE_STATES,
} DeleteStates;
+1 -1
View File
@@ -357,7 +357,7 @@ elan_cmd_cb (FpiUsbTransfer *transfer, FpDevice *dev,
if (transfer->endpoint & FPI_USB_ENDPOINT_IN)
{
/* just finished receiving */
self->last_read = g_memdup (transfer->buffer, transfer->actual_length);
self->last_read = g_memdup2 (transfer->buffer, transfer->actual_length);
elan_cmd_done (ssm);
}
else
+38 -12
View File
@@ -29,6 +29,9 @@ static const FpIdEntry id_table[] = {
{ .vid = 0x04f3, .pid = 0x0c7e, },
{ .vid = 0x04f3, .pid = 0x0c82, },
{ .vid = 0x04f3, .pid = 0x0c88, },
{ .vid = 0x04f3, .pid = 0x0c8c, },
{ .vid = 0x04f3, .pid = 0x0c8d, },
{ .vid = 0x04f3, .pid = 0x0c99, },
{ .vid = 0, .pid = 0, .driver_data = 0 }, /* terminating entry */
};
@@ -47,9 +50,9 @@ elanmoc_compose_cmd (
const struct elanmoc_cmd *cmd_info
)
{
g_autofree char *cmd_buf = NULL;
g_autofree uint8_t *cmd_buf = NULL;
cmd_buf = g_malloc0 (cmd_info->cmd_len);
cmd_buf = g_new0 (uint8_t, cmd_info->cmd_len);
if(cmd_info->cmd_len < ELAN_MAX_HDR_LEN)
memcpy (cmd_buf, &cmd_info->cmd_header, cmd_info->cmd_len);
else
@@ -377,9 +380,9 @@ elanmoc_enroll_cb (FpiDeviceElanmoc *self,
enroll_status_report (self, ENROLL_RSP_RETRY, self->num_frames, NULL);
}
if (self->num_frames == ELAN_MOC_ENROLL_TIMES && buffer_in[1] == ELAN_MSG_OK)
if (self->num_frames == self->max_moc_enroll_time && buffer_in[1] == ELAN_MSG_OK)
fpi_ssm_next_state (self->task_ssm);
else if (self->num_frames < ELAN_MOC_ENROLL_TIMES)
else if (self->num_frames < self->max_moc_enroll_time)
fpi_ssm_jump_to_state (self->task_ssm, MOC_ENROLL_WAIT_FINGER);
else
fpi_ssm_mark_failed (self->task_ssm, error);
@@ -442,7 +445,7 @@ elan_enroll_run_state (FpiSsm *ssm, FpDevice *dev)
case MOC_ENROLL_WAIT_FINGER:
cmd_buf = elanmoc_compose_cmd (&elanmoc_enroll_cmd);
cmd_buf[3] = self->curr_enrolled;
cmd_buf[4] = ELAN_MOC_ENROLL_TIMES;
cmd_buf[4] = self->max_moc_enroll_time;
cmd_buf[5] = self->num_frames;
elanmoc_get_cmd (dev, cmd_buf, elanmoc_enroll_cmd.cmd_len, elanmoc_enroll_cmd.resp_len, 1, elanmoc_enroll_cb);
break;
@@ -507,7 +510,7 @@ create_print_from_response (FpiDeviceElanmoc *self,
return NULL;
}
userid = g_memdup (&buffer_in[5], userid_len);
userid = g_memdup2 (&buffer_in[5], userid_len);
userid_safe = g_strndup ((const char *) &buffer_in[5], userid_len);
print = fp_print_new (FP_DEVICE (self));
uid = g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE, userid, userid_len, 1);
@@ -1008,6 +1011,12 @@ elanmoc_get_status_cb (FpiDeviceElanmoc *self,
}
if (buffer_in[1] != 0x03 && self->cmd_retry_cnt != 0)
{
self->cmd_retry_cnt--;
cmd_buf = elanmoc_compose_cmd (&cal_status_cmd);
elanmoc_get_cmd (FP_DEVICE (self), cmd_buf, cal_status_cmd.cmd_len, cal_status_cmd.resp_len, 0, elanmoc_get_status_cb);
}
else
{
if(self->cmd_retry_cnt == 0)
{
@@ -1016,12 +1025,6 @@ elanmoc_get_status_cb (FpiDeviceElanmoc *self,
"Sensor not ready"));
return;
}
self->cmd_retry_cnt--;
cmd_buf = elanmoc_compose_cmd (&cal_status_cmd);
elanmoc_get_cmd (FP_DEVICE (self), cmd_buf, cal_status_cmd.cmd_len, cal_status_cmd.resp_len, 0, elanmoc_get_status_cb);
}
else
{
fpi_ssm_next_state (self->task_ssm);
}
}
@@ -1069,6 +1072,7 @@ elanmoc_open (FpDevice *device)
{
FpiDeviceElanmoc *self = FPI_DEVICE_ELANMOC (device);
GError *error = NULL;
gint productid = 0;
if (!g_usb_device_reset (fpi_device_get_usb_device (device), &error))
goto error;
@@ -1076,6 +1080,28 @@ elanmoc_open (FpDevice *device)
if (!g_usb_device_claim_interface (fpi_device_get_usb_device (device), 0, 0, &error))
goto error;
productid = g_usb_device_get_pid (fpi_device_get_usb_device (device));
switch (productid)
{
case 0x0c8c:
self->max_moc_enroll_time = 11;
break;
case 0x0c99:
self->max_moc_enroll_time = 14;
break;
case 0x0c8d:
self->max_moc_enroll_time = 17;
break;
default:
self->max_moc_enroll_time = ELAN_MOC_ENROLL_TIMES;
break;
}
fpi_device_set_nr_enroll_stages (device, self->max_moc_enroll_time);
self->task_ssm = fpi_ssm_new (FP_DEVICE (self), dev_init_handler, DEV_INIT_STATES);
fpi_ssm_start (self->task_ssm, task_ssm_init_done);
return;
+1
View File
@@ -188,6 +188,7 @@ struct _FpiDeviceElanmoc
unsigned char y_trace;
int num_frames;
int curr_enrolled;
int max_moc_enroll_time;
int cancel_result;
int cmd_retry_cnt;
int list_index;
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,52 @@
/*
* Copyright (C) 2021 Focaltech Microelectronics
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
#include "fpi-device.h"
#include "fpi-ssm.h"
#include <libusb.h>
#include <stdio.h>
#include <stdlib.h>
G_DECLARE_FINAL_TYPE (FpiDeviceFocaltechMoc, fpi_device_focaltech_moc, FPI, DEVICE_FOCALTECH_MOC, FpDevice)
#define FOCALTECH_MOC_DRIVER_FULLNAME "Focaltech MOC Sensors"
#define FOCALTECH_MOC_CMD_TIMEOUT 1000
#define FOCALTECH_MOC_MAX_FINGERS 10
#define FOCALTECH_MOC_UID_PREFIX_LENGTH 8
#define FOCALTECH_MOC_USER_ID_LENGTH 64
typedef void (*FocaltechCmdMsgCallback) (FpiDeviceFocaltechMoc *self,
GError *error);
struct _FpiDeviceFocaltechMoc
{
FpDevice parent;
FpiSsm *task_ssm;
FpiSsm *cmd_ssm;
FpiUsbTransfer *cmd_transfer;
gboolean cmd_cancelable;
gsize cmd_len_in;
int num_frames;
int delete_slot;
guint8 bulk_in_ep;
guint8 bulk_out_ep;
};
File diff suppressed because it is too large Load Diff
+221
View File
@@ -0,0 +1,221 @@
/*
* Copyright (c) 2022 Fingerprint Cards AB <tech@fingerprints.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
#include "fpi-device.h"
#include "fpi-ssm.h"
#include <stdio.h>
#include <stdlib.h>
#define TEMPLATE_ID_SIZE (32)
#define MAX_FW_VERSION_STR_LEN (16)
#define FPC_CMD_INIT (0x01)
#define FPC_CMD_ARM (0x02)
#define FPC_CMD_ABORT (0x03)
#define FPC_CMD_INDICATE_S_STATE (0x08)
#define FPC_CMD_GET_IMG (0x09)
#define FPC_CMD_GET_KPI (0x0C)
#define FPC_CMD_LOAD_DB (0x60)
#define FPC_CMD_STORE_DB (0x61)
#define FPC_CMD_DELETE_DB (0x62)
#define FPC_CMD_DELETE_TEMPLATE (0x63)
#define FPC_CMD_BEGIN_ENROL (0x67)
#define FPC_CMD_ENROL (0x68)
#define FPC_CMD_END_ENROL (0x69)
#define FPC_CMD_BIND_IDENTITY (0x6A)
#define FPC_CMD_IDENTIFY (0x6B)
#define FPC_CMD_ENUM (0x70)
#define FPC_EVT_INIT_RESULT (0x02)
#define FPC_EVT_FINGER_DWN (0x06)
#define FPC_EVT_IMG (0x08)
#define FPC_EVT_FID_DATA (0x31)
#define FPC_DB_ID_LEN (16)
#define FPC_IDENTITY_TYPE_WILDCARD (0x1)
#define FPC_IDENTITY_TYPE_RESERVED (0x3)
#define FPC_IDENTITY_WILDCARD (0x25066282)
#define FPC_SUBTYPE_ANY (0xFF)
#define FPC_SUBTYPE_RESERVED (0xF5)
#define FPC_SUBTYPE_NOINFORMATION (0x00)
#define FPC_CAPTUREID_RESERVED (0x701100F)
#define FPC_SESSIONID_RESERVED (0x0077FF12)
#define FPC_TEMPLATES_MAX (10)
#define SECURITY_MAX_SID_SIZE (68)
#define FPC_HOST_MS_S0 (0x10)
#define FPC_HOST_MS_SX (0x11)
G_DECLARE_FINAL_TYPE (FpiDeviceFpcMoc, fpi_device_fpcmoc, FPI,
DEVICE_FPCMOC, FpDevice);
typedef struct _FPC_FID_DATA
{
guint32 identity_type;
guint32 reserved;
guint32 identity_size;
guint32 subfactor;
guint8 data[SECURITY_MAX_SID_SIZE];
} FPC_FID_DATA, *PFPC_FID_DATA;
typedef struct _FPC_LOAD_DB
{
gint32 status;
guint32 reserved;
guint32 database_id_size;
guint8 data[FPC_DB_ID_LEN];
} FPC_LOAD_DB, *PFPC_LOAD_DB;
typedef union _FPC_DELETE_DB
{
guint32 reserved;
guint32 database_id_size;
guint8 data[FPC_DB_ID_LEN];
} FPC_DB_OP, *PFPC_DB_OP;
typedef struct _FPC_BEGIN_ENROL
{
gint32 status;
guint32 reserved1;
guint32 reserved2;
} FPC_BEGIN_ENROL, *PFPC_BEGIN_ENROL;
typedef struct _FPC_ENROL
{
gint32 status;
guint32 remaining;
} FPC_ENROL, *PFPC_ENROL;
typedef struct _FPC_END_ENROL
{
gint32 status;
guint32 fid;
} FPC_END_ENROL, *PFPC_END_ENROL;
typedef struct _FPC_IDENTIFY
{
gint32 status;
guint32 identity_type;
guint32 identity_offset;
guint32 identity_size;
guint32 subfactor;
guint8 data[SECURITY_MAX_SID_SIZE];
} FPC_IDENTIFY, *PFPC_IDENTIFY;
typedef struct
{
guint32 cmdid;
guint32 length;
guint32 status;
} evt_hdr_t;
typedef struct
{
evt_hdr_t hdr;
guint16 sensor;
guint16 hw_id;
guint16 img_w;
guint16 img_h;
guint8 fw_version[MAX_FW_VERSION_STR_LEN];
guint16 fw_capabilities;
} evt_initiated_t;
typedef struct
{
guint8 subfactor;
guint32 identity_type;
guint32 identity_size;
guint8 identity[SECURITY_MAX_SID_SIZE];
} __attribute__((packed)) fpc_fid_data_t;
typedef struct
{
evt_hdr_t hdr;
gint status;
guint32 num_ids;
fpc_fid_data_t fid_data[FPC_TEMPLATES_MAX];
} __attribute__((packed)) evt_enum_fids_t;
typedef struct _fp_cmd_response
{
union
{
evt_hdr_t evt_hdr;
evt_initiated_t evt_inited;
evt_enum_fids_t evt_enum_fids;
};
} fpc_cmd_response_t, *pfpc_cmd_response_t;
enum {
FPC_ENROL_STATUS_COMPLETED = 0,
FPC_ENROL_STATUS_PROGRESS = 1,
FPC_ENROL_STATUS_FAILED_COULD_NOT_COMPLETE = 2,
FPC_ENROL_STATUS_FAILED_ALREADY_ENROLED = 3,
FPC_ENROL_STATUS_IMAGE_LOW_COVERAGE = 4,
FPC_ENROL_STATUS_IMAGE_TOO_SIMILAR = 5,
FPC_ENROL_STATUS_IMAGE_LOW_QUALITY = 6,
};
typedef enum {
FPC_CMDTYPE_UNKNOWN = 0,
FPC_CMDTYPE_TO_DEVICE,
FPC_CMDTYPE_TO_DEVICE_EVTDATA,
FPC_CMDTYPE_FROM_DEVICE,
} FpcCmdType;
typedef enum {
FP_CMD_SEND = 0,
FP_CMD_GET_DATA,
FP_CMD_SUSPENDED,
FP_CMD_RESUME,
FP_CMD_NUM_STATES,
} FpCmdState;
typedef enum {
FP_INIT = 0,
FP_LOAD_DB,
FP_INIT_NUM_STATES,
} FpInitState;
typedef enum {
FP_ENROLL_ENUM = 0,
FP_ENROLL_CREATE,
FP_ENROLL_CAPTURE,
FP_ENROLL_GET_IMG,
FP_ENROLL_UPDATE,
FP_ENROLL_COMPLETE,
FP_ENROLL_CHECK_DUPLICATE,
FP_ENROLL_BINDID,
FP_ENROLL_COMMIT,
FP_ENROLL_DICARD,
FP_ENROLL_CLEANUP,
FP_ENROLL_NUM_STATES,
} FpEnrollState;
typedef enum {
FP_VERIFY_CAPTURE = 0,
FP_VERIFY_GET_IMG,
FP_VERIFY_IDENTIFY,
FP_VERIFY_CANCEL,
FP_VERIFY_NUM_STATES,
} FpVerifyState;
typedef enum {
FP_CLEAR_DELETE_DB = 0,
FP_CLEAR_CREATE_DB,
FP_CLEAR_NUM_STATES,
} FpClearState;
+40 -16
View File
@@ -631,20 +631,20 @@ fp_enroll_enum_cb (FpiDeviceGoodixMoc *self,
return;
}
fpi_ssm_jump_to_state (self->task_ssm, FP_ENROLL_CAPTURE);
fpi_ssm_next_state (self->task_ssm);
}
static void
fp_enroll_init_cb (FpiDeviceGoodixMoc *self,
gxfp_cmd_response_t *resp,
GError *error)
fp_enroll_create_cb (FpiDeviceGoodixMoc *self,
gxfp_cmd_response_t *resp,
GError *error)
{
if (error)
{
fpi_ssm_mark_failed (self->task_ssm, error);
return;
}
memcpy (self->template_id, resp->enroll_init.tid, TEMPLATE_ID_SIZE);
memcpy (self->template_id, resp->enroll_create.tid, TEMPLATE_ID_SIZE);
fpi_ssm_next_state (self->task_ssm);
}
@@ -837,16 +837,6 @@ fp_enroll_sm_run_state (FpiSsm *ssm, FpDevice *device)
switch (fpi_ssm_get_cur_state (ssm))
{
case FP_ENROLL_ENUM:
{
goodix_sensor_cmd (self, MOC_CMD0_GETFINGERLIST, MOC_CMD1_DEFAULT,
false,
(const guint8 *) &dummy,
1,
fp_enroll_enum_cb);
}
break;
case FP_ENROLL_PWR_BTN_SHIELD_ON:
{
goodix_sensor_cmd (self, MOC_CMD0_PWR_BTN_SHIELD, MOC_CMD1_PWR_BTN_SHIELD_ON,
@@ -857,13 +847,23 @@ fp_enroll_sm_run_state (FpiSsm *ssm, FpDevice *device)
}
break;
case FP_ENROLL_ENUM:
{
goodix_sensor_cmd (self, MOC_CMD0_GETFINGERLIST, MOC_CMD1_DEFAULT,
false,
(const guint8 *) &dummy,
1,
fp_enroll_enum_cb);
}
break;
case FP_ENROLL_CREATE:
{
goodix_sensor_cmd (self, MOC_CMD0_ENROLL_INIT, MOC_CMD1_DEFAULT,
false,
(const guint8 *) &dummy,
1,
fp_enroll_init_cb);
fp_enroll_create_cb);
}
break;
@@ -1359,12 +1359,24 @@ gx_fp_probe (FpDevice *device)
{
case 0x6496:
case 0x60A2:
case 0x60A4:
case 0x6014:
case 0x6092:
case 0x6094:
case 0x609C:
case 0x60BC:
case 0x6304:
case 0x631C:
case 0x633C:
case 0x634C:
case 0x6384:
case 0x639C:
case 0x63AC:
case 0x63BC:
case 0x63CC:
case 0x6582:
case 0x6A94:
case 0x659A:
self->max_enroll_stage = 12;
break;
@@ -1595,17 +1607,29 @@ fpi_device_goodixmoc_init (FpiDeviceGoodixMoc *self)
static const FpIdEntry id_table[] = {
{ .vid = 0x27c6, .pid = 0x5840, },
{ .vid = 0x27c6, .pid = 0x6014, },
{ .vid = 0x27c6, .pid = 0x6092, },
{ .vid = 0x27c6, .pid = 0x6094, },
{ .vid = 0x27c6, .pid = 0x609C, },
{ .vid = 0x27c6, .pid = 0x60A2, },
{ .vid = 0x27c6, .pid = 0x60A4, },
{ .vid = 0x27c6, .pid = 0x60BC, },
{ .vid = 0x27c6, .pid = 0x6304, },
{ .vid = 0x27c6, .pid = 0x631C, },
{ .vid = 0x27c6, .pid = 0x633C, },
{ .vid = 0x27c6, .pid = 0x634C, },
{ .vid = 0x27c6, .pid = 0x6384, },
{ .vid = 0x27c6, .pid = 0x639C, },
{ .vid = 0x27c6, .pid = 0x63AC, },
{ .vid = 0x27c6, .pid = 0x63BC, },
{ .vid = 0x27c6, .pid = 0x63CC, },
{ .vid = 0x27c6, .pid = 0x6496, },
{ .vid = 0x27c6, .pid = 0x6582, },
{ .vid = 0x27c6, .pid = 0x6584, },
{ .vid = 0x27c6, .pid = 0x658C, },
{ .vid = 0x27c6, .pid = 0x6592, },
{ .vid = 0x27c6, .pid = 0x6594, },
{ .vid = 0x27c6, .pid = 0x659A, },
{ .vid = 0x27c6, .pid = 0x659C, },
{ .vid = 0x27c6, .pid = 0x6A94, },
{ .vid = 0, .pid = 0, .driver_data = 0 }, /* terminating entry */
-1
View File
@@ -44,7 +44,6 @@ typedef enum {
typedef enum {
FP_ENROLL_PWR_BTN_SHIELD_ON = 0,
FP_ENROLL_ENUM,
FP_ENROLL_IDENTIFY,
FP_ENROLL_CREATE,
FP_ENROLL_CAPTURE,
FP_ENROLL_UPDATE,
+2 -2
View File
@@ -343,10 +343,10 @@ gx_proto_parse_body (uint16_t cmd, uint8_t *buffer, uint16_t buffer_len, pgxfp_c
break;
case MOC_CMD0_ENROLL_INIT:
if (buffer_len < sizeof (gxfp_enroll_init_t) + 1)
if (buffer_len < sizeof (gxfp_enroll_create_t) + 1)
return -1;
if (presp->result == GX_SUCCESS)
memcpy (&presp->enroll_init.tid, &buffer[1], TEMPLATE_ID_SIZE);
memcpy (&presp->enroll_create.tid, &buffer[1], TEMPLATE_ID_SIZE);
break;
case MOC_CMD0_ENROLL:
+3 -3
View File
@@ -105,10 +105,10 @@ typedef struct _gxfp_parse_msg
} gxfp_parse_msg_t, *pgxfp_parse_msg_t;
typedef struct _gxfp_enroll_init
typedef struct _gxfp_enroll_create
{
uint8_t tid[TEMPLATE_ID_SIZE];
} gxfp_enroll_init_t, *pgxfp_enroll_init_t;
} gxfp_enroll_create_t, *pgxfp_enroll_create_t;
#pragma pack(push, 1)
typedef struct _template_format
@@ -192,7 +192,7 @@ typedef struct _fp_cmd_response
{
gxfp_parse_msg_t parse_msg;
gxfp_verify_t verify;
gxfp_enroll_init_t enroll_init;
gxfp_enroll_create_t enroll_create;
gxfp_capturedata_t capture_data_resp;
gxfp_check_duplicate_t check_duplicate_resp;
gxfp_enroll_commit_t enroll_commit;
File diff suppressed because it is too large Load Diff
+220
View File
@@ -0,0 +1,220 @@
/*
* Copyright (C) 2022-2023 Realtek Corp.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
#include "fpi-device.h"
#include "fpi-ssm.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define EP_IN (2 | FPI_USB_ENDPOINT_IN)
#define EP_OUT (1 | FPI_USB_ENDPOINT_OUT)
#define EP_IN_MAX_BUF_SIZE 2048
#define FP_RTK_CMD_TOTAL_LEN 12
#define FP_RTK_CMD_LEN 2
#define FP_RTK_CMD_PARAM_LEN 4
#define FP_RTK_CMD_ADDR_LEN 4
#define FP_RTK_CMD_DATA_LEN 2
#define TEMPLATE_LEN 35
#define SUBFACTOR_OFFSET 2
#define UID_OFFSET 3
#define UID_PAYLOAD_LEN 32
/* Command transfer timeout :ms*/
#define CMD_TIMEOUT 1000
#define DATA_TIMEOUT 5000
#define STATUS_TIMEOUT 2000
#define MAX_ENROLL_SAMPLES 8
#define DEFAULT_UID_LEN 28
#define SUB_FINGER_01 0xFF
#define GET_CMD_TYPE(val) ((val & 0xC0) >> 6)
#define GET_TRANS_DATA_LEN(len_h, len_l) ((len_h << 8) | len_l)
#define GET_LEN_L(total_data_len) ((total_data_len) & 0xff)
#define GET_LEN_H(total_data_len) ((total_data_len) >> 8)
G_DECLARE_FINAL_TYPE (FpiDeviceRealtek, fpi_device_realtek, FPI, DEVICE_REALTEK, FpDevice)
typedef void (*SynCmdMsgCallback) (FpiDeviceRealtek *self,
uint8_t *buffer_in,
GError *error);
typedef struct
{
SynCmdMsgCallback callback;
} CommandData;
typedef enum {
FP_RTK_CMD_ONLY = 0,
FP_RTK_CMD_READ,
FP_RTK_CMD_WRITE,
} FpRtkCmdType;
typedef enum {
FP_RTK_MSG_PLAINTEXT = 0,
FP_RTK_MSG_PLAINTEXT_NO_STATUS,
} FpRtkMsgType;
typedef enum {
FP_RTK_PURPOSE_IDENTIFY = 0x01, /* identify before enroll */
FP_RTK_PURPOSE_VERIFY = 0x02,
FP_RTK_PURPOSE_ENROLL = 0x04,
} FpRtkPurpose;
typedef enum {
FP_RTK_SUCCESS = 0x0,
FP_RTK_TOO_HIGH,
FP_RTK_TOO_LOW,
FP_RTK_TOO_LEFT,
FP_RTK_TOO_RIGHT,
FP_RTK_TOO_FAST,
FP_RTK_TOO_SLOW,
FP_RTK_POOR_QUALITY,
FP_RTK_TOO_SKEWED,
FP_RTK_TOO_SHORT,
FP_RTK_MERGE_FAILURE,
FP_RTK_MATCH_FAIL,
FP_RTK_CMD_ERR,
} FpRtkInStatus;
typedef enum {
FP_RTK_ENROLL_GET_TEMPLATE = 0,
FP_RTK_ENROLL_BEGIN_POS,
FP_RTK_ENROLL_CAPTURE,
FP_RTK_ENROLL_FINISH_CAPTURE,
FP_RTK_ENROLL_ACCEPT_SAMPLE,
FP_RTK_ENROLL_CHECK_DUPLICATE,
FP_RTK_ENROLL_COMMIT,
FP_RTK_ENROLL_NUM_STATES,
} FpRtkEnrollState;
typedef enum {
FP_RTK_VERIFY_CAPTURE = 0,
FP_RTK_VERIFY_FINISH_CAPTURE,
FP_RTK_VERIFY_ACCEPT_SAMPLE,
FP_RTK_VERIFY_INDENTIFY_FEATURE,
FP_RTK_VERIFY_UPDATE_TEMPLATE,
FP_RTK_VERIFY_NUM_STATES,
} FpRtkVerifyState;
typedef enum {
FP_RTK_DELETE_GET_POS = 0,
FP_RTK_DELETE_PRINT,
FP_RTK_DELETE_NUM_STATES,
} FpRtkDeleteState;
typedef enum {
FP_RTK_INIT_SELECT_OS = 0,
FP_RTK_INIT_GET_ENROLL_NUM,
FP_RTK_INIT_NUM_STATES,
} FpRtkInitState;
typedef enum {
FP_RTK_CMD_SEND = 0,
FP_RTK_CMD_TRANS_DATA,
FP_RTK_CMD_GET_STATUS,
FP_RTK_CMD_NUM_STATES,
} FpRtkCmdState;
struct _FpiDeviceRealtek
{
FpDevice parent;
FpiSsm *task_ssm;
FpiSsm *cmd_ssm;
FpiUsbTransfer *cmd_transfer;
FpiUsbTransfer *data_transfer;
gint cmd_type;
FpRtkMsgType message_type;
gboolean cmd_cancellable;
gint enroll_stage;
gint max_enroll_stage;
guchar *read_data;
gsize trans_data_len;
FpRtkPurpose fp_purpose;
gint pos_index;
gint template_num;
};
struct realtek_fp_cmd
{
uint8_t cmd[FP_RTK_CMD_LEN];
uint8_t param[FP_RTK_CMD_PARAM_LEN];
uint8_t addr[FP_RTK_CMD_ADDR_LEN];
uint8_t data_len[FP_RTK_CMD_DATA_LEN];
};
static struct realtek_fp_cmd co_start_capture = {
.cmd = {0x05, 0x05},
};
static struct realtek_fp_cmd co_finish_capture = {
.cmd = {0x45, 0x06},
.data_len = {0x05},
};
static struct realtek_fp_cmd co_accept_sample = {
.cmd = {0x45, 0x08},
.data_len = {0x09},
};
static struct realtek_fp_cmd tls_identify_feature = {
.cmd = {0x45, 0x22},
.data_len = {0x2A},
};
static struct realtek_fp_cmd co_get_enroll_num = {
.cmd = {0x45, 0x0d},
.data_len = {0x02},
};
static struct realtek_fp_cmd co_get_template = {
.cmd = {0x45, 0x0E},
};
static struct realtek_fp_cmd tls_enroll_begin = {
.cmd = {0x05, 0x20},
};
static struct realtek_fp_cmd co_check_duplicate = {
.cmd = {0x45, 0x10},
.data_len = {0x22},
};
static struct realtek_fp_cmd tls_enroll_commit = {
.cmd = {0x85, 0x21},
.data_len = {0x20},
};
static struct realtek_fp_cmd co_update_template = {
.cmd = {0x05, 0x11},
};
static struct realtek_fp_cmd co_delete_record = {
.cmd = {0x05, 0x0F},
};
static struct realtek_fp_cmd co_select_system = {
.cmd = {0x05, 0x13},
};
+19 -9
View File
@@ -40,10 +40,14 @@ static const FpIdEntry id_table[] = {
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x00F0, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0103, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0123, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0124, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0126, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0129, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0168, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x015F, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0104, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0173, },
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0106, },
{ .vid = 0, .pid = 0, .driver_data = 0 }, /* terminating entry */
};
@@ -105,7 +109,11 @@ cmd_receive_cb (FpiUsbTransfer *transfer,
if (self->cmd_complete_on_removal)
{
fpi_ssm_mark_completed (transfer->ssm);
if (self->delay_error)
fpi_ssm_mark_failed (transfer->ssm,
g_steal_pointer (&self->delay_error));
else
fpi_ssm_mark_completed (transfer->ssm);
return;
}
}
@@ -640,18 +648,21 @@ verify (FpDevice *device)
}
static void
identify_complete_after_finger_removal (FpiDeviceSynaptics *self)
identify_complete_after_finger_removal (FpiDeviceSynaptics *self, GError *error)
{
FpDevice *device = FP_DEVICE (self);
if (self->finger_on_sensor)
{
fp_dbg ("delaying identify report until after finger removal!");
if (error)
g_propagate_error (&self->delay_error, error);
self->cmd_complete_on_removal = TRUE;
}
else
{
fpi_device_identify_complete (device, NULL);
fpi_device_identify_complete (device, error);
}
}
@@ -701,19 +712,18 @@ identify_msg_cb (FpiDeviceSynaptics *self,
fp_info ("Match error occurred");
fpi_device_identify_report (device, NULL, NULL,
fpi_device_retry_new (FP_DEVICE_RETRY_GENERAL));
identify_complete_after_finger_removal (self);
identify_complete_after_finger_removal (self, NULL);
}
else if (resp->result == BMKT_FP_NO_MATCH)
{
fp_info ("Print didn't match");
fpi_device_identify_report (device, NULL, NULL, NULL);
identify_complete_after_finger_removal (self);
identify_complete_after_finger_removal (self, NULL);
}
else if (resp->result == BMKT_FP_DATABASE_NO_RECORD_EXISTS)
else if (resp->result == BMKT_FP_DATABASE_NO_RECORD_EXISTS || resp->result == BMKT_FP_DATABASE_EMPTY)
{
fp_info ("Print is not in database");
fpi_device_identify_complete (device,
fpi_device_error_new (FP_DEVICE_ERROR_DATA_NOT_FOUND));
identify_complete_after_finger_removal (self, fpi_device_error_new (FP_DEVICE_ERROR_DATA_NOT_FOUND));
}
else
{
@@ -749,7 +759,7 @@ identify_msg_cb (FpiDeviceSynaptics *self,
else
fpi_device_identify_report (device, NULL, print, NULL);
identify_complete_after_finger_removal (self);
identify_complete_after_finger_removal (self, NULL);
}
}
}
+1
View File
@@ -127,4 +127,5 @@ struct _FpiDeviceSynaptics
struct syna_enroll_resp_data enroll_resp_data;
syna_state_t state;
GError *delay_error;
};
+15 -15
View File
@@ -74,26 +74,26 @@ struct _FpiDeviceUpeksonly
FpiSsm *loopsm;
/* Do we really need multiple concurrent transfers? */
GCancellable *img_cancellable;
GPtrArray *img_transfers;
int num_flying;
GCancellable *img_cancellable;
GPtrArray *img_transfers;
int num_flying;
GSList *rows;
unsigned num_rows;
unsigned char *rowbuf;
int rowbuf_offset;
GSList *rows;
unsigned num_rows;
unsigned char *rowbuf;
int rowbuf_offset;
int wraparounds;
int num_blank;
int num_nonblank;
enum sonly_fs finger_state;
int last_seqnum;
int wraparounds;
int num_blank;
int num_nonblank;
enum sonly_fs finger_state;
int last_seqnum;
enum sonly_kill_transfers_action killing_transfers;
GError *kill_error;
FpiSsm *kill_ssm;
GError *kill_error;
FpiSsm *kill_ssm;
struct fpi_line_asmbl_ctx assembling_ctx;
struct fpi_line_asmbl_ctx assembling_ctx;
};
G_DECLARE_FINAL_TYPE (FpiDeviceUpeksonly, fpi_device_upeksonly, FPI,
DEVICE_UPEKSONLY, FpImageDevice);
+1
View File
@@ -431,6 +431,7 @@ dev_deinit (FpImageDevice *dev)
static const FpIdEntry id_table[] = {
{ .vid = 0x0483, .pid = 0x2015, .driver_data = UPEKTC_2015 },
{ .vid = 0x0483, .pid = 0x2017, .driver_data = UPEKTC_2015 },
{ .vid = 0x147e, .pid = 0x3001, .driver_data = UPEKTC_3001 },
{ .vid = 0, .pid = 0, .driver_data = 0 },
};
+115 -23
View File
@@ -31,10 +31,6 @@ static void start_deactivation (FpImageDevice *dev);
#define CTRL_TIMEOUT 4000
#define BULK_TIMEOUT 4000
#define IMAGE_WIDTH 144
#define IMAGE_HEIGHT 384
#define IMAGE_SIZE (IMAGE_WIDTH * IMAGE_HEIGHT)
#define MAX_CMD_SIZE 64
#define MAX_RESPONSE_SIZE 2052
#define SHORT_RESPONSE_SIZE 64
@@ -47,8 +43,10 @@ struct _FpiDeviceUpektcImg
unsigned char response[MAX_RESPONSE_SIZE];
unsigned char *image_bits;
unsigned char seq;
size_t expected_image_size;
size_t image_size;
size_t response_rest;
gboolean area_sensor;
gboolean deactivating;
};
G_DECLARE_FINAL_TYPE (FpiDeviceUpektcImg, fpi_device_upektc_img, FPI,
@@ -180,6 +178,7 @@ capture_read_data_cb (FpiUsbTransfer *transfer, FpDevice *device,
gpointer user_data, GError *error)
{
FpImageDevice *dev = FP_IMAGE_DEVICE (device);
FpImageDeviceClass *img_class = FP_IMAGE_DEVICE_GET_CLASS (dev);
FpiDeviceUpektcImg *self = FPI_DEVICE_UPEKTC_IMG (dev);
unsigned char *data = self->response;
FpImage *img;
@@ -247,8 +246,30 @@ capture_read_data_cb (FpiUsbTransfer *transfer, FpDevice *device,
CAPTURE_ACK_00_28);
break;
case 0x13:
/* finger is present keep your finger on reader */
fpi_device_report_finger_status_changes (device,
FP_FINGER_STATUS_NEEDED,
FP_FINGER_STATUS_NONE);
fpi_ssm_jump_to_state (transfer->ssm,
self->area_sensor ?
CAPTURE_ACK_00_28 : CAPTURE_ACK_00_28_TERM);
break;
case 0x00:
/* finger is present! */
fpi_device_report_finger_status_changes (device,
FP_FINGER_STATUS_PRESENT,
FP_FINGER_STATUS_NONE);
fpi_ssm_jump_to_state (transfer->ssm,
CAPTURE_ACK_00_28);
break;
case 0x01:
/* no finger! */
fpi_device_report_finger_status_changes (device,
FP_FINGER_STATUS_NONE,
FP_FINGER_STATUS_PRESENT);
fpi_ssm_jump_to_state (transfer->ssm,
CAPTURE_ACK_00_28);
break;
@@ -261,18 +282,20 @@ capture_read_data_cb (FpiUsbTransfer *transfer, FpDevice *device,
fpi_image_device_report_finger_status (dev,
FALSE);
fpi_ssm_jump_to_state (transfer->ssm,
CAPTURE_ACK_00_28_TERM);
self->area_sensor ?
CAPTURE_ACK_00_28 : CAPTURE_ACK_00_28_TERM);
break;
case 0x1d:
/* too much horisontal movement */
fp_err ("too much horisontal movement, aborting");
/* too much horizontal movement */
fp_err ("too much horizontal movement, aborting");
fpi_image_device_retry_scan (dev,
FP_DEVICE_RETRY_CENTER_FINGER);
fpi_image_device_report_finger_status (dev,
FALSE);
fpi_ssm_jump_to_state (transfer->ssm,
CAPTURE_ACK_00_28_TERM);
self->area_sensor ?
CAPTURE_ACK_00_28 : CAPTURE_ACK_00_28_TERM);
break;
default:
@@ -283,7 +306,8 @@ capture_read_data_cb (FpiUsbTransfer *transfer, FpDevice *device,
fpi_image_device_report_finger_status (dev,
FALSE);
fpi_ssm_jump_to_state (transfer->ssm,
CAPTURE_ACK_00_28_TERM);
self->area_sensor ?
CAPTURE_ACK_00_28 : CAPTURE_ACK_00_28_TERM);
break;
}
break;
@@ -307,13 +331,13 @@ capture_read_data_cb (FpiUsbTransfer *transfer, FpDevice *device,
self->image_size +=
upektc_img_process_image_frame (self->image_bits + self->image_size,
data);
BUG_ON (self->image_size != IMAGE_SIZE);
BUG_ON (self->image_size != self->expected_image_size);
fp_dbg ("Image size is %lu",
(gulong) self->image_size);
img = fp_image_new (IMAGE_WIDTH, IMAGE_HEIGHT);
img = fp_image_new (img_class->img_width, img_class->img_height);
img->flags |= FPI_IMAGE_PARTIAL;
memcpy (img->data, self->image_bits,
IMAGE_SIZE);
self->image_size);
fpi_image_device_image_captured (dev, img);
fpi_image_device_report_finger_status (dev,
FALSE);
@@ -346,8 +370,12 @@ capture_run_state (FpiSsm *ssm, FpDevice *_dev)
switch (fpi_ssm_get_cur_state (ssm))
{
case CAPTURE_INIT_CAPTURE:
upektc_img_submit_req (ssm, dev, upek2020_init_capture, sizeof (upek2020_init_capture),
self->seq, capture_reqs_cb);
if (self->area_sensor)
upektc_img_submit_req (ssm, dev, upek2020_init_capture_press, sizeof (upek2020_init_capture_press),
self->seq, capture_reqs_cb);
else
upektc_img_submit_req (ssm, dev, upek2020_init_capture, sizeof (upek2020_init_capture),
self->seq, capture_reqs_cb);
self->seq++;
break;
@@ -513,15 +541,81 @@ init_reqs_cb (FpiUsbTransfer *transfer, FpDevice *device,
fpi_ssm_mark_failed (transfer->ssm, error);
}
/* TODO: process response properly */
static void
init_read_data_cb (FpiUsbTransfer *transfer, FpDevice *device,
gpointer user_data, GError *error)
{
if (!error)
fpi_ssm_next_state (transfer->ssm);
else
fpi_ssm_mark_failed (transfer->ssm, error);
FpImageDevice *dev = FP_IMAGE_DEVICE (device);
FpiDeviceUpektcImg *self = FPI_DEVICE_UPEKTC_IMG (dev);
unsigned char *data = self->response;
if (error)
{
fpi_ssm_mark_failed (transfer->ssm, error);
return;
}
if (data[12] == 0x06 && data[13] == 0x14) /* if get_info */
{
FpImageDeviceClass *img_class = FP_IMAGE_DEVICE_GET_CLASS (dev);
uint16_t width = (data[51] << 8) | data[50];
uint16_t height = (data[53] << 8) | data[52];
self->area_sensor = !(data[49] & 0x80);
switch (width)
{
case 256:
fp_dbg ("Sensor type : TCS1x, width x height: %hu x %hu", width, height); /* 360x256 --- 270x192 must be set */
BUG_ON (height != 360);
img_class->img_width = 192;
img_class->img_height = 270;
break;
case 208:
fp_dbg ("Sensor type : TCS2, width x height: %hu x %hu", width, height); /* 288x208 --- 216x156 must be set */
BUG_ON (height != 288);
img_class->img_width = 156;
img_class->img_height = 216;
break;
case 248:
fp_dbg ("Sensor type : TCS3, width x height: %hu x %hu", width, height); /* 360x248 --- 270x186 must be set */
BUG_ON (height != 360);
img_class->img_width = 186;
img_class->img_height = 270;
break;
case 192:
fp_dbg ("Sensor type : TCS4x, width x height: %hu x %hu", width, height); /* 512x192 --- 384x144 must be set */
BUG_ON (height != 512);
img_class->img_width = 144;
img_class->img_height = 384;
break;
case 144:
fp_dbg ("Sensor type : TCS5x, width x height: %hu x %hu", width, height); /* 512x144 --- 384x108 must be set */
BUG_ON (height != 512);
img_class->img_width = 108;
img_class->img_height = 384;
break;
default:
fp_dbg ("Sensor type : Unknown");
fpi_ssm_mark_failed (transfer->ssm,
fpi_device_error_new_msg (FP_DEVICE_ERROR_PROTO,
"Unknown sensor type (reported size %dx%d)",
width, height));
return;
}
self->expected_image_size = img_class->img_width * img_class->img_height;
self->image_bits = g_malloc0 (self->expected_image_size * 2);
}
fpi_ssm_next_state (transfer->ssm);
}
static void
@@ -616,7 +710,6 @@ dev_deactivate (FpImageDevice *dev)
static void
dev_init (FpImageDevice *dev)
{
FpiDeviceUpektcImg *self = FPI_DEVICE_UPEKTC_IMG (dev);
GError *error = NULL;
/* TODO check that device has endpoints we're using */
@@ -627,7 +720,6 @@ dev_init (FpImageDevice *dev)
return;
}
self->image_bits = g_malloc0 (IMAGE_SIZE * 2);
fpi_image_device_open_complete (dev, NULL);
}
@@ -687,6 +779,6 @@ fpi_device_upektc_img_class_init (FpiDeviceUpektcImgClass *klass)
img_class->bz3_threshold = 20;
img_class->img_width = IMAGE_WIDTH;
img_class->img_height = IMAGE_HEIGHT;
img_class->img_width = -1;
img_class->img_height = -1;
}
+16
View File
@@ -75,6 +75,22 @@ static const unsigned char upek2020_init_capture[] = {
0x02,
0x00, /* Wait for acceptable finger */
0x02,
0x25, 0xa9 /* CRC */
};
static const unsigned char upek2020_init_capture_press[] = {
'C', 'i', 'a', 'o',
0x00,
0x00, 0x0e, /* Seq = 7, len = 0x00e */
0x28, /* CMD = 0x28 */
0x0b, 0x00, /* Inner len = 0x000b */
0x00, 0x00,
0x0e, /* SUBCMD = 0x0e */
0x02,
0xfe, 0xff, 0xff, 0xff, /* timeout = -2 = 0xfffffffe = infinite time */
0x02,
0x01, /* Wait for finger */
0x02,
0x14, 0x9a /* CRC */
};
+5 -1
View File
@@ -317,6 +317,7 @@ irq_handler (FpiUsbTransfer *transfer,
if (urudev->irqs_stopped_cb)
urudev->irqs_stopped_cb (imgdev);
urudev->irqs_stopped_cb = NULL;
g_clear_error (&error);
return;
}
else if (error)
@@ -551,7 +552,7 @@ image_transfer_cb (FpiUsbTransfer *transfer, FpDevice *dev,
}
else
{
self->img_data = g_memdup (transfer->buffer, sizeof (struct uru4k_image));
self->img_data = g_memdup2 (transfer->buffer, sizeof (struct uru4k_image));
self->img_data_actual_length = transfer->actual_length;
fpi_ssm_next_state (ssm);
}
@@ -1413,6 +1414,9 @@ dev_deinit (FpImageDevice *dev)
SECITEM_FreeItem (self->param, PR_TRUE);
if (self->slot)
PK11_FreeSlot (self->slot);
NSS_Shutdown ();
g_usb_device_release_interface (fpi_device_get_usb_device (FP_DEVICE (dev)),
self->interface, 0, &error);
g_clear_pointer (&self->rand, g_rand_free);
+6 -3
View File
@@ -581,7 +581,7 @@ activate_ssm (FpiSsm *ssm, FpDevice *dev)
/* Initialize fingerprint buffer */
g_free (self->lines_buffer);
self->memory = VFS_USB_BUFFER_SIZE;
self->lines_buffer = g_malloc (self->memory);
self->lines_buffer = g_malloc0 (self->memory);
self->bytes = 0;
/* Finger is on the scanner */
@@ -589,12 +589,15 @@ activate_ssm (FpiSsm *ssm, FpDevice *dev)
}
/* Increase buffer size while it's insufficient */
while (self->bytes + VFS_USB_BUFFER_SIZE > self->memory)
while (self->memory < self->bytes + VFS_USB_BUFFER_SIZE)
{
self->memory <<= 1;
int pre_memory = self->memory;
self->memory += VFS_USB_BUFFER_SIZE;
self->lines_buffer =
(struct vfs_line *) g_realloc (self->lines_buffer,
self->memory);
memset ((guint8 *) self->lines_buffer + pre_memory, 0,
VFS_USB_BUFFER_SIZE);
}
/* Receive chunk of data */
+3 -3
View File
@@ -162,9 +162,9 @@ enum {
/* Dump buffer for debug */
#define dump_buffer(buf) \
fp_dbg ("%02x %02x %02x %02x %02x %02x %02x %02x", \
buf[6], buf[7], buf[8], buf[9], buf[10], buf[11], buf[12], buf[13] \
)
fp_dbg ("%02x %02x %02x %02x %02x %02x %02x %02x", \
buf[6], buf[7], buf[8], buf[9], buf[10], buf[11], buf[12], buf[13] \
)
/* Callback of asynchronous send */
static void
+16 -16
View File
@@ -157,7 +157,7 @@ vfs301_proto_generate_0B (int subtype, gssize *len)
}
#define HEX_TO_INT(c) \
(((c) >= '0' && (c) <= '9') ? ((c) - '0') : ((c) - 'A' + 10))
(((c) >= '0' && (c) <= '9') ? ((c) - '0') : ((c) - 'A' + 10))
static guint8 *
translate_str (const char **srcL, gssize *len)
@@ -422,17 +422,17 @@ img_process_data (int first_block, FpDeviceVfs301 *dev, const guint8 *buf, int l
/************************** PROTOCOL STUFF ************************************/
#define USB_RECV(from, len) \
usb_recv (dev, from, len, NULL, NULL)
usb_recv (dev, from, len, NULL, NULL)
#define USB_SEND(type, subtype) \
{ \
const guint8 *data; \
gssize len; \
data = vfs301_proto_generate (type, subtype, &len); \
usb_send (dev, data, len, NULL); \
}
{ \
const guint8 *data; \
gssize len; \
data = vfs301_proto_generate (type, subtype, &len); \
usb_send (dev, data, len, NULL); \
}
#define RAW_DATA(x) g_memdup (x, sizeof (x)), sizeof (x)
#define RAW_DATA(x) g_memdup2 (x, sizeof (x)), sizeof (x)
#define IS_VFS301_FP_SEQ_START(b) ((b[0] == 0x01) && (b[1] == 0xfe))
@@ -489,13 +489,13 @@ vfs301_proto_peek_event (FpDeviceVfs301 *dev)
* we will run into timeouts randomly and need to then try again.
*/
#define PARALLEL_RECEIVE(e1, l1, e2, l2) \
{ \
g_autoptr(GError) error = NULL; \
usb_recv (dev, e1, l1, NULL, &error); \
usb_recv (dev, e2, l2, NULL, NULL); \
if (g_error_matches (error, G_USB_DEVICE_ERROR, G_USB_DEVICE_ERROR_TIMED_OUT)) \
usb_recv (dev, e1, l1, NULL, NULL); \
}
{ \
g_autoptr(GError) error = NULL; \
usb_recv (dev, e1, l1, NULL, &error); \
usb_recv (dev, e2, l2, NULL, NULL); \
if (g_error_matches (error, G_USB_DEVICE_ERROR, G_USB_DEVICE_ERROR_TIMED_OUT)) \
usb_recv (dev, e1, l1, NULL, NULL); \
}
static void
vfs301_proto_process_event_cb (FpiUsbTransfer *transfer,
+20 -20
View File
@@ -41,30 +41,30 @@ struct usb_action
};
#define SEND(ENDPOINT, COMMAND) \
{ \
.type = ACTION_SEND, \
.endpoint = ENDPOINT, \
.name = #COMMAND, \
.size = sizeof (COMMAND), \
.data = COMMAND \
},
{ \
.type = ACTION_SEND, \
.endpoint = ENDPOINT, \
.name = #COMMAND, \
.size = sizeof (COMMAND), \
.data = COMMAND \
},
#define RECV(ENDPOINT, SIZE) \
{ \
.type = ACTION_RECEIVE, \
.endpoint = ENDPOINT, \
.size = SIZE, \
.data = NULL \
},
{ \
.type = ACTION_RECEIVE, \
.endpoint = ENDPOINT, \
.size = SIZE, \
.data = NULL \
},
#define RECV_CHECK(ENDPOINT, SIZE, EXPECTED) \
{ \
.type = ACTION_RECEIVE, \
.endpoint = ENDPOINT, \
.size = SIZE, \
.data = EXPECTED, \
.correct_reply_size = sizeof (EXPECTED) \
},
{ \
.type = ACTION_RECEIVE, \
.endpoint = ENDPOINT, \
.size = SIZE, \
.data = EXPECTED, \
.correct_reply_size = sizeof (EXPECTED) \
},
struct usbexchange_data
{
+27 -27
View File
@@ -51,39 +51,39 @@ struct usb_action
};
#define SEND(ENDPOINT, COMMAND) \
{ \
.type = ACTION_SEND, \
.endpoint = ENDPOINT, \
.name = #COMMAND, \
.size = sizeof (COMMAND), \
.data = COMMAND \
},
{ \
.type = ACTION_SEND, \
.endpoint = ENDPOINT, \
.name = #COMMAND, \
.size = sizeof (COMMAND), \
.data = COMMAND \
},
#define RECV(ENDPOINT, SIZE) \
{ \
.type = ACTION_RECEIVE, \
.endpoint = ENDPOINT, \
.size = SIZE, \
.data = NULL \
},
{ \
.type = ACTION_RECEIVE, \
.endpoint = ENDPOINT, \
.size = SIZE, \
.data = NULL \
},
#define RECV_CHECK(ENDPOINT, SIZE, EXPECTED) \
{ \
.type = ACTION_RECEIVE, \
.endpoint = ENDPOINT, \
.size = SIZE, \
.data = EXPECTED, \
.correct_reply_size = sizeof (EXPECTED) \
},
{ \
.type = ACTION_RECEIVE, \
.endpoint = ENDPOINT, \
.size = SIZE, \
.data = EXPECTED, \
.correct_reply_size = sizeof (EXPECTED) \
},
#define RECV_CHECK_SIZE(ENDPOINT, SIZE, EXPECTED) \
{ \
.type = ACTION_RECEIVE, \
.endpoint = ENDPOINT, \
.size = SIZE, \
.data = NULL, \
.correct_reply_size = sizeof (EXPECTED) \
},
{ \
.type = ACTION_RECEIVE, \
.endpoint = ENDPOINT, \
.size = SIZE, \
.data = NULL, \
.correct_reply_size = sizeof (EXPECTED) \
},
struct usbexchange_data
{
+2 -1
View File
@@ -273,7 +273,8 @@ on_stream_read_cb (GObject *source_object,
}
else
{
// g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_INVALID_DATA, "Got empty data");
g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_INVALID_DATA,
"Got empty data");
return;
}
}
+9 -3
View File
@@ -526,8 +526,8 @@ dev_verify (FpDevice *dev)
if (scan_id)
{
g_autoptr(FpPrint) new_scan = NULL;
GVariant *data = NULL;
FpPrint *new_scan;
FpPrint *print;
gboolean success;
@@ -556,7 +556,7 @@ dev_verify (FpDevice *dev)
self->match_reported = TRUE;
fpi_device_verify_report (dev,
success ? FPI_MATCH_SUCCESS : FPI_MATCH_FAIL,
new_scan,
g_steal_pointer (&new_scan),
NULL);
}
}
@@ -733,7 +733,13 @@ dev_deinit (FpDevice *dev)
}
if (!self->keep_alive)
stop_listener (self);
{
stop_listener (self);
self->supports_cancellation = TRUE;
}
self->enroll_stages_passed = 0;
self->match_reported = FALSE;
fpi_device_close_complete (dev, NULL);
}
+21 -17
View File
@@ -27,6 +27,10 @@
#include <config.h>
#ifdef HAVE_LIBFPRINT_TOD
#include "tod/tod-shared-loader.h"
#endif
#ifdef HAVE_UDEV
#include <gudev/gudev.h>
#endif
@@ -67,32 +71,26 @@ enum {
static guint signals[LAST_SIGNAL] = { 0 };
static const char *
get_drivers_whitelist_env (void)
get_drivers_allowlist_env (void)
{
return g_getenv ("FP_DRIVERS_WHITELIST");
return g_getenv ("FP_DRIVERS_ALLOWLIST");
}
static gboolean
is_driver_allowed (const gchar *driver)
{
g_auto(GStrv) whitelisted_drivers = NULL;
const char *fp_drivers_whitelist_env;
int i;
g_auto(GStrv) allowlisted_drivers = NULL;
const char *fp_drivers_allowlist_env;
g_return_val_if_fail (driver, TRUE);
fp_drivers_whitelist_env = get_drivers_whitelist_env ();
fp_drivers_allowlist_env = get_drivers_allowlist_env ();
if (!fp_drivers_whitelist_env)
if (!fp_drivers_allowlist_env)
return TRUE;
whitelisted_drivers = g_strsplit (fp_drivers_whitelist_env, ":", -1);
for (i = 0; whitelisted_drivers[i]; ++i)
if (g_strcmp0 (driver, whitelisted_drivers[i]) == 0)
return TRUE;
return FALSE;
allowlisted_drivers = g_strsplit (fp_drivers_allowlist_env, ":", -1);
return g_strv_contains ((const gchar * const *) allowlisted_drivers, driver);
}
typedef struct
@@ -291,11 +289,10 @@ fp_context_finalize (GObject *object)
FpContext *self = (FpContext *) object;
FpContextPrivate *priv = fp_context_get_instance_private (self);
g_clear_pointer (&priv->devices, g_ptr_array_unref);
g_cancellable_cancel (priv->cancellable);
g_clear_object (&priv->cancellable);
g_clear_pointer (&priv->drivers, g_array_unref);
g_clear_pointer (&priv->devices, g_ptr_array_unref);
g_slist_free_full (g_steal_pointer (&priv->sources), (GDestroyNotify) g_source_destroy);
@@ -303,6 +300,8 @@ fp_context_finalize (GObject *object)
g_object_run_dispose (G_OBJECT (priv->usb_ctx));
g_clear_object (&priv->usb_ctx);
tod_shared_drivers_unregister ();
G_OBJECT_CLASS (fp_context_parent_class)->finalize (object);
}
@@ -358,6 +357,7 @@ static void
fp_context_init (FpContext *self)
{
g_autoptr(GError) error = NULL;
g_autoptr(GArray) shared_drivers = NULL;
FpContextPrivate *priv = fp_context_get_instance_private (self);
guint i;
@@ -365,7 +365,11 @@ fp_context_init (FpContext *self)
priv->drivers = fpi_get_driver_types ();
if (get_drivers_whitelist_env ())
tod_shared_drivers_register ();
shared_drivers = tod_shared_drivers_get ();
g_array_prepend_vals (priv->drivers, shared_drivers->data, shared_drivers->len);
if (get_drivers_allowlist_env ())
{
for (i = 0; i < priv->drivers->len;)
{
+1 -4
View File
@@ -44,7 +44,7 @@ typedef struct
FpDeviceType type;
GUsbDevice *usb_device;
const gchar *virtual_env;
gchar *virtual_env;
struct
{
gchar *spidev_path;
@@ -111,8 +111,6 @@ typedef struct
GDestroyNotify enroll_progress_destroy;
} FpEnrollData;
void enroll_data_free (FpEnrollData *enroll_data);
typedef struct
{
FpPrint *enrolled_print; /* verify */
@@ -128,7 +126,6 @@ typedef struct
GDestroyNotify match_destroy;
} FpMatchData;
void match_data_free (FpMatchData *match_data);
void fpi_device_suspend (FpDevice *device);
void fpi_device_resume (FpDevice *device);
+49 -15
View File
@@ -1088,6 +1088,15 @@ fp_device_resume_finish (FpDevice *device,
return g_task_propagate_boolean (G_TASK (result), error);
}
static void
enroll_data_free (FpEnrollData *data)
{
if (data->enroll_progress_destroy)
data->enroll_progress_destroy (data->enroll_progress_data);
data->enroll_progress_data = NULL;
g_clear_object (&data->print);
g_free (data);
}
/**
* fp_device_enroll:
@@ -1172,10 +1181,6 @@ fp_device_enroll (FpDevice *device,
}
}
priv->current_action = FPI_DEVICE_ACTION_ENROLL;
priv->current_task = g_steal_pointer (&task);
setup_task_cancellable (device);
fpi_device_update_temp (device, TRUE);
if (priv->temp_current == FP_TEMPERATURE_HOT)
{
@@ -1184,6 +1189,10 @@ fp_device_enroll (FpDevice *device,
return;
}
priv->current_action = FPI_DEVICE_ACTION_ENROLL;
priv->current_task = g_steal_pointer (&task);
setup_task_cancellable (device);
data = g_new0 (FpEnrollData, 1);
data->print = g_object_ref_sink (template_print);
data->enroll_progress_cb = progress_cb;
@@ -1217,6 +1226,23 @@ fp_device_enroll_finish (FpDevice *device,
return g_task_propagate_pointer (G_TASK (result), error);
}
static void
match_data_free (FpMatchData *data)
{
g_clear_object (&data->print);
g_clear_object (&data->match);
g_clear_error (&data->error);
if (data->match_destroy)
data->match_destroy (data->match_data);
data->match_data = NULL;
g_clear_object (&data->enrolled_print);
g_clear_pointer (&data->gallery, g_ptr_array_unref);
g_free (data);
}
/**
* fp_device_verify:
* @device: a #FpDevice
@@ -1273,10 +1299,6 @@ fp_device_verify (FpDevice *device,
return;
}
priv->current_action = FPI_DEVICE_ACTION_VERIFY;
priv->current_task = g_steal_pointer (&task);
setup_task_cancellable (device);
fpi_device_update_temp (device, TRUE);
if (priv->temp_current == FP_TEMPERATURE_HOT)
{
@@ -1285,6 +1307,10 @@ fp_device_verify (FpDevice *device,
return;
}
priv->current_action = FPI_DEVICE_ACTION_VERIFY;
priv->current_task = g_steal_pointer (&task);
setup_task_cancellable (device);
data = g_new0 (FpMatchData, 1);
data->enrolled_print = g_object_ref (enrolled_print);
data->match_cb = match_cb;
@@ -1400,9 +1426,13 @@ fp_device_identify (FpDevice *device,
return;
}
priv->current_action = FPI_DEVICE_ACTION_IDENTIFY;
priv->current_task = g_steal_pointer (&task);
setup_task_cancellable (device);
if (prints == NULL)
{
g_task_return_error (task,
fpi_device_error_new_msg (FP_DEVICE_ERROR_DATA_INVALID,
"Invalid gallery array"));
return;
}
fpi_device_update_temp (device, TRUE);
if (priv->temp_current == FP_TEMPERATURE_HOT)
@@ -1412,6 +1442,10 @@ fp_device_identify (FpDevice *device,
return;
}
priv->current_action = FPI_DEVICE_ACTION_IDENTIFY;
priv->current_task = g_steal_pointer (&task);
setup_task_cancellable (device);
data = g_new0 (FpMatchData, 1);
/* We cannot store the gallery directly, because the ptr array may not own
* a reference to each print. Also, the caller could in principle modify the
@@ -1525,10 +1559,6 @@ fp_device_capture (FpDevice *device,
return;
}
priv->current_action = FPI_DEVICE_ACTION_CAPTURE;
priv->current_task = g_steal_pointer (&task);
setup_task_cancellable (device);
fpi_device_update_temp (device, TRUE);
if (priv->temp_current == FP_TEMPERATURE_HOT)
{
@@ -1537,6 +1567,10 @@ fp_device_capture (FpDevice *device,
return;
}
priv->current_action = FPI_DEVICE_ACTION_CAPTURE;
priv->current_task = g_steal_pointer (&task);
setup_task_cancellable (device);
priv->wait_for_finger = wait_for_finger;
cls->capture (device);
+1 -1
View File
@@ -43,8 +43,8 @@ G_DECLARE_DERIVABLE_TYPE (FpDevice, fp_device, FP, DEVICE, GObject)
*/
typedef enum {
FP_DEVICE_TYPE_VIRTUAL,
FP_DEVICE_TYPE_UDEV,
FP_DEVICE_TYPE_USB,
FP_DEVICE_TYPE_UDEV,
} FpDeviceType;
/**
+120 -76
View File
@@ -20,9 +20,11 @@
#define FP_COMPONENT "image"
#include "fpi-compat.h"
#include "fpi-image.h"
#include "fpi-log.h"
#include <config.h>
#include <nbis.h>
/**
@@ -158,60 +160,65 @@ fp_image_init (FpImage *self)
typedef struct
{
GAsyncReadyCallback user_cb;
struct fp_minutiae *minutiae;
gint width, height;
gdouble ppmm;
FpiImageFlags flags;
guchar *image;
guchar *binarized;
} DetectMinutiaeData;
FpiImageFlags flags;
unsigned char *image;
gboolean image_changed;
} DetectMinutiaeNbisData;
static void
fp_image_detect_minutiae_free (DetectMinutiaeData *data)
fp_image_detect_minutiae_free (DetectMinutiaeNbisData *data)
{
g_clear_pointer (&data->image, g_free);
g_clear_pointer (&data->minutiae, free_minutiae);
g_clear_pointer (&data->binarized, g_free);
if (data->image_changed)
g_clear_pointer (&data->image, g_free);
g_free (data);
}
static void
fp_image_detect_minutiae_cb (GObject *source_object,
GAsyncResult *res,
gpointer user_data)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (DetectMinutiaeNbisData, fp_image_detect_minutiae_free)
static gboolean
fp_image_detect_minutiae_nbis_finish (FpImage *self,
GTask *task,
GError **error)
{
GTask *task = G_TASK (res);
FpImage *image;
DetectMinutiaeData *data = g_task_get_task_data (task);
g_autoptr(DetectMinutiaeNbisData) data = NULL;
if (!g_task_had_error (task))
data = g_task_propagate_pointer (task, error);
if (data != NULL)
{
gint i;
image = FP_IMAGE (source_object);
self->flags = data->flags;
image->flags = data->flags;
if (data->image_changed)
{
g_clear_pointer (&self->data, g_free);
self->data = g_steal_pointer (&data->image);
}
g_clear_pointer (&image->data, g_free);
image->data = g_steal_pointer (&data->image);
g_clear_pointer (&self->binarized, g_free);
self->binarized = g_steal_pointer (&data->binarized);
g_clear_pointer (&image->binarized, g_free);
image->binarized = g_steal_pointer (&data->binarized);
g_clear_pointer (&self->minutiae, g_ptr_array_unref);
self->minutiae = g_ptr_array_new_full (data->minutiae->num,
(GDestroyNotify) free_minutia);
g_clear_pointer (&image->minutiae, g_ptr_array_unref);
image->minutiae = g_ptr_array_new_full (data->minutiae->num,
(GDestroyNotify) free_minutia);
for (i = 0; i < data->minutiae->num; i++)
g_ptr_array_add (image->minutiae,
for (int i = 0; i < data->minutiae->num; i++)
g_ptr_array_add (self->minutiae,
g_steal_pointer (&data->minutiae->list[i]));
/* Don't let it delete anything. */
/* Don't let free_minutiae delete the minutiae that we now own. */
data->minutiae->num = 0;
return TRUE;
}
if (data->user_cb)
data->user_cb (source_object, res, user_data);
return FALSE;
}
static void
@@ -264,70 +271,83 @@ invert_colors (guint8 *data, gint width, gint height)
}
static void
fp_image_detect_minutiae_thread_func (GTask *task,
gpointer source_object,
gpointer task_data,
GCancellable *cancellable)
fp_image_detect_minutiae_nbis_thread_func (GTask *task,
gpointer source_object,
gpointer task_data,
GCancellable *cancellable)
{
g_autoptr(GTimer) timer = NULL;
DetectMinutiaeData *data = task_data;
struct fp_minutiae *minutiae = NULL;
g_autoptr(DetectMinutiaeNbisData) ret_data = NULL;
g_autoptr(GTask) thread_task = g_steal_pointer (&task);
g_autofree gint *direction_map = NULL;
g_autofree gint *low_contrast_map = NULL;
g_autofree gint *low_flow_map = NULL;
g_autofree gint *high_curve_map = NULL;
g_autofree gint *quality_map = NULL;
g_autofree guchar *bdata = NULL;
g_autofree LFSPARMS *lfsparms = NULL;
FpImage *self = source_object;
FpiImageFlags minutiae_flags;
unsigned char *image;
gint map_w, map_h;
gint bw, bh, bd;
gint r;
g_autofree LFSPARMS *lfsparms = NULL;
image = self->data;
minutiae_flags = self->flags & ~(FPI_IMAGE_H_FLIPPED |
FPI_IMAGE_V_FLIPPED |
FPI_IMAGE_COLORS_INVERTED);
if (minutiae_flags != FPI_IMAGE_NONE)
image = g_memdup2 (self->data, self->width * self->height);
ret_data = g_new0 (DetectMinutiaeNbisData, 1);
ret_data->flags = minutiae_flags;
ret_data->image = image;
ret_data->image_changed = image != self->data;
/* Normalize the image first */
if (data->flags & FPI_IMAGE_H_FLIPPED)
hflip (data->image, data->width, data->height);
if (self->flags & FPI_IMAGE_H_FLIPPED)
hflip (image, self->width, self->height);
if (data->flags & FPI_IMAGE_V_FLIPPED)
vflip (data->image, data->width, data->height);
if (self->flags & FPI_IMAGE_V_FLIPPED)
vflip (image, self->width, self->height);
if (data->flags & FPI_IMAGE_COLORS_INVERTED)
invert_colors (data->image, data->width, data->height);
if (self->flags & FPI_IMAGE_COLORS_INVERTED)
invert_colors (image, self->width, self->height);
data->flags &= ~(FPI_IMAGE_H_FLIPPED | FPI_IMAGE_V_FLIPPED | FPI_IMAGE_COLORS_INVERTED);
lfsparms = g_memdup (&g_lfsparms_V2, sizeof (LFSPARMS));
lfsparms->remove_perimeter_pts = data->flags & FPI_IMAGE_PARTIAL ? TRUE : FALSE;
lfsparms = g_memdup2 (&g_lfsparms_V2, sizeof (LFSPARMS));
lfsparms->remove_perimeter_pts = minutiae_flags & FPI_IMAGE_PARTIAL ? TRUE : FALSE;
timer = g_timer_new ();
r = get_minutiae (&minutiae, &quality_map, &direction_map,
r = get_minutiae (&ret_data->minutiae, &quality_map, &direction_map,
&low_contrast_map, &low_flow_map, &high_curve_map,
&map_w, &map_h, &bdata, &bw, &bh, &bd,
data->image, data->width, data->height, 8,
data->ppmm, lfsparms);
&map_w, &map_h, &ret_data->binarized, &bw, &bh, &bd,
image, self->width, self->height, 8,
self->ppmm, lfsparms);
g_timer_stop (timer);
fp_dbg ("Minutiae scan completed in %f secs", g_timer_elapsed (timer, NULL));
data->binarized = g_steal_pointer (&bdata);
data->minutiae = minutiae;
if (g_task_had_error (thread_task))
return;
if (r)
{
fp_err ("get minutiae failed, code %d", r);
g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "Minutiae scan failed with code %d", r);
g_object_unref (task);
g_task_return_new_error (thread_task, G_IO_ERROR,
G_IO_ERROR_FAILED,
"Minutiae scan failed with code %d", r);
return;
}
if (!data->minutiae || data->minutiae->num == 0)
if (!ret_data->minutiae || ret_data->minutiae->num == 0)
{
g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED,
g_task_return_new_error (thread_task, G_IO_ERROR, G_IO_ERROR_FAILED,
"No minutiae found");
g_object_unref (task);
return;
}
g_task_return_boolean (task, TRUE);
g_object_unref (task);
g_task_return_pointer (thread_task, g_steal_pointer (&ret_data),
(GDestroyNotify) fp_image_detect_minutiae_free);
}
/**
@@ -443,21 +463,25 @@ fp_image_detect_minutiae (FpImage *self,
GAsyncReadyCallback callback,
gpointer user_data)
{
GTask *task;
DetectMinutiaeData *data = g_new0 (DetectMinutiaeData, 1);
g_autoptr(GTask) task = NULL;
task = g_task_new (self, cancellable, fp_image_detect_minutiae_cb, user_data);
g_return_if_fail (FP_IS_IMAGE (self));
g_return_if_fail (callback != NULL);
data->image = g_malloc (self->width * self->height);
memcpy (data->image, self->data, self->width * self->height);
data->flags = self->flags;
data->width = self->width;
data->height = self->height;
data->ppmm = self->ppmm;
data->user_cb = callback;
task = g_task_new (self, cancellable, callback, user_data);
g_task_set_source_tag (task, fp_image_detect_minutiae);
g_task_set_check_cancellable (task, TRUE);
g_task_set_task_data (task, data, (GDestroyNotify) fp_image_detect_minutiae_free);
g_task_run_in_thread (task, fp_image_detect_minutiae_thread_func);
if (!g_atomic_int_compare_and_exchange (&self->detection_in_progress,
FALSE, TRUE))
{
g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_ADDRESS_IN_USE,
"Minutiae detection is already in progress");
return;
}
g_task_run_in_thread (g_steal_pointer (&task),
fp_image_detect_minutiae_nbis_thread_func);
}
/**
@@ -475,7 +499,27 @@ fp_image_detect_minutiae_finish (FpImage *self,
GAsyncResult *result,
GError **error)
{
return g_task_propagate_boolean (G_TASK (result), error);
GTask *task;
gboolean changed;
g_return_val_if_fail (FP_IS_IMAGE (self), FALSE);
g_return_val_if_fail (g_task_is_valid (result, self), FALSE);
g_return_val_if_fail (g_task_get_source_tag (G_TASK (result)) ==
fp_image_detect_minutiae, FALSE);
task = G_TASK (result);
changed = g_atomic_int_compare_and_exchange (&self->detection_in_progress,
TRUE, FALSE);
g_assert (changed);
if (g_task_had_error (task))
{
gpointer data = g_task_propagate_pointer (task, error);
g_assert (data == NULL);
return FALSE;
}
return fp_image_detect_minutiae_nbis_finish (self, task, error);
}
/**
+12 -12
View File
@@ -339,7 +339,7 @@ fp_print_init (FpPrint *self)
* create a new print, fill in the relevant metadata, and then start
* enrollment.
*
* Returns: (transfer floating): A newyl created #FpPrint
* Returns: (transfer floating): A newly created #FpPrint
*/
FpPrint *
fp_print_new (FpDevice *device)
@@ -721,13 +721,12 @@ fp_print_serialize (FpPrint *print,
result = g_variant_builder_end (&builder);
if (G_BYTE_ORDER == G_BIG_ENDIAN)
{
GVariant *tmp;
tmp = g_variant_byteswap (result);
g_variant_unref (result);
result = tmp;
}
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
GVariant *tmp;
tmp = g_variant_byteswap (result);
g_variant_unref (result);
result = tmp;
#endif
len = g_variant_get_size (result);
/* Add 3 bytes of header */
@@ -800,10 +799,11 @@ fp_print_deserialize (const guchar *data,
if (!raw_value)
goto invalid_format;
if (G_BYTE_ORDER == G_BIG_ENDIAN)
value = g_variant_byteswap (raw_value);
else
value = g_variant_get_normal_form (raw_value);
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
value = g_variant_byteswap (raw_value);
#else
value = g_variant_get_normal_form (raw_value);
#endif
g_variant_get (value,
"(i&s&sbymsmsi@a{sv}v)",
+1 -1
View File
@@ -29,7 +29,7 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (FpPrint, fp_print, FP, PRINT, GInitiallyUnowned)
#define FP_FINGER_IS_VALID(finger) \
((finger) >= FP_FINGER_FIRST && (finger) <= FP_FINGER_LAST)
((finger) >= FP_FINGER_FIRST && (finger) <= FP_FINGER_LAST)
#include "fp-device.h"
+4
View File
@@ -20,6 +20,7 @@
#pragma once
#include "fp-image.h"
#include "tod/tod-macros.h"
/**
* fpi_frame:
@@ -110,6 +111,9 @@ struct fpi_line_asmbl_ctx
unsigned char (*get_pixel)(struct fpi_line_asmbl_ctx *ctx,
GSList *line,
unsigned int x);
/*< private >*/
TOD_PADDING (32, 0);
};
FpImage *fpi_assemble_lines (struct fpi_line_asmbl_ctx *ctx,
+1 -1
View File
@@ -1181,7 +1181,7 @@ fpi_byte_reader_dup_string_utf##bits (FpiByteReader * reader, type ** str) \
*str = NULL; \
return FALSE; \
} \
*str = g_memdup (reader->data + reader->byte, size); \
*str = g_memdup2 (reader->data + reader->byte, size); \
reader->byte += size; \
return TRUE; \
}
+2 -1
View File
@@ -22,6 +22,7 @@
#pragma once
#include <glib.h>
#include "fpi-compat.h"
#include "fpi-byte-utils.h"
G_BEGIN_DECLS
@@ -360,7 +361,7 @@ static inline guint8 *
fpi_byte_reader_dup_data_unchecked (FpiByteReader * reader, guint size)
{
gconstpointer data = fpi_byte_reader_get_data_unchecked (reader, size);
return (guint8 *) g_memdup (data, size);
return (guint8 *) g_memdup2 (data, size);
}
/* Unchecked variants that should not be used */
+1 -1
View File
@@ -211,7 +211,7 @@ fpi_byte_writer_reset_and_get_data (FpiByteWriter * writer)
data = (guint8 *) writer->parent.data;
if (!writer->owned)
data = g_memdup (data, writer->parent.size);
data = g_memdup2 (data, writer->parent.size);
writer->parent.data = NULL;
fpi_byte_writer_reset (writer);
-19
View File
@@ -20,25 +20,6 @@
#include <glib-object.h>
#if !GLIB_CHECK_VERSION (2, 57, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GTypeClass, g_type_class_unref);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GEnumClass, g_type_class_unref);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GFlagsClass, g_type_class_unref);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GParamSpec, g_param_spec_unref);
#else
/* Re-define G_SOURCE_FUNC as we are technically not allowed to use it with
* the version we depend on currently. */
#undef G_SOURCE_FUNC
#endif
#define G_SOURCE_FUNC(f) ((GSourceFunc) (void (*)(void))(f))
#if !GLIB_CHECK_VERSION (2, 63, 3)
typedef struct _FpDeviceClass FpDeviceClass;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (FpDeviceClass, g_type_class_unref);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDate, g_date_free);
#endif
#if __GNUC__ > 10 || (__GNUC__ == 10 && __GNUC_MINOR__ >= 1)
#define FP_GNUC_ACCESS(m, p, s) __attribute__((access (m, p, s)))
#else
+69 -52
View File
@@ -522,33 +522,6 @@ fpi_device_get_driver_data (FpDevice *device)
return priv->driver_data;
}
void
enroll_data_free (FpEnrollData *data)
{
if (data->enroll_progress_destroy)
data->enroll_progress_destroy (data->enroll_progress_data);
data->enroll_progress_data = NULL;
g_clear_object (&data->print);
g_free (data);
}
void
match_data_free (FpMatchData *data)
{
g_clear_object (&data->print);
g_clear_object (&data->match);
g_clear_error (&data->error);
if (data->match_destroy)
data->match_destroy (data->match_data);
data->match_data = NULL;
g_clear_object (&data->enrolled_print);
g_clear_pointer (&data->gallery, g_ptr_array_unref);
g_free (data);
}
/**
* fpi_device_get_enroll_data:
* @device: The #FpDevice
@@ -622,7 +595,14 @@ fpi_device_get_verify_data (FpDevice *device,
* @device: The #FpDevice
* @prints: (out) (transfer none) (element-type FpPrint): The gallery of prints
*
* Get data for identify.
* Get prints gallery for identification.
*
* The @prints array is always non-%NULL and may contain a list of #FpPrint's
* that the device should match against.
*
* Note that @prints can be an empty array, in such case the device is expected
* to report the scanned print matching the one in its internal storage, if any.
*
*/
void
fpi_device_get_identify_data (FpDevice *device,
@@ -1312,12 +1292,14 @@ fpi_device_enroll_complete (FpDevice *device, FpPrint *print, GError *error)
* @device: The #FpDevice
* @error: A #GError if result is %FPI_MATCH_ERROR
*
* Finish an ongoing verify operation. The returned print should be
* representing the new scan and not the one passed for verification.
* Finish an ongoing verify operation.
*
* Note that @error should only be set for actual errors. In the case
* of retry errors, report these using fpi_device_verify_report()
* and then call this function without any error argument.
*
* If @error is not set, we expect that a result (and print, in case)
* have been already reported via fpi_device_verify_report().
*/
void
fpi_device_verify_complete (FpDevice *device,
@@ -1375,9 +1357,14 @@ fpi_device_verify_complete (FpDevice *device,
* @device: The #FpDevice
* @error: The #GError or %NULL on success
*
* Finish an ongoing identify operation. The match that was identified is
* returned in @match. The @print parameter returns the newly created scan
* that was used for matching.
* Finish an ongoing identify operation.
*
* Note that @error should only be set for actual errors. In the case
* of retry errors, report these using fpi_device_identify_report()
* and then call this function without any error argument.
*
* If @error is not set, we expect that a match and / or a print have been
* already reported via fpi_device_identify_report()
*/
void
fpi_device_identify_complete (FpDevice *device,
@@ -1596,11 +1583,13 @@ update_attr (const char *attr, const char *value)
static void
complete_suspend_resume_task (FpDevice *device)
{
g_autoptr(GTask) task = NULL;
FpDevicePrivate *priv = fp_device_get_instance_private (device);
g_assert (priv->suspend_resume_task);
task = g_steal_pointer (&priv->suspend_resume_task);
g_task_return_boolean (g_steal_pointer (&priv->suspend_resume_task), TRUE);
g_task_return_boolean (task, TRUE);
}
void
@@ -1704,9 +1693,9 @@ fpi_device_configure_wakeup (FpDevice *device, gboolean enabled)
case FP_DEVICE_TYPE_USB:
{
g_autoptr(GString) ports = NULL;
GUsbDevice *dev, *parent;
g_autoptr(GUsbDevice) dev = NULL;
const char *wakeup_command = enabled ? "enabled" : "disabled";
guint8 bus, port;
guint8 bus;
g_autofree gchar *sysfs_wakeup = NULL;
g_autofree gchar *sysfs_persist = NULL;
int res;
@@ -1715,12 +1704,20 @@ fpi_device_configure_wakeup (FpDevice *device, gboolean enabled)
bus = g_usb_device_get_bus (priv->usb_device);
/* Walk up, skipping the root hub. */
dev = priv->usb_device;
while ((parent = g_usb_device_get_parent (dev)))
g_set_object (&dev, priv->usb_device);
while (TRUE)
{
g_autoptr(GUsbDevice) parent = g_usb_device_get_parent (dev);
g_autofree gchar *port_str = NULL;
guint8 port;
if (!parent)
break;
port = g_usb_device_get_port_number (dev);
g_string_prepend (ports, g_strdup_printf ("%d.", port));
dev = parent;
port_str = g_strdup_printf ("%d.", port);
g_string_prepend (ports, port_str);
g_set_object (&dev, parent);
}
g_string_set_size (ports, ports->len - 1);
@@ -1757,6 +1754,7 @@ fpi_device_configure_wakeup (FpDevice *device, gboolean enabled)
static void
fpi_device_suspend_completed (FpDevice *device)
{
g_autoptr(GTask) task = NULL;
FpDevicePrivate *priv = fp_device_get_instance_private (device);
/* We have an ongoing operation, allow the device to wake up the machine. */
@@ -1766,11 +1764,12 @@ fpi_device_suspend_completed (FpDevice *device)
if (priv->critical_section)
g_warning ("Driver was in a critical section at suspend time. It likely deadlocked!");
task = g_steal_pointer (&priv->suspend_resume_task);
if (priv->suspend_error)
g_task_return_error (g_steal_pointer (&priv->suspend_resume_task),
g_steal_pointer (&priv->suspend_error));
g_task_return_error (task, g_steal_pointer (&priv->suspend_error));
else
g_task_return_boolean (g_steal_pointer (&priv->suspend_resume_task), TRUE);
g_task_return_boolean (task, TRUE);
}
/**
@@ -1798,11 +1797,12 @@ fpi_device_suspend_complete (FpDevice *device,
g_return_if_fail (priv->suspend_resume_task);
g_return_if_fail (priv->suspend_error == NULL);
priv->suspend_error = error;
priv->suspend_error = g_steal_pointer (&error);
priv->is_suspended = TRUE;
/* If there is no error, we have no running task, return immediately. */
if (error == NULL || !priv->current_task || g_task_get_completed (priv->current_task))
if (!priv->suspend_error || !priv->current_task ||
g_task_get_completed (priv->current_task))
{
fpi_device_suspend_completed (device);
return;
@@ -1834,6 +1834,7 @@ void
fpi_device_resume_complete (FpDevice *device,
GError *error)
{
g_autoptr(GTask) task = NULL;
FpDevicePrivate *priv = fp_device_get_instance_private (device);
g_return_if_fail (FP_IS_DEVICE (device));
@@ -1842,10 +1843,12 @@ fpi_device_resume_complete (FpDevice *device,
priv->is_suspended = FALSE;
fpi_device_configure_wakeup (device, FALSE);
task = g_steal_pointer (&priv->suspend_resume_task);
if (error)
g_task_return_error (g_steal_pointer (&priv->suspend_resume_task), error);
g_task_return_error (task, error);
else
g_task_return_boolean (g_steal_pointer (&priv->suspend_resume_task), TRUE);
g_task_return_boolean (task, TRUE);
}
/**
@@ -2002,12 +2005,26 @@ fpi_device_verify_report (FpDevice *device,
* fpi_device_identify_report:
* @device: The #FpDevice
* @match: (transfer none): The #FpPrint from the gallery that matched
* @print: (transfer floating): The scanned #FpPrint
* @error: A #GError if result is %FPI_MATCH_ERROR
* @print: (transfer floating): The scanned #FpPrint, set in the absence
* of an error.
* @error: A #GError of %FP_DEVICE_RETRY type if @match and @print are unset.
*
* Report the result of a identify operation. Note that the passed @error must be
* a retry error with the %FP_DEVICE_RETRY domain. For all other error cases,
* the error should passed to fpi_device_identify_complete().
* Report the results of an identify operation.
*
* In case of successful identification @match is expected to be set to a
* #FpPrint that matches one from the provided gallery, while @print
* represents the scanned print and will be different.
*
* If there are no errors, it's expected that the device always reports the
* recognized @print even if there is no @match with the provided gallery (that
* can be potentially empty). This is required for application logic further
* up in the stack, such as for enroll-duplicate checking. @print needs to be
* sufficiently filled to do a comparison.
*
* In case of error, both @match and @print are expected to be %NULL.
* Note that the passed @error must be a retry error from the %FP_DEVICE_RETRY
* domain. For all other error cases, the error should passed to
* fpi_device_identify_complete().
*/
void
fpi_device_identify_report (FpDevice *device,
+32 -9
View File
@@ -23,6 +23,7 @@
#include "fp-device.h"
#include "fp-image.h"
#include "fpi-print.h"
#include "tod/tod-macros.h"
/**
* FpiDeviceUdevSubtypeFlags:
@@ -55,6 +56,12 @@ struct _FpIdEntry
guint vid;
};
const gchar *virtual_envvar;
};
guint64 driver_data;
/* Elements added after TODv1 */
union
{
struct
{
FpiDeviceUdevSubtypeFlags udev_types;
@@ -66,7 +73,13 @@ struct _FpIdEntry
} hid_id;
};
};
guint64 driver_data;
/*< private >*/
/* padding for future expansion */
TOD_PADDING_ALIGNED (16,
sizeof (guint) * 2 +
sizeof (FpiDeviceUdevSubtypeFlags) +
sizeof (gpointer));
};
/**
@@ -147,16 +160,11 @@ struct _FpDeviceClass
const gchar *full_name;
FpDeviceType type;
const FpIdEntry *id_table;
FpDeviceFeature features;
/* Defaults for device properties */
gint nr_enroll_stages;
FpScanType scan_type;
/* Simple device temperature model constants */
gint32 temp_hot_seconds;
gint32 temp_cold_seconds;
/* Callbacks */
gint (*usb_discover) (GUsbDevice *usb_device);
void (*probe) (FpDevice *device);
@@ -168,11 +176,26 @@ struct _FpDeviceClass
void (*capture) (FpDevice *device);
void (*list) (FpDevice *device);
void (*delete) (FpDevice * device);
void (*clear_storage) (FpDevice * device);
void (*cancel) (FpDevice *device);
void (*suspend) (FpDevice *device);
void (*resume) (FpDevice *device);
/* Class elements added after tod-v1 */
FpDeviceFeature features;
/* Simple device temperature model constants */
gint32 temp_hot_seconds;
gint32 temp_cold_seconds;
void (*clear_storage) (FpDevice * device);
void (*suspend) (FpDevice *device);
void (*resume) (FpDevice *device);
/*< private >*/
/* padding for future expansion */
TOD_PADDING_ALIGNED8 (32,
sizeof (FpDeviceFeature) +
sizeof (gint32) * 2 +
sizeof (gpointer) * 3);
};
void fpi_device_class_auto_initialize_features (FpDeviceClass *device_class);
+7 -3
View File
@@ -62,12 +62,12 @@
*/
typedef enum {
FPI_IMAGE_DEVICE_STATE_INACTIVE,
FPI_IMAGE_DEVICE_STATE_ACTIVATING,
FPI_IMAGE_DEVICE_STATE_DEACTIVATING,
FPI_IMAGE_DEVICE_STATE_IDLE,
FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON,
FPI_IMAGE_DEVICE_STATE_CAPTURE,
FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF,
FPI_IMAGE_DEVICE_STATE_ACTIVATING,
FPI_IMAGE_DEVICE_STATE_DEACTIVATING,
FPI_IMAGE_DEVICE_STATE_IDLE,
} FpiImageDeviceState;
/**
@@ -114,6 +114,10 @@ struct _FpImageDeviceClass
void (*change_state) (FpImageDevice *dev,
FpiImageDeviceState state);
void (*deactivate) (FpImageDevice *dev);
/*< private >*/
/* padding for future expansion */
TOD_PADDING (32, 0);
};
void fpi_image_device_set_bz3_threshold (FpImageDevice *self,
+8 -3
View File
@@ -24,8 +24,9 @@
#include "fpi-log.h"
#include <nbis.h>
#include <config.h>
#if HAVE_PIXMAN
#ifdef HAVE_PIXMAN
#include <pixman.h>
#endif
@@ -107,12 +108,12 @@ fpi_mean_sq_diff_norm (const guint8 *buf1,
return res / size;
}
#if HAVE_PIXMAN
FpImage *
fpi_image_resize (FpImage *orig_img,
guint w_factor,
guint h_factor)
{
#ifdef HAVE_PIXMAN
int new_width = orig_img->width * w_factor;
int new_height = orig_img->height * h_factor;
pixman_image_t *orig, *resized;
@@ -145,5 +146,9 @@ fpi_image_resize (FpImage *orig_img,
pixman_image_unref (resized);
return newimg;
}
#else
fp_err ("Libfprint compiled without pixman support, impossible to resize");
return g_object_ref (orig_img);
#endif
}
+8 -3
View File
@@ -20,11 +20,12 @@
#pragma once
#include <config.h>
#include "fp-image.h"
#include "tod/tod-macros.h"
/**
* FpiImageFlags:
* @FPI_IMAGE_NONE: no flag set
* @FPI_IMAGE_V_FLIPPED: the image is vertically flipped
* @FPI_IMAGE_H_FLIPPED: the image is horizontally flipped
* @FPI_IMAGE_COLORS_INVERTED: the colours are inverted
@@ -34,6 +35,7 @@
* rely on the image to be normalized by libfprint before further processing.
*/
typedef enum {
FPI_IMAGE_NONE = 0,
FPI_IMAGE_V_FLIPPED = 1 << 0,
FPI_IMAGE_H_FLIPPED = 1 << 1,
FPI_IMAGE_COLORS_INVERTED = 1 << 2,
@@ -68,7 +70,12 @@ struct _FpImage
guint8 *binarized;
GPtrArray *minutiae;
/* Unused */
guint ref_count;
gboolean detection_in_progress;
TOD_PADDING (32, sizeof (gboolean));
};
gint fpi_std_sq_dev (const guint8 *buf,
@@ -77,8 +84,6 @@ gint fpi_mean_sq_diff_norm (const guint8 *buf1,
const guint8 *buf2,
gint size);
#if HAVE_PIXMAN
FpImage *fpi_image_resize (FpImage *orig,
guint w_factor,
guint h_factor);
#endif
+6 -6
View File
@@ -80,12 +80,12 @@
* Uses fp_err() to print an error if the @condition is true.
*/
#define BUG_ON(condition) G_STMT_START \
if (condition) { \
char *s; \
s = g_strconcat ("BUG: (", #condition, ")", NULL); \
fp_err ("%s: %s() %s:%d", s, G_STRFUNC, __FILE__, __LINE__); \
g_free (s); \
} G_STMT_END
if (condition) { \
char *s; \
s = g_strconcat ("BUG: (", #condition, ")", NULL); \
fp_err ("%s: %s() %s:%d", s, G_STRFUNC, __FILE__, __LINE__); \
g_free (s); \
} G_STMT_END
/**
* BUG:
+1 -1
View File
@@ -50,7 +50,7 @@ fpi_print_add_print (FpPrint *print, FpPrint *add)
g_return_if_fail (add->type == FPI_PRINT_NBIS);
g_assert (add->prints->len == 1);
g_ptr_array_add (print->prints, g_memdup (add->prints->pdata[0], sizeof (struct xyt_struct)));
g_ptr_array_add (print->prints, g_memdup2 (add->prints->pdata[0], sizeof (struct xyt_struct)));
}
/**
+3
View File
@@ -73,6 +73,9 @@ struct _FpiSpiTransfer
/* Data free function */
GDestroyNotify free_buffer_wr;
GDestroyNotify free_buffer_rd;
/* padding for future expansion */
TOD_PADDING (32, 0);
};
GType fpi_spi_transfer_get_type (void) G_GNUC_CONST;
+5 -1
View File
@@ -73,7 +73,7 @@
struct _FpiSsm
{
FpDevice *dev;
const char *name;
char *name;
FpiSsm *parentsm;
gpointer ssm_data;
GDestroyNotify ssm_data_destroy;
@@ -765,3 +765,7 @@ fpi_ssm_spi_transfer_with_weak_pointer_cb (FpiSpiTransfer *transfer,
fpi_ssm_spi_transfer_cb (transfer, device, weak_ptr, error);
}
#ifdef TOD_LIBRARY
#include "tod/tod-fpi-ssm.c"
#endif

Some files were not shown because too many files have changed in this diff Show More