add libusb-specific hid_libusb_wrap_sys_device #280
No reviewers
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi!280
Loading…
Reference in a new issue
No description provided.
Delete branch "libusb_wrap_device_master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rationale: on Android one must use UsbManager, to access any
USB device. As a result, libraries like libusb can only use file descriptors
that are provided by UsbManager.
libusb has an API to use such file descriptors: hid_libusb_wrap_sys_device.
Having hid_libusb_wrap_sys_device currently is the only way to make hidapi
work on Android without root access and without custom Android builds.
Relevant info: https://github.com/libusb/libusb/pull/830/files
When checking the diff, select "Hide whitespace changes" option on Github - makes the diff smaller and easier to read.
I'd appreciate an input from libusb team, if any.
@Peter-St Maybe you can take a look if you got time. Thanks.
Looks propper to me to support the unrooted way on the hid api too.
I haven't test the hid api for now, so I cannot give any further advices.