mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE);was empty on an 7" cmx rapax LE 070-0508 tablet.
mUsbManager.getDeviceList();
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"?>Get /system/etc/permissions/tablet_core_hardware.xml file
<permissions>
<feature name="android.hardware.usb.accessory" />
<library name="com.android.future.usb.accessory"
file="/system/framework/com.android.future.usb.accessory.jar" />
</permissions>
#> adb pull /system/etc/permissions/tablet_core_hardware.xmland 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>>