"Android device is not listed while running adb devices (ubuntu 10.10)"

24,549

Solution 1

I always run adb as root the first time, and as normal user thereafter. But I run a virtual machine that I suspend so I don't have to do it often.

ou have the right idea, the solution is most definately that you need the permission in the file within rules directory. The only suggestion I can make is that you are using the wrong vendor id.

Look it up here

Also, to make sure you're running the correct adb under root, run both of:

sudo adb kill-server
adb kill-server

before:

sudo adb start-server

I have found just running the one doesn't always work.

Solution 2

As a temporary workaround you could try starting the adb daemon as root:

sudo adb kill-server sudo adb devices

This worked for me until I managed to get udev set up properly.

Solution 3

In my case it suddenly stopped detecting my device, but from time to time it detected it, which drived me crazy.

After many kills and restarts, it ended up being something wrong with the USB cable. Changing it solved the problem, tho I have no clue why this could happen.

Solution 4

sudo /etc/init.d/udev restart

as suggestend by trojanfoe is worth trying, but i guess, you did some restarts in between anyways.

Did you try to restart the adb server BEFORE you usb-plug your device? That helped me out.

Solution 5

The rule SUBSYSTEM=="usb", SYSFS{idVendor}=="040d", MODE="0666" would actually give access to the device, but the problem might be that your user may not have the permission for accessing the device.

Because you are not giving the groups for the rule, I don't know which group will have the default access to the device (i'm guessing maybe the udev group will have it), and if you would have followed the google's path of device setup (see section 3, third point, subsection a), you will realize that you have missed out the GROUP clause in the rule.

So basically your rule should be.

UBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE=="0666", GROUP="plugindev"

also check if you are in the group plugindev using the command groups. else you can give there whatever as long as you are in the group

Share:
24,549

Related videos on Youtube

Dev.Sinto
Author by

Dev.Sinto

Android programming

Updated on July 05, 2022

Comments

  • Dev.Sinto
    Dev.Sinto almost 2 years

    My Android device Ly-706 is not listed while running adb devices.

    I can run emulator using eclipse and install application on emulator using adb except on Real device

    I added:

    SUBSYSTEM=="usb", SYSFS{idVendor}=="040d", MODE="0666"
    

    in /etc/udev/rules.d/90-android.rules ,still no luck

    Same result for samsung galaxy 3(vendor id ="04e8")

    I installed GNU/Linux (ubuntu 10.10) because it is not listing in windows.

    What am I missing?

    • trojanfoe
      trojanfoe over 13 years
      "sudo /etc/init.d/udev restart" will do it
  • Avinash R
    Avinash R over 11 years
    This is not a good way. As you should not let any process to run as su until it is absolutely necessary. This may be the problem with your rule itself, for e.g., you may not be setting the group for the rule, see my answer for more info.
  • Adrian
    Adrian over 11 years
    Hence the 'temporary workaround' part of the reply.