Search code examples
androideclipsemacosadbddms

Android Device wont show up in DDMS


I am new to mac and trying to use various Android devices for development. Everything was working fine till today when Android devices simply wont show up in DDMS view in eclipse. I have tried to use Terminal to look up connected Android devices using:

~adb devices

Device list comes up empty. Emulator shows up fine in the DDMS view as well as in the device list from command line.

I have tried the following:

  1. Disconnected the device from the computer.

  2. Restart the computer.

  3. Restart the device.

  4. Connected the device.

  5. adb kill-server, adb start-server

Nothing seems to work. Any advice will be much appreciated.


Solution

  • Firstly ensure that your device is connected in "Charge Only" mode, so that the sd-card is not mounted on your local system while testing.

    Next, if you're on Ubunutu, as mentioned on the Android Dev website here, you need to set up the device for development to see it in the list.

    If you're developing on Ubuntu Linux, you need to add a udev rules file that contains a USB configuration for each type of device you want to use for development. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by the ATTR{idVendor} property.

    EDIT: So you're on a mac, then a little lookup throws this SO question up. According to the post, this was the work-around:

    ADB on Mac OS X stops recognizing the attached device after installing EasyTether driver. Use kextload/kextunload to unload from memory the EasyTetherUSBEthernet.kext kernel extension manually. It is in /System/Library/Extensions/