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