Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Device doesn't appear online in Ubuntu 12.04

I just updated my ubuntu 11.10 to 12.04 and getting this problem, my android device does not appear online while I run android project from eclipse.I've attached a screenshot. I also put file in /etc/udev/rules.d/51-android.rules.

the content of 51-android.rules file is SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"

screenshot is device not appear online, it just show unknown

like image 521
Hitesh Dhamshaniya Avatar asked May 05 '12 08:05

Hitesh Dhamshaniya


1 Answers

SYSFS was deprecated in the recent versions of udev.

Your file should only have lines like this:

SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"

where 0bb4 is the vendor id.

You can get the vendor id for your phone through the terminal. Run 'lsusb' on the commmand line and find the line with your device.

For example, on my case: Bus 004 Device 004: ID 18d1:4e22 Google Inc. Nexus S (debug)

So the vender id is 18d1.

And the above line becomes:

SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"

like image 81
rui.araujo Avatar answered Sep 21 '22 05:09

rui.araujo