I am new to android. I have just downloaded and installed android sdk. Now when I run the application from eclipse, my device is not getting detected. I have googled and was brought up with this as my solution, but that also didn't worked.
Here's the 51-android.rules
SUBSYSTEMS=="usb", ATTR{idProduct}=="0bb4", ATTR{idProduct}=="0c03", MODE="0666", GROUP="plugindev", OWNER="<username>"
After that I rebooted my laptop, and ran this command:
username@laptopname:~/Android/adt-bundle/sdk/platform-tools$ adb devices
The output i get is:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
???????????? no permissions
EDIT
crazydeveloper@crazydeveloper:~$ lsusb
Bus 002 Device 004: ID 0bb4:0c03 HTC (High Tech Computer Corp.)
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 04f2:b337 Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
crazydeveloper@crazydeveloper:~$ ls -l /dev/bus/usb/004/
ls: cannot access /dev/bus/usb/004/: No such file or directory
crazydeveloper@crazydeveloper:~$
Edit: 2
After the answer submitted here's the output that i got:
crazydeveloper@crazydeveloper:~$ ls -l /dev/bus/usb/002
total 0
crw-rw-r-- 1 root root 189, 128 May 7 09:45 001
crw-rw-r--+ 1 root root 189, 129 May 7 09:45 002
crw-rw-rw- 1 root plugdev 189, 130 May 7 09:48 003
I am using Micromax Canvas 2.2 A114 – Android Version 4.2.2
Please help me. Thanks.
Best Answer
OK here are all the steps to get this to work. I had problems with all responses I found online, bits and pieces everywhere without any certain order and no single working solution, (running Android Studio, Jmonkey 3D, and Ubuntu 14.04)
If adb devices shows android device as ????????? (no permissions) follow these instructions:
create file /etc/udev/rules.d/51-android.rules
copy and paste contents below:
Run the following command to change file permissions:
connect your phone via usb and run the following command:
Look for your device(s) Example (Nexus 5):
For Nexus 5, Vendor ID is 18d1, mine is on Bus "003" If you don't see a change when you plug in your device with lsusb, perhaps your USB cable is charge-only.
Now reload the rules with the following commands:
Verify device is now allowing plugdev user group access
Example:
Run adb devices to confirm permissions are correct and enjoy!
Note: if you haven't created the plugdev group and added your user name to it (if permission denied prepend "sudo" following commands):
Add plugdev group:
Add your username to plugdev group (useradd -G {group-name} username):
Restart udev (you may need to log off and log back in to update user group):