Enable USB host API support 
I wondered why
mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE);
mUsbManager.getDeviceList();
was empty on an 7" cmx rapax LE 070-0508 tablet.

Also USB Device Info showed an empty Android page, but not an empty Linux page.

The solution was a combination of The USB-HOST API Solution and To enable USB host API support:

create two files

android.hardware.usb.host.xml
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<feature name="android.hardware.usb.host" />
</permissions>

android.hardware.usb.accessory.xml
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<feature name="android.hardware.usb.accessory" />
<library name="com.android.future.usb.accessory"
file="/system/framework/com.android.future.usb.accessory.jar" />
</permissions>
Get /system/etc/permissions/tablet_core_hardware.xml file
#> adb pull /system/etc/permissions/tablet_core_hardware.xml
and add
<feature name="android.hardware.usb.host">
into <permissions> section of tablet_core_hardware.xml

At last remount, upload the files and reboot
#> adb remount
#> adb push android.hardware.usb.host.xml /system/etc/permissions
#> adb push android.hardware.usb.accessory.xml /system/etc/permissions
#> adb push tablet_core_hardware.xml /system/etc/permissions
#> adb reboot


[ view entry ] ( 1348 views )   |  print article

<<First <Back | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Next> Last>>