summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Daniel Norman <danielnorman@google.com> 2024-03-26 23:57:45 +0000
committer Daniel Norman <danielnorman@google.com> 2024-03-27 18:48:08 +0000
commitd4edc1d0cf35638053ea22e3dcfb9a0342e74498 (patch)
treec95bbe244b7013e4440f826a7b9bc22a2163b0cf /libs/androidfw/FileStream.cpp
parentc6d3da582a0d92f3c7a23c5a9ceb48ae6c988df9 (diff)
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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions