Full-chi Android device adds USB host ADK function

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.