Full-chi Android device adds USB host ADK function
USB Host ADK refers to the use of Java and device programming without USB drive
This allows Android to easily communicate with various USB peripherals without modifying the kernel and driving conditions. All the data of the CPU is public, so we have developed many applications on it. However, you find that you cannot use the USB host interface.
I. Testing
You can simply download USB Device info to test
Https://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator
If you use OTG to insert some USB devices, can scan the information, it means that ADK normal, this is an open source project, interested in downloading the source code compiled to run
Https://github.com/alt236/USB-Device-Info---Android
Two. Problem solving
After viewing found missing two ADK required files, these two files can be extracted directly from the Android virtual machine or generic ROM upgrade package, put into the device can
/system/framework/com.android.future.usb.accessory.jar
/system/etc/permissions/android.hardware.usb.accessory.xml
The installation of these files requires root privileges, and the entire log is rooted.
You need to install ADB tools and use the following instructions to install
ADB shell Mount-o rw,remount/system #将/system becomes writableadbPushCom.android.future.usb.accessory.jar/system/framework/#从PC上拷入设备 the/system directoryadbPushAndroid.hardware.usb.accessory.xml/system/ETC/PERMISSIONS/ADB Shellchmod 644/system/framework/com.android.future.usb.accessory.jar#与其它文件权限一致ADB shellchmod 644/system/etc/permissions/android.hardware.usb.accessory.xml
Here is a packaged attachment, if the machine is installed on the ADB, can be directly used in the Windows/linux/mac run
http://download.csdn.net/detail/work4blue/8131371
Full-chi Android device adds USB host ADK function