While Google claims to support ADK development from 2.3.4 and 3.1, it's not a lot of real support for ADK development. It is certain that the Google Pro son is supporting ADK development when using the official system package, such as the Nexus S on my hand. Those on the market upgraded to 2.3.4 or more versions of mobile phones, many because the underlying kernel does not support the USB accessory feature, so ADK development can not be done. For example, my hand on the V880 phone, ZTE will fully rewrite the USB function, there is no f_accessory.c this file.
Here's how to see if your phone supports the ADK feature:
The principle is to check whether the phone core contains USB accessory function
The first method, extract the current phone's kernel config file to see if it contains USB accessory function
Use command: ADB pull/proc/config.gz/home/user_name/androkern/cm-kernel/config.gz
Then extract the. config file from the config.gz file
The second method, extracted from the boot.img in the system brush package. config
Use command: Scripts/extract-ikconfig boot.img >. config
By looking at the. CONFIG file to determine if there is a USB accessory function, search for "config_usb_android_accessory", if the search is not found or the result is "config_usb_android_ Accessory is not set ".
Get the Phone kernel config turn