Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why ADT Ubuntu does not recognize my device?

I have a Motorola G, and I try to install my programs from DEVELOPED ADT Ubuntu, the problem is that I get the message when I ejercutar application

enter image description here

From terminal, the following is displayed

zhelon@zhelon-Lenovo-IdeaPad-Z400:~$ sudo adb devices
List of devices attached 
????????????    no permissions
like image 387
TuGordoBello Avatar asked Jan 14 '14 15:01

TuGordoBello


2 Answers

The most pragmatic way to fix this would be to run adb tools with root access. You are getting a no permissions error, because you need super user privileges to interact with attached devices.

To improve the answer, and alleviate superfluous security concerns, you can also run adb without root by adding a udev rule for your device. Instructions here.

First, query lsusb:

$ lsusb
Bus 002 Device 103: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II]

Then create a new rules file and add the rule to it (/lib/udev/rules.d/10-adb.rules):

# ADB
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0600", OWNER="username"

Then restart udev, or reboot your computer (recommended).

like image 150
Alex W Avatar answered Oct 26 '22 18:10

Alex W


I had the same problem and i fixed it using following steps.

  • Run Following command.

    $ sudo gedit /etc/udev/rules.d/51-android.rules
    
  • Add the following lines to it and save it:

    SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="24e3", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="2116", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0482", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="17ef", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666"    
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0409", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="2080", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="2257", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="10a9", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="1d4d", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="04da", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="1f53", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="04dd", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0930", MODE="0666"  
    SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", MODE="0666" 
    
  • Run Following command.

    $ sudo service udev restart
    
  • Run Following command.

    $ sudo killall adb
    
  • after complete following steps reconnect the phone.

like image 43
vikas balyan Avatar answered Oct 26 '22 17:10

vikas balyan