Connection problem with Android Server

Hello,
I'm trying to connect a USB gamepad to an Galaxy SIII with a Cyanogenmod 11-20140617 (Android 4.4.3).
The kernel is compiled to use USB Host and actually it's working with local connected devices.

In LogCat appears this error when connect a new device:
vhusbd Error 30 creating device node at _proc_bus_usb_002_001, m
vhusbd Error 30 creating device node at _proc_bus_usb_002_001, m

When I try to connect another USB Device like an USB stick:
Error make parent hub node at _proc_bus_usb_002_001, m
Error 30 loading device file '/sys/devices/platform/s5p-ohci/usb2/2-1/2-1:1.0/host1/sci_host/host1/uvent, m
Error 11 loading device file '/sys/devices/platform/s5p-ohci/usb2/2-1/2-1:1.0/host1/sci_host/host1/uvent, m

Thank you for your attention.

#3

Hello,
I tested again with the new apk version and now I have another error:

10-14 19:00:12.959 I/vhusbd (29949): Server licensed to=unlicensed max_devices=1
10-14 19:00:12.959 I/vhusbd (29949): Using small URB's
10-14 19:00:12.959 I/vhusbd (29949): TCPServer starting...
10-14 19:00:12.964 I/vhusbd (29949): TCPServer bound to port 7575
10-14 19:00:12.964 I/vhusbd (29949): TCPServer (7575) started
10-14 19:00:12.964 I/vhusbd (29949): Error 13 opening device (/data/data/com.virtualhere.androidserver/_proc_bus_usb_002_002) file descriptor, m
10-14 19:00:12.964 I/vhusbd (29949): Error 13 opening device (/data/data/com.virtualhere.androidserver/_proc_bus_usb_001_002) file descriptor, m
10-14 19:00:44.189 I/vhusbd (29949): 192.168.15.50 connected
10-14 19:01:20.369 I/vhusbd (29949): Error 13 opening device (/data/data/com.virtualhere.androidserver/_proc_bus_usb_002_003) file descriptor, m

Sorry about the delayed response.
Thank you for your attention.

#4

Error 13 is permission denied, I think you may need to ssh into your android server and give write permision to the directory shown.

#5

Hello Michael, can you give me further details about the ssh permissions?
Thank you.

#6

Hello Michael, I've changed the permissions of /data/data/com.virtualhere.androidserver recursively to 777 but i keep geting Error 13 opening device (/data/data/com.virtualhere.androidserver/_proc_bus_usb_002_003) file descriptor, m

I have a terminal open and I can see that the permissions for _proc_bus_usb_002_003 are crwxrwxrwx

#7

Some editions of android seem to block read of a file, even though it has full permissions.

VirtualHere server creates that file with full permissions as you can see, but when it tries to read it, it fails with permission denied I havent figured out why this is the case yet, its on my todo list to investigate...