Android: usb hid driver in C

I need to write a usb "driver" on Android that talks about our custom HID device. I was able to open and receive data from the device using android.hardware.usb with Java, but it is much better for us to use the C.so file, since all other code is in C.

My problem is getting permissions to communicate with the device without rooting. Is there a way to do this, or is it the only way to use the USB Host solution as I experimented? If necessary, I can change the OS, but another solution would be better.

+3
source share
1 answer

, , /ueventd.rc. obviosuly , ( , ).

+2

All Articles