Modify the vid PID of Android USB

Source: Internet
Author: User

Vid:vendor ID
Pid:product ID

View vid and PID:
Device link ubuntu, terminal input LSUSB

[Email protected]:~$ LsusbBus 001Device005: IDGenevaD9:1605Holtek Semiconductor, Inc.Bus 001Device001: ID1D6B:0002Linux Foundation2.0Root HubBus 002Device001: ID1D6B:0002Linux Foundation2.0Root HubBus 003Device001: ID1D6B:0003Linux Foundation3.0Root HubBus 001Device002: ID8087:8000Intel Corp.Bus 001Device003: ID093A:2510Pixart Imaging, Inc. Optical MouseBus 001Device008: ID8087:1234Intel Corp.

Display all linked USB devices, corresponding to the VID and PID before and after the colon
The code to modify the VID and PID corresponds to:
Android/device/intel/yyy/init.zzz.usb.rc file
YYY for the corresponding platform
which

# 0x8087:0x0928:adb plus 3xCDC plus MTP# --------------------------------------- on  Property: sys.usb.config=mtp,adbWrite/sys/class/android_usb/android0/enable0    Write/sys/class/android_usb/android0/idvendor8087    Write/sys/class/android_usb/android0/idproduct1234    Write/sys/class/android_usb/android0/functions MTP,ADB,ACMWrite/sys/class/android_usb/f_acm/instances3    Write/sys/class/android_usb/android0/enable1Start adbd setprop sys.usb.state ${sys.usb.config}

Idvendor and idproduct respectively corresponds to VID and PID, originally here Idproduct is 0928, now I should be 1234, test OK.

Modify the vid PID of Android USB

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.