Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d4edc1d0 authored by Daniel Norman's avatar Daniel Norman
Browse files

Allows fallback to matching by name for older kernels without UNIQ.

The UNIQ ioctl was added in kernel 5.7, but other HIDRAW features have
been available since 4.19. This change allows older kernels to fallback
to matching by device name when the UNIQ ioctl fails.

If there are multiple connected devices with the same name then the API
returns failure (since it has no way to differentiate and pick just one).

Bug: 316036493
Test: atest BrailleDisplayConnectionTest
Test: Temporarily force UNIQ to return null on a test phone;
      observe that name fallback is used.
Change-Id: Iccc7d784762862b423305fbf74a97d8564e5e809
parent c6d3da58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment