This is a cache of https://discuss.96boards.org/t/android-master-branch-issue-with-adb/3039. It is a snapshot of the page at 2024-10-04T06:49:45.406+0000.
Android master branch - issue with adb - <strong>hikey</strong> - 96Boards Forum

Android master branch - issue with adb

hello,
I just created a hiket image following the instructions described here:
https://source.android.com/source/devices

The board is booting correctly, but I have a very strange behavior regarding ADB. My windows PC detects an “Android Composite ADB Interface” device but with an error message indicating “This device cannot start, code 10”
I never seen such error.
And if I execute adb devices, it does not show any device.

Then if I look at the serial console when I plug the USB, I have the following message:
[ 1851.935338] dwc2 f72c0000.usb: Do port resume before switching to device mode
[ 1852.011357] dwc2 f72c0000.usb: dwc2_hsotg_enqueue_setup: failed queue (-11)
[ 1852.468814] dwc2 f72c0000.usb: new device is high-speed
[ 1852.564228] dwc2 f72c0000.usb: new device is high-speed
[ 1852.598414] dwc2 f72c0000.usb: new address 32
[ 1852.655653] configfs-gadget gadget: high-speed config #1: b
[ 1852.666661] android_work: sent uevent USB_STATE=CONFIGURED

Does anybody knows what is my issue ?

thanks in advance.

Seems to be an issue on Windows Driver side, could you try to update your driver in device manager ?
Did you already make adb work with the hikey or other Android device on your PC?

Hi Loic,

many thanks for your answer.
I think I have USB Driver rev 11, the latest version I guess.
I have already been able to detect hikey960, but never a hikey.

I have big difficulties to setup a working image, and this is the first time I have been able to see it booting correctly.
If you have any advice, I can build another image.

Jmg

For information, I have been able to see an hikey device with my PC in another image (android 7.1.2, see topic AOSP 7.1.2 r33 stuck in boot loop on hikey - #6 by jmg), in which I have other issues than those described here.