mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-09-10 13:00:08 +00:00
Compare commits
688
Commits
+20
-9
@@ -22,7 +22,6 @@ variables:
|
|||||||
FDO_DISTRIBUTION_VERSION: rawhide
|
FDO_DISTRIBUTION_VERSION: rawhide
|
||||||
FDO_UPSTREAM_REPO: "libfprint/$CI_PROJECT_NAME"
|
FDO_UPSTREAM_REPO: "libfprint/$CI_PROJECT_NAME"
|
||||||
FEDORA_IMAGE: "$CI_REGISTRY/libfprint/$CI_PROJECT_NAME/fedora/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG"
|
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"
|
LAST_ABI_BREAK: "056ea541ddc97f5806cffbd99a12dc87e4da3546"
|
||||||
|
|
||||||
workflow:
|
workflow:
|
||||||
@@ -100,6 +99,7 @@ test:
|
|||||||
|
|
||||||
test_valgrind:
|
test_valgrind:
|
||||||
stage: test
|
stage: test
|
||||||
|
allow_failure: true
|
||||||
except:
|
except:
|
||||||
variables:
|
variables:
|
||||||
- $CI_PIPELINE_SOURCE == "schedule"
|
- $CI_PIPELINE_SOURCE == "schedule"
|
||||||
@@ -125,17 +125,19 @@ test_installed:
|
|||||||
script:
|
script:
|
||||||
- meson setup _build --prefix=/usr -Ddrivers=all
|
- meson setup _build --prefix=/usr -Ddrivers=all
|
||||||
- meson install -C _build
|
- meson install -C _build
|
||||||
|
- mv _build _build_dir
|
||||||
|
- rm -rf tests
|
||||||
- gnome-desktop-testing-runner --list libfprint-2
|
- gnome-desktop-testing-runner --list libfprint-2
|
||||||
- gnome-desktop-testing-runner libfprint-2
|
- gnome-desktop-testing-runner libfprint-2
|
||||||
--report-directory=_build/installed-tests-report/failed/
|
--report-directory=_installed-tests-report/failed/
|
||||||
--log-directory=_build/installed-tests-report/logs/
|
--log-directory=_installed-tests-report/logs/
|
||||||
--parallel=0
|
--parallel=0
|
||||||
artifacts:
|
artifacts:
|
||||||
expose_as: 'GNOME Tests Runner logs'
|
expose_as: 'GNOME Tests Runner logs'
|
||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- _build/meson-logs
|
- _build_dir/meson-logs
|
||||||
- _build/installed-tests-report
|
- _installed-tests-report
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
|
|
||||||
@@ -151,6 +153,7 @@ test_scan_build:
|
|||||||
- SCANBUILD=$CI_PROJECT_DIR/.gitlab-ci/scan-build
|
- SCANBUILD=$CI_PROJECT_DIR/.gitlab-ci/scan-build
|
||||||
ninja -C _build scan-build
|
ninja -C _build scan-build
|
||||||
artifacts:
|
artifacts:
|
||||||
|
when: on_failure
|
||||||
paths:
|
paths:
|
||||||
- _build/meson-logs
|
- _build/meson-logs
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
@@ -176,27 +179,35 @@ test_unsupported_list:
|
|||||||
|
|
||||||
flatpak:
|
flatpak:
|
||||||
stage: flatpak
|
stage: flatpak
|
||||||
extends: .flatpak
|
extends: .flatpak@x86_64
|
||||||
# From https://gitlab.gnome.org/GNOME/gnome-runtime-images/container_registry
|
|
||||||
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:42
|
|
||||||
variables:
|
variables:
|
||||||
MANIFEST_PATH: "demo/org.freedesktop.libfprint.Demo.json"
|
MANIFEST_PATH: "demo/org.freedesktop.libfprint.Demo.json"
|
||||||
FLATPAK_MODULE: "libfprint"
|
FLATPAK_MODULE: "libfprint"
|
||||||
APP_ID: "org.freedesktop.libfprint.Demo"
|
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:
|
rules:
|
||||||
- if: '$CI_PROJECT_PATH != "libfprint/libfprint"'
|
- if: '$CI_PROJECT_PATH != "libfprint/libfprint"'
|
||||||
when: never
|
when: manual
|
||||||
|
allow_failure: true
|
||||||
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
||||||
when: never
|
when: never
|
||||||
- if: '$CI_COMMIT_BRANCH == "master"'
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
||||||
|
allow_failure: true
|
||||||
when: always
|
when: always
|
||||||
- if: '$CI_COMMIT_TAG'
|
- if: '$CI_COMMIT_TAG'
|
||||||
|
allow_failure: true
|
||||||
when: always
|
when: always
|
||||||
# For any other (commit), allow manual run.
|
# For any other (commit), allow manual run.
|
||||||
# This excludes MRs which would create a duplicate pipeline
|
# This excludes MRs which would create a duplicate pipeline
|
||||||
- if: '$CI_COMMIT_BRANCH'
|
- if: '$CI_COMMIT_BRANCH'
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
- if: '$CI_MERGE_REQUEST_ID'
|
||||||
|
when: manual
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
# CONTAINERS creation stage
|
# CONTAINERS creation stage
|
||||||
.container_fedora_build_base:
|
.container_fedora_build_base:
|
||||||
|
|||||||
@@ -1,6 +1,21 @@
|
|||||||
This file lists notable changes in each release. For the full history of all
|
This file lists notable changes in each release. For the full history of all
|
||||||
changes, see ChangeLog.
|
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
|
2023-08-17: v1.94.6 release
|
||||||
|
|
||||||
Highlights:
|
Highlights:
|
||||||
@@ -357,7 +372,7 @@ tests of the drivers using umockdev.
|
|||||||
- Mark fp_dscv_print functions as deprecated
|
- Mark fp_dscv_print functions as deprecated
|
||||||
|
|
||||||
* Udev rules:
|
* Udev rules:
|
||||||
- Add some unsupported devices to the whitelist
|
- Add some unsupported devices to the allowlist
|
||||||
|
|
||||||
2017-05-14: v0.7.0 release
|
2017-05-14: v0.7.0 release
|
||||||
* Drivers:
|
* Drivers:
|
||||||
@@ -407,7 +422,7 @@ tests of the drivers using umockdev.
|
|||||||
- Fix possible race condition, and cancellation in uru4000 driver
|
- Fix possible race condition, and cancellation in uru4000 driver
|
||||||
|
|
||||||
* Udev rules:
|
* Udev rules:
|
||||||
- Add Microsoft keyboard to the suspend blacklist
|
- Add Microsoft keyboard to the suspend denylist
|
||||||
|
|
||||||
* Plenty of build fixes
|
* Plenty of build fixes
|
||||||
|
|
||||||
|
|||||||
+25
@@ -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)
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
## TOD Informations
|
||||||
|
|
||||||
|
See https://gitlab.freedesktop.org/3v1n0/libfprint/-/blob/tod/README.tod.md
|
||||||
|
|
||||||
## History
|
## History
|
||||||
|
|
||||||
**LibFPrint** was originally developed as part of an
|
**LibFPrint** was originally developed as part of an
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -77,6 +77,12 @@ usb:v1C7Ap0571*
|
|||||||
ID_AUTOSUSPEND=1
|
ID_AUTOSUSPEND=1
|
||||||
ID_PERSIST=0
|
ID_PERSIST=0
|
||||||
|
|
||||||
|
# Supported by libfprint driver egismoc
|
||||||
|
usb:v1C7Ap0582*
|
||||||
|
usb:v1C7Ap05A1*
|
||||||
|
ID_AUTOSUSPEND=1
|
||||||
|
ID_PERSIST=0
|
||||||
|
|
||||||
# Supported by libfprint driver elan
|
# Supported by libfprint driver elan
|
||||||
usb:v04F3p0903*
|
usb:v04F3p0903*
|
||||||
usb:v04F3p0907*
|
usb:v04F3p0907*
|
||||||
@@ -158,6 +164,13 @@ usb:v1C7Ap0603*
|
|||||||
ID_AUTOSUSPEND=1
|
ID_AUTOSUSPEND=1
|
||||||
ID_PERSIST=0
|
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
|
# Supported by libfprint driver fpcmoc
|
||||||
usb:v10A5pFFE0*
|
usb:v10A5pFFE0*
|
||||||
usb:v10A5pA305*
|
usb:v10A5pA305*
|
||||||
@@ -186,6 +199,7 @@ usb:v27C6p63AC*
|
|||||||
usb:v27C6p63BC*
|
usb:v27C6p63BC*
|
||||||
usb:v27C6p63CC*
|
usb:v27C6p63CC*
|
||||||
usb:v27C6p6496*
|
usb:v27C6p6496*
|
||||||
|
usb:v27C6p6582*
|
||||||
usb:v27C6p6584*
|
usb:v27C6p6584*
|
||||||
usb:v27C6p658C*
|
usb:v27C6p658C*
|
||||||
usb:v27C6p6592*
|
usb:v27C6p6592*
|
||||||
@@ -201,6 +215,11 @@ usb:v298Dp1010*
|
|||||||
ID_AUTOSUSPEND=1
|
ID_AUTOSUSPEND=1
|
||||||
ID_PERSIST=0
|
ID_PERSIST=0
|
||||||
|
|
||||||
|
# Supported by libfprint driver realtek
|
||||||
|
usb:v0BDAp5813*
|
||||||
|
ID_AUTOSUSPEND=1
|
||||||
|
ID_PERSIST=0
|
||||||
|
|
||||||
# Supported by libfprint driver synaptics
|
# Supported by libfprint driver synaptics
|
||||||
usb:v06CBp00BD*
|
usb:v06CBp00BD*
|
||||||
usb:v06CBp00DF*
|
usb:v06CBp00DF*
|
||||||
@@ -211,11 +230,14 @@ usb:v06CBp0100*
|
|||||||
usb:v06CBp00F0*
|
usb:v06CBp00F0*
|
||||||
usb:v06CBp0103*
|
usb:v06CBp0103*
|
||||||
usb:v06CBp0123*
|
usb:v06CBp0123*
|
||||||
|
usb:v06CBp0124*
|
||||||
usb:v06CBp0126*
|
usb:v06CBp0126*
|
||||||
usb:v06CBp0129*
|
usb:v06CBp0129*
|
||||||
usb:v06CBp0168*
|
usb:v06CBp0168*
|
||||||
usb:v06CBp015F*
|
usb:v06CBp015F*
|
||||||
usb:v06CBp0104*
|
usb:v06CBp0104*
|
||||||
|
usb:v06CBp0173*
|
||||||
|
usb:v06CBp0106*
|
||||||
ID_AUTOSUSPEND=1
|
ID_AUTOSUSPEND=1
|
||||||
ID_PERSIST=0
|
ID_PERSIST=0
|
||||||
|
|
||||||
@@ -284,6 +306,7 @@ usb:v138Ap0091*
|
|||||||
ID_PERSIST=0
|
ID_PERSIST=0
|
||||||
|
|
||||||
# Known unsupported devices
|
# Known unsupported devices
|
||||||
|
usb:v047Dp00F2*
|
||||||
usb:v04E8p730B*
|
usb:v04E8p730B*
|
||||||
usb:v04F3p036B*
|
usb:v04F3p036B*
|
||||||
usb:v04F3p0C00*
|
usb:v04F3p0C00*
|
||||||
@@ -291,12 +314,16 @@ usb:v04F3p0C4C*
|
|||||||
usb:v04F3p0C57*
|
usb:v04F3p0C57*
|
||||||
usb:v04F3p0C5E*
|
usb:v04F3p0C5E*
|
||||||
usb:v04F3p0C5A*
|
usb:v04F3p0C5A*
|
||||||
|
usb:v04F3p0C6C*
|
||||||
usb:v04F3p0C70*
|
usb:v04F3p0C70*
|
||||||
usb:v04F3p0C72*
|
usb:v04F3p0C72*
|
||||||
|
usb:v04F3p0C77*
|
||||||
usb:v04F3p2706*
|
usb:v04F3p2706*
|
||||||
|
usb:v04F3p3032*
|
||||||
usb:v04F3p3057*
|
usb:v04F3p3057*
|
||||||
usb:v04F3p3104*
|
usb:v04F3p3104*
|
||||||
usb:v04F3p310D*
|
usb:v04F3p310D*
|
||||||
|
usb:v04F3p3128*
|
||||||
usb:v06CBp0081*
|
usb:v06CBp0081*
|
||||||
usb:v06CBp0088*
|
usb:v06CBp0088*
|
||||||
usb:v06CBp008A*
|
usb:v06CBp008A*
|
||||||
@@ -330,6 +357,7 @@ usb:v0BDAp5812*
|
|||||||
usb:v10A5p0007*
|
usb:v10A5p0007*
|
||||||
usb:v10A5p9200*
|
usb:v10A5p9200*
|
||||||
usb:v10A5p9800*
|
usb:v10A5p9800*
|
||||||
|
usb:v10A5pE340*
|
||||||
usb:v1188p9545*
|
usb:v1188p9545*
|
||||||
usb:v138Ap0007*
|
usb:v138Ap0007*
|
||||||
usb:v138Ap003A*
|
usb:v138Ap003A*
|
||||||
@@ -342,12 +370,14 @@ usb:v138Ap0094*
|
|||||||
usb:v138Ap0097*
|
usb:v138Ap0097*
|
||||||
usb:v138Ap009D*
|
usb:v138Ap009D*
|
||||||
usb:v138Ap00AB*
|
usb:v138Ap00AB*
|
||||||
|
usb:v138Ap00A6*
|
||||||
usb:v147Ep1002*
|
usb:v147Ep1002*
|
||||||
usb:v1491p0088*
|
usb:v1491p0088*
|
||||||
usb:v16D1p1027*
|
usb:v16D1p1027*
|
||||||
usb:v1C7Ap0300*
|
usb:v1C7Ap0300*
|
||||||
usb:v1C7Ap0575*
|
usb:v1C7Ap0575*
|
||||||
usb:v1C7Ap0576*
|
usb:v1C7Ap0576*
|
||||||
|
usb:v1C7Ap0577*
|
||||||
usb:v27C6p5042*
|
usb:v27C6p5042*
|
||||||
usb:v27C6p5110*
|
usb:v27C6p5110*
|
||||||
usb:v27C6p5117*
|
usb:v27C6p5117*
|
||||||
@@ -375,6 +405,8 @@ usb:v27C6p55B4*
|
|||||||
usb:v27C6p5740*
|
usb:v27C6p5740*
|
||||||
usb:v27C6p5E0A*
|
usb:v27C6p5E0A*
|
||||||
usb:v27C6p581A*
|
usb:v27C6p581A*
|
||||||
|
usb:v27C6p589A*
|
||||||
|
usb:v27C6p6382*
|
||||||
usb:v2808p9338*
|
usb:v2808p9338*
|
||||||
usb:v2808p93A9*
|
usb:v2808p93A9*
|
||||||
usb:v298Dp2020*
|
usb:v298Dp2020*
|
||||||
|
|||||||
Vendored
+10
@@ -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.
|
||||||
Vendored
+14
@@ -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`.
|
||||||
Vendored
+1012
File diff suppressed because it is too large
Load Diff
Vendored
+203
@@ -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.
|
||||||
Vendored
+45
@@ -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
@@ -0,0 +1,2 @@
|
|||||||
|
NEWS
|
||||||
|
README.md
|
||||||
+8
@@ -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
|
||||||
Vendored
+19
@@ -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
|
||||||
|
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/${DEB_HOST_MULTIARCH}/girepository-1.0/FPrint-*.typelib
|
||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
usr/lib/udev/hwdb.d/
|
||||||
|
usr/lib/udev/rules.d/
|
||||||
|
usr/lib/${DEB_HOST_MULTIARCH}/libfprint-[0-9].so.*
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
# For security reasons, we don't want the fingerprint readers to be accessible
|
||||||
|
# by unprivileged users
|
||||||
|
udev-rule-missing-uaccess
|
||||||
Vendored
+315
@@ -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
|
||||||
Vendored
+17
@@ -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
|
||||||
Vendored
+94
@@ -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
|
||||||
Vendored
+4
@@ -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
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
usr/share/gtk-doc/*/libfprint-*
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
usr/libexec/installed-tests/libfprint-[0-9]
|
||||||
|
usr/share/installed-tests/libfprint-[0-9]
|
||||||
Vendored
+3
@@ -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
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/${DEB_HOST_MULTIARCH}/libfprint-[0-9]-tod.so.*
|
||||||
Vendored
+239
@@ -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
@@ -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
@@ -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 */
|
||||||
|
};
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
+44
@@ -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 },
|
||||||
Vendored
+7
@@ -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
|
||||||
|
|
||||||
@@ -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 */
|
||||||
|
};
|
||||||
|
|
||||||
+26
@@ -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
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
||||||
Vendored
+3
@@ -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]
|
||||||
Vendored
+6
@@ -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
@@ -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
|
||||||
Vendored
+4
@@ -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
|
||||||
Vendored
+5
@@ -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@
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"app-id": "org.freedesktop.libfprint.Demo",
|
"app-id": "org.freedesktop.libfprint.Demo",
|
||||||
"runtime": "org.gnome.Platform",
|
"runtime": "org.gnome.Platform",
|
||||||
"runtime-version": "42",
|
"runtime-version": "master",
|
||||||
"sdk": "org.gnome.Sdk",
|
"sdk": "org.gnome.Sdk",
|
||||||
"command": "gtk-libfprint-test",
|
"command": "gtk-libfprint-test",
|
||||||
"finish-args": [
|
"finish-args": [
|
||||||
@@ -38,24 +38,24 @@
|
|||||||
{
|
{
|
||||||
"name": "libgusb",
|
"name": "libgusb",
|
||||||
"buildsystem": "meson",
|
"buildsystem": "meson",
|
||||||
"config-opts": [ "-Dtests=false", "-Dvapi=false", "-Ddocs=false", "-Dintrospection=false" ],
|
"config-opts": [ "-Dtests=false", "-Dvapi=false", "-Ddocs=false" ],
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"type": "archive",
|
"type": "archive",
|
||||||
"url": "https://github.com/hughsie/libgusb/archive/0.3.0.tar.gz",
|
"url": "https://github.com/hughsie/libgusb/releases/download/0.4.6/libgusb-0.4.6.tar.xz",
|
||||||
"sha256": "b36310f8405d5fd68f6caf4a829f7ab4c627b38fd3d02a139d411fce0f3a49f1"
|
"sha256": "1b0422bdcd72183272ac42eec9398c5a0bc48a02f618fa3242c468cbbd003049"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "gudev",
|
"name": "gudev",
|
||||||
"buildsystem": "meson",
|
"buildsystem": "meson",
|
||||||
"config-opts": [ "-Dtests=disabled", "-Dintrospection=disabled" ],
|
"config-opts": [ "-Dtests=disabled", "-Dintrospection=disabled", "-Dvapi=disabled" ],
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"type": "archive",
|
"type": "archive",
|
||||||
"url": "https://download.gnome.org/sources/libgudev/236/libgudev-236.tar.xz",
|
"url": "https://download.gnome.org/sources/libgudev/238/libgudev-238.tar.xz",
|
||||||
"sha256": "e50369d06d594bae615eb7aeb787de304ebaad07a26d1043cef8e9c7ab7c9524"
|
"sha256": "61266ab1afc9d73dbc60a8b2af73e99d2fdff47d99544d085760e4fa667b5dd1"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@ content_files = [
|
|||||||
|
|
||||||
expand_content_files = 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')
|
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
|
||||||
docpath = join_paths(get_option('datadir'), 'gtk-doc', 'html')
|
docpath = join_paths(get_option('datadir'), 'gtk-doc', 'html')
|
||||||
|
|
||||||
|
|||||||
@@ -26,3 +26,13 @@ if installed_tests
|
|||||||
install_subdir('prints',
|
install_subdir('prints',
|
||||||
install_dir: installed_tests_testdir)
|
install_dir: installed_tests_testdir)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if get_option('tod')
|
||||||
|
executable('tod-inspector',
|
||||||
|
sources: 'tod-inspector.c',
|
||||||
|
dependencies: [
|
||||||
|
libfprint_dep,
|
||||||
|
tod_dep,
|
||||||
|
],
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|||||||
@@ -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 ();
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||||
@@ -50,9 +50,9 @@ elanmoc_compose_cmd (
|
|||||||
const struct elanmoc_cmd *cmd_info
|
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)
|
if(cmd_info->cmd_len < ELAN_MAX_HDR_LEN)
|
||||||
memcpy (cmd_buf, &cmd_info->cmd_header, cmd_info->cmd_len);
|
memcpy (cmd_buf, &cmd_info->cmd_header, cmd_info->cmd_len);
|
||||||
else
|
else
|
||||||
|
|||||||
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;
|
||||||
|
};
|
||||||
@@ -1374,6 +1374,7 @@ gx_fp_probe (FpDevice *device)
|
|||||||
case 0x63AC:
|
case 0x63AC:
|
||||||
case 0x63BC:
|
case 0x63BC:
|
||||||
case 0x63CC:
|
case 0x63CC:
|
||||||
|
case 0x6582:
|
||||||
case 0x6A94:
|
case 0x6A94:
|
||||||
case 0x659A:
|
case 0x659A:
|
||||||
self->max_enroll_stage = 12;
|
self->max_enroll_stage = 12;
|
||||||
@@ -1623,6 +1624,7 @@ static const FpIdEntry id_table[] = {
|
|||||||
{ .vid = 0x27c6, .pid = 0x63BC, },
|
{ .vid = 0x27c6, .pid = 0x63BC, },
|
||||||
{ .vid = 0x27c6, .pid = 0x63CC, },
|
{ .vid = 0x27c6, .pid = 0x63CC, },
|
||||||
{ .vid = 0x27c6, .pid = 0x6496, },
|
{ .vid = 0x27c6, .pid = 0x6496, },
|
||||||
|
{ .vid = 0x27c6, .pid = 0x6582, },
|
||||||
{ .vid = 0x27c6, .pid = 0x6584, },
|
{ .vid = 0x27c6, .pid = 0x6584, },
|
||||||
{ .vid = 0x27c6, .pid = 0x658C, },
|
{ .vid = 0x27c6, .pid = 0x658C, },
|
||||||
{ .vid = 0x27c6, .pid = 0x6592, },
|
{ .vid = 0x27c6, .pid = 0x6592, },
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -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},
|
||||||
|
};
|
||||||
@@ -40,11 +40,14 @@ static const FpIdEntry id_table[] = {
|
|||||||
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x00F0, },
|
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x00F0, },
|
||||||
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0103, },
|
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0103, },
|
||||||
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0123, },
|
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0123, },
|
||||||
|
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0124, },
|
||||||
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0126, },
|
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0126, },
|
||||||
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0129, },
|
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0129, },
|
||||||
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0168, },
|
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0168, },
|
||||||
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x015F, },
|
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x015F, },
|
||||||
{ .vid = SYNAPTICS_VENDOR_ID, .pid = 0x0104, },
|
{ .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 */
|
{ .vid = 0, .pid = 0, .driver_data = 0 }, /* terminating entry */
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -106,7 +109,11 @@ cmd_receive_cb (FpiUsbTransfer *transfer,
|
|||||||
|
|
||||||
if (self->cmd_complete_on_removal)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -641,18 +648,21 @@ verify (FpDevice *device)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
identify_complete_after_finger_removal (FpiDeviceSynaptics *self)
|
identify_complete_after_finger_removal (FpiDeviceSynaptics *self, GError *error)
|
||||||
{
|
{
|
||||||
FpDevice *device = FP_DEVICE (self);
|
FpDevice *device = FP_DEVICE (self);
|
||||||
|
|
||||||
if (self->finger_on_sensor)
|
if (self->finger_on_sensor)
|
||||||
{
|
{
|
||||||
fp_dbg ("delaying identify report until after finger removal!");
|
fp_dbg ("delaying identify report until after finger removal!");
|
||||||
|
if (error)
|
||||||
|
g_propagate_error (&self->delay_error, error);
|
||||||
|
|
||||||
self->cmd_complete_on_removal = TRUE;
|
self->cmd_complete_on_removal = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fpi_device_identify_complete (device, NULL);
|
fpi_device_identify_complete (device, error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -702,19 +712,18 @@ identify_msg_cb (FpiDeviceSynaptics *self,
|
|||||||
fp_info ("Match error occurred");
|
fp_info ("Match error occurred");
|
||||||
fpi_device_identify_report (device, NULL, NULL,
|
fpi_device_identify_report (device, NULL, NULL,
|
||||||
fpi_device_retry_new (FP_DEVICE_RETRY_GENERAL));
|
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)
|
else if (resp->result == BMKT_FP_NO_MATCH)
|
||||||
{
|
{
|
||||||
fp_info ("Print didn't match");
|
fp_info ("Print didn't match");
|
||||||
fpi_device_identify_report (device, NULL, NULL, NULL);
|
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");
|
fp_info ("Print is not in database");
|
||||||
fpi_device_identify_complete (device,
|
identify_complete_after_finger_removal (self, fpi_device_error_new (FP_DEVICE_ERROR_DATA_NOT_FOUND));
|
||||||
fpi_device_error_new (FP_DEVICE_ERROR_DATA_NOT_FOUND));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -750,7 +759,7 @@ identify_msg_cb (FpiDeviceSynaptics *self,
|
|||||||
else
|
else
|
||||||
fpi_device_identify_report (device, NULL, print, NULL);
|
fpi_device_identify_report (device, NULL, print, NULL);
|
||||||
|
|
||||||
identify_complete_after_finger_removal (self);
|
identify_complete_after_finger_removal (self, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,4 +127,5 @@ struct _FpiDeviceSynaptics
|
|||||||
|
|
||||||
struct syna_enroll_resp_data enroll_resp_data;
|
struct syna_enroll_resp_data enroll_resp_data;
|
||||||
syna_state_t state;
|
syna_state_t state;
|
||||||
|
GError *delay_error;
|
||||||
};
|
};
|
||||||
|
|||||||
+20
-15
@@ -27,6 +27,10 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBFPRINT_TOD
|
||||||
|
#include "tod/tod-shared-loader.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_UDEV
|
#ifdef HAVE_UDEV
|
||||||
#include <gudev/gudev.h>
|
#include <gudev/gudev.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -67,32 +71,26 @@ enum {
|
|||||||
static guint signals[LAST_SIGNAL] = { 0 };
|
static guint signals[LAST_SIGNAL] = { 0 };
|
||||||
|
|
||||||
static const char *
|
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
|
static gboolean
|
||||||
is_driver_allowed (const gchar *driver)
|
is_driver_allowed (const gchar *driver)
|
||||||
{
|
{
|
||||||
g_auto(GStrv) whitelisted_drivers = NULL;
|
g_auto(GStrv) allowlisted_drivers = NULL;
|
||||||
const char *fp_drivers_whitelist_env;
|
const char *fp_drivers_allowlist_env;
|
||||||
int i;
|
|
||||||
|
|
||||||
g_return_val_if_fail (driver, TRUE);
|
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;
|
return TRUE;
|
||||||
|
|
||||||
whitelisted_drivers = g_strsplit (fp_drivers_whitelist_env, ":", -1);
|
allowlisted_drivers = g_strsplit (fp_drivers_allowlist_env, ":", -1);
|
||||||
|
return g_strv_contains ((const gchar * const *) allowlisted_drivers, driver);
|
||||||
for (i = 0; whitelisted_drivers[i]; ++i)
|
|
||||||
if (g_strcmp0 (driver, whitelisted_drivers[i]) == 0)
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -302,6 +300,8 @@ fp_context_finalize (GObject *object)
|
|||||||
g_object_run_dispose (G_OBJECT (priv->usb_ctx));
|
g_object_run_dispose (G_OBJECT (priv->usb_ctx));
|
||||||
g_clear_object (&priv->usb_ctx);
|
g_clear_object (&priv->usb_ctx);
|
||||||
|
|
||||||
|
tod_shared_drivers_unregister ();
|
||||||
|
|
||||||
G_OBJECT_CLASS (fp_context_parent_class)->finalize (object);
|
G_OBJECT_CLASS (fp_context_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -357,6 +357,7 @@ static void
|
|||||||
fp_context_init (FpContext *self)
|
fp_context_init (FpContext *self)
|
||||||
{
|
{
|
||||||
g_autoptr(GError) error = NULL;
|
g_autoptr(GError) error = NULL;
|
||||||
|
g_autoptr(GArray) shared_drivers = NULL;
|
||||||
FpContextPrivate *priv = fp_context_get_instance_private (self);
|
FpContextPrivate *priv = fp_context_get_instance_private (self);
|
||||||
guint i;
|
guint i;
|
||||||
|
|
||||||
@@ -364,7 +365,11 @@ fp_context_init (FpContext *self)
|
|||||||
|
|
||||||
priv->drivers = fpi_get_driver_types ();
|
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;)
|
for (i = 0; i < priv->drivers->len;)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ typedef struct
|
|||||||
FpDeviceType type;
|
FpDeviceType type;
|
||||||
|
|
||||||
GUsbDevice *usb_device;
|
GUsbDevice *usb_device;
|
||||||
const gchar *virtual_env;
|
gchar *virtual_env;
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
gchar *spidev_path;
|
gchar *spidev_path;
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ G_DECLARE_DERIVABLE_TYPE (FpDevice, fp_device, FP, DEVICE, GObject)
|
|||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
FP_DEVICE_TYPE_VIRTUAL,
|
FP_DEVICE_TYPE_VIRTUAL,
|
||||||
FP_DEVICE_TYPE_UDEV,
|
|
||||||
FP_DEVICE_TYPE_USB,
|
FP_DEVICE_TYPE_USB,
|
||||||
|
FP_DEVICE_TYPE_UDEV,
|
||||||
} FpDeviceType;
|
} FpDeviceType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+117
-75
@@ -160,60 +160,65 @@ fp_image_init (FpImage *self)
|
|||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
GAsyncReadyCallback user_cb;
|
|
||||||
struct fp_minutiae *minutiae;
|
struct fp_minutiae *minutiae;
|
||||||
gint width, height;
|
|
||||||
gdouble ppmm;
|
|
||||||
FpiImageFlags flags;
|
|
||||||
guchar *image;
|
|
||||||
guchar *binarized;
|
guchar *binarized;
|
||||||
} DetectMinutiaeData;
|
FpiImageFlags flags;
|
||||||
|
unsigned char *image;
|
||||||
|
gboolean image_changed;
|
||||||
|
} DetectMinutiaeNbisData;
|
||||||
|
|
||||||
static void
|
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->minutiae, free_minutiae);
|
||||||
g_clear_pointer (&data->binarized, g_free);
|
g_clear_pointer (&data->binarized, g_free);
|
||||||
|
|
||||||
|
if (data->image_changed)
|
||||||
|
g_clear_pointer (&data->image, g_free);
|
||||||
|
|
||||||
g_free (data);
|
g_free (data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC (DetectMinutiaeNbisData, fp_image_detect_minutiae_free)
|
||||||
fp_image_detect_minutiae_cb (GObject *source_object,
|
|
||||||
GAsyncResult *res,
|
|
||||||
gpointer user_data)
|
static gboolean
|
||||||
|
fp_image_detect_minutiae_nbis_finish (FpImage *self,
|
||||||
|
GTask *task,
|
||||||
|
GError **error)
|
||||||
{
|
{
|
||||||
GTask *task = G_TASK (res);
|
g_autoptr(DetectMinutiaeNbisData) data = NULL;
|
||||||
FpImage *image;
|
|
||||||
DetectMinutiaeData *data = g_task_get_task_data (task);
|
|
||||||
|
|
||||||
if (!g_task_had_error (task))
|
data = g_task_propagate_pointer (task, error);
|
||||||
|
|
||||||
|
if (data != NULL)
|
||||||
{
|
{
|
||||||
gint i;
|
self->flags = data->flags;
|
||||||
image = FP_IMAGE (source_object);
|
|
||||||
|
|
||||||
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);
|
g_clear_pointer (&self->binarized, g_free);
|
||||||
image->data = g_steal_pointer (&data->image);
|
self->binarized = g_steal_pointer (&data->binarized);
|
||||||
|
|
||||||
g_clear_pointer (&image->binarized, g_free);
|
g_clear_pointer (&self->minutiae, g_ptr_array_unref);
|
||||||
image->binarized = g_steal_pointer (&data->binarized);
|
self->minutiae = g_ptr_array_new_full (data->minutiae->num,
|
||||||
|
(GDestroyNotify) free_minutia);
|
||||||
|
|
||||||
g_clear_pointer (&image->minutiae, g_ptr_array_unref);
|
for (int i = 0; i < data->minutiae->num; i++)
|
||||||
image->minutiae = g_ptr_array_new_full (data->minutiae->num,
|
g_ptr_array_add (self->minutiae,
|
||||||
(GDestroyNotify) free_minutia);
|
|
||||||
|
|
||||||
for (i = 0; i < data->minutiae->num; i++)
|
|
||||||
g_ptr_array_add (image->minutiae,
|
|
||||||
g_steal_pointer (&data->minutiae->list[i]));
|
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;
|
data->minutiae->num = 0;
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data->user_cb)
|
return FALSE;
|
||||||
data->user_cb (source_object, res, user_data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -266,70 +271,83 @@ invert_colors (guint8 *data, gint width, gint height)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
fp_image_detect_minutiae_thread_func (GTask *task,
|
fp_image_detect_minutiae_nbis_thread_func (GTask *task,
|
||||||
gpointer source_object,
|
gpointer source_object,
|
||||||
gpointer task_data,
|
gpointer task_data,
|
||||||
GCancellable *cancellable)
|
GCancellable *cancellable)
|
||||||
{
|
{
|
||||||
g_autoptr(GTimer) timer = NULL;
|
g_autoptr(GTimer) timer = NULL;
|
||||||
DetectMinutiaeData *data = task_data;
|
g_autoptr(DetectMinutiaeNbisData) ret_data = NULL;
|
||||||
struct fp_minutiae *minutiae = NULL;
|
g_autoptr(GTask) thread_task = g_steal_pointer (&task);
|
||||||
g_autofree gint *direction_map = NULL;
|
g_autofree gint *direction_map = NULL;
|
||||||
g_autofree gint *low_contrast_map = NULL;
|
g_autofree gint *low_contrast_map = NULL;
|
||||||
g_autofree gint *low_flow_map = NULL;
|
g_autofree gint *low_flow_map = NULL;
|
||||||
g_autofree gint *high_curve_map = NULL;
|
g_autofree gint *high_curve_map = NULL;
|
||||||
g_autofree gint *quality_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 map_w, map_h;
|
||||||
gint bw, bh, bd;
|
gint bw, bh, bd;
|
||||||
gint r;
|
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 */
|
/* Normalize the image first */
|
||||||
if (data->flags & FPI_IMAGE_H_FLIPPED)
|
if (self->flags & FPI_IMAGE_H_FLIPPED)
|
||||||
hflip (data->image, data->width, data->height);
|
hflip (image, self->width, self->height);
|
||||||
|
|
||||||
if (data->flags & FPI_IMAGE_V_FLIPPED)
|
if (self->flags & FPI_IMAGE_V_FLIPPED)
|
||||||
vflip (data->image, data->width, data->height);
|
vflip (image, self->width, self->height);
|
||||||
|
|
||||||
if (data->flags & FPI_IMAGE_COLORS_INVERTED)
|
if (self->flags & FPI_IMAGE_COLORS_INVERTED)
|
||||||
invert_colors (data->image, data->width, data->height);
|
invert_colors (image, self->width, self->height);
|
||||||
|
|
||||||
data->flags &= ~(FPI_IMAGE_H_FLIPPED | FPI_IMAGE_V_FLIPPED | FPI_IMAGE_COLORS_INVERTED);
|
|
||||||
|
|
||||||
lfsparms = g_memdup2 (&g_lfsparms_V2, sizeof (LFSPARMS));
|
lfsparms = g_memdup2 (&g_lfsparms_V2, sizeof (LFSPARMS));
|
||||||
lfsparms->remove_perimeter_pts = data->flags & FPI_IMAGE_PARTIAL ? TRUE : FALSE;
|
lfsparms->remove_perimeter_pts = minutiae_flags & FPI_IMAGE_PARTIAL ? TRUE : FALSE;
|
||||||
|
|
||||||
timer = g_timer_new ();
|
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,
|
&low_contrast_map, &low_flow_map, &high_curve_map,
|
||||||
&map_w, &map_h, &bdata, &bw, &bh, &bd,
|
&map_w, &map_h, &ret_data->binarized, &bw, &bh, &bd,
|
||||||
data->image, data->width, data->height, 8,
|
image, self->width, self->height, 8,
|
||||||
data->ppmm, lfsparms);
|
self->ppmm, lfsparms);
|
||||||
g_timer_stop (timer);
|
g_timer_stop (timer);
|
||||||
fp_dbg ("Minutiae scan completed in %f secs", g_timer_elapsed (timer, NULL));
|
fp_dbg ("Minutiae scan completed in %f secs", g_timer_elapsed (timer, NULL));
|
||||||
|
|
||||||
data->binarized = g_steal_pointer (&bdata);
|
if (g_task_had_error (thread_task))
|
||||||
data->minutiae = minutiae;
|
return;
|
||||||
|
|
||||||
if (r)
|
if (r)
|
||||||
{
|
{
|
||||||
fp_err ("get minutiae failed, code %d", 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_task_return_new_error (thread_task, G_IO_ERROR,
|
||||||
g_object_unref (task);
|
G_IO_ERROR_FAILED,
|
||||||
|
"Minutiae scan failed with code %d", r);
|
||||||
return;
|
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");
|
"No minutiae found");
|
||||||
g_object_unref (task);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_task_return_boolean (task, TRUE);
|
g_task_return_pointer (thread_task, g_steal_pointer (&ret_data),
|
||||||
g_object_unref (task);
|
(GDestroyNotify) fp_image_detect_minutiae_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -445,21 +463,25 @@ fp_image_detect_minutiae (FpImage *self,
|
|||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
GTask *task;
|
g_autoptr(GTask) task = NULL;
|
||||||
DetectMinutiaeData *data = g_new0 (DetectMinutiaeData, 1);
|
|
||||||
|
|
||||||
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);
|
task = g_task_new (self, cancellable, callback, user_data);
|
||||||
memcpy (data->image, self->data, self->width * self->height);
|
g_task_set_source_tag (task, fp_image_detect_minutiae);
|
||||||
data->flags = self->flags;
|
g_task_set_check_cancellable (task, TRUE);
|
||||||
data->width = self->width;
|
|
||||||
data->height = self->height;
|
|
||||||
data->ppmm = self->ppmm;
|
|
||||||
data->user_cb = callback;
|
|
||||||
|
|
||||||
g_task_set_task_data (task, data, (GDestroyNotify) fp_image_detect_minutiae_free);
|
if (!g_atomic_int_compare_and_exchange (&self->detection_in_progress,
|
||||||
g_task_run_in_thread (task, fp_image_detect_minutiae_thread_func);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -477,7 +499,27 @@ fp_image_detect_minutiae_finish (FpImage *self,
|
|||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
GError **error)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+11
-11
@@ -721,13 +721,12 @@ fp_print_serialize (FpPrint *print,
|
|||||||
|
|
||||||
result = g_variant_builder_end (&builder);
|
result = g_variant_builder_end (&builder);
|
||||||
|
|
||||||
if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
||||||
{
|
GVariant *tmp;
|
||||||
GVariant *tmp;
|
tmp = g_variant_byteswap (result);
|
||||||
tmp = g_variant_byteswap (result);
|
g_variant_unref (result);
|
||||||
g_variant_unref (result);
|
result = tmp;
|
||||||
result = tmp;
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
len = g_variant_get_size (result);
|
len = g_variant_get_size (result);
|
||||||
/* Add 3 bytes of header */
|
/* Add 3 bytes of header */
|
||||||
@@ -800,10 +799,11 @@ fp_print_deserialize (const guchar *data,
|
|||||||
if (!raw_value)
|
if (!raw_value)
|
||||||
goto invalid_format;
|
goto invalid_format;
|
||||||
|
|
||||||
if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
||||||
value = g_variant_byteswap (raw_value);
|
value = g_variant_byteswap (raw_value);
|
||||||
else
|
#else
|
||||||
value = g_variant_get_normal_form (raw_value);
|
value = g_variant_get_normal_form (raw_value);
|
||||||
|
#endif
|
||||||
|
|
||||||
g_variant_get (value,
|
g_variant_get (value,
|
||||||
"(i&s&sbymsmsi@a{sv}v)",
|
"(i&s&sbymsmsi@a{sv}v)",
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "fp-image.h"
|
#include "fp-image.h"
|
||||||
|
#include "tod/tod-macros.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fpi_frame:
|
* fpi_frame:
|
||||||
@@ -110,6 +111,9 @@ struct fpi_line_asmbl_ctx
|
|||||||
unsigned char (*get_pixel)(struct fpi_line_asmbl_ctx *ctx,
|
unsigned char (*get_pixel)(struct fpi_line_asmbl_ctx *ctx,
|
||||||
GSList *line,
|
GSList *line,
|
||||||
unsigned int x);
|
unsigned int x);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
TOD_PADDING (32, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
FpImage *fpi_assemble_lines (struct fpi_line_asmbl_ctx *ctx,
|
FpImage *fpi_assemble_lines (struct fpi_line_asmbl_ctx *ctx,
|
||||||
|
|||||||
@@ -20,36 +20,6 @@
|
|||||||
|
|
||||||
#include <glib-object.h>
|
#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 !GLIB_CHECK_VERSION (2, 68, 0)
|
|
||||||
#define g_memdup2(data, size) g_memdup ((data), (size))
|
|
||||||
#else
|
|
||||||
#define g_memdup2(data, size) \
|
|
||||||
(G_GNUC_EXTENSION ({ \
|
|
||||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
|
|
||||||
g_memdup2 ((data), (size)); \
|
|
||||||
G_GNUC_END_IGNORE_DEPRECATIONS \
|
|
||||||
}))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if __GNUC__ > 10 || (__GNUC__ == 10 && __GNUC_MINOR__ >= 1)
|
#if __GNUC__ > 10 || (__GNUC__ == 10 && __GNUC_MINOR__ >= 1)
|
||||||
#define FP_GNUC_ACCESS(m, p, s) __attribute__((access (m, p, s)))
|
#define FP_GNUC_ACCESS(m, p, s) __attribute__((access (m, p, s)))
|
||||||
#else
|
#else
|
||||||
|
|||||||
+32
-9
@@ -23,6 +23,7 @@
|
|||||||
#include "fp-device.h"
|
#include "fp-device.h"
|
||||||
#include "fp-image.h"
|
#include "fp-image.h"
|
||||||
#include "fpi-print.h"
|
#include "fpi-print.h"
|
||||||
|
#include "tod/tod-macros.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FpiDeviceUdevSubtypeFlags:
|
* FpiDeviceUdevSubtypeFlags:
|
||||||
@@ -55,6 +56,12 @@ struct _FpIdEntry
|
|||||||
guint vid;
|
guint vid;
|
||||||
};
|
};
|
||||||
const gchar *virtual_envvar;
|
const gchar *virtual_envvar;
|
||||||
|
};
|
||||||
|
guint64 driver_data;
|
||||||
|
|
||||||
|
/* Elements added after TODv1 */
|
||||||
|
union
|
||||||
|
{
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
FpiDeviceUdevSubtypeFlags udev_types;
|
FpiDeviceUdevSubtypeFlags udev_types;
|
||||||
@@ -66,7 +73,13 @@ struct _FpIdEntry
|
|||||||
} hid_id;
|
} 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;
|
const gchar *full_name;
|
||||||
FpDeviceType type;
|
FpDeviceType type;
|
||||||
const FpIdEntry *id_table;
|
const FpIdEntry *id_table;
|
||||||
FpDeviceFeature features;
|
|
||||||
|
|
||||||
/* Defaults for device properties */
|
/* Defaults for device properties */
|
||||||
gint nr_enroll_stages;
|
gint nr_enroll_stages;
|
||||||
FpScanType scan_type;
|
FpScanType scan_type;
|
||||||
|
|
||||||
/* Simple device temperature model constants */
|
|
||||||
gint32 temp_hot_seconds;
|
|
||||||
gint32 temp_cold_seconds;
|
|
||||||
|
|
||||||
/* Callbacks */
|
/* Callbacks */
|
||||||
gint (*usb_discover) (GUsbDevice *usb_device);
|
gint (*usb_discover) (GUsbDevice *usb_device);
|
||||||
void (*probe) (FpDevice *device);
|
void (*probe) (FpDevice *device);
|
||||||
@@ -168,11 +176,26 @@ struct _FpDeviceClass
|
|||||||
void (*capture) (FpDevice *device);
|
void (*capture) (FpDevice *device);
|
||||||
void (*list) (FpDevice *device);
|
void (*list) (FpDevice *device);
|
||||||
void (*delete) (FpDevice * device);
|
void (*delete) (FpDevice * device);
|
||||||
void (*clear_storage) (FpDevice * device);
|
|
||||||
|
|
||||||
void (*cancel) (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);
|
void fpi_device_class_auto_initialize_features (FpDeviceClass *device_class);
|
||||||
|
|||||||
@@ -62,12 +62,12 @@
|
|||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
FPI_IMAGE_DEVICE_STATE_INACTIVE,
|
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_AWAIT_FINGER_ON,
|
||||||
FPI_IMAGE_DEVICE_STATE_CAPTURE,
|
FPI_IMAGE_DEVICE_STATE_CAPTURE,
|
||||||
FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF,
|
FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF,
|
||||||
|
FPI_IMAGE_DEVICE_STATE_ACTIVATING,
|
||||||
|
FPI_IMAGE_DEVICE_STATE_DEACTIVATING,
|
||||||
|
FPI_IMAGE_DEVICE_STATE_IDLE,
|
||||||
} FpiImageDeviceState;
|
} FpiImageDeviceState;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -114,6 +114,10 @@ struct _FpImageDeviceClass
|
|||||||
void (*change_state) (FpImageDevice *dev,
|
void (*change_state) (FpImageDevice *dev,
|
||||||
FpiImageDeviceState state);
|
FpiImageDeviceState state);
|
||||||
void (*deactivate) (FpImageDevice *dev);
|
void (*deactivate) (FpImageDevice *dev);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
/* padding for future expansion */
|
||||||
|
TOD_PADDING (32, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
void fpi_image_device_set_bz3_threshold (FpImageDevice *self,
|
void fpi_image_device_set_bz3_threshold (FpImageDevice *self,
|
||||||
|
|||||||
@@ -21,9 +21,11 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "fp-image.h"
|
#include "fp-image.h"
|
||||||
|
#include "tod/tod-macros.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FpiImageFlags:
|
* FpiImageFlags:
|
||||||
|
* @FPI_IMAGE_NONE: no flag set
|
||||||
* @FPI_IMAGE_V_FLIPPED: the image is vertically flipped
|
* @FPI_IMAGE_V_FLIPPED: the image is vertically flipped
|
||||||
* @FPI_IMAGE_H_FLIPPED: the image is horizontally flipped
|
* @FPI_IMAGE_H_FLIPPED: the image is horizontally flipped
|
||||||
* @FPI_IMAGE_COLORS_INVERTED: the colours are inverted
|
* @FPI_IMAGE_COLORS_INVERTED: the colours are inverted
|
||||||
@@ -33,6 +35,7 @@
|
|||||||
* rely on the image to be normalized by libfprint before further processing.
|
* rely on the image to be normalized by libfprint before further processing.
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
FPI_IMAGE_NONE = 0,
|
||||||
FPI_IMAGE_V_FLIPPED = 1 << 0,
|
FPI_IMAGE_V_FLIPPED = 1 << 0,
|
||||||
FPI_IMAGE_H_FLIPPED = 1 << 1,
|
FPI_IMAGE_H_FLIPPED = 1 << 1,
|
||||||
FPI_IMAGE_COLORS_INVERTED = 1 << 2,
|
FPI_IMAGE_COLORS_INVERTED = 1 << 2,
|
||||||
@@ -67,7 +70,12 @@ struct _FpImage
|
|||||||
guint8 *binarized;
|
guint8 *binarized;
|
||||||
|
|
||||||
GPtrArray *minutiae;
|
GPtrArray *minutiae;
|
||||||
|
/* Unused */
|
||||||
guint ref_count;
|
guint ref_count;
|
||||||
|
|
||||||
|
gboolean detection_in_progress;
|
||||||
|
|
||||||
|
TOD_PADDING (32, sizeof (gboolean));
|
||||||
};
|
};
|
||||||
|
|
||||||
gint fpi_std_sq_dev (const guint8 *buf,
|
gint fpi_std_sq_dev (const guint8 *buf,
|
||||||
|
|||||||
@@ -73,6 +73,9 @@ struct _FpiSpiTransfer
|
|||||||
/* Data free function */
|
/* Data free function */
|
||||||
GDestroyNotify free_buffer_wr;
|
GDestroyNotify free_buffer_wr;
|
||||||
GDestroyNotify free_buffer_rd;
|
GDestroyNotify free_buffer_rd;
|
||||||
|
|
||||||
|
/* padding for future expansion */
|
||||||
|
TOD_PADDING (32, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
GType fpi_spi_transfer_get_type (void) G_GNUC_CONST;
|
GType fpi_spi_transfer_get_type (void) G_GNUC_CONST;
|
||||||
|
|||||||
+5
-1
@@ -73,7 +73,7 @@
|
|||||||
struct _FpiSsm
|
struct _FpiSsm
|
||||||
{
|
{
|
||||||
FpDevice *dev;
|
FpDevice *dev;
|
||||||
const char *name;
|
char *name;
|
||||||
FpiSsm *parentsm;
|
FpiSsm *parentsm;
|
||||||
gpointer ssm_data;
|
gpointer ssm_data;
|
||||||
GDestroyNotify ssm_data_destroy;
|
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);
|
fpi_ssm_spi_transfer_cb (transfer, device, weak_ptr, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TOD_LIBRARY
|
||||||
|
#include "tod/tod-fpi-ssm.c"
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -102,6 +102,9 @@ struct _FpiUsbTransfer
|
|||||||
|
|
||||||
/* Data free function */
|
/* Data free function */
|
||||||
GDestroyNotify free_buffer;
|
GDestroyNotify free_buffer;
|
||||||
|
|
||||||
|
/* padding for future expansion */
|
||||||
|
TOD_PADDING (32, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
GType fpi_usb_transfer_get_type (void) G_GNUC_CONST;
|
GType fpi_usb_transfer_get_type (void) G_GNUC_CONST;
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
printed = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
|
printed = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
|
||||||
|
|
||||||
g_print ("%% lifprint — Supported Devices\n");
|
g_print ("%% libfprint — Supported Devices\n");
|
||||||
g_print ("%% Bastien Nocera, Daniel Drake\n");
|
g_print ("%% Bastien Nocera, Daniel Drake\n");
|
||||||
g_print ("%% 2018\n");
|
g_print ("%% 2018\n");
|
||||||
g_print ("\n");
|
g_print ("\n");
|
||||||
|
|||||||
@@ -24,11 +24,12 @@
|
|||||||
#include "fpi-context.h"
|
#include "fpi-context.h"
|
||||||
#include "fpi-device.h"
|
#include "fpi-device.h"
|
||||||
|
|
||||||
static const FpIdEntry whitelist_id_table[] = {
|
static const FpIdEntry allowlist_id_table[] = {
|
||||||
/* Currently known and unsupported devices.
|
/* Currently known and unsupported devices.
|
||||||
* You can generate this list from the wiki page using e.g.:
|
* You can generate this list from the wiki page using e.g.:
|
||||||
* gio cat https://gitlab.freedesktop.org/libfprint/wiki/-/wikis/Unsupported-Devices.md | sed -n 's!|.*\([0-9a-fA-F]\{4\}\):\([0-9a-fA-F]\{4\}\).*|.*! { .vid = 0x\1, .pid = 0x\2 },!p'
|
* gio cat https://gitlab.freedesktop.org/libfprint/wiki/-/wikis/Unsupported-Devices.md | sed -n 's!|.*\([0-9a-fA-F]\{4\}\):\([0-9a-fA-F]\{4\}\).*|.*! { .vid = 0x\1, .pid = 0x\2 },!p'
|
||||||
*/
|
*/
|
||||||
|
{ .vid = 0x047d, .pid = 0x00f2 },
|
||||||
{ .vid = 0x04e8, .pid = 0x730b },
|
{ .vid = 0x04e8, .pid = 0x730b },
|
||||||
{ .vid = 0x04f3, .pid = 0x036b },
|
{ .vid = 0x04f3, .pid = 0x036b },
|
||||||
{ .vid = 0x04f3, .pid = 0x0c00 },
|
{ .vid = 0x04f3, .pid = 0x0c00 },
|
||||||
@@ -36,12 +37,16 @@ static const FpIdEntry whitelist_id_table[] = {
|
|||||||
{ .vid = 0x04f3, .pid = 0x0c57 },
|
{ .vid = 0x04f3, .pid = 0x0c57 },
|
||||||
{ .vid = 0x04f3, .pid = 0x0c5e },
|
{ .vid = 0x04f3, .pid = 0x0c5e },
|
||||||
{ .vid = 0x04f3, .pid = 0x0c5a },
|
{ .vid = 0x04f3, .pid = 0x0c5a },
|
||||||
|
{ .vid = 0x04f3, .pid = 0x0c6c },
|
||||||
{ .vid = 0x04f3, .pid = 0x0c70 },
|
{ .vid = 0x04f3, .pid = 0x0c70 },
|
||||||
{ .vid = 0x04f3, .pid = 0x0c72 },
|
{ .vid = 0x04f3, .pid = 0x0c72 },
|
||||||
|
{ .vid = 0x04f3, .pid = 0x0c77 },
|
||||||
{ .vid = 0x04f3, .pid = 0x2706 },
|
{ .vid = 0x04f3, .pid = 0x2706 },
|
||||||
|
{ .vid = 0x04f3, .pid = 0x3032 },
|
||||||
{ .vid = 0x04f3, .pid = 0x3057 },
|
{ .vid = 0x04f3, .pid = 0x3057 },
|
||||||
{ .vid = 0x04f3, .pid = 0x3104 },
|
{ .vid = 0x04f3, .pid = 0x3104 },
|
||||||
{ .vid = 0x04f3, .pid = 0x310d },
|
{ .vid = 0x04f3, .pid = 0x310d },
|
||||||
|
{ .vid = 0x04f3, .pid = 0x3128 },
|
||||||
{ .vid = 0x06cb, .pid = 0x0081 },
|
{ .vid = 0x06cb, .pid = 0x0081 },
|
||||||
{ .vid = 0x06cb, .pid = 0x0088 },
|
{ .vid = 0x06cb, .pid = 0x0088 },
|
||||||
{ .vid = 0x06cb, .pid = 0x008a },
|
{ .vid = 0x06cb, .pid = 0x008a },
|
||||||
@@ -75,6 +80,7 @@ static const FpIdEntry whitelist_id_table[] = {
|
|||||||
{ .vid = 0x10a5, .pid = 0x0007 },
|
{ .vid = 0x10a5, .pid = 0x0007 },
|
||||||
{ .vid = 0x10a5, .pid = 0x9200 },
|
{ .vid = 0x10a5, .pid = 0x9200 },
|
||||||
{ .vid = 0x10a5, .pid = 0x9800 },
|
{ .vid = 0x10a5, .pid = 0x9800 },
|
||||||
|
{ .vid = 0x10a5, .pid = 0xe340 },
|
||||||
{ .vid = 0x1188, .pid = 0x9545 },
|
{ .vid = 0x1188, .pid = 0x9545 },
|
||||||
{ .vid = 0x138a, .pid = 0x0007 },
|
{ .vid = 0x138a, .pid = 0x0007 },
|
||||||
{ .vid = 0x138a, .pid = 0x003a },
|
{ .vid = 0x138a, .pid = 0x003a },
|
||||||
@@ -87,12 +93,14 @@ static const FpIdEntry whitelist_id_table[] = {
|
|||||||
{ .vid = 0x138a, .pid = 0x0097 },
|
{ .vid = 0x138a, .pid = 0x0097 },
|
||||||
{ .vid = 0x138a, .pid = 0x009d },
|
{ .vid = 0x138a, .pid = 0x009d },
|
||||||
{ .vid = 0x138a, .pid = 0x00ab },
|
{ .vid = 0x138a, .pid = 0x00ab },
|
||||||
|
{ .vid = 0x138a, .pid = 0x00a6 },
|
||||||
{ .vid = 0x147e, .pid = 0x1002 },
|
{ .vid = 0x147e, .pid = 0x1002 },
|
||||||
{ .vid = 0x1491, .pid = 0x0088 },
|
{ .vid = 0x1491, .pid = 0x0088 },
|
||||||
{ .vid = 0x16d1, .pid = 0x1027 },
|
{ .vid = 0x16d1, .pid = 0x1027 },
|
||||||
{ .vid = 0x1c7a, .pid = 0x0300 },
|
{ .vid = 0x1c7a, .pid = 0x0300 },
|
||||||
{ .vid = 0x1c7a, .pid = 0x0575 },
|
{ .vid = 0x1c7a, .pid = 0x0575 },
|
||||||
{ .vid = 0x1c7a, .pid = 0x0576 },
|
{ .vid = 0x1c7a, .pid = 0x0576 },
|
||||||
|
{ .vid = 0x1c7a, .pid = 0x0577 },
|
||||||
{ .vid = 0x27c6, .pid = 0x5042 },
|
{ .vid = 0x27c6, .pid = 0x5042 },
|
||||||
{ .vid = 0x27c6, .pid = 0x5110 },
|
{ .vid = 0x27c6, .pid = 0x5110 },
|
||||||
{ .vid = 0x27c6, .pid = 0x5117 },
|
{ .vid = 0x27c6, .pid = 0x5117 },
|
||||||
@@ -120,6 +128,8 @@ static const FpIdEntry whitelist_id_table[] = {
|
|||||||
{ .vid = 0x27c6, .pid = 0x5740 },
|
{ .vid = 0x27c6, .pid = 0x5740 },
|
||||||
{ .vid = 0x27c6, .pid = 0x5e0a },
|
{ .vid = 0x27c6, .pid = 0x5e0a },
|
||||||
{ .vid = 0x27c6, .pid = 0x581a },
|
{ .vid = 0x27c6, .pid = 0x581a },
|
||||||
|
{ .vid = 0x27c6, .pid = 0x589a },
|
||||||
|
{ .vid = 0x27c6, .pid = 0x6382 },
|
||||||
{ .vid = 0x2808, .pid = 0x9338 },
|
{ .vid = 0x2808, .pid = 0x9338 },
|
||||||
{ .vid = 0x2808, .pid = 0x93a9 },
|
{ .vid = 0x2808, .pid = 0x93a9 },
|
||||||
{ .vid = 0x298d, .pid = 0x2020 },
|
{ .vid = 0x298d, .pid = 0x2020 },
|
||||||
@@ -128,18 +138,18 @@ static const FpIdEntry whitelist_id_table[] = {
|
|||||||
{ .vid = 0 },
|
{ .vid = 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const FpIdEntry blacklist_id_table[] = {
|
static const FpIdEntry denylist_id_table[] = {
|
||||||
{ .vid = 0x0483, .pid = 0x2016 },
|
{ .vid = 0x0483, .pid = 0x2016 },
|
||||||
/* https://bugs.freedesktop.org/show_bug.cgi?id=66659 */
|
/* https://bugs.freedesktop.org/show_bug.cgi?id=66659 */
|
||||||
{ .vid = 0x045e, .pid = 0x00bb },
|
{ .vid = 0x045e, .pid = 0x00bb },
|
||||||
{ .vid = 0 },
|
{ .vid = 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const FpDeviceClass whitelist = {
|
static const FpDeviceClass allowlist = {
|
||||||
.type = FP_DEVICE_TYPE_USB,
|
.type = FP_DEVICE_TYPE_USB,
|
||||||
.id_table = whitelist_id_table,
|
.id_table = allowlist_id_table,
|
||||||
.id = "whitelist",
|
.id = "allowlist",
|
||||||
.full_name = "Hardcoded whitelist"
|
.full_name = "Hardcoded allowlist"
|
||||||
};
|
};
|
||||||
|
|
||||||
GHashTable *printed = NULL;
|
GHashTable *printed = NULL;
|
||||||
@@ -158,7 +168,7 @@ print_driver (const FpDeviceClass *cls)
|
|||||||
const FpIdEntry *bl_entry;
|
const FpIdEntry *bl_entry;
|
||||||
char *key;
|
char *key;
|
||||||
|
|
||||||
for (bl_entry = blacklist_id_table; bl_entry->vid != 0; bl_entry++)
|
for (bl_entry = denylist_id_table; bl_entry->vid != 0; bl_entry++)
|
||||||
if (entry->vid == bl_entry->vid && entry->pid == bl_entry->pid)
|
if (entry->vid == bl_entry->vid && entry->pid == bl_entry->pid)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -169,7 +179,7 @@ print_driver (const FpDeviceClass *cls)
|
|||||||
|
|
||||||
if (g_hash_table_lookup (printed, key) != NULL)
|
if (g_hash_table_lookup (printed, key) != NULL)
|
||||||
{
|
{
|
||||||
if (cls == &whitelist)
|
if (cls == &allowlist)
|
||||||
g_warning ("%s implemented by driver %s",
|
g_warning ("%s implemented by driver %s",
|
||||||
key, (const char *) g_hash_table_lookup (printed, key));
|
key, (const char *) g_hash_table_lookup (printed, key));
|
||||||
g_free (key);
|
g_free (key);
|
||||||
@@ -180,7 +190,7 @@ print_driver (const FpDeviceClass *cls)
|
|||||||
|
|
||||||
if (num_printed == 0)
|
if (num_printed == 0)
|
||||||
{
|
{
|
||||||
if (cls != &whitelist)
|
if (cls != &allowlist)
|
||||||
g_print ("\n# Supported by libfprint driver %s\n", cls->id);
|
g_print ("\n# Supported by libfprint driver %s\n", cls->id);
|
||||||
else
|
else
|
||||||
g_print ("\n# Known unsupported devices\n");
|
g_print ("\n# Known unsupported devices\n");
|
||||||
@@ -234,7 +244,7 @@ main (int argc, char **argv)
|
|||||||
print_driver (cls);
|
print_driver (cls);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_driver (&whitelist);
|
print_driver (&allowlist);
|
||||||
|
|
||||||
g_hash_table_destroy (printed);
|
g_hash_table_destroy (printed);
|
||||||
|
|
||||||
|
|||||||
@@ -119,6 +119,8 @@ driver_sources = {
|
|||||||
[ 'drivers/etes603.c' ],
|
[ 'drivers/etes603.c' ],
|
||||||
'egis0570' :
|
'egis0570' :
|
||||||
[ 'drivers/egis0570.c' ],
|
[ 'drivers/egis0570.c' ],
|
||||||
|
'egismoc' :
|
||||||
|
[ 'drivers/egismoc/egismoc.c' ],
|
||||||
'vfs0050' :
|
'vfs0050' :
|
||||||
[ 'drivers/vfs0050.c' ],
|
[ 'drivers/vfs0050.c' ],
|
||||||
'elan' :
|
'elan' :
|
||||||
@@ -141,6 +143,10 @@ driver_sources = {
|
|||||||
[ 'drivers/goodixmoc/goodix.c', 'drivers/goodixmoc/goodix_proto.c' ],
|
[ 'drivers/goodixmoc/goodix.c', 'drivers/goodixmoc/goodix_proto.c' ],
|
||||||
'fpcmoc' :
|
'fpcmoc' :
|
||||||
[ 'drivers/fpcmoc/fpc.c' ],
|
[ 'drivers/fpcmoc/fpc.c' ],
|
||||||
|
'realtek' :
|
||||||
|
[ 'drivers/realtek/realtek.c' ],
|
||||||
|
'focaltech_moc' :
|
||||||
|
[ 'drivers/focaltech_moc/focaltech_moc.c' ],
|
||||||
}
|
}
|
||||||
|
|
||||||
helper_sources = {
|
helper_sources = {
|
||||||
@@ -255,6 +261,10 @@ libfprint_private = static_library('fprint-private',
|
|||||||
link_with: libnbis,
|
link_with: libnbis,
|
||||||
install: false)
|
install: false)
|
||||||
|
|
||||||
|
if get_option('tod')
|
||||||
|
subdir('tod')
|
||||||
|
endif
|
||||||
|
|
||||||
libfprint_drivers = static_library('fprint-drivers',
|
libfprint_drivers = static_library('fprint-drivers',
|
||||||
sources: drivers_sources,
|
sources: drivers_sources,
|
||||||
c_args: drivers_cflags,
|
c_args: drivers_cflags,
|
||||||
|
|||||||
@@ -0,0 +1,251 @@
|
|||||||
|
LIBFPRINT_TOD_@tod_soversion@.0.0 {
|
||||||
|
global:
|
||||||
|
fpi_assemble_frames;
|
||||||
|
fpi_assemble_lines;
|
||||||
|
fpi_byte_reader_dup_data;
|
||||||
|
fpi_byte_reader_dup_string_utf16;
|
||||||
|
fpi_byte_reader_dup_string_utf32;
|
||||||
|
fpi_byte_reader_dup_string_utf8;
|
||||||
|
fpi_byte_reader_free;
|
||||||
|
fpi_byte_reader_get_data;
|
||||||
|
fpi_byte_reader_get_float32_be;
|
||||||
|
fpi_byte_reader_get_float32_le;
|
||||||
|
fpi_byte_reader_get_float64_be;
|
||||||
|
fpi_byte_reader_get_float64_le;
|
||||||
|
fpi_byte_reader_get_int16_be;
|
||||||
|
fpi_byte_reader_get_int16_le;
|
||||||
|
fpi_byte_reader_get_int24_be;
|
||||||
|
fpi_byte_reader_get_int24_le;
|
||||||
|
fpi_byte_reader_get_int32_be;
|
||||||
|
fpi_byte_reader_get_int32_le;
|
||||||
|
fpi_byte_reader_get_int64_be;
|
||||||
|
fpi_byte_reader_get_int64_le;
|
||||||
|
fpi_byte_reader_get_int8;
|
||||||
|
fpi_byte_reader_get_pos;
|
||||||
|
fpi_byte_reader_get_remaining;
|
||||||
|
fpi_byte_reader_get_size;
|
||||||
|
fpi_byte_reader_get_string_utf8;
|
||||||
|
fpi_byte_reader_get_sub_reader;
|
||||||
|
fpi_byte_reader_get_uint16_be;
|
||||||
|
fpi_byte_reader_get_uint16_le;
|
||||||
|
fpi_byte_reader_get_uint24_be;
|
||||||
|
fpi_byte_reader_get_uint24_le;
|
||||||
|
fpi_byte_reader_get_uint32_be;
|
||||||
|
fpi_byte_reader_get_uint32_le;
|
||||||
|
fpi_byte_reader_get_uint64_be;
|
||||||
|
fpi_byte_reader_get_uint64_le;
|
||||||
|
fpi_byte_reader_get_uint8;
|
||||||
|
fpi_byte_reader_init;
|
||||||
|
fpi_byte_reader_masked_scan_uint32;
|
||||||
|
fpi_byte_reader_masked_scan_uint32_peek;
|
||||||
|
fpi_byte_reader_new;
|
||||||
|
fpi_byte_reader_peek_data;
|
||||||
|
fpi_byte_reader_peek_float32_be;
|
||||||
|
fpi_byte_reader_peek_float32_le;
|
||||||
|
fpi_byte_reader_peek_float64_be;
|
||||||
|
fpi_byte_reader_peek_float64_le;
|
||||||
|
fpi_byte_reader_peek_int16_be;
|
||||||
|
fpi_byte_reader_peek_int16_le;
|
||||||
|
fpi_byte_reader_peek_int24_be;
|
||||||
|
fpi_byte_reader_peek_int24_le;
|
||||||
|
fpi_byte_reader_peek_int32_be;
|
||||||
|
fpi_byte_reader_peek_int32_le;
|
||||||
|
fpi_byte_reader_peek_int64_be;
|
||||||
|
fpi_byte_reader_peek_int64_le;
|
||||||
|
fpi_byte_reader_peek_int8;
|
||||||
|
fpi_byte_reader_peek_string_utf8;
|
||||||
|
fpi_byte_reader_peek_sub_reader;
|
||||||
|
fpi_byte_reader_peek_uint16_be;
|
||||||
|
fpi_byte_reader_peek_uint16_le;
|
||||||
|
fpi_byte_reader_peek_uint24_be;
|
||||||
|
fpi_byte_reader_peek_uint24_le;
|
||||||
|
fpi_byte_reader_peek_uint32_be;
|
||||||
|
fpi_byte_reader_peek_uint32_le;
|
||||||
|
fpi_byte_reader_peek_uint64_be;
|
||||||
|
fpi_byte_reader_peek_uint64_le;
|
||||||
|
fpi_byte_reader_peek_uint8;
|
||||||
|
fpi_byte_reader_set_pos;
|
||||||
|
fpi_byte_reader_skip;
|
||||||
|
fpi_byte_reader_skip_string_utf16;
|
||||||
|
fpi_byte_reader_skip_string_utf32;
|
||||||
|
fpi_byte_reader_skip_string_utf8;
|
||||||
|
fpi_byte_writer_ensure_free_space;
|
||||||
|
fpi_byte_writer_fill;
|
||||||
|
fpi_byte_writer_free;
|
||||||
|
fpi_byte_writer_free_and_get_data;
|
||||||
|
fpi_byte_writer_get_remaining;
|
||||||
|
fpi_byte_writer_init;
|
||||||
|
fpi_byte_writer_init_with_data;
|
||||||
|
fpi_byte_writer_init_with_size;
|
||||||
|
fpi_byte_writer_new;
|
||||||
|
fpi_byte_writer_new_with_data;
|
||||||
|
fpi_byte_writer_new_with_size;
|
||||||
|
fpi_byte_writer_put_data;
|
||||||
|
fpi_byte_writer_put_float32_be;
|
||||||
|
fpi_byte_writer_put_float32_le;
|
||||||
|
fpi_byte_writer_put_float64_be;
|
||||||
|
fpi_byte_writer_put_float64_le;
|
||||||
|
fpi_byte_writer_put_int16_be;
|
||||||
|
fpi_byte_writer_put_int16_le;
|
||||||
|
fpi_byte_writer_put_int24_be;
|
||||||
|
fpi_byte_writer_put_int24_le;
|
||||||
|
fpi_byte_writer_put_int32_be;
|
||||||
|
fpi_byte_writer_put_int32_le;
|
||||||
|
fpi_byte_writer_put_int64_be;
|
||||||
|
fpi_byte_writer_put_int64_le;
|
||||||
|
fpi_byte_writer_put_int8;
|
||||||
|
fpi_byte_writer_put_string_utf16;
|
||||||
|
fpi_byte_writer_put_string_utf32;
|
||||||
|
fpi_byte_writer_put_string_utf8;
|
||||||
|
fpi_byte_writer_put_uint16_be;
|
||||||
|
fpi_byte_writer_put_uint16_le;
|
||||||
|
fpi_byte_writer_put_uint24_be;
|
||||||
|
fpi_byte_writer_put_uint24_le;
|
||||||
|
fpi_byte_writer_put_uint32_be;
|
||||||
|
fpi_byte_writer_put_uint32_le;
|
||||||
|
fpi_byte_writer_put_uint64_be;
|
||||||
|
fpi_byte_writer_put_uint64_le;
|
||||||
|
fpi_byte_writer_put_uint8;
|
||||||
|
fpi_byte_writer_reset;
|
||||||
|
fpi_byte_writer_reset_and_get_data;
|
||||||
|
fpi_device_action_error;
|
||||||
|
fpi_device_action_get_type;
|
||||||
|
fpi_device_action_is_cancelled;
|
||||||
|
fpi_device_add_timeout;
|
||||||
|
fpi_device_capture_complete;
|
||||||
|
fpi_device_close_complete;
|
||||||
|
fpi_device_configure_wakeup;
|
||||||
|
fpi_device_delete_complete;
|
||||||
|
fpi_device_enroll_complete;
|
||||||
|
fpi_device_enroll_progress;
|
||||||
|
fpi_device_error_new;
|
||||||
|
fpi_device_error_new_msg;
|
||||||
|
fpi_device_get_cancellable;
|
||||||
|
fpi_device_get_capture_data;
|
||||||
|
fpi_device_get_current_action;
|
||||||
|
fpi_device_get_delete_data;
|
||||||
|
fpi_device_get_driver_data;
|
||||||
|
fpi_device_get_enroll_data;
|
||||||
|
fpi_device_get_identify_data;
|
||||||
|
fpi_device_get_usb_device;
|
||||||
|
fpi_device_get_verify_data;
|
||||||
|
fpi_device_get_virtual_env;
|
||||||
|
fpi_device_identify_complete;
|
||||||
|
fpi_device_identify_report;
|
||||||
|
fpi_device_list_complete;
|
||||||
|
fpi_device_open_complete;
|
||||||
|
fpi_device_probe_complete;
|
||||||
|
fpi_device_remove;
|
||||||
|
fpi_device_report_finger_status;
|
||||||
|
fpi_device_report_finger_status_changes;
|
||||||
|
fpi_device_retry_new;
|
||||||
|
fpi_device_retry_new_msg;
|
||||||
|
fpi_device_set_nr_enroll_stages;
|
||||||
|
fpi_device_set_scan_type;
|
||||||
|
fpi_device_udev_subtype_flags_get_type;
|
||||||
|
fpi_device_update_temp;
|
||||||
|
fpi_device_verify_complete;
|
||||||
|
fpi_device_verify_report;
|
||||||
|
fpi_do_movement_estimation;
|
||||||
|
fpi_image_device_activate;
|
||||||
|
fpi_image_device_activate_complete;
|
||||||
|
fpi_image_device_close_complete;
|
||||||
|
fpi_image_device_deactivate;
|
||||||
|
fpi_image_device_deactivate_complete;
|
||||||
|
fpi_image_device_image_captured;
|
||||||
|
fpi_image_device_open_complete;
|
||||||
|
fpi_image_device_report_finger_status;
|
||||||
|
fpi_image_device_retry_scan;
|
||||||
|
fpi_image_device_session_error;
|
||||||
|
fpi_image_device_set_bz3_threshold;
|
||||||
|
fpi_image_device_state_get_type;
|
||||||
|
fpi_image_flags_get_type;
|
||||||
|
fpi_image_resize;
|
||||||
|
fpi_match_result_get_type;
|
||||||
|
fpi_mean_sq_diff_norm;
|
||||||
|
fpi_print_add_from_image;
|
||||||
|
fpi_print_add_print;
|
||||||
|
fpi_print_bz3_match;
|
||||||
|
fpi_print_fill_from_user_id;
|
||||||
|
fpi_print_generate_user_id;
|
||||||
|
fpi_print_set_device_stored;
|
||||||
|
fpi_print_set_type;
|
||||||
|
fpi_print_type_get_type;
|
||||||
|
fpi_ssm_cancel_delayed_state_change;
|
||||||
|
fpi_ssm_dup_error;
|
||||||
|
fpi_ssm_free;
|
||||||
|
fpi_ssm_get_cur_state;
|
||||||
|
fpi_ssm_get_data;
|
||||||
|
fpi_ssm_get_error;
|
||||||
|
fpi_ssm_jump_to_state;
|
||||||
|
fpi_ssm_jump_to_state_delayed;
|
||||||
|
fpi_ssm_jump_to_state_delayed_1_90;
|
||||||
|
fpi_ssm_mark_completed;
|
||||||
|
fpi_ssm_mark_completed_delayed;
|
||||||
|
fpi_ssm_mark_completed_delayed_1_90;
|
||||||
|
fpi_ssm_mark_failed;
|
||||||
|
fpi_ssm_new_full;
|
||||||
|
fpi_ssm_new_full_1_90;
|
||||||
|
fpi_ssm_next_state;
|
||||||
|
fpi_ssm_next_state_delayed;
|
||||||
|
fpi_ssm_next_state_delayed_1_90;
|
||||||
|
fpi_ssm_set_data;
|
||||||
|
fpi_ssm_start;
|
||||||
|
fpi_ssm_start_subsm;
|
||||||
|
fpi_ssm_usb_transfer_cb;
|
||||||
|
fpi_ssm_usb_transfer_with_weak_pointer_cb;
|
||||||
|
fpi_std_sq_dev;
|
||||||
|
fpi_transfer_type_get_type;
|
||||||
|
fpi_usb_transfer_fill_bulk;
|
||||||
|
fpi_usb_transfer_fill_bulk_full;
|
||||||
|
fpi_usb_transfer_fill_control;
|
||||||
|
fpi_usb_transfer_fill_interrupt;
|
||||||
|
fpi_usb_transfer_fill_interrupt_full;
|
||||||
|
fpi_usb_transfer_get_type;
|
||||||
|
fpi_usb_transfer_new;
|
||||||
|
fpi_usb_transfer_ref;
|
||||||
|
fpi_usb_transfer_submit;
|
||||||
|
fpi_usb_transfer_submit_sync;
|
||||||
|
fpi_usb_transfer_unref;
|
||||||
|
local:
|
||||||
|
*;
|
||||||
|
};
|
||||||
|
|
||||||
|
LIBFPRINT_TOD_@tod_soversion@_1.92 {
|
||||||
|
global:
|
||||||
|
fpi_device_class_auto_initialize_features;
|
||||||
|
fpi_device_clear_storage_complete;
|
||||||
|
fpi_device_get_udev_data;
|
||||||
|
fpi_device_update_features;
|
||||||
|
fpi_spi_transfer_get_type;
|
||||||
|
fpi_spi_transfer_new;
|
||||||
|
fpi_spi_transfer_read;
|
||||||
|
fpi_spi_transfer_read_full;
|
||||||
|
fpi_spi_transfer_ref;
|
||||||
|
fpi_spi_transfer_submit;
|
||||||
|
fpi_spi_transfer_submit_sync;
|
||||||
|
fpi_spi_transfer_unref;
|
||||||
|
fpi_spi_transfer_write;
|
||||||
|
fpi_spi_transfer_write_full;
|
||||||
|
fpi_ssm_get_device;
|
||||||
|
fpi_ssm_jump_to_state_delayed;
|
||||||
|
fpi_ssm_mark_completed_delayed;
|
||||||
|
fpi_ssm_new_full;
|
||||||
|
fpi_ssm_next_state_delayed;
|
||||||
|
fpi_ssm_spi_transfer_cb;
|
||||||
|
fpi_ssm_spi_transfer_with_weak_pointer_cb;
|
||||||
|
} LIBFPRINT_TOD_@tod_soversion@.0.0;
|
||||||
|
|
||||||
|
LIBFPRINT_TOD_@tod_soversion@_1.94 {
|
||||||
|
global:
|
||||||
|
fpi_device_critical_enter;
|
||||||
|
fpi_device_critical_leave;
|
||||||
|
fpi_device_resume;
|
||||||
|
fpi_device_resume_complete;
|
||||||
|
fpi_device_suspend;
|
||||||
|
fpi_device_suspend_complete;
|
||||||
|
fpi_ssm_silence_debug;
|
||||||
|
|
||||||
|
/* Keep this always in the current development version */
|
||||||
|
fpi_*;
|
||||||
|
} LIBFPRINT_TOD_@tod_soversion@_1.92;
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
tod_soversion = 1
|
||||||
|
tod_subpath = versioned_libname / 'tod-@0@'.format(tod_soversion)
|
||||||
|
tod_modules_prefix = get_option('libdir') / tod_subpath
|
||||||
|
|
||||||
|
tod_conf = configuration_data()
|
||||||
|
tod_conf.set_quoted('TOD_DRIVERS_DIR',
|
||||||
|
get_option('prefix') / get_option('libdir') / tod_subpath)
|
||||||
|
configure_file(output: 'tod-config.h', configuration: tod_conf)
|
||||||
|
|
||||||
|
gmodule_dep = dependency('gmodule-2.0', version: '>=' + glib_min_version)
|
||||||
|
deps += gmodule_dep
|
||||||
|
|
||||||
|
mapfile = configure_file(input: 'libfprint-tod.ver.in',
|
||||||
|
output: 'libfprint-tod.ver',
|
||||||
|
configuration: {
|
||||||
|
'tod_soversion' : tod_soversion,
|
||||||
|
})
|
||||||
|
|
||||||
|
libfprint_tod_private = static_library('fprint-tod-private',
|
||||||
|
sources: [
|
||||||
|
'tod-shared-loader.c',
|
||||||
|
'tod-goodix-wrapper.c',
|
||||||
|
],
|
||||||
|
include_directories: include_directories('..'),
|
||||||
|
link_with: libfprint_private,
|
||||||
|
dependencies: deps,
|
||||||
|
install: false,
|
||||||
|
)
|
||||||
|
|
||||||
|
tod_sources = [
|
||||||
|
'tod-wrappers.c',
|
||||||
|
'tod-symbols.h',
|
||||||
|
]
|
||||||
|
foreach source: libfprint_private_sources
|
||||||
|
tod_sources += '..' / source
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
libfprint_tod = shared_library(versioned_libname.split('lib')[1] + '-tod',
|
||||||
|
c_args: [
|
||||||
|
'-DTOD_LIBRARY=1',
|
||||||
|
'-include', '@0@'.format(files('tod-symbols.h')[0]),
|
||||||
|
],
|
||||||
|
sources: [
|
||||||
|
tod_sources,
|
||||||
|
],
|
||||||
|
soversion: tod_soversion,
|
||||||
|
include_directories: include_directories('..'),
|
||||||
|
link_args: [
|
||||||
|
'-Wl,--version-script,@0@'.format(mapfile),
|
||||||
|
'-Wl,--unresolved-symbols=ignore-in-object-files'
|
||||||
|
],
|
||||||
|
link_depends: mapfile,
|
||||||
|
link_whole: [libfprint_tod_private],
|
||||||
|
dependencies: deps,
|
||||||
|
install: true)
|
||||||
|
|
||||||
|
tod_dep = declare_dependency(
|
||||||
|
link_with: [
|
||||||
|
libfprint_tod,
|
||||||
|
libfprint_tod_private,
|
||||||
|
])
|
||||||
|
deps += tod_dep
|
||||||
|
|
||||||
|
pkgconfig = import('pkgconfig')
|
||||||
|
pkgconfig.generate(libfprint_tod,
|
||||||
|
name: versioned_libname + '-tod',
|
||||||
|
filebase: '@0@-tod-@1@'.format(versioned_libname, tod_soversion),
|
||||||
|
description: 'Private Libfprint Touch Drivers API',
|
||||||
|
version: meson.project_version() + '+tod@0@'.format(tod_soversion),
|
||||||
|
subdirs: tod_subpath,
|
||||||
|
requires_private: [
|
||||||
|
versioned_libname,
|
||||||
|
gusb_dep,
|
||||||
|
],
|
||||||
|
variables: [
|
||||||
|
'tod_driversdir=${libdir}/@0@'.format(tod_subpath)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
tod_local_headers = [
|
||||||
|
'tod-macros.h',
|
||||||
|
]
|
||||||
|
|
||||||
|
tod_headers = []
|
||||||
|
extra_libfprint_headers = [
|
||||||
|
'drivers_api.h',
|
||||||
|
]
|
||||||
|
|
||||||
|
foreach header: libfprint_private_headers + extra_libfprint_headers
|
||||||
|
tod_headers += '..' / header
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
custom_target('tod_fpi_enums_headers',
|
||||||
|
depends: fpi_enums,
|
||||||
|
input: fpi_enums_h,
|
||||||
|
output: 'fpi-enums.h',
|
||||||
|
command: ['cp', '@INPUT@', '-v', '@OUTPUT@'],
|
||||||
|
install: true,
|
||||||
|
install_dir: get_option('includedir') / tod_subpath)
|
||||||
|
|
||||||
|
install_headers(tod_headers,
|
||||||
|
subdir: tod_subpath
|
||||||
|
)
|
||||||
|
|
||||||
|
install_headers(tod_local_headers,
|
||||||
|
subdir: tod_subpath / 'tod',
|
||||||
|
)
|
||||||
|
|
||||||
|
# Replace the libfprint private instance with the TOD one in this case as we
|
||||||
|
# contain already all the symbols.
|
||||||
|
libfprint_private = libfprint_tod
|
||||||
Executable
+65
@@ -0,0 +1,65 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
library1=$1
|
||||||
|
library2=$2
|
||||||
|
|
||||||
|
function cleanup_results() {
|
||||||
|
grep -F -w '.text' | cut -s -f2 | awk '{print $(NF)}'
|
||||||
|
}
|
||||||
|
|
||||||
|
function dump_exported_symbols() {
|
||||||
|
objdump -TC "$1" | cleanup_results
|
||||||
|
}
|
||||||
|
|
||||||
|
function dump_defined_symbols() {
|
||||||
|
objdump -t "$1" | cleanup_results
|
||||||
|
}
|
||||||
|
|
||||||
|
function in_array() {
|
||||||
|
local target=$1
|
||||||
|
shift
|
||||||
|
|
||||||
|
local i;
|
||||||
|
for i in "$@"; do
|
||||||
|
if [[ "$i" == "$target" ]]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
function is_fatal() {
|
||||||
|
if [[ "$1" == "fp_"* ]] || [[ "$1" == "fpi_"* ]]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
lib1_exported=($(dump_exported_symbols "$library1"))
|
||||||
|
lib2_exported=($(dump_exported_symbols "$library2"))
|
||||||
|
|
||||||
|
lib1_defined=("$(dump_defined_symbols "$library1")")
|
||||||
|
lib2_defined=("$(dump_defined_symbols "$library2")")
|
||||||
|
|
||||||
|
valid=true
|
||||||
|
|
||||||
|
for f in ${lib1_exported[*]}; do
|
||||||
|
if in_array "$f" ${lib2_exported[*]}; then
|
||||||
|
echo "$f function exported in both $library1 and $library2"
|
||||||
|
if is_fatal "$f"; then
|
||||||
|
valid=false
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
for f in ${lib1_defined[*]}; do
|
||||||
|
if in_array "$f" ${lib2_defined[*]}; then
|
||||||
|
echo "$f function defined in both $library1 and $library2"
|
||||||
|
if is_fatal "$f"; then
|
||||||
|
valid=false
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
[[ "$valid" == true ]] && exit 0
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
* 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 "tod-wrappers.h"
|
||||||
|
#include "fpi-ssm.h"
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
check_delayed_cancellable (FpiSsm *machine,
|
||||||
|
GCancellable *cancellable)
|
||||||
|
{
|
||||||
|
if (g_cancellable_is_cancelled (cancellable))
|
||||||
|
{
|
||||||
|
fpi_ssm_mark_failed (machine, g_error_new (G_IO_ERROR,
|
||||||
|
G_IO_ERROR_CANCELLED,
|
||||||
|
"Action cancelled"));
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cancellable)
|
||||||
|
fp_err ("GCancellable in SSM Delayed actions is ignored as per libfprint 1.92");
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
fpi_ssm_next_state_delayed_1_90 (FpiSsm *machine,
|
||||||
|
int delay,
|
||||||
|
GCancellable *cancellable)
|
||||||
|
{
|
||||||
|
if (check_delayed_cancellable (machine, cancellable))
|
||||||
|
fpi_ssm_next_state_delayed (machine, delay);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
fpi_ssm_jump_to_state_delayed_1_90 (FpiSsm *machine,
|
||||||
|
int state,
|
||||||
|
int delay,
|
||||||
|
GCancellable *cancellable)
|
||||||
|
{
|
||||||
|
if (check_delayed_cancellable (machine, cancellable))
|
||||||
|
fpi_ssm_jump_to_state_delayed (machine, state, delay);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
fpi_ssm_mark_completed_delayed_1_90 (FpiSsm *machine,
|
||||||
|
int delay,
|
||||||
|
GCancellable *cancellable)
|
||||||
|
{
|
||||||
|
if (check_delayed_cancellable (machine, cancellable))
|
||||||
|
fpi_ssm_mark_completed_delayed (machine, delay);
|
||||||
|
}
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
/*
|
||||||
|
* Shared library loader for libfprint
|
||||||
|
* Copyright (C) 2022 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 "fp-device-private.h"
|
||||||
|
#include "fpi-device.h"
|
||||||
|
#define FP_COMPONENT "tod"
|
||||||
|
|
||||||
|
#include "tod-goodix-wrapper.h"
|
||||||
|
|
||||||
|
static void (*goodix_moc_identify)(FpDevice *) = NULL;
|
||||||
|
|
||||||
|
static void
|
||||||
|
goodix_tod_identify_wrapper (FpDevice *device)
|
||||||
|
{
|
||||||
|
GPtrArray *prints;
|
||||||
|
|
||||||
|
fpi_device_get_identify_data (device, &prints);
|
||||||
|
|
||||||
|
if (prints->len)
|
||||||
|
return goodix_moc_identify (device);
|
||||||
|
|
||||||
|
g_warning ("%s does not support identify with empty gallery, let's skip it",
|
||||||
|
fp_device_get_name (device));
|
||||||
|
|
||||||
|
fpi_device_identify_report (device, NULL, NULL, NULL);
|
||||||
|
fpi_device_identify_complete (device, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
goodix_tod_wrapper_init (FpDeviceClass *device_class)
|
||||||
|
{
|
||||||
|
g_assert (g_strcmp0 (device_class->id, "goodix-tod") == 0);
|
||||||
|
g_assert (goodix_moc_identify == NULL);
|
||||||
|
|
||||||
|
g_message ("Creating TOD wrapper for %s (%s) driver",
|
||||||
|
device_class->id, device_class->full_name);
|
||||||
|
|
||||||
|
goodix_moc_identify = device_class->identify;
|
||||||
|
device_class->identify = goodix_tod_identify_wrapper;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* Shared library loader for libfprint
|
||||||
|
* Copyright (C) 2022 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "drivers_api.h"
|
||||||
|
|
||||||
|
void goodix_tod_wrapper_init (FpDeviceClass *device_class);
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define TOD_PADDING(original, wasted) \
|
||||||
|
char _tod_expansion_padding[(GLIB_SIZEOF_VOID_P * (original)) - (wasted)];
|
||||||
|
|
||||||
|
#define TOD_PADDING_ALIGNED(original, wasted) \
|
||||||
|
TOD_PADDING (original, (wasted) + GLIB_SIZEOF_VOID_P)
|
||||||
|
|
||||||
|
#define TOD_PADDING_ALIGNED4(original, wasted) \
|
||||||
|
TOD_PADDING (original, (wasted) + (GLIB_SIZEOF_VOID_P == 4 ? GLIB_SIZEOF_VOID_P : 0))
|
||||||
|
|
||||||
|
#define TOD_PADDING_ALIGNED8(original, wasted) \
|
||||||
|
TOD_PADDING (original, (wasted) + (GLIB_SIZEOF_VOID_P == 8 ? GLIB_SIZEOF_VOID_P : 0))
|
||||||
@@ -0,0 +1,161 @@
|
|||||||
|
/*
|
||||||
|
* Shared library loader for libfprint
|
||||||
|
* Copyright (C) 2019 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define FP_COMPONENT "tod"
|
||||||
|
|
||||||
|
#include <gmodule.h>
|
||||||
|
|
||||||
|
#include "tod-shared-loader.h"
|
||||||
|
#include "tod-goodix-wrapper.h"
|
||||||
|
#include "fpi-device.h"
|
||||||
|
#include "fpi-log.h"
|
||||||
|
#include "tod-config.h"
|
||||||
|
|
||||||
|
#define FPI_TOD_ENTRY_GTYPE_GETTER "fpi_tod_shared_driver_get_type"
|
||||||
|
|
||||||
|
static GArray *shared_drivers = NULL;
|
||||||
|
static GList *shared_modules = NULL;
|
||||||
|
|
||||||
|
typedef GModule FpiTodModule;
|
||||||
|
typedef GType (*FpiTodShardDriverTypeGetter) (void);
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC (FpiTodModule, g_module_close);
|
||||||
|
|
||||||
|
static const char *
|
||||||
|
get_tod_drivers_dir (void)
|
||||||
|
{
|
||||||
|
const char *tod_env_path = g_getenv ("FP_TOD_DRIVERS_DIR");
|
||||||
|
|
||||||
|
if (!tod_env_path || *tod_env_path == '\0')
|
||||||
|
return TOD_DRIVERS_DIR;
|
||||||
|
|
||||||
|
return tod_env_path;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
tod_shared_drivers_register (void)
|
||||||
|
{
|
||||||
|
const char *dirname;
|
||||||
|
const char *basename;
|
||||||
|
|
||||||
|
g_autoptr(GError) error = NULL;
|
||||||
|
g_autoptr(GDir) dir = NULL;
|
||||||
|
gpointer symbol;
|
||||||
|
|
||||||
|
g_assert_null (shared_drivers);
|
||||||
|
|
||||||
|
dirname = get_tod_drivers_dir ();
|
||||||
|
dir = g_dir_open (dirname, 0, &error);
|
||||||
|
|
||||||
|
shared_drivers = g_array_new (TRUE, FALSE, sizeof (GType));
|
||||||
|
|
||||||
|
if (error)
|
||||||
|
{
|
||||||
|
fp_dbg ("Impossible to load the shared drivers dir %s", error->message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
while ((basename = g_dir_read_name (dir)) != NULL)
|
||||||
|
{
|
||||||
|
g_autoptr(FpiTodModule) module = NULL;
|
||||||
|
g_autoptr(GTypeClass) type_class = NULL;
|
||||||
|
g_autofree char *module_path = NULL;
|
||||||
|
FpiTodShardDriverTypeGetter type_getter;
|
||||||
|
FpDeviceClass *cls;
|
||||||
|
GType driver;
|
||||||
|
|
||||||
|
if (!g_str_has_prefix (basename, "lib"))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (!g_str_has_suffix (basename, ".so"))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
module_path = g_build_filename (dirname, basename, NULL);
|
||||||
|
|
||||||
|
if (!g_file_test (module_path, G_FILE_TEST_IS_REGULAR))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
fp_dbg ("Opening driver %s", module_path);
|
||||||
|
|
||||||
|
module = g_module_open (module_path, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
|
||||||
|
|
||||||
|
if (!module)
|
||||||
|
{
|
||||||
|
fp_err ("Impossible to load module %s: %s", module_path,
|
||||||
|
g_module_error ());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!g_module_symbol (module, FPI_TOD_ENTRY_GTYPE_GETTER, &symbol))
|
||||||
|
{
|
||||||
|
fp_err ("Library %s doesn't expose the required entry point symbol",
|
||||||
|
module_path);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
type_getter = symbol;
|
||||||
|
driver = type_getter ();
|
||||||
|
fp_dbg ("Found TOD entry point symbol %p, GType is %lu", symbol, driver);
|
||||||
|
|
||||||
|
if (!G_TYPE_IS_OBJECT (driver) || !g_type_is_a (driver, FP_TYPE_DEVICE))
|
||||||
|
{
|
||||||
|
fp_err ("Library %s returned GType (%lu) doesn't represent a device",
|
||||||
|
module_path, driver);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
type_class = g_type_class_ref (driver);
|
||||||
|
g_assert_true (g_type_check_class_is_a (type_class, FP_TYPE_DEVICE));
|
||||||
|
|
||||||
|
cls = FP_DEVICE_CLASS (type_class);
|
||||||
|
|
||||||
|
fp_dbg ("Loading driver %s (%s)", cls->id, cls->full_name);
|
||||||
|
g_array_append_val (shared_drivers, driver);
|
||||||
|
|
||||||
|
if (cls->features == FP_DEVICE_FEATURE_NONE)
|
||||||
|
{
|
||||||
|
g_debug ("Initializing features for driver %s", cls->id);
|
||||||
|
fpi_device_class_auto_initialize_features (cls);
|
||||||
|
|
||||||
|
if (g_strcmp0 (cls->id, "goodix-tod") == 0)
|
||||||
|
goodix_tod_wrapper_init (cls);
|
||||||
|
}
|
||||||
|
|
||||||
|
shared_modules = g_list_prepend (shared_modules,
|
||||||
|
g_steal_pointer (&module));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
tod_shared_drivers_unregister (void)
|
||||||
|
{
|
||||||
|
g_clear_pointer (&shared_drivers, g_array_unref);
|
||||||
|
|
||||||
|
if (g_strcmp0 (g_getenv ("FP_TOD_KEEP_MODULES_OPEN"), "TRUE") != 0)
|
||||||
|
{
|
||||||
|
g_list_free_full (shared_modules, (GDestroyNotify) g_module_close);
|
||||||
|
shared_modules = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GArray *
|
||||||
|
tod_shared_drivers_get (void)
|
||||||
|
{
|
||||||
|
return g_array_ref (shared_drivers);
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* Shared library loader for libfprint
|
||||||
|
* Copyright (C) 2019 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <glib.h>
|
||||||
|
|
||||||
|
|
||||||
|
void tod_shared_drivers_register (void);
|
||||||
|
void tod_shared_drivers_unregister (void);
|
||||||
|
|
||||||
|
GArray *tod_shared_drivers_get (void);
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
/*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define LIBFPRINT_2_SYMBOL_VERSION_2_0 "LIBFPRINT_2.0.0"
|
||||||
|
#define LIBFPRINT_2_SYMBOL_VERSION(major, minor) \
|
||||||
|
LIBFPRINT_2_SYMBOL_VERSION_ ## major ## _ ## minor
|
||||||
|
|
||||||
|
#define TOD_1_SYMBOL_VERSION_1_90 "LIBFPRINT_TOD_1.0.0"
|
||||||
|
#define TOD_1_SYMBOL_VERSION_1_92 "LIBFPRINT_TOD_1_1.92"
|
||||||
|
#define TOD_1_SYMBOL_VERSION_1_94 "LIBFPRINT_TOD_1_1.94"
|
||||||
|
#define TOD_1_SYMBOL_VERSION(major, minor) \
|
||||||
|
TOD_1_SYMBOL_VERSION_ ## major ## _ ## minor
|
||||||
|
|
||||||
|
#define TOD_DEFAULT_UPSTREAM_SYMBOL_VERSIONED(symbol, major, minor) \
|
||||||
|
__asm__ (".symver " # symbol "," # symbol "@@@" \
|
||||||
|
LIBFPRINT_2_SYMBOL_VERSION (major, minor));
|
||||||
|
|
||||||
|
#define TOD_DEFAULT_UPSTREAM_SYMBOL(symbol) \
|
||||||
|
__asm__ (".symver " # symbol "," # symbol "@@@");
|
||||||
|
|
||||||
|
#define TOD_DEFAULT_VERSION_SYMBOL(symbol, major, minor) \
|
||||||
|
__asm__ (".symver " # symbol "," # symbol "@@@" \
|
||||||
|
TOD_1_SYMBOL_VERSION (major, minor));
|
||||||
|
#define TOD_VERSIONED_SYMBOL(symbol, major, minor) \
|
||||||
|
__asm__ (".symver " # symbol "_" # major "_" #minor "," # symbol "@" \
|
||||||
|
TOD_1_SYMBOL_VERSION (major, minor));
|
||||||
|
|
||||||
|
TOD_DEFAULT_VERSION_SYMBOL (fpi_ssm_new_full, 1, 92)
|
||||||
|
TOD_VERSIONED_SYMBOL (fpi_ssm_new_full, 1, 90)
|
||||||
|
|
||||||
|
TOD_DEFAULT_VERSION_SYMBOL (fpi_ssm_next_state_delayed, 1, 92)
|
||||||
|
TOD_VERSIONED_SYMBOL (fpi_ssm_next_state_delayed, 1, 90)
|
||||||
|
|
||||||
|
TOD_DEFAULT_VERSION_SYMBOL (fpi_ssm_jump_to_state_delayed, 1, 92)
|
||||||
|
TOD_VERSIONED_SYMBOL (fpi_ssm_jump_to_state_delayed, 1, 90)
|
||||||
|
|
||||||
|
TOD_DEFAULT_VERSION_SYMBOL (fpi_ssm_mark_completed_delayed, 1, 92)
|
||||||
|
TOD_VERSIONED_SYMBOL (fpi_ssm_mark_completed_delayed, 1, 90)
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define FP_COMPONENT "tod"
|
||||||
|
|
||||||
|
#include "tod-wrappers.h"
|
||||||
|
|
||||||
|
FpiSsm *
|
||||||
|
fpi_ssm_new_full_1_90 (FpDevice *dev,
|
||||||
|
FpiSsmHandlerCallback handler,
|
||||||
|
int nr_states,
|
||||||
|
const char *machine_name)
|
||||||
|
{
|
||||||
|
return fpi_ssm_new_full (dev, handler, nr_states, nr_states, machine_name);
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "drivers_api.h"
|
||||||
|
#include "tod-symbols.h"
|
||||||
|
|
||||||
|
extern FpiSsm *fpi_ssm_new_full_1_90 (FpDevice *dev,
|
||||||
|
FpiSsmHandlerCallback handler,
|
||||||
|
int nr_states,
|
||||||
|
const char *machine_name);
|
||||||
|
|
||||||
|
extern void fpi_ssm_next_state_delayed_1_90 (FpiSsm *machine,
|
||||||
|
int delay,
|
||||||
|
GCancellable *cancellable);
|
||||||
|
extern void fpi_ssm_jump_to_state_delayed_1_90 (FpiSsm *machine,
|
||||||
|
int state,
|
||||||
|
int delay,
|
||||||
|
GCancellable *cancellable);
|
||||||
|
extern void fpi_ssm_mark_completed_delayed_1_90 (FpiSsm *machine,
|
||||||
|
int delay,
|
||||||
|
GCancellable *cancellable);
|
||||||
+28
-4
@@ -1,5 +1,5 @@
|
|||||||
project('libfprint', [ 'c', 'cpp' ],
|
project('libfprint', [ 'c', 'cpp' ],
|
||||||
version: '1.94.6',
|
version: '1.94.7+tod1',
|
||||||
license: 'LGPLv2.1+',
|
license: 'LGPLv2.1+',
|
||||||
default_options: [
|
default_options: [
|
||||||
'buildtype=debugoptimized',
|
'buildtype=debugoptimized',
|
||||||
@@ -21,7 +21,7 @@ datadir = prefix / get_option('datadir')
|
|||||||
cc = meson.get_compiler('c')
|
cc = meson.get_compiler('c')
|
||||||
cpp = meson.get_compiler('cpp')
|
cpp = meson.get_compiler('cpp')
|
||||||
host_system = host_machine.system()
|
host_system = host_machine.system()
|
||||||
glib_min_version = '2.56'
|
glib_min_version = '2.68'
|
||||||
|
|
||||||
glib_version_def = 'GLIB_VERSION_@0@_@1@'.format(
|
glib_version_def = 'GLIB_VERSION_@0@_@1@'.format(
|
||||||
glib_min_version.split('.')[0], glib_min_version.split('.')[1])
|
glib_min_version.split('.')[0], glib_min_version.split('.')[1])
|
||||||
@@ -91,6 +91,7 @@ gusb_dep = dependency('gusb', version: '>= 0.2.0')
|
|||||||
mathlib_dep = cc.find_library('m', required: false)
|
mathlib_dep = cc.find_library('m', required: false)
|
||||||
|
|
||||||
# The following dependencies are only used for tests
|
# The following dependencies are only used for tests
|
||||||
|
sh = find_program('sh', required: true)
|
||||||
cairo_dep = dependency('cairo', required: false)
|
cairo_dep = dependency('cairo', required: false)
|
||||||
|
|
||||||
# introspection scanning and Gio-2.0.gir
|
# introspection scanning and Gio-2.0.gir
|
||||||
@@ -120,6 +121,7 @@ default_drivers = [
|
|||||||
'vfs0050',
|
'vfs0050',
|
||||||
'etes603',
|
'etes603',
|
||||||
'egis0570',
|
'egis0570',
|
||||||
|
'egismoc',
|
||||||
'vcom5s',
|
'vcom5s',
|
||||||
'synaptics',
|
'synaptics',
|
||||||
'elan',
|
'elan',
|
||||||
@@ -131,6 +133,8 @@ default_drivers = [
|
|||||||
'goodixmoc',
|
'goodixmoc',
|
||||||
'nb1010',
|
'nb1010',
|
||||||
'fpcmoc',
|
'fpcmoc',
|
||||||
|
'realtek',
|
||||||
|
'focaltech_moc',
|
||||||
|
|
||||||
# SPI
|
# SPI
|
||||||
'elanspi',
|
'elanspi',
|
||||||
@@ -139,8 +143,27 @@ default_drivers = [
|
|||||||
# FIXME: All the drivers should be fixed by adjusting the byte order.
|
# FIXME: All the drivers should be fixed by adjusting the byte order.
|
||||||
# See https://gitlab.freedesktop.org/libfprint/libfprint/-/issues/236
|
# See https://gitlab.freedesktop.org/libfprint/libfprint/-/issues/236
|
||||||
endian_independent_drivers = virtual_drivers + [
|
endian_independent_drivers = virtual_drivers + [
|
||||||
|
'aes1610',
|
||||||
|
'aes1660',
|
||||||
|
'aes2550',
|
||||||
|
'aes2660',
|
||||||
'aes3500',
|
'aes3500',
|
||||||
|
'aes4000',
|
||||||
|
'egis0570',
|
||||||
|
'egismoc',
|
||||||
|
'elanmoc',
|
||||||
|
'etes603',
|
||||||
|
'focaltech_moc',
|
||||||
|
'nb1010',
|
||||||
|
'realtek',
|
||||||
'synaptics',
|
'synaptics',
|
||||||
|
'upeksonly',
|
||||||
|
'upektc',
|
||||||
|
'upektc_img',
|
||||||
|
'upekts',
|
||||||
|
'vcom5s',
|
||||||
|
'vfs101',
|
||||||
|
'vfs7552',
|
||||||
]
|
]
|
||||||
|
|
||||||
all_drivers = default_drivers + virtual_drivers
|
all_drivers = default_drivers + virtual_drivers
|
||||||
@@ -247,7 +270,7 @@ if install_udev_rules
|
|||||||
udev_rules_dir = get_option('udev_rules_dir')
|
udev_rules_dir = get_option('udev_rules_dir')
|
||||||
if udev_rules_dir == 'auto'
|
if udev_rules_dir == 'auto'
|
||||||
udev_dep = dependency('udev')
|
udev_dep = dependency('udev')
|
||||||
udev_rules_dir = udev_dep.get_pkgconfig_variable('udevdir') + '/rules.d'
|
udev_rules_dir = udev_dep.get_variable(pkgconfig: 'udevdir') + '/rules.d'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -284,7 +307,7 @@ if not udev_hwdb.disabled()
|
|||||||
|
|
||||||
if udev_hwdb_dir == 'auto'
|
if udev_hwdb_dir == 'auto'
|
||||||
udev_dep = dependency('udev')
|
udev_dep = dependency('udev')
|
||||||
udev_hwdb_dir = udev_dep.get_pkgconfig_variable('udevdir') + '/hwdb.d'
|
udev_hwdb_dir = udev_dep.get_variable(pkgconfig: 'udevdir') + '/hwdb.d'
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
udev_hwdb_dir = ''
|
udev_hwdb_dir = ''
|
||||||
@@ -300,6 +323,7 @@ endif
|
|||||||
# Some dependency resolving happens inside here
|
# Some dependency resolving happens inside here
|
||||||
subdir('libfprint')
|
subdir('libfprint')
|
||||||
|
|
||||||
|
libfprint_conf.set10('HAVE_LIBFPRINT_TOD', get_option('tod'))
|
||||||
configure_file(output: 'config.h', configuration: libfprint_conf)
|
configure_file(output: 'config.h', configuration: libfprint_conf)
|
||||||
|
|
||||||
if get_option('doc')
|
if get_option('doc')
|
||||||
|
|||||||
@@ -30,7 +30,13 @@ option('doc',
|
|||||||
description: 'Whether to build the API documentation',
|
description: 'Whether to build the API documentation',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
value: true)
|
value: true)
|
||||||
|
|
||||||
option('installed-tests',
|
option('installed-tests',
|
||||||
description: 'Whether to install the installed tests',
|
description: 'Whether to install the installed tests',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
value: true)
|
value: true)
|
||||||
|
|
||||||
|
option('tod',
|
||||||
|
description: 'Whether to build the TOD library',
|
||||||
|
type: 'boolean',
|
||||||
|
value: true)
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ if len(sys.argv) > 3:
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
driver_name = sys.argv[1]
|
driver_name = sys.argv[1]
|
||||||
os.environ['FP_DRIVERS_WHITELIST'] = driver_name
|
os.environ['FP_DRIVERS_ALLOWLIST'] = driver_name
|
||||||
|
|
||||||
test_variant = None
|
test_variant = None
|
||||||
if len(sys.argv) == 3:
|
if len(sys.argv) == 3:
|
||||||
|
|||||||
Executable → Regular
@@ -24,7 +24,7 @@ E: ID_USB_INTERFACES=:ff0000:
|
|||||||
E: ID_VENDOR_FROM_DATABASE=LighTuning Technology Inc.
|
E: ID_VENDOR_FROM_DATABASE=LighTuning Technology Inc.
|
||||||
E: ID_PATH=pci-0000:00:14.0-usb-0:9
|
E: ID_PATH=pci-0000:00:14.0-usb-0:9
|
||||||
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_9
|
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_9
|
||||||
E: LIBFPRINT_DRIVER=Hardcoded whitelist
|
E: LIBFPRINT_DRIVER=Hardcoded allowlist
|
||||||
A: authorized=1\n
|
A: authorized=1\n
|
||||||
A: avoid_reset_quirk=0\n
|
A: avoid_reset_quirk=0\n
|
||||||
A: bConfigurationValue=1\n
|
A: bConfigurationValue=1\n
|
||||||
|
|||||||
Binary file not shown.
Executable
+156
@@ -0,0 +1,156 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
import gi
|
||||||
|
|
||||||
|
gi.require_version('FPrint', '2.0')
|
||||||
|
from gi.repository import FPrint, GLib
|
||||||
|
|
||||||
|
# Exit with error on any exception, included those happening in async callbacks
|
||||||
|
sys.excepthook = lambda *args: (traceback.print_exception(*args), sys.exit(1))
|
||||||
|
|
||||||
|
ctx = GLib.main_context_default()
|
||||||
|
|
||||||
|
c = FPrint.Context()
|
||||||
|
c.enumerate()
|
||||||
|
devices = c.get_devices()
|
||||||
|
|
||||||
|
d = devices[0]
|
||||||
|
del devices
|
||||||
|
|
||||||
|
d.open_sync()
|
||||||
|
|
||||||
|
assert d.get_driver() == "egismoc"
|
||||||
|
assert not d.has_feature(FPrint.DeviceFeature.CAPTURE)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.IDENTIFY)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.VERIFY)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.DUPLICATES_CHECK)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.STORAGE)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.STORAGE_LIST)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.STORAGE_DELETE)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.STORAGE_CLEAR)
|
||||||
|
|
||||||
|
def enroll_progress(*args):
|
||||||
|
print("finger status: ", d.get_finger_status())
|
||||||
|
print('enroll progress: ' + str(args))
|
||||||
|
|
||||||
|
def identify_done(dev, res):
|
||||||
|
global identified
|
||||||
|
identified = True
|
||||||
|
identify_match, identify_print = dev.identify_finish(res)
|
||||||
|
print('indentification_done: ', identify_match, identify_print)
|
||||||
|
assert identify_match.equal(identify_print)
|
||||||
|
|
||||||
|
# Beginning with list and clear assumes you begin with >0 prints enrolled before capturing
|
||||||
|
|
||||||
|
print("listing - device should have prints")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) > 0
|
||||||
|
del stored
|
||||||
|
|
||||||
|
print("clear device storage")
|
||||||
|
d.clear_storage_sync()
|
||||||
|
print("clear done")
|
||||||
|
|
||||||
|
print("listing - device should be empty")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) == 0
|
||||||
|
del stored
|
||||||
|
|
||||||
|
print("enrolling")
|
||||||
|
template = FPrint.Print.new(d)
|
||||||
|
template.set_finger(FPrint.Finger.LEFT_INDEX)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
p1 = d.enroll_sync(template, None, enroll_progress, None)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
print("enroll done")
|
||||||
|
del template
|
||||||
|
|
||||||
|
print("listing - device should have 1 print")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) == 1
|
||||||
|
assert stored[0].equal(p1)
|
||||||
|
|
||||||
|
print("verifying")
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
verify_res, verify_print = d.verify_sync(p1)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
print("verify done")
|
||||||
|
assert verify_res == True
|
||||||
|
|
||||||
|
identified = False
|
||||||
|
deserialized_prints = []
|
||||||
|
for p in stored:
|
||||||
|
deserialized_prints.append(FPrint.Print.deserialize(p.serialize()))
|
||||||
|
assert deserialized_prints[-1].equal(p)
|
||||||
|
del stored
|
||||||
|
|
||||||
|
print('async identifying')
|
||||||
|
d.identify(deserialized_prints, callback=identify_done)
|
||||||
|
del deserialized_prints
|
||||||
|
|
||||||
|
while not identified:
|
||||||
|
ctx.iteration(True)
|
||||||
|
|
||||||
|
print("try to enroll duplicate")
|
||||||
|
template = FPrint.Print.new(d)
|
||||||
|
template.set_finger(FPrint.Finger.RIGHT_INDEX)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
try:
|
||||||
|
d.enroll_sync(template, None, enroll_progress, None)
|
||||||
|
except GLib.Error as error:
|
||||||
|
assert error.matches(FPrint.DeviceError.quark(),
|
||||||
|
FPrint.DeviceError.DATA_DUPLICATE)
|
||||||
|
except Exception as exc:
|
||||||
|
raise
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
print("duplicate enroll attempt done")
|
||||||
|
|
||||||
|
print("listing - device should still only have 1 print")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) == 1
|
||||||
|
assert stored[0].equal(p1)
|
||||||
|
del stored
|
||||||
|
|
||||||
|
print("enroll new finger")
|
||||||
|
template = FPrint.Print.new(d)
|
||||||
|
template.set_finger(FPrint.Finger.RIGHT_INDEX)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
p2 = d.enroll_sync(template, None, enroll_progress, None)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
print("enroll new finger done")
|
||||||
|
del template
|
||||||
|
|
||||||
|
print("listing - device should have 2 prints")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) == 2
|
||||||
|
assert (stored[0].equal(p1) and stored[1].equal(p2)) or (stored[0].equal(p2) and stored[1].equal(p1))
|
||||||
|
del stored
|
||||||
|
|
||||||
|
print("deleting first print")
|
||||||
|
d.delete_print_sync(p1)
|
||||||
|
print("delete done")
|
||||||
|
del p1
|
||||||
|
|
||||||
|
print("listing - device should only have second print")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) == 1
|
||||||
|
assert stored[0].equal(p2)
|
||||||
|
del stored
|
||||||
|
del p2
|
||||||
|
|
||||||
|
print("clear device storage")
|
||||||
|
d.clear_storage_sync()
|
||||||
|
print("clear done")
|
||||||
|
|
||||||
|
print("listing - device should be empty")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) == 0
|
||||||
|
del stored
|
||||||
|
|
||||||
|
d.close_sync()
|
||||||
|
|
||||||
|
del d
|
||||||
|
del c
|
||||||
@@ -0,0 +1,262 @@
|
|||||||
|
P: /devices/pci0000:00/0000:00:14.0/usb1/1-5
|
||||||
|
N: bus/usb/001/003=12010002FF0000407A1CA10513120102030109022700010100A0320904000003FF000000070581020002000705020200020007058303400005
|
||||||
|
E: BUSNUM=001
|
||||||
|
E: DEVNAME=/dev/bus/usb/001/003
|
||||||
|
E: DEVNUM=003
|
||||||
|
E: DEVTYPE=usb_device
|
||||||
|
E: DRIVER=usb
|
||||||
|
E: ID_BUS=usb
|
||||||
|
E: ID_MODEL=ETU905A80-E
|
||||||
|
E: ID_MODEL_ENC=ETU905A80-E
|
||||||
|
E: ID_MODEL_ID=05a1
|
||||||
|
E: ID_REVISION=1213
|
||||||
|
E: ID_SERIAL=EGIS_ETU905A80-E_0C5A44PCU833
|
||||||
|
E: ID_SERIAL_SHORT=0C5A44PCU833
|
||||||
|
E: ID_USB_INTERFACES=:ff0000:
|
||||||
|
E: ID_USB_MODEL=ETU905A80-E
|
||||||
|
E: ID_USB_MODEL_ENC=ETU905A80-E
|
||||||
|
E: ID_USB_MODEL_ID=05a1
|
||||||
|
E: ID_USB_REVISION=1213
|
||||||
|
E: ID_USB_SERIAL=EGIS_ETU905A80-E_0C5A44PCU833
|
||||||
|
E: ID_USB_SERIAL_SHORT=0C5A44PCU833
|
||||||
|
E: ID_USB_VENDOR=EGIS
|
||||||
|
E: ID_USB_VENDOR_ENC=EGIS
|
||||||
|
E: ID_USB_VENDOR_ID=1c7a
|
||||||
|
E: ID_VENDOR=EGIS
|
||||||
|
E: ID_VENDOR_ENC=EGIS
|
||||||
|
E: ID_VENDOR_FROM_DATABASE=LighTuning Technology Inc.
|
||||||
|
E: ID_VENDOR_ID=1c7a
|
||||||
|
E: MAJOR=189
|
||||||
|
E: MINOR=2
|
||||||
|
E: PRODUCT=1c7a/5a1/1213
|
||||||
|
E: SUBSYSTEM=usb
|
||||||
|
E: TYPE=255/0/0
|
||||||
|
A: authorized=1\n
|
||||||
|
A: avoid_reset_quirk=0\n
|
||||||
|
A: bConfigurationValue=1\n
|
||||||
|
A: bDeviceClass=ff\n
|
||||||
|
A: bDeviceProtocol=00\n
|
||||||
|
A: bDeviceSubClass=00\n
|
||||||
|
A: bMaxPacketSize0=64\n
|
||||||
|
A: bMaxPower=100mA\n
|
||||||
|
A: bNumConfigurations=1\n
|
||||||
|
A: bNumInterfaces= 1\n
|
||||||
|
A: bcdDevice=1213\n
|
||||||
|
A: bmAttributes=a0\n
|
||||||
|
A: busnum=1\n
|
||||||
|
A: configuration=
|
||||||
|
H: descriptors=12010002FF0000407A1CA10513120102030109022700010100A0320904000003FF000000070581020002000705020200020007058303400005
|
||||||
|
A: dev=189:2\n
|
||||||
|
A: devnum=3\n
|
||||||
|
A: devpath=5\n
|
||||||
|
L: driver=../../../../../bus/usb/drivers/usb
|
||||||
|
L: firmware_node=../../../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:51/device:52/device:57
|
||||||
|
A: idProduct=05a1\n
|
||||||
|
A: idVendor=1c7a\n
|
||||||
|
A: ltm_capable=no\n
|
||||||
|
A: manufacturer=EGIS\n
|
||||||
|
A: maxchild=0\n
|
||||||
|
A: physical_location/dock=no\n
|
||||||
|
A: physical_location/horizontal_position=center\n
|
||||||
|
A: physical_location/lid=no\n
|
||||||
|
A: physical_location/panel=unknown\n
|
||||||
|
A: physical_location/vertical_position=center\n
|
||||||
|
L: port=../1-0:1.0/usb1-port5
|
||||||
|
A: power/active_duration=955612\n
|
||||||
|
A: power/async=enabled\n
|
||||||
|
A: power/autosuspend=2\n
|
||||||
|
A: power/autosuspend_delay_ms=2000\n
|
||||||
|
A: power/connected_duration=955612\n
|
||||||
|
A: power/control=on\n
|
||||||
|
A: power/level=on\n
|
||||||
|
A: power/persist=0\n
|
||||||
|
A: power/runtime_active_kids=0\n
|
||||||
|
A: power/runtime_active_time=955338\n
|
||||||
|
A: power/runtime_enabled=forbidden\n
|
||||||
|
A: power/runtime_status=active\n
|
||||||
|
A: power/runtime_suspended_time=0\n
|
||||||
|
A: power/runtime_usage=1\n
|
||||||
|
A: power/wakeup=disabled\n
|
||||||
|
A: power/wakeup_abort_count=\n
|
||||||
|
A: power/wakeup_active=\n
|
||||||
|
A: power/wakeup_active_count=\n
|
||||||
|
A: power/wakeup_count=\n
|
||||||
|
A: power/wakeup_expire_count=\n
|
||||||
|
A: power/wakeup_last_time_ms=\n
|
||||||
|
A: power/wakeup_max_time_ms=\n
|
||||||
|
A: power/wakeup_total_time_ms=\n
|
||||||
|
A: product=ETU905A80-E\n
|
||||||
|
A: quirks=0x0\n
|
||||||
|
A: removable=fixed\n
|
||||||
|
A: rx_lanes=1\n
|
||||||
|
A: serial=0C5A44PCU833\n
|
||||||
|
A: speed=480\n
|
||||||
|
A: tx_lanes=1\n
|
||||||
|
A: urbnum=491\n
|
||||||
|
A: version= 2.00\n
|
||||||
|
|
||||||
|
P: /devices/pci0000:00/0000:00:14.0/usb1
|
||||||
|
N: bus/usb/001/001=12010002090001406B1D020005060302010109021900010100E0000904000001090000000705810304000C
|
||||||
|
E: BUSNUM=001
|
||||||
|
E: CURRENT_TAGS=:seat:
|
||||||
|
E: DEVNAME=/dev/bus/usb/001/001
|
||||||
|
E: DEVNUM=001
|
||||||
|
E: DEVTYPE=usb_device
|
||||||
|
E: DRIVER=usb
|
||||||
|
E: ID_AUTOSUSPEND=1
|
||||||
|
E: ID_BUS=usb
|
||||||
|
E: ID_FOR_SEAT=usb-pci-0000_00_14_0
|
||||||
|
E: ID_MODEL=xHCI_Host_Controller
|
||||||
|
E: ID_MODEL_ENC=xHCI\x20Host\x20Controller
|
||||||
|
E: ID_MODEL_FROM_DATABASE=2.0 root hub
|
||||||
|
E: ID_MODEL_ID=0002
|
||||||
|
E: ID_PATH=pci-0000:00:14.0
|
||||||
|
E: ID_PATH_TAG=pci-0000_00_14_0
|
||||||
|
E: ID_REVISION=0605
|
||||||
|
E: ID_SERIAL=Linux_6.5.0-9-generic_xhci-hcd_xHCI_Host_Controller_0000:00:14.0
|
||||||
|
E: ID_SERIAL_SHORT=0000:00:14.0
|
||||||
|
E: ID_USB_INTERFACES=:090000:
|
||||||
|
E: ID_USB_MODEL=xHCI_Host_Controller
|
||||||
|
E: ID_USB_MODEL_ENC=xHCI\x20Host\x20Controller
|
||||||
|
E: ID_USB_MODEL_ID=0002
|
||||||
|
E: ID_USB_REVISION=0605
|
||||||
|
E: ID_USB_SERIAL=Linux_6.5.0-9-generic_xhci-hcd_xHCI_Host_Controller_0000:00:14.0
|
||||||
|
E: ID_USB_SERIAL_SHORT=0000:00:14.0
|
||||||
|
E: ID_USB_VENDOR=Linux_6.5.0-9-generic_xhci-hcd
|
||||||
|
E: ID_USB_VENDOR_ENC=Linux\x206.5.0-9-generic\x20xhci-hcd
|
||||||
|
E: ID_USB_VENDOR_ID=1d6b
|
||||||
|
E: ID_VENDOR=Linux_6.5.0-9-generic_xhci-hcd
|
||||||
|
E: ID_VENDOR_ENC=Linux\x206.5.0-9-generic\x20xhci-hcd
|
||||||
|
E: ID_VENDOR_FROM_DATABASE=Linux Foundation
|
||||||
|
E: ID_VENDOR_ID=1d6b
|
||||||
|
E: MAJOR=189
|
||||||
|
E: MINOR=0
|
||||||
|
E: PRODUCT=1d6b/2/605
|
||||||
|
E: SUBSYSTEM=usb
|
||||||
|
E: TAGS=:seat:
|
||||||
|
E: TYPE=9/0/1
|
||||||
|
A: authorized=1\n
|
||||||
|
A: authorized_default=1\n
|
||||||
|
A: avoid_reset_quirk=0\n
|
||||||
|
A: bConfigurationValue=1\n
|
||||||
|
A: bDeviceClass=09\n
|
||||||
|
A: bDeviceProtocol=01\n
|
||||||
|
A: bDeviceSubClass=00\n
|
||||||
|
A: bMaxPacketSize0=64\n
|
||||||
|
A: bMaxPower=0mA\n
|
||||||
|
A: bNumConfigurations=1\n
|
||||||
|
A: bNumInterfaces= 1\n
|
||||||
|
A: bcdDevice=0605\n
|
||||||
|
A: bmAttributes=e0\n
|
||||||
|
A: busnum=1\n
|
||||||
|
A: configuration=
|
||||||
|
H: descriptors=12010002090001406B1D020005060302010109021900010100E0000904000001090000000705810304000C
|
||||||
|
A: dev=189:0\n
|
||||||
|
A: devnum=1\n
|
||||||
|
A: devpath=0\n
|
||||||
|
L: driver=../../../../bus/usb/drivers/usb
|
||||||
|
L: firmware_node=../../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:51/device:52
|
||||||
|
A: idProduct=0002\n
|
||||||
|
A: idVendor=1d6b\n
|
||||||
|
A: interface_authorized_default=1\n
|
||||||
|
A: ltm_capable=no\n
|
||||||
|
A: manufacturer=Linux 6.5.0-9-generic xhci-hcd\n
|
||||||
|
A: maxchild=12\n
|
||||||
|
A: power/active_duration=956044\n
|
||||||
|
A: power/async=enabled\n
|
||||||
|
A: power/autosuspend=0\n
|
||||||
|
A: power/autosuspend_delay_ms=0\n
|
||||||
|
A: power/connected_duration=956044\n
|
||||||
|
A: power/control=auto\n
|
||||||
|
A: power/level=auto\n
|
||||||
|
A: power/runtime_active_kids=2\n
|
||||||
|
A: power/runtime_active_time=956041\n
|
||||||
|
A: power/runtime_enabled=enabled\n
|
||||||
|
A: power/runtime_status=active\n
|
||||||
|
A: power/runtime_suspended_time=0\n
|
||||||
|
A: power/runtime_usage=0\n
|
||||||
|
A: power/wakeup=disabled\n
|
||||||
|
A: power/wakeup_abort_count=\n
|
||||||
|
A: power/wakeup_active=\n
|
||||||
|
A: power/wakeup_active_count=\n
|
||||||
|
A: power/wakeup_count=\n
|
||||||
|
A: power/wakeup_expire_count=\n
|
||||||
|
A: power/wakeup_last_time_ms=\n
|
||||||
|
A: power/wakeup_max_time_ms=\n
|
||||||
|
A: power/wakeup_total_time_ms=\n
|
||||||
|
A: product=xHCI Host Controller\n
|
||||||
|
A: quirks=0x0\n
|
||||||
|
A: removable=unknown\n
|
||||||
|
A: rx_lanes=1\n
|
||||||
|
A: serial=0000:00:14.0\n
|
||||||
|
A: speed=480\n
|
||||||
|
A: tx_lanes=1\n
|
||||||
|
A: urbnum=181\n
|
||||||
|
A: version= 2.00\n
|
||||||
|
|
||||||
|
P: /devices/pci0000:00/0000:00:14.0
|
||||||
|
E: DRIVER=xhci_hcd
|
||||||
|
E: ID_MODEL_FROM_DATABASE=Alder Lake PCH USB 3.2 xHCI Host Controller
|
||||||
|
E: ID_PCI_CLASS_FROM_DATABASE=Serial bus controller
|
||||||
|
E: ID_PCI_INTERFACE_FROM_DATABASE=XHCI
|
||||||
|
E: ID_PCI_SUBCLASS_FROM_DATABASE=USB controller
|
||||||
|
E: ID_VENDOR_FROM_DATABASE=Intel Corporation
|
||||||
|
E: MODALIAS=pci:v00008086d000051EDsv0000144Dsd0000C1CAbc0Csc03i30
|
||||||
|
E: PCI_CLASS=C0330
|
||||||
|
E: PCI_ID=8086:51ED
|
||||||
|
E: PCI_SLOT_NAME=0000:00:14.0
|
||||||
|
E: PCI_SUBSYS_ID=144D:C1CA
|
||||||
|
E: SUBSYSTEM=pci
|
||||||
|
A: ari_enabled=0\n
|
||||||
|
A: broken_parity_status=0\n
|
||||||
|
A: class=0x0c0330\n
|
||||||
|
H: config=8680ED51060490020130030C0000800004001A3E6000000000000000000000000000000000000000000000004D14CAC1000000007000000000000000FF010000FD0134A089C27F8000000000000000003F6DD80F000000000000000000000000316000000000000000000000000000000180C2C108000000000000000000000005908700D804E0FE000000000000000009B014F01000400100000000C10A080000080E00001800008F50020000010000090000018680C00009001014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B50F110112000000
|
||||||
|
A: consistent_dma_mask_bits=64\n
|
||||||
|
A: d3cold_allowed=1\n
|
||||||
|
A: dbc=disabled\n
|
||||||
|
A: dbc_bInterfaceProtocol=01\n
|
||||||
|
A: dbc_bcdDevice=0010\n
|
||||||
|
A: dbc_idProduct=0010\n
|
||||||
|
A: dbc_idVendor=1d6b\n
|
||||||
|
A: device=0x51ed\n
|
||||||
|
A: dma_mask_bits=64\n
|
||||||
|
L: driver=../../../bus/pci/drivers/xhci_hcd
|
||||||
|
A: driver_override=(null)\n
|
||||||
|
A: enable=1\n
|
||||||
|
L: firmware_node=../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:51
|
||||||
|
A: index=9\n
|
||||||
|
L: iommu=../../virtual/iommu/dmar2
|
||||||
|
L: iommu_group=../../../kernel/iommu_groups/11
|
||||||
|
A: irq=142\n
|
||||||
|
A: label=Onboard - Other\n
|
||||||
|
A: local_cpulist=0-15\n
|
||||||
|
A: local_cpus=ffff\n
|
||||||
|
A: modalias=pci:v00008086d000051EDsv0000144Dsd0000C1CAbc0Csc03i30\n
|
||||||
|
A: msi_bus=1\n
|
||||||
|
A: msi_irqs/142=msi\n
|
||||||
|
A: numa_node=-1\n
|
||||||
|
A: pools=poolinfo - 0.1\nbuffer-2048 0 0 2048 0\nbuffer-512 0 0 512 0\nbuffer-128 0 0 128 0\nbuffer-32 0 0 32 0\nxHCI 1KB stream ctx arrays 0 0 1024 0\nxHCI 256 byte stream ctx arrays 0 0 256 0\nxHCI input/output contexts 6 7 2112 7\nxHCI ring segments 28 28 4096 28\nbuffer-2048 0 0 2048 0\nbuffer-512 0 0 512 0\nbuffer-128 1 32 128 1\nbuffer-32 0 0 32 0\n
|
||||||
|
A: power/async=enabled\n
|
||||||
|
A: power/control=auto\n
|
||||||
|
A: power/runtime_active_kids=1\n
|
||||||
|
A: power/runtime_active_time=957198\n
|
||||||
|
A: power/runtime_enabled=enabled\n
|
||||||
|
A: power/runtime_status=active\n
|
||||||
|
A: power/runtime_suspended_time=0\n
|
||||||
|
A: power/runtime_usage=0\n
|
||||||
|
A: power/wakeup=enabled\n
|
||||||
|
A: power/wakeup_abort_count=0\n
|
||||||
|
A: power/wakeup_active=0\n
|
||||||
|
A: power/wakeup_active_count=0\n
|
||||||
|
A: power/wakeup_count=0\n
|
||||||
|
A: power/wakeup_expire_count=0\n
|
||||||
|
A: power/wakeup_last_time_ms=0\n
|
||||||
|
A: power/wakeup_max_time_ms=0\n
|
||||||
|
A: power/wakeup_total_time_ms=0\n
|
||||||
|
A: power_state=D0\n
|
||||||
|
A: resource=0x000000603e1a0000 0x000000603e1affff 0x0000000000140204\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n
|
||||||
|
A: revision=0x01\n
|
||||||
|
A: subsystem_device=0xc1ca\n
|
||||||
|
A: subsystem_vendor=0x144d\n
|
||||||
|
A: vendor=0x8086\n
|
||||||
|
|
||||||
Binary file not shown.
Executable
+156
@@ -0,0 +1,156 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
import gi
|
||||||
|
|
||||||
|
gi.require_version('FPrint', '2.0')
|
||||||
|
from gi.repository import FPrint, GLib
|
||||||
|
|
||||||
|
# Exit with error on any exception, included those happening in async callbacks
|
||||||
|
sys.excepthook = lambda *args: (traceback.print_exception(*args), sys.exit(1))
|
||||||
|
|
||||||
|
ctx = GLib.main_context_default()
|
||||||
|
|
||||||
|
c = FPrint.Context()
|
||||||
|
c.enumerate()
|
||||||
|
devices = c.get_devices()
|
||||||
|
|
||||||
|
d = devices[0]
|
||||||
|
del devices
|
||||||
|
|
||||||
|
d.open_sync()
|
||||||
|
|
||||||
|
assert d.get_driver() == "egismoc"
|
||||||
|
assert not d.has_feature(FPrint.DeviceFeature.CAPTURE)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.IDENTIFY)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.VERIFY)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.DUPLICATES_CHECK)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.STORAGE)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.STORAGE_LIST)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.STORAGE_DELETE)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.STORAGE_CLEAR)
|
||||||
|
|
||||||
|
def enroll_progress(*args):
|
||||||
|
print("finger status: ", d.get_finger_status())
|
||||||
|
print('enroll progress: ' + str(args))
|
||||||
|
|
||||||
|
def identify_done(dev, res):
|
||||||
|
global identified
|
||||||
|
identified = True
|
||||||
|
identify_match, identify_print = dev.identify_finish(res)
|
||||||
|
print('indentification_done: ', identify_match, identify_print)
|
||||||
|
assert identify_match.equal(identify_print)
|
||||||
|
|
||||||
|
# Beginning with list and clear assumes you begin with >0 prints enrolled before capturing
|
||||||
|
|
||||||
|
print("listing - device should have prints")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) > 0
|
||||||
|
del stored
|
||||||
|
|
||||||
|
print("clear device storage")
|
||||||
|
d.clear_storage_sync()
|
||||||
|
print("clear done")
|
||||||
|
|
||||||
|
print("listing - device should be empty")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) == 0
|
||||||
|
del stored
|
||||||
|
|
||||||
|
print("enrolling")
|
||||||
|
template = FPrint.Print.new(d)
|
||||||
|
template.set_finger(FPrint.Finger.LEFT_INDEX)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
p1 = d.enroll_sync(template, None, enroll_progress, None)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
print("enroll done")
|
||||||
|
del template
|
||||||
|
|
||||||
|
print("listing - device should have 1 print")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) == 1
|
||||||
|
assert stored[0].equal(p1)
|
||||||
|
|
||||||
|
print("verifying")
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
verify_res, verify_print = d.verify_sync(p1)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
print("verify done")
|
||||||
|
assert verify_res == True
|
||||||
|
|
||||||
|
identified = False
|
||||||
|
deserialized_prints = []
|
||||||
|
for p in stored:
|
||||||
|
deserialized_prints.append(FPrint.Print.deserialize(p.serialize()))
|
||||||
|
assert deserialized_prints[-1].equal(p)
|
||||||
|
del stored
|
||||||
|
|
||||||
|
print('async identifying')
|
||||||
|
d.identify(deserialized_prints, callback=identify_done)
|
||||||
|
del deserialized_prints
|
||||||
|
|
||||||
|
while not identified:
|
||||||
|
ctx.iteration(True)
|
||||||
|
|
||||||
|
print("try to enroll duplicate")
|
||||||
|
template = FPrint.Print.new(d)
|
||||||
|
template.set_finger(FPrint.Finger.RIGHT_INDEX)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
try:
|
||||||
|
d.enroll_sync(template, None, enroll_progress, None)
|
||||||
|
except GLib.Error as error:
|
||||||
|
assert error.matches(FPrint.DeviceError.quark(),
|
||||||
|
FPrint.DeviceError.DATA_DUPLICATE)
|
||||||
|
except Exception as exc:
|
||||||
|
raise
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
print("duplicate enroll attempt done")
|
||||||
|
|
||||||
|
print("listing - device should still only have 1 print")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) == 1
|
||||||
|
assert stored[0].equal(p1)
|
||||||
|
del stored
|
||||||
|
|
||||||
|
print("enroll new finger")
|
||||||
|
template = FPrint.Print.new(d)
|
||||||
|
template.set_finger(FPrint.Finger.RIGHT_INDEX)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
p2 = d.enroll_sync(template, None, enroll_progress, None)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
print("enroll new finger done")
|
||||||
|
del template
|
||||||
|
|
||||||
|
print("listing - device should have 2 prints")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) == 2
|
||||||
|
assert (stored[0].equal(p1) and stored[1].equal(p2)) or (stored[0].equal(p2) and stored[1].equal(p1))
|
||||||
|
del stored
|
||||||
|
|
||||||
|
print("deleting first print")
|
||||||
|
d.delete_print_sync(p1)
|
||||||
|
print("delete done")
|
||||||
|
del p1
|
||||||
|
|
||||||
|
print("listing - device should only have second print")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) == 1
|
||||||
|
assert stored[0].equal(p2)
|
||||||
|
del stored
|
||||||
|
del p2
|
||||||
|
|
||||||
|
print("clear device storage")
|
||||||
|
d.clear_storage_sync()
|
||||||
|
print("clear done")
|
||||||
|
|
||||||
|
print("listing - device should be empty")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
assert len(stored) == 0
|
||||||
|
del stored
|
||||||
|
|
||||||
|
d.close_sync()
|
||||||
|
|
||||||
|
del d
|
||||||
|
del c
|
||||||
@@ -0,0 +1,262 @@
|
|||||||
|
P: /devices/pci0000:00/0000:00:14.0/usb3/3-5
|
||||||
|
N: bus/usb/003/012=12010002FF0000407A1C820581110102030109022700010100A0320904000003FF000000070581020002000705020200020007058303400005
|
||||||
|
E: BUSNUM=003
|
||||||
|
E: CURRENT_TAGS=:snap_cups_ippeveprinter:snap_cups_cupsd:
|
||||||
|
E: DEVNAME=/dev/bus/usb/003/012
|
||||||
|
E: DEVNUM=012
|
||||||
|
E: DEVTYPE=usb_device
|
||||||
|
E: DRIVER=usb
|
||||||
|
E: ID_BUS=usb
|
||||||
|
E: ID_MODEL=ETU905A80-E
|
||||||
|
E: ID_MODEL_ENC=ETU905A80-E
|
||||||
|
E: ID_MODEL_ID=0582
|
||||||
|
E: ID_PATH=pci-0000:00:14.0-usb-0:5
|
||||||
|
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_5
|
||||||
|
E: ID_REVISION=1181
|
||||||
|
E: ID_SERIAL=EGIS_ETU905A80-E_0E7828PBS393
|
||||||
|
E: ID_SERIAL_SHORT=0E7828PBS393
|
||||||
|
E: ID_USB_INTERFACES=:ff0000:
|
||||||
|
E: ID_USB_MODEL=ETU905A80-E
|
||||||
|
E: ID_USB_MODEL_ENC=ETU905A80-E
|
||||||
|
E: ID_USB_MODEL_ID=0582
|
||||||
|
E: ID_USB_REVISION=1181
|
||||||
|
E: ID_USB_SERIAL=EGIS_ETU905A80-E_0E7828PBS393
|
||||||
|
E: ID_USB_SERIAL_SHORT=0E7828PBS393
|
||||||
|
E: ID_USB_VENDOR=EGIS
|
||||||
|
E: ID_USB_VENDOR_ENC=EGIS
|
||||||
|
E: ID_USB_VENDOR_ID=1c7a
|
||||||
|
E: ID_VENDOR=EGIS
|
||||||
|
E: ID_VENDOR_ENC=EGIS
|
||||||
|
E: ID_VENDOR_FROM_DATABASE=LighTuning Technology Inc.
|
||||||
|
E: ID_VENDOR_ID=1c7a
|
||||||
|
E: MAJOR=189
|
||||||
|
E: MINOR=267
|
||||||
|
E: PRODUCT=1c7a/582/1181
|
||||||
|
E: SUBSYSTEM=usb
|
||||||
|
E: TAGS=:snap_cups_ippeveprinter:snap_cups_cupsd:
|
||||||
|
E: TYPE=255/0/0
|
||||||
|
A: authorized=1\n
|
||||||
|
A: avoid_reset_quirk=0\n
|
||||||
|
A: bConfigurationValue=1\n
|
||||||
|
A: bDeviceClass=ff\n
|
||||||
|
A: bDeviceProtocol=00\n
|
||||||
|
A: bDeviceSubClass=00\n
|
||||||
|
A: bMaxPacketSize0=64\n
|
||||||
|
A: bMaxPower=100mA\n
|
||||||
|
A: bNumConfigurations=1\n
|
||||||
|
A: bNumInterfaces= 1\n
|
||||||
|
A: bcdDevice=1181\n
|
||||||
|
A: bmAttributes=a0\n
|
||||||
|
A: busnum=3\n
|
||||||
|
A: configuration=
|
||||||
|
H: descriptors=12010002FF0000407A1C820581110102030109022700010100A0320904000003FF000000070581020002000705020200020007058303400005
|
||||||
|
A: dev=189:267\n
|
||||||
|
A: devnum=12\n
|
||||||
|
A: devpath=5\n
|
||||||
|
L: driver=../../../../../bus/usb/drivers/usb
|
||||||
|
L: firmware_node=../../../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:51/device:52/device:57
|
||||||
|
A: idProduct=0582\n
|
||||||
|
A: idVendor=1c7a\n
|
||||||
|
A: ltm_capable=no\n
|
||||||
|
A: manufacturer=EGIS\n
|
||||||
|
A: maxchild=0\n
|
||||||
|
A: physical_location/dock=no\n
|
||||||
|
A: physical_location/horizontal_position=center\n
|
||||||
|
A: physical_location/lid=no\n
|
||||||
|
A: physical_location/panel=unknown\n
|
||||||
|
A: physical_location/vertical_position=center\n
|
||||||
|
L: port=../3-0:1.0/usb3-port5
|
||||||
|
A: power/active_duration=1425996\n
|
||||||
|
A: power/async=enabled\n
|
||||||
|
A: power/autosuspend=2\n
|
||||||
|
A: power/autosuspend_delay_ms=2000\n
|
||||||
|
A: power/connected_duration=1426656\n
|
||||||
|
A: power/control=on\n
|
||||||
|
A: power/level=on\n
|
||||||
|
A: power/persist=0\n
|
||||||
|
A: power/runtime_active_kids=0\n
|
||||||
|
A: power/runtime_active_time=1426124\n
|
||||||
|
A: power/runtime_enabled=forbidden\n
|
||||||
|
A: power/runtime_status=active\n
|
||||||
|
A: power/runtime_suspended_time=0\n
|
||||||
|
A: power/runtime_usage=1\n
|
||||||
|
A: power/wakeup=disabled\n
|
||||||
|
A: power/wakeup_abort_count=\n
|
||||||
|
A: power/wakeup_active=\n
|
||||||
|
A: power/wakeup_active_count=\n
|
||||||
|
A: power/wakeup_count=\n
|
||||||
|
A: power/wakeup_expire_count=\n
|
||||||
|
A: power/wakeup_last_time_ms=\n
|
||||||
|
A: power/wakeup_max_time_ms=\n
|
||||||
|
A: power/wakeup_total_time_ms=\n
|
||||||
|
A: product=ETU905A80-E\n
|
||||||
|
A: quirks=0x0\n
|
||||||
|
A: removable=fixed\n
|
||||||
|
A: rx_lanes=1\n
|
||||||
|
A: serial=0E7828PBS393\n
|
||||||
|
A: speed=480\n
|
||||||
|
A: tx_lanes=1\n
|
||||||
|
A: urbnum=2803\n
|
||||||
|
A: version= 2.00\n
|
||||||
|
|
||||||
|
P: /devices/pci0000:00/0000:00:14.0/usb3
|
||||||
|
N: bus/usb/003/001=12010002090001406B1D020002060302010109021900010100E0000904000001090000000705810304000C
|
||||||
|
E: BUSNUM=003
|
||||||
|
E: CURRENT_TAGS=:seat:snap_cups_cupsd:snap_cups_ippeveprinter:
|
||||||
|
E: DEVNAME=/dev/bus/usb/003/001
|
||||||
|
E: DEVNUM=001
|
||||||
|
E: DEVTYPE=usb_device
|
||||||
|
E: DRIVER=usb
|
||||||
|
E: ID_AUTOSUSPEND=1
|
||||||
|
E: ID_BUS=usb
|
||||||
|
E: ID_FOR_SEAT=usb-pci-0000_00_14_0
|
||||||
|
E: ID_MODEL=xHCI_Host_Controller
|
||||||
|
E: ID_MODEL_ENC=xHCI\x20Host\x20Controller
|
||||||
|
E: ID_MODEL_FROM_DATABASE=2.0 root hub
|
||||||
|
E: ID_MODEL_ID=0002
|
||||||
|
E: ID_PATH=pci-0000:00:14.0
|
||||||
|
E: ID_PATH_TAG=pci-0000_00_14_0
|
||||||
|
E: ID_REVISION=0602
|
||||||
|
E: ID_SERIAL=Linux_6.2.0-34-generic_xhci-hcd_xHCI_Host_Controller_0000:00:14.0
|
||||||
|
E: ID_SERIAL_SHORT=0000:00:14.0
|
||||||
|
E: ID_USB_INTERFACES=:090000:
|
||||||
|
E: ID_USB_MODEL=xHCI_Host_Controller
|
||||||
|
E: ID_USB_MODEL_ENC=xHCI\x20Host\x20Controller
|
||||||
|
E: ID_USB_MODEL_ID=0002
|
||||||
|
E: ID_USB_REVISION=0602
|
||||||
|
E: ID_USB_SERIAL=Linux_6.2.0-34-generic_xhci-hcd_xHCI_Host_Controller_0000:00:14.0
|
||||||
|
E: ID_USB_SERIAL_SHORT=0000:00:14.0
|
||||||
|
E: ID_USB_VENDOR=Linux_6.2.0-34-generic_xhci-hcd
|
||||||
|
E: ID_USB_VENDOR_ENC=Linux\x206.2.0-34-generic\x20xhci-hcd
|
||||||
|
E: ID_USB_VENDOR_ID=1d6b
|
||||||
|
E: ID_VENDOR=Linux_6.2.0-34-generic_xhci-hcd
|
||||||
|
E: ID_VENDOR_ENC=Linux\x206.2.0-34-generic\x20xhci-hcd
|
||||||
|
E: ID_VENDOR_FROM_DATABASE=Linux Foundation
|
||||||
|
E: ID_VENDOR_ID=1d6b
|
||||||
|
E: MAJOR=189
|
||||||
|
E: MINOR=256
|
||||||
|
E: PRODUCT=1d6b/2/602
|
||||||
|
E: SUBSYSTEM=usb
|
||||||
|
E: TAGS=:snap_cups_cupsd:seat:snap_cups_ippeveprinter:
|
||||||
|
E: TYPE=9/0/1
|
||||||
|
A: authorized=1\n
|
||||||
|
A: authorized_default=1\n
|
||||||
|
A: avoid_reset_quirk=0\n
|
||||||
|
A: bConfigurationValue=1\n
|
||||||
|
A: bDeviceClass=09\n
|
||||||
|
A: bDeviceProtocol=01\n
|
||||||
|
A: bDeviceSubClass=00\n
|
||||||
|
A: bMaxPacketSize0=64\n
|
||||||
|
A: bMaxPower=0mA\n
|
||||||
|
A: bNumConfigurations=1\n
|
||||||
|
A: bNumInterfaces= 1\n
|
||||||
|
A: bcdDevice=0602\n
|
||||||
|
A: bmAttributes=e0\n
|
||||||
|
A: busnum=3\n
|
||||||
|
A: configuration=
|
||||||
|
H: descriptors=12010002090001406B1D020002060302010109021900010100E0000904000001090000000705810304000C
|
||||||
|
A: dev=189:256\n
|
||||||
|
A: devnum=1\n
|
||||||
|
A: devpath=0\n
|
||||||
|
L: driver=../../../../bus/usb/drivers/usb
|
||||||
|
L: firmware_node=../../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:51/device:52
|
||||||
|
A: idProduct=0002\n
|
||||||
|
A: idVendor=1d6b\n
|
||||||
|
A: interface_authorized_default=1\n
|
||||||
|
A: ltm_capable=no\n
|
||||||
|
A: manufacturer=Linux 6.2.0-34-generic xhci-hcd\n
|
||||||
|
A: maxchild=12\n
|
||||||
|
A: power/active_duration=337953872\n
|
||||||
|
A: power/async=enabled\n
|
||||||
|
A: power/autosuspend=0\n
|
||||||
|
A: power/autosuspend_delay_ms=0\n
|
||||||
|
A: power/connected_duration=337978524\n
|
||||||
|
A: power/control=auto\n
|
||||||
|
A: power/level=auto\n
|
||||||
|
A: power/runtime_active_kids=1\n
|
||||||
|
A: power/runtime_active_time=337962424\n
|
||||||
|
A: power/runtime_enabled=enabled\n
|
||||||
|
A: power/runtime_status=active\n
|
||||||
|
A: power/runtime_suspended_time=616\n
|
||||||
|
A: power/runtime_usage=0\n
|
||||||
|
A: power/wakeup=disabled\n
|
||||||
|
A: power/wakeup_abort_count=\n
|
||||||
|
A: power/wakeup_active=\n
|
||||||
|
A: power/wakeup_active_count=\n
|
||||||
|
A: power/wakeup_count=\n
|
||||||
|
A: power/wakeup_expire_count=\n
|
||||||
|
A: power/wakeup_last_time_ms=\n
|
||||||
|
A: power/wakeup_max_time_ms=\n
|
||||||
|
A: power/wakeup_total_time_ms=\n
|
||||||
|
A: product=xHCI Host Controller\n
|
||||||
|
A: quirks=0x0\n
|
||||||
|
A: removable=unknown\n
|
||||||
|
A: rx_lanes=1\n
|
||||||
|
A: serial=0000:00:14.0\n
|
||||||
|
A: speed=480\n
|
||||||
|
A: tx_lanes=1\n
|
||||||
|
A: urbnum=4969\n
|
||||||
|
A: version= 2.00\n
|
||||||
|
|
||||||
|
P: /devices/pci0000:00/0000:00:14.0
|
||||||
|
E: DRIVER=xhci_hcd
|
||||||
|
E: ID_MODEL_FROM_DATABASE=Alder Lake PCH USB 3.2 xHCI Host Controller
|
||||||
|
E: ID_PCI_CLASS_FROM_DATABASE=Serial bus controller
|
||||||
|
E: ID_PCI_INTERFACE_FROM_DATABASE=XHCI
|
||||||
|
E: ID_PCI_SUBCLASS_FROM_DATABASE=USB controller
|
||||||
|
E: ID_VENDOR_FROM_DATABASE=Intel Corporation
|
||||||
|
E: MODALIAS=pci:v00008086d000051EDsv0000144Dsd0000C870bc0Csc03i30
|
||||||
|
E: PCI_CLASS=C0330
|
||||||
|
E: PCI_ID=8086:51ED
|
||||||
|
E: PCI_SLOT_NAME=0000:00:14.0
|
||||||
|
E: PCI_SUBSYS_ID=144D:C870
|
||||||
|
E: SUBSYSTEM=pci
|
||||||
|
A: ari_enabled=0\n
|
||||||
|
A: broken_parity_status=0\n
|
||||||
|
A: class=0x0c0330\n
|
||||||
|
H: config=8680ED51060490020130030C000080000400161D6000000000000000000000000000000000000000000000004D1470C8000000007000000000000000FF010000FD0134A089C27F8000000000000000003F6DD80F000000000000000000000000316000000000000000000000000000000180C2C1080000000000000000000000059087007805E0FE000000000000000009B014F01000400100000000C10A080000080E00001800008F50020000010000090000018680C00009001014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B50F010112000000
|
||||||
|
A: consistent_dma_mask_bits=64\n
|
||||||
|
A: d3cold_allowed=1\n
|
||||||
|
A: dbc=disabled\n
|
||||||
|
A: device=0x51ed\n
|
||||||
|
A: dma_mask_bits=64\n
|
||||||
|
L: driver=../../../bus/pci/drivers/xhci_hcd
|
||||||
|
A: driver_override=(null)\n
|
||||||
|
A: enable=1\n
|
||||||
|
L: firmware_node=../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:51
|
||||||
|
A: index=7\n
|
||||||
|
L: iommu=../../virtual/iommu/dmar1
|
||||||
|
L: iommu_group=../../../kernel/iommu_groups/8
|
||||||
|
A: irq=145\n
|
||||||
|
A: label=Onboard - Other\n
|
||||||
|
A: local_cpulist=0-15\n
|
||||||
|
A: local_cpus=ffff\n
|
||||||
|
A: modalias=pci:v00008086d000051EDsv0000144Dsd0000C870bc0Csc03i30\n
|
||||||
|
A: msi_bus=1\n
|
||||||
|
A: msi_irqs/145=msi\n
|
||||||
|
A: numa_node=-1\n
|
||||||
|
A: pools=poolinfo - 0.1\nbuffer-2048 0 0 2048 0\nbuffer-512 0 0 512 0\nbuffer-128 0 0 128 0\nbuffer-32 0 0 32 0\nxHCI 1KB stream ctx arrays 0 0 1024 0\nxHCI 256 byte stream ctx arrays 0 0 256 0\nxHCI input/output contexts 6 9 2112 9\nxHCI ring segments 26 34 4096 34\nbuffer-2048 0 0 2048 0\nbuffer-512 0 0 512 0\nbuffer-128 0 32 128 1\nbuffer-32 0 0 32 0\n
|
||||||
|
A: power/async=enabled\n
|
||||||
|
A: power/control=auto\n
|
||||||
|
A: power/runtime_active_kids=1\n
|
||||||
|
A: power/runtime_active_time=337964621\n
|
||||||
|
A: power/runtime_enabled=enabled\n
|
||||||
|
A: power/runtime_status=active\n
|
||||||
|
A: power/runtime_suspended_time=438\n
|
||||||
|
A: power/runtime_usage=0\n
|
||||||
|
A: power/wakeup=enabled\n
|
||||||
|
A: power/wakeup_abort_count=0\n
|
||||||
|
A: power/wakeup_active=0\n
|
||||||
|
A: power/wakeup_active_count=7\n
|
||||||
|
A: power/wakeup_count=0\n
|
||||||
|
A: power/wakeup_expire_count=7\n
|
||||||
|
A: power/wakeup_last_time_ms=336554844\n
|
||||||
|
A: power/wakeup_max_time_ms=105\n
|
||||||
|
A: power/wakeup_total_time_ms=721\n
|
||||||
|
A: power_state=D0\n
|
||||||
|
A: resource=0x000000601d160000 0x000000601d16ffff 0x0000000000140204\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n0x0000000000000000 0x0000000000000000 0x0000000000000000\n
|
||||||
|
A: revision=0x01\n
|
||||||
|
A: subsystem_device=0xc870\n
|
||||||
|
A: subsystem_vendor=0x144d\n
|
||||||
|
A: vendor=0x8086\n
|
||||||
|
|
||||||
Binary file not shown.
Executable
+89
@@ -0,0 +1,89 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
import sys
|
||||||
|
import gi
|
||||||
|
|
||||||
|
gi.require_version('FPrint', '2.0')
|
||||||
|
from gi.repository import FPrint, GLib
|
||||||
|
|
||||||
|
# Exit with error on any exception, included those happening in async callbacks
|
||||||
|
sys.excepthook = lambda *args: (traceback.print_exception(*args), sys.exit(1))
|
||||||
|
|
||||||
|
ctx = GLib.main_context_default()
|
||||||
|
|
||||||
|
c = FPrint.Context()
|
||||||
|
c.enumerate()
|
||||||
|
devices = c.get_devices()
|
||||||
|
|
||||||
|
d = devices[0]
|
||||||
|
del devices
|
||||||
|
|
||||||
|
assert d.get_driver() == "focaltech_moc"
|
||||||
|
assert not d.has_feature(FPrint.DeviceFeature.CAPTURE)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.IDENTIFY)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.VERIFY)
|
||||||
|
assert not d.has_feature(FPrint.DeviceFeature.DUPLICATES_CHECK)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.STORAGE)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.STORAGE_LIST)
|
||||||
|
assert d.has_feature(FPrint.DeviceFeature.STORAGE_DELETE)
|
||||||
|
assert not d.has_feature(FPrint.DeviceFeature.STORAGE_CLEAR)
|
||||||
|
|
||||||
|
d.open_sync()
|
||||||
|
|
||||||
|
template = FPrint.Print.new(d)
|
||||||
|
|
||||||
|
def enroll_progress(*args):
|
||||||
|
#assert d.get_finger_status() == FPrint.FingerStatusFlags.NEEDED
|
||||||
|
print("finger status: ", d.get_finger_status())
|
||||||
|
print('enroll progress: ' + str(args))
|
||||||
|
|
||||||
|
def identify_done(dev, res):
|
||||||
|
global identified
|
||||||
|
identified = True
|
||||||
|
identify_match, identify_print = dev.identify_finish(res)
|
||||||
|
print('indentification_done: ', identify_match, identify_print)
|
||||||
|
assert identify_match.equal(identify_print)
|
||||||
|
|
||||||
|
# List, enroll, list, verify, identify, delete
|
||||||
|
print("enrolling")
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
p = d.enroll_sync(template, None, enroll_progress, None)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
print("enroll done")
|
||||||
|
|
||||||
|
print("listing")
|
||||||
|
stored = d.list_prints_sync()
|
||||||
|
print("listing done")
|
||||||
|
assert len(stored) == 1
|
||||||
|
assert stored[0].equal(p)
|
||||||
|
print("verifying")
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
verify_res, verify_print = d.verify_sync(p)
|
||||||
|
assert d.get_finger_status() == FPrint.FingerStatusFlags.NONE
|
||||||
|
print("verify done")
|
||||||
|
del p
|
||||||
|
assert verify_res == True
|
||||||
|
|
||||||
|
identified = False
|
||||||
|
deserialized_prints = []
|
||||||
|
for p in stored:
|
||||||
|
deserialized_prints.append(FPrint.Print.deserialize(p.serialize()))
|
||||||
|
assert deserialized_prints[-1].equal(p)
|
||||||
|
del stored
|
||||||
|
|
||||||
|
print('async identifying')
|
||||||
|
d.identify(deserialized_prints, callback=identify_done)
|
||||||
|
del deserialized_prints
|
||||||
|
|
||||||
|
while not identified:
|
||||||
|
ctx.iteration(True)
|
||||||
|
|
||||||
|
print("deleting")
|
||||||
|
d.delete_print_sync(p)
|
||||||
|
print("delete done")
|
||||||
|
|
||||||
|
d.close_sync()
|
||||||
|
|
||||||
|
del d
|
||||||
|
del c
|
||||||
File diff suppressed because one or more lines are too long
@@ -24,3 +24,12 @@
|
|||||||
...
|
...
|
||||||
fun:g_thread_new
|
fun:g_thread_new
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
<ignore-bash-leaks>
|
||||||
|
Memcheck:Leak
|
||||||
|
match-leak-kinds: definite
|
||||||
|
fun:malloc
|
||||||
|
...
|
||||||
|
obj:/usr/bin/bash
|
||||||
|
}
|
||||||
|
|||||||
+222
-14
@@ -6,6 +6,8 @@ envs.set('G_MESSAGES_DEBUG', 'all')
|
|||||||
# Setup paths
|
# Setup paths
|
||||||
envs.set('MESON_SOURCE_ROOT', meson.project_source_root())
|
envs.set('MESON_SOURCE_ROOT', meson.project_source_root())
|
||||||
envs.set('MESON_BUILD_ROOT', meson.project_build_root())
|
envs.set('MESON_BUILD_ROOT', meson.project_build_root())
|
||||||
|
envs.set('G_TEST_SRCDIR', meson.current_source_dir())
|
||||||
|
envs.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||||
envs.prepend('LD_LIBRARY_PATH', meson.project_build_root() / 'libfprint')
|
envs.prepend('LD_LIBRARY_PATH', meson.project_build_root() / 'libfprint')
|
||||||
|
|
||||||
# Set FP_DEVICE_EMULATION so that drivers can adapt (e.g. to use fixed
|
# Set FP_DEVICE_EMULATION so that drivers can adapt (e.g. to use fixed
|
||||||
@@ -13,7 +15,7 @@ envs.prepend('LD_LIBRARY_PATH', meson.project_build_root() / 'libfprint')
|
|||||||
envs.set('FP_DEVICE_EMULATION', '1')
|
envs.set('FP_DEVICE_EMULATION', '1')
|
||||||
|
|
||||||
# Set a colon-separated list of native drivers we enable in tests
|
# Set a colon-separated list of native drivers we enable in tests
|
||||||
envs.set('FP_DRIVERS_WHITELIST', ':'.join([
|
envs.set('FP_DRIVERS_ALLOWLIST', ':'.join([
|
||||||
'virtual_image',
|
'virtual_image',
|
||||||
'virtual_device',
|
'virtual_device',
|
||||||
'virtual_device_storage',
|
'virtual_device_storage',
|
||||||
@@ -49,7 +51,11 @@ drivers_tests = [
|
|||||||
'goodixmoc',
|
'goodixmoc',
|
||||||
'nb1010',
|
'nb1010',
|
||||||
'egis0570',
|
'egis0570',
|
||||||
|
'egismoc',
|
||||||
|
'egismoc-05a1',
|
||||||
'fpcmoc',
|
'fpcmoc',
|
||||||
|
'realtek',
|
||||||
|
'focaltech_moc',
|
||||||
]
|
]
|
||||||
|
|
||||||
if get_option('introspection')
|
if get_option('introspection')
|
||||||
@@ -71,6 +77,12 @@ envs_str = run_command(python3, '-c', env_parser_cmd,
|
|||||||
env: envs,
|
env: envs,
|
||||||
check: installed_tests).stdout().strip()
|
check: installed_tests).stdout().strip()
|
||||||
|
|
||||||
|
envs_str = ' '.join([
|
||||||
|
envs_str,
|
||||||
|
'G_TEST_SRCDIR=' + installed_tests_testdir,
|
||||||
|
'G_TEST_BUILDDIR=' + installed_tests_execdir,
|
||||||
|
])
|
||||||
|
|
||||||
if get_option('introspection')
|
if get_option('introspection')
|
||||||
envs.prepend('GI_TYPELIB_PATH', meson.project_build_root() / 'libfprint')
|
envs.prepend('GI_TYPELIB_PATH', meson.project_build_root() / 'libfprint')
|
||||||
virtual_devices_tests = [
|
virtual_devices_tests = [
|
||||||
@@ -88,11 +100,17 @@ if get_option('introspection')
|
|||||||
base_args = files(vdtest + '.py')
|
base_args = files(vdtest + '.py')
|
||||||
suite = ['virtual-driver']
|
suite = ['virtual-driver']
|
||||||
|
|
||||||
r = run_command(unittest_inspector, files(vdtest + '.py'), check: true)
|
r = run_command(unittest_inspector, files(vdtest + '.py'), check: false)
|
||||||
unit_tests = r.stdout().strip().split('\n')
|
unit_tests = r.stdout().strip().split('\n')
|
||||||
|
|
||||||
if r.returncode() == 0 and unit_tests.length() > 0
|
if r.returncode() == 0 and unit_tests.length() > 0
|
||||||
suite += vdtest
|
suite += vdtest
|
||||||
|
elif r.returncode() == 77
|
||||||
|
test(vdtest,
|
||||||
|
sh,
|
||||||
|
args: ['-c', 'exit 77']
|
||||||
|
)
|
||||||
|
continue
|
||||||
else
|
else
|
||||||
unit_tests = [vdtest]
|
unit_tests = [vdtest]
|
||||||
endif
|
endif
|
||||||
@@ -139,7 +157,7 @@ if get_option('introspection')
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
test(vdtest,
|
test(vdtest,
|
||||||
find_program('sh'),
|
sh,
|
||||||
args: ['-c', 'exit 77']
|
args: ['-c', 'exit 77']
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
@@ -149,7 +167,7 @@ if get_option('introspection')
|
|||||||
foreach driver_test: drivers_tests
|
foreach driver_test: drivers_tests
|
||||||
driver_name = driver_test.split('-')[0]
|
driver_name = driver_test.split('-')[0]
|
||||||
driver_envs = envs
|
driver_envs = envs
|
||||||
driver_envs.set('FP_DRIVERS_WHITELIST', driver_name)
|
driver_envs.set('FP_DRIVERS_ALLOWLIST', driver_name)
|
||||||
|
|
||||||
if (driver_name in supported_drivers and
|
if (driver_name in supported_drivers and
|
||||||
gusb_dep.version().version_compare('>= 0.3.0'))
|
gusb_dep.version().version_compare('>= 0.3.0'))
|
||||||
@@ -193,7 +211,7 @@ if get_option('introspection')
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
test(driver_test,
|
test(driver_test,
|
||||||
find_program('sh'),
|
sh,
|
||||||
args: ['-c', 'exit 77']
|
args: ['-c', 'exit 77']
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
@@ -212,13 +230,13 @@ if get_option('introspection')
|
|||||||
else
|
else
|
||||||
warning('Skipping all driver tests as introspection bindings are missing')
|
warning('Skipping all driver tests as introspection bindings are missing')
|
||||||
test('virtual-image',
|
test('virtual-image',
|
||||||
find_program('sh'),
|
sh,
|
||||||
args: ['-c', 'exit 77']
|
args: ['-c', 'exit 77']
|
||||||
)
|
)
|
||||||
|
|
||||||
foreach driver_test: drivers_tests
|
foreach driver_test: drivers_tests
|
||||||
test(driver_test,
|
test(driver_test,
|
||||||
find_program('sh'),
|
sh,
|
||||||
args: ['-c', 'exit 77']
|
args: ['-c', 'exit 77']
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
@@ -247,10 +265,6 @@ endif
|
|||||||
|
|
||||||
unit_tests_deps = { 'fpi-assembling' : [cairo_dep] }
|
unit_tests_deps = { 'fpi-assembling' : [cairo_dep] }
|
||||||
|
|
||||||
test_config = configuration_data()
|
|
||||||
test_config.set_quoted('SOURCE_ROOT', meson.project_source_root())
|
|
||||||
test_config_h = configure_file(output: 'test-config.h', configuration: test_config)
|
|
||||||
|
|
||||||
foreach test_name: unit_tests
|
foreach test_name: unit_tests
|
||||||
if unit_tests_deps.has_key(test_name)
|
if unit_tests_deps.has_key(test_name)
|
||||||
missing_deps = false
|
missing_deps = false
|
||||||
@@ -265,7 +279,7 @@ foreach test_name: unit_tests
|
|||||||
# Create a dummy test that always skips instead
|
# Create a dummy test that always skips instead
|
||||||
warning('Test @0@ cannot be compiled due to missing dependencies'.format(test_name))
|
warning('Test @0@ cannot be compiled due to missing dependencies'.format(test_name))
|
||||||
test(test_name,
|
test(test_name,
|
||||||
find_program('sh'),
|
sh,
|
||||||
suite: ['unit-tests'],
|
suite: ['unit-tests'],
|
||||||
args: ['-c', 'exit 77'],
|
args: ['-c', 'exit 77'],
|
||||||
)
|
)
|
||||||
@@ -278,7 +292,7 @@ foreach test_name: unit_tests
|
|||||||
|
|
||||||
basename = 'test-' + test_name
|
basename = 'test-' + test_name
|
||||||
test_exe = executable(basename,
|
test_exe = executable(basename,
|
||||||
sources: [basename + '.c', test_config_h],
|
sources: basename + '.c',
|
||||||
dependencies: [ libfprint_private_dep ] + extra_deps,
|
dependencies: [ libfprint_private_dep ] + extra_deps,
|
||||||
c_args: common_cflags,
|
c_args: common_cflags,
|
||||||
link_whole: test_utils,
|
link_whole: test_utils,
|
||||||
@@ -331,7 +345,7 @@ endif
|
|||||||
|
|
||||||
valgrind = find_program('valgrind', required: false)
|
valgrind = find_program('valgrind', required: false)
|
||||||
if valgrind.found()
|
if valgrind.found()
|
||||||
glib_share = glib_dep.get_pkgconfig_variable('prefix') / 'share' / glib_dep.name()
|
glib_share = glib_dep.get_variable(pkgconfig: 'prefix') / 'share' / glib_dep.name()
|
||||||
glib_suppressions = glib_share + '/valgrind/glib.supp'
|
glib_suppressions = glib_share + '/valgrind/glib.supp'
|
||||||
libfprint_suppressions = '@0@/@1@'.format(meson.project_source_root(),
|
libfprint_suppressions = '@0@/@1@'.format(meson.project_source_root(),
|
||||||
files('libfprint.supp')[0])
|
files('libfprint.supp')[0])
|
||||||
@@ -361,3 +375,197 @@ if valgrind.found()
|
|||||||
'LIBFPRINT_TEST_WRAPPER=' + ' '.join(libfprint_wrapper),
|
'LIBFPRINT_TEST_WRAPPER=' + ' '.join(libfprint_wrapper),
|
||||||
])
|
])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if get_option('tod')
|
||||||
|
tod_test_driver_name = 'fake_test_dev_tod'
|
||||||
|
tod_ssm_test_driver_name = 'ssm_test_dev_tod'
|
||||||
|
tod_envs = envs
|
||||||
|
tod_envs.set('FP_TOD_KEEP_MODULES_OPEN', 'TRUE')
|
||||||
|
tod_envs.set('FP_VIRTUAL_FAKE_DEVICE', 'yes')
|
||||||
|
tod_envs.set('FP_TOD_TEST_DRIVER_NAME', tod_test_driver_name)
|
||||||
|
tod_envs.prepend('LD_LIBRARY_PATH',
|
||||||
|
meson.build_root() / 'libfprint',
|
||||||
|
meson.build_root() / 'libfprint' / 'tod')
|
||||||
|
tod_subversion = meson.project_version().split('+tod')[0]
|
||||||
|
tod_c_args = [
|
||||||
|
'-DTEST_TOD_DRIVER=1',
|
||||||
|
'-DTOD_CURRENT_VERSION=@0@'.format(tod_soversion),
|
||||||
|
'-DTOD_CURRENT_SUBVERSION="@0@"'.format(tod_subversion),
|
||||||
|
]
|
||||||
|
|
||||||
|
fake_driver = shared_module('device-fake-tod-driver',
|
||||||
|
sources: [
|
||||||
|
'test-device-fake.c',
|
||||||
|
'test-device-fake-tod.c',
|
||||||
|
],
|
||||||
|
c_args: tod_c_args,
|
||||||
|
link_with: [
|
||||||
|
libfprint_tod,
|
||||||
|
],
|
||||||
|
include_directories: include_directories('../libfprint'),
|
||||||
|
dependencies: deps,
|
||||||
|
install: installed_tests,
|
||||||
|
install_dir: installed_tests_execdir / 'tod-drivers' / 'current',
|
||||||
|
install_rpath: installed_tests_execdir,
|
||||||
|
)
|
||||||
|
|
||||||
|
fp_todv1_enums = gnome.mkenums_simple('fp-todv1-enums',
|
||||||
|
sources: [
|
||||||
|
'tod-drivers/base-fp-device.h',
|
||||||
|
'tod-drivers/base-fp-print.h',
|
||||||
|
'tod-drivers/base-fpi-device.h',
|
||||||
|
'tod-drivers/base-fpi-image.h',
|
||||||
|
'tod-drivers/base-fpi-image-device.h',
|
||||||
|
'tod-drivers/base-fpi-spi.h',
|
||||||
|
'tod-drivers/base-fpi-usb.h',
|
||||||
|
],
|
||||||
|
install_header: false)
|
||||||
|
|
||||||
|
test_utils_tod = static_library('fprint-test-utils-tod',
|
||||||
|
sources: [
|
||||||
|
'test-utils.c',
|
||||||
|
'test-utils-tod.c',
|
||||||
|
fp_todv1_enums,
|
||||||
|
],
|
||||||
|
include_directories: 'tod-drivers',
|
||||||
|
dependencies: libfprint_private_dep,
|
||||||
|
install: false)
|
||||||
|
|
||||||
|
tod_standalone_tests = [
|
||||||
|
'fp-todv1-types',
|
||||||
|
]
|
||||||
|
|
||||||
|
tod_drivers_tests = [
|
||||||
|
'fp-context-tod',
|
||||||
|
'fp-device-tod',
|
||||||
|
'fpi-device',
|
||||||
|
]
|
||||||
|
|
||||||
|
tod_driver_infos = {
|
||||||
|
tod_test_driver_name + '_current': {
|
||||||
|
'tod-driver': tod_test_driver_name,
|
||||||
|
'tod-dir': meson.current_build_dir(),
|
||||||
|
'supported-tests': tod_drivers_tests,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if host_machine.cpu_family() == 'x86_64'
|
||||||
|
tod_test_versions = [
|
||||||
|
'v1+1.90.1',
|
||||||
|
'v1+1.90.2',
|
||||||
|
'v1+1.90.3',
|
||||||
|
'v1+1.90.5',
|
||||||
|
'v1+1.94.1',
|
||||||
|
'v1+1.94.3',
|
||||||
|
'v1+1.94.7',
|
||||||
|
]
|
||||||
|
|
||||||
|
foreach tod_version: tod_test_versions
|
||||||
|
tod_dir = 'tod-drivers' / '-'.join([
|
||||||
|
'tod', host_machine.cpu_family(), tod_version
|
||||||
|
])
|
||||||
|
tod_driver_infos += {
|
||||||
|
tod_test_driver_name + '_' + tod_version: {
|
||||||
|
'tod-driver': tod_test_driver_name,
|
||||||
|
'tod-dir': tod_dir,
|
||||||
|
'supported-tests': tod_drivers_tests,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tod_driver_infos += {
|
||||||
|
tod_ssm_test_driver_name + '_' + tod_version: {
|
||||||
|
'tod-driver': tod_ssm_test_driver_name,
|
||||||
|
'tod-dir': tod_dir,
|
||||||
|
'supported-tests': [
|
||||||
|
'fp-context-tod',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if installed_tests
|
||||||
|
install_subdir(tod_dir,
|
||||||
|
install_dir: installed_tests_execdir / 'tod-drivers')
|
||||||
|
endif
|
||||||
|
endforeach
|
||||||
|
endif
|
||||||
|
|
||||||
|
foreach test_name: tod_drivers_tests + tod_standalone_tests
|
||||||
|
basename = 'test-' + test_name
|
||||||
|
sufix = test_name.endswith('-tod') ? '' : '-tod'
|
||||||
|
tod_test_name = test_name + sufix
|
||||||
|
tod_suites = ['unit-tests', 'tod']
|
||||||
|
test_exe = executable(basename + sufix,
|
||||||
|
sources: basename + '.c',
|
||||||
|
dependencies: libfprint_private_dep,
|
||||||
|
c_args: [
|
||||||
|
common_cflags,
|
||||||
|
tod_c_args,
|
||||||
|
],
|
||||||
|
install: installed_tests,
|
||||||
|
install_dir: installed_tests_execdir,
|
||||||
|
link_with: test_utils_tod,
|
||||||
|
)
|
||||||
|
|
||||||
|
foreach tod_driver, tod_driver_info : tod_driver_infos
|
||||||
|
if test_name not in tod_driver_info.get('supported-tests')
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
tod_test_envs = tod_envs
|
||||||
|
tod_test_envs.prepend('FP_DRIVERS_ALLOWLIST', tod_driver)
|
||||||
|
tod_test_envs.set('FP_TOD_DRIVERS_DIR',
|
||||||
|
tod_driver_info.get('tod-dir') == meson.current_build_dir() ?
|
||||||
|
meson.current_build_dir() :
|
||||||
|
meson.current_source_dir() / tod_driver_info.get('tod-dir'))
|
||||||
|
tod_test_envs.set('FP_TOD_TEST_DRIVER_NAME', tod_driver)
|
||||||
|
|
||||||
|
test(tod_test_name + '-' + tod_driver,
|
||||||
|
test_exe,
|
||||||
|
suite: tod_suites + [tod_driver],
|
||||||
|
env: tod_test_envs,
|
||||||
|
depends: fake_driver,
|
||||||
|
)
|
||||||
|
|
||||||
|
if installed_tests
|
||||||
|
tod_envs_str = run_command(python3, '-c', env_parser_cmd,
|
||||||
|
env: tod_test_envs,
|
||||||
|
check: true).stdout().strip()
|
||||||
|
|
||||||
|
configure_file(
|
||||||
|
input: 'test.in',
|
||||||
|
output: 'tod-' + tod_test_name + '-' + tod_driver + '.test',
|
||||||
|
install_dir: installed_tests_testdir,
|
||||||
|
configuration: {
|
||||||
|
# FIXME: use fs.name() on meson 0.58
|
||||||
|
'exec': installed_tests_execdir / test_exe.full_path().split('/')[-1],
|
||||||
|
'env': ' '.join([
|
||||||
|
tod_envs_str,
|
||||||
|
'FP_TOD_DRIVERS_DIR=' + installed_tests_execdir /
|
||||||
|
(tod_driver_info.get('tod-dir') == meson.current_build_dir() ?
|
||||||
|
'tod-drivers' / 'current' : tod_driver_info.get('tod-dir')),
|
||||||
|
]),
|
||||||
|
'extra_content': '',
|
||||||
|
},
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
if test_name in tod_standalone_tests
|
||||||
|
test(tod_test_name,
|
||||||
|
test_exe,
|
||||||
|
suite: tod_suites,
|
||||||
|
env: tod_envs,
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
if find_program('objdump', required: false).found()
|
||||||
|
check_libs_symbols = find_program(meson.source_root() /
|
||||||
|
'libfprint/tod/tests/check-library-symbols.sh')
|
||||||
|
test('check-tod-lib-sybmbols',
|
||||||
|
check_libs_symbols,
|
||||||
|
args: [libfprint.full_path(), libfprint_tod.full_path()],
|
||||||
|
depends: [libfprint, libfprint_tod],
|
||||||
|
suite: ['abi-check', tod_suites ],
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|||||||
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user