USB Host mode device not found - which files are exactly needed

I am trying to make my samsung gt-i8530 galaxy phone for reading USB devices (mouse, pendrive, keyboard). It has the same SoC as the s 3 mini galaxy, and the mini has OTG support. My goal is not to create an application, but simply turn on the USB host mode so that the phone can connect and read the files of these USB devices. The phone is rooted, a boot box is installed and works on 4.1.2. I'm trying to find out which files are missing, so the phone can detect these USB devices. As soon as I plug in a USB drive, mouse or keyboard (below 200 mA) with a suitable otg cable, nothing happens. I also tried a powerful USB hub, but still nothing is known.

Here are the files that already exist in the root:

  • UsbDriveA-F folders in / storage (without permissions) and in / mout (rwxrwxrwx permissions)
  • vold.fstab etc. with mount commands in UsBDriveA-F
  • android.hardware.usb.host.xml permissions in etc / permissions
  • android.hardware.usb.accessory.xml in etc / permissions
  • handheld_core_hardware.xml including android.hardware.usb.host
  • usbhost.so on the / lib system
  • 51-android.rules in /etc/udev/rules.d( was not originally available, so I created it and added SUBSYSTEM == "usb", ATTR {idVendor} == "04e8", MODE = "0666", GROUP = " plugdev "

Now let's look at http://developer.android.com/reference/android/hardware/usb/package-summary.html I see that next to the existing one

  • android.hardware.usb.host.xml permissions in etc / permissions
  • android.hardware.usb.accessory.xml in etc / permissions

, : UsbConstants, UsbDevice, UsbDeviceConnection, UsbEndpoint, UsbInterface, UsbManager, UsbRequest etc/permissions. /lib/modules usb-storage.ko

, - .ko( ), USB- . ? - ?

+4

Source: https://habr.com/ru/post/1529432/


All Articles