AOSP 9 ADB over USB not showing up

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AOSP 9 ADB over USB not showing up

957 Views
nxpsri
Contributor II

When I enable adb on my AOSP 9 imx6q device, on my Linux development host this happens:

'lsusb' output on my Linux laptop connected to the device via OTG-microUSB port:

BEFORE enabling ADB on device

(base) popossri@pop-os:~/ArcX/mercury_files/manifest/jenkins/Android$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:b685 Chicony Electronics Co., Ltd Chicony USB2.0 Camera
Bus 001 Device 021: ID 18d1:4ee1 Google Inc. Nexus/Pixel Device (MTP)
Bus 001 Device 004: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
Bus 001 Device 010: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

AFTER enabling ADB on device
(base) popossri@pop-os:~/ArcX/mercury_files/manifest/jenkins/Android$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:b685 Chicony Electronics Co., Ltd Chicony USB2.0 Camera
Bus 001 Device 004: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
Bus 001 Device 010: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

On my Samsung phone, I have to enable USB debugging using special instructions before it can be used by ADB. I tried doing that by changing device.mk so that my /system/build.prop has the following entries:

persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb

But the device doesn't show up in 'adb devices' .

TCP(ethernet) based adb connection works just fine.What else should I check and enable?

Labels (1)
0 Kudos
2 Replies

896 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Please try with the following steps
> reboot bootloader (device side)

Wait until it enters U-boot

$ fastboot oem unlock (host side)

Wait until unlock is done and reboot your device, this should make you able to use ADB.

Best regards,
Aldo.

0 Kudos

805 Views
nxpsri
Contributor II

Since we are not using U-boot but a custom bootloader, I tried to enable from Android GUI, Developer Settings->'OEM unlocking'. But the slider button didn't change. What else can I do to enable ADB over USB?

Thank you.

0 Kudos