Release 0.15

This commit is contained in:
Viktor Dragomiretskyy 2025-06-10 23:28:10 +12:00
parent af1fc60be7
commit a6bbc21dce
6 changed files with 18 additions and 5 deletions

9
debian/changelog vendored
View file

@ -1,3 +1,12 @@
python-validity (0.15~ppa2) noble; urgency=medium
* Change all write paths to /var/run/python-validity
* Use a different partition table + signature for 0090 devices
* Docs fixes
* switch to noble
-- unicorn <viktor.dragomiretskyy@gmail.com> Mon, 09 Jun 2025 20:19:55 +1200
python-validity (0.14~ppa1) bionic; urgency=medium
* Retry establishing TLS on Resume in case if it was already established.

1
debian/control vendored
View file

@ -19,7 +19,6 @@ Depends: ${python3:Depends},
dbus,
open-fprintd (>= 0.6~),
innoextract (>= 1.6~)
XB-Python-Version: ${python3:Versions}
Description: Validity Fingerprint Sensor DBus Driver
This package adds support to some Validity sensors.
.

5
debian/rules vendored
View file

@ -8,6 +8,9 @@
override_dh_installsystemd:
dh_installsystemd --name=python3-validity
override_dh_auto_install:
python3 ./setup.py install --root=$(CURDIR)/debian/tmp --prefix=/usr --install-layout=deb
override_dh_auto_clean:
python3 ./setup.py clean

View file

@ -3,7 +3,7 @@
from setuptools import setup
setup(name='python-validity',
version='0.14',
version='0.15',
py_modules=[],
packages=['validitysensor'],
scripts=[

View file

@ -90,6 +90,7 @@ def unpad(b: bytes):
class Tls:
def __init__(self, usb: Usb):
self.usb = usb
self.trace_enabled = False
self.reset()
try:
with open('/sys/class/dmi/id/product_name', 'r') as node:
@ -103,7 +104,6 @@ class Tls:
self.set_hwkey(product_name=product_name, serial_number=product_serial)
def reset(self):
self.trace_enabled = False
self.secure_rx = False
self.secure_tx = False

View file

@ -63,6 +63,7 @@ class Usb:
self.dev = dev
self.dev.default_timeout = 15000
dev.set_configuration()
def close(self):
if self.dev is not None:
@ -110,7 +111,8 @@ class Usb:
try:
resp = self.dev.read(130, 1024 * 1024, timeout=10000)
resp = bytes(resp)
self.trace('<130< %s' % hexlify(resp).decode())
self.trace('<130< %d bytes' % len(resp))
#self.trace('<130< %s' % hexlify(resp).decode())
return resp
except Exception as e:
self.trace('<130< Error: %s' % repr(e))