me176c-dev / android_device_asus_K013

Android device configuration for ASUS MeMO Pad 7 (ME176C(X))
https://forum.xda-developers.com/memo-pad-7/orig-development/rom-unofficial-lineageos-16-0-asus-memo-t3929600
Other
26 stars 5 forks source link

USB OTG #16

Closed lambdadroid closed 6 years ago

lambdadroid commented 6 years ago

Completed on the kernel side. Related commits: (Edit: After several days of debugging it turned out that some of these patches weren't actually necessary...)

Keeping this open until Android is configured to read from inserted USB flash drives.

youling257 commented 6 years ago
write /config/usb_gadget/g1/idVendor 0x0b05
write /config/usb_gadget/g1/idProduct 0x7770
mkdir /config/usb_gadget/g1/strings/0x409

what is the idvendor、idproduct ?can you help me ?

android_x86:/ $ su android_x86:/ # cat /sys/devices/pci0000:00/0000:00:16.0/device 0x0f37 android_x86:/ # cat /sys/devices/pci0000:00/0000:00:16.0/vendor 0x8086 android_x86:/ # cat /sys/devices/pci0000:00/0000:00:16.0/uevent DRIVER=dwc3-pci PCI_CLASS=C0380 PCI_ID=8086:0F37 PCI_SUBSYS_ID=8086:7270 PCI_SLOT_NAME=0000:00:16.0 MODALIAS=pci:v00008086d00000F37sv00008086sd00007270bc0Csc03i80 android_x86:/ #

I want to make Androidx86 otg working.

lambdadroid commented 6 years ago

@youling257 idVendor and idProduct identify an USB device. It defines what is displayed when you connect the device to a PC and type lsusb. Normally it is supposed to be unique to each device type, but it doesn't really matter for ADB etc.

init.usb.configfs.rc already sets these so normally you don't need to touch them.