Author Topic: [linux] `adb devices` shows no device (CC-A80) [SOLVED]  (Read 2251 times)

Offline victor.tseng

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
[linux] `adb devices` shows no device (CC-A80) [SOLVED]
« on: March 20, 2015, 12:24:37 am »
The device is found and loaded by the system, but `adb devices` shows nothing.
1. dmesg
Code: [Select]
[66284.706441] usb 2-3: new SuperSpeed USB device number 3 using xhci_hcd
[66284.717878] usb 2-3: New USB device found, idVendor=1f3a, idProduct=1007
[66284.717881] usb 2-3: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[66284.717882] usb 2-3: Product: Android
[66284.717883] usb 2-3: Manufacturer: USB Developer
[66284.717883] usb 2-3: SerialNumber: 20080411
2. lsusb
Code: [Select]
Bus 002 Device 003: ID 1f3a:1007 Onda (unverified) 3. find /dev/bus/usb/ -ls
Code: [Select]
296746    0 crw-rw----   1 root     plugdev  189, 130  3月 20 12:04 /dev/bus/usb/002/003
and yes my user is in the 'plugdev' group.

the problem is that `adb devices` shows nothing...
I tried `android adb usb` to update ~/.android/adb_usb.ini, but after that the file is empty:
Code: [Select]
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.

I tried manually adding "0x1f3a" to adb_usb.ini then restart adbd, but it didn't work.

What am I doing wrong? or what do I have to do?

ohh...... some system informations:
Code: [Select]
$ adb version
Android Debug Bridge version 1.0.31
$ uname -a
Linux victortseng 3.18.2-gentoo-palatis #1 SMP PREEMPT Sat Jan 10 22:10:44 CST 2015 x86_64 Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz GenuineIntel GNU/Linux
$ cat /etc/gentoo-release
Funtoo Linux - baselayout 2.2.0
$ cat /etc/lsb-release
DISTRIB_ID="Gentoo"
$ cat /etc/os-release
$

ps. weird thing is, adb recognize the device under windows........
« Last Edit: March 23, 2015, 10:39:50 pm by victor.tseng »

Offline victor.tseng

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: [linux] `adb devices` shows no device (CC-A80)
« Reply #1 on: March 23, 2015, 02:17:53 am »
I tried to enable ADB_TRACE=all and see if the result differs.

1. with no android device connected:
Code: [Select]
# adb devices
adb.c::main():Handling commandline()
adb_client.c::adb_query():adb_query: host:devices
adb_client.c::_adb_connect():_adb_connect: host:version
transport.c::writex():writex: fd=3 len=4: 30303063 000c
transport.c::writex():writex: fd=3 len=12: 686f73743a76657273696f6e host:version
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
4f4b4159 OKAY
adb_client.c::_adb_connect():_adb_connect: return fd 3
adb_client.c::adb_connect():adb_connect: service host:devices
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
30303034 0004
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
30303166 001f
adb_client.c::_adb_connect():_adb_connect: host:devices
transport.c::writex():writex: fd=3 len=4: 30303063 000c
transport.c::writex():writex: fd=3 len=12: 686f73743a64657669636573 host:devices
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
4f4b4159 OKAY
adb_client.c::_adb_connect():_adb_connect: return fd 3
adb_client.c::adb_connect():adb_connect: return fd 3
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
30303030 0000
transport.c::readx():readx: fd=3 wanted=0
transport.c::readx():readx: fd=3 wanted=0 got=0
 
List of devices attached

usb #

2. with Nexus 4:
Code: [Select]
# adb devices
adb.c::main():Handling commandline()
adb_client.c::adb_query():adb_query: host:devices
adb_client.c::_adb_connect():_adb_connect: host:version
transport.c::writex():writex: fd=3 len=4: 30303063 000c
transport.c::writex():writex: fd=3 len=12: 686f73743a76657273696f6e host:version
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
4f4b4159 OKAY
adb_client.c::_adb_connect():_adb_connect: return fd 3
adb_client.c::adb_connect():adb_connect: service host:devices
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
30303034 0004
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
30303166 001f
adb_client.c::_adb_connect():_adb_connect: host:devices
transport.c::writex():writex: fd=3 len=4: 30303063 000c
transport.c::writex():writex: fd=3 len=12: 686f73743a64657669636573 host:devices
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
4f4b4159 OKAY
adb_client.c::_adb_connect():_adb_connect: return fd 3
adb_client.c::adb_connect():adb_connect: return fd 3
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
30303138 0018
transport.c::readx():readx: fd=3 wanted=24
transport.c::readx():readx: fd=3 wanted=24 got=24
30303530653461613462643134646335 0050e4aa4bd14dc5
List of devices attached
0050e4aa4bd14dc5 device

#

3. with Cubieboard CC-A80:
Code: [Select]
# adb devices
adb.c::main():Handling commandline()
adb_client.c::adb_query():adb_query: host:devices
adb_client.c::_adb_connect():_adb_connect: host:version
transport.c::writex():writex: fd=3 len=4: 30303063 000c
transport.c::writex():writex: fd=3 len=12: 686f73743a76657273696f6e host:version
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
4f4b4159 OKAY
adb_client.c::_adb_connect():_adb_connect: return fd 3
adb_client.c::adb_connect():adb_connect: service host:devices
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
30303034 0004
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
30303166 001f
adb_client.c::_adb_connect():_adb_connect: host:devices
transport.c::writex():writex: fd=3 len=4: 30303063 000c
transport.c::writex():writex: fd=3 len=12: 686f73743a64657669636573 host:devices
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
4f4b4159 OKAY
adb_client.c::_adb_connect():_adb_connect: return fd 3
adb_client.c::adb_connect():adb_connect: return fd 3
transport.c::readx():readx: fd=3 wanted=4
transport.c::readx():readx: fd=3 wanted=4 got=4
30303030 0000
transport.c::readx():readx: fd=3 wanted=0
transport.c::readx():readx: fd=3 wanted=0 got=0
 
List of devices attached

#

I noticed that only the last command different, with Nexus4="30303138 0018" and CC-A80="30303030 0000".
What does these mean anyway?