Device names for Android devices to connect pea pods, etc.

Source: Internet
Author: User

Recently intend to use JZ4770 program to do our own products. The code you are giving is based on the customization of the. Every time you use pea pods, or QQ computer butler to connect the equipment, always show "Novo7 Basic". Obviously we have to change our own product model. Currently only used as a development board, the latter to design their own board.

The string "Novo7 Basic" was originally thought to have been obtained by setting > About tablet > model, but by modifying Product_model in Xx.mk (XX for board type): = Smartq7candy, after

The model is Smartq7candy, but it still shows "Novo7 Basic" by USB connection to the computer.

Since it is through the USB identification, with the ADB devices looked, and sure enough to show "Novo7 Basic."

Asked the boss, said this value is obtained by reading/sys/class/android_usb/android0/iserial. Search for "Android_usb" in kernel code, find code

Drivers/usb/gadget/android.c

This creates a Android_usb class, and then creates a class device android0,

For the Iserial property

Descriptor_string_attr (iserial, serial_string)

strncpy (serial_string, Config_usb_serial_num, sizeof (serial_string)-1);

Obviously, the value is obtained by Config_usb_serial_num copy.

Then modify the kernel's. config to config_usb_serial_num= "Nono7 Basic"--> config_usb_serial_num= "SMARTQ Candy"

Compile the kernel, after burning. found that QQ computer housekeeper identified as OPhone, I guess because "smartq Candy" is not in its list of equipment, after all, its definition, it certainly does not know. For the unrecognized, the unified identification is ophone.

With pea pods, can be identified as SMARTQ Candy.

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.