adb to access Le Potato
in AML-S905X-CC
Running Android 7.1.1 on Le Potato, I have brought developer options and enabled USB debugging, but on my laptop, when I try "adb devices", I still cannot see Le Potato. Can anyone help how to make adb work on this board? Thanks.
Tagged:
Comments
lsusb shows this.
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb -t shows this.
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 3: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 3: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
At this link https://wiki.stmicroelectronics.cn/stm32mpu/index.php?title=USB_overview&direction=prev&oldid=77109,
lsusb -t /* lsusb -t shows the USB class, the driver used and the number of ports and speed of each USB devices */
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 3: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
USB gadget creates the /dev/hidg0 and /dev/hidg1 devices successfully. But trying to write keystrokes results in the following error.
sudo echo -ne "\0\0\x4\0\0\0\0\0" > /dev/hidg0 && sudo echo -ne "\0\0\0\0\0\0\0\0" > /dev/hidg0
echo: write error: Cannot send after transport endpoint shutdown