[SOLVED] Device (HTC Magic) not found in DDMS device list

Search This thread

travolds

New member
Jul 19, 2007
4
0
hi,

I've searched for quite a time now but i cannot find a answer:

I'm using the Android SDK 1.5 r2 on Debian/SID with Suns JDK (java version "1.6.0_14") and Eclipse (Eclipse Platform, Version: 3.4.2, Build id: M20090211-1700).

USB-Debugging is enabled on the phone.

Every documentation I've found so far tells - on Windows Machines - one should install the related drivers for this interface, but I haven't found something for computers running Linux. The phone itself only come up with USB-Storage message.

When I plug-in the phone via USB and i call the DDMS-Perspective in Eclipse the phone isn't found in device list. My main goal is to take some screenshots from the device.

Any suggestions?
Thanks in advance!
 
Last edited:

travolds

New member
Jul 19, 2007
4
0
some further infos.

I've found following site which tells to add udev.rules for the Android device:
http://bzed.de/posts/2009/05/howto_set_android_developer_device_permissions_with_udev/

so I've added the group and my main user to the group and also I've created the udev.rule and linked it into the rules.d directory:
Code:
eeeliberta:/etc/udev/rules.d# cat ../android.rules 
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c01", GROUP="androiddev", SYMLINK+="android%n"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c02", GROUP="androiddev", SYMLINK+="android%n"
eeeliberta:/etc/udev/rules.d# ll 90-android.rules 
lrwxrwxrwx 1 root root 23  9. Jun 19:11 90-android.rules -> /etc/udev/android.rules
eeeliberta:/etc/udev/rules.d# ll ../android.rules 
-rw-r--r-- 1 root root 222  9. Jun 19:15 ../android.rules
eeeliberta:/etc/udev/rules.d# adb devices
List of devices attached

As seen in syslog the vendor-id and the product-id is ok for the magic:
Code:
kernel: [75830.772108] usb 1-2: new high speed USB device using ehci_hcd and address 22
kernel: [75830.917203] usb 1-2: New USB device found, idVendor=0bb4, idProduct=0c02
kernel: [75830.917218] usb 1-2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
kernel: [75830.917229] usb 1-2: Product: Android Phone
kernel: [75830.917236] usb 1-2: Manufacturer: HTC
kernel: [75830.917244] usb 1-2: SerialNumber: XXXXXXXXXXX
kernel: [75830.917543] usb 1-2: configuration #1 chosen from 1 choice
kernel: [75830.919452] scsi14 : SCSI emulation for USB Mass Storage devices
kernel: [75830.923913] usb-storage: device found at 22
kernel: [75830.923927] usb-storage: waiting for device to settle before scanning
kernel: [75835.921398] usb-storage: device scan complete
kernel: [75835.923326] scsi 14:0:0:0: Direct-Access     HTC      Android Phone    0100 PQ: 0 ANSI: 2
kernel: [75835.931878] sd 14:0:0:0: [sdc] Attached SCSI removable disk

EDIT:
The devices are generated as you can see below:
eeliberta:/dev$ ll android*
lrwxrwxrwx 1 root root 3 9. Jun 19:47 android -> sdc
lrwxrwxrwx 1 root root 12 9. Jun 19:47 android0 -> bsg/19:0:0:0
lrwxrwxrwx 1 root root 15 9. Jun 19:47 android00 -> usbdev1.27_ep00
lrwxrwxrwx 1 root root 15 9. Jun 19:47 android01 -> usbdev1.27_ep01
lrwxrwxrwx 1 root root 15 9. Jun 19:47 android02 -> usbdev1.27_ep02
lrwxrwxrwx 1 root root 15 9. Jun 19:47 android2 -> bus/usb/001/027
lrwxrwxrwx 1 root root 15 9. Jun 19:47 android27 -> bus/usb/001/027
lrwxrwxrwx 1 root root 15 9. Jun 19:47 android81 -> usbdev1.27_ep81
lrwxrwxrwx 1 root root 15 9. Jun 19:47 android82 -> usbdev1.27_ep82



realy don't know what todo next?!?
thanks
 
Last edited:

travolds

New member
Jul 19, 2007
4
0
[SOLVED]

so finally I got it work.

everything I've done so far was right but the adb-server was the problem.
running the following commands as root solved the problem:
Code:
# adb kill-server
# adb shell
* daemon not running. starting it now *
* daemon started successfully *
$ pwd
/
$exit
# adb devices
List of devices attached 
XXXXXXXXX	device

so please find attached my first Android screenshot - live from the device:
and_main.jpg