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
Loading
Please register or sign in to comment