-
Hi. I'm new to hidapi so please forgive me. I'm trying to open an input device in hidapi so I can change a setting that goes 1 or 0. I got it to attempt to open a device but pesky SELinux is preventing the device from being opened.
yes... I'm using SELinux in permissive mode and got ro.debuggable set to 1. is there anyway through the HID or I2C interface that I can access and change this setting. right now this is frustrating. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Interesting why you've mentioned I2C. Your device is a USB device, and HIDAPI only supports LIBUSB on Android. Accessing a USB devices on Android is a known generic "issue". LIBUSB cannot access those directly like on other *nix platforms. TL;DR |
Beta Was this translation helpful? Give feedback.
-
update: rebuilt the library the proper way. still no luck. SELinux enforcement is disabled but when trying to open it, there's no pointer referring to the USB object, it's just a null reference. Any advice would be appreciated in proper operation of HIDAPI. |
Beta Was this translation helpful? Give feedback.
That's what I was trying to say in my first answer:
hid_open
will not work on Android.What you need to do:
P…