Software & AppsOperating SystemLinux

How To Fix Ubuntu Not Detecting Your Android Device in Eclipse on 14.04

Ubuntu 21

In this article, we’ll walk you through the process of fixing the problem of Ubuntu 14.04 not detecting your Android device in Eclipse. This can be a common issue, but with the right steps, it can be resolved efficiently.

Quick Answer

To fix Ubuntu not detecting your Android device in Eclipse on 14.04, you need to set up Udev rules, change the permissions of the rules file, reload the rules, verify device access, and check the device detection using the adb devices command.


Before we begin, ensure that:

  • Your Android device has USB debugging enabled. This can be found under the Developer Options in your device settings. If Developer Options is not visible, go to About Phone and tap on the Build Number seven times to enable it.
  • The USB cable you’re using is functional. You can verify this by trying a different cable or connecting your device to another USB port.

Step 1: Setting Up Udev Rules

Udev is a device manager for the Linux kernel. As the successor of devfsd and hotplug, udev primarily manages device nodes in the /dev directory. In the context of USB Android debugging, udev rules need to be set up correctly for the device to be detected.

Open the terminal and run the following command to create a rules file:

sudo gedit /etc/udev/rules.d/51-android.rules

This command opens the text editor with superuser privileges and creates a file named 51-android.rules in the /etc/udev/rules.d/ directory.

In the opened file, copy and paste the following content:

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

This rule states that for devices on the “usb” subsystem, if the vendor ID (idVendor) is “0bb4” (which is the vendor ID for HTC, but you can replace it with the vendor ID of your device manufacturer), set the permissions (MODE) to “0666” (read and write permissions for owner, group, and others) and set the group (GROUP) to “plugdev”.

Save the file and exit the text editor.

Step 2: Changing the Permissions of the Rules File

Next, we need to change the permissions of the rules file to ensure it can be read by all users. Run the following command:

sudo chmod a+r /etc/udev/rules.d/51-android.rules

This command changes the permissions of the 51-android.rules file to add read permissions (a+r) for all users.

Step 3: Reloading the Rules

After setting up the rules and changing the permissions, we need to reload the rules. Run the following commands:

sudo udevadm control --reload-rules
sudo service udev restart
sudo udevadm trigger

These commands reload the udev rules, restart the udev service, and trigger udev events, respectively.

Step 4: Verifying the Device Access

Now, we need to verify if the device is allowing access to the plugdev user group. Run the following command:

ls -l /dev/bus/usb/<bus number from lsusb output>

Replace <bus number from lsusb output> with the appropriate bus number from the output of the lsusb command. The output should show something like:

crw-rw-rw- 1 root plugdev 189, 329 Jul 3 18:23 074

This output indicates that the device is accessible by the root user and the plugdev group, and both have read and write permissions.

Step 5: Checking the Device Detection

Finally, run the adb devices command again to check if your device is now detected by Ubuntu.

adb devices

This command lists the devices connected to your computer. If your device is listed, it means that it is now detected by Ubuntu.


If you’ve followed the steps correctly, Ubuntu 14.04 should now be able to detect your Android device in Eclipse. If you’re still experiencing issues, consider looking for solutions specific to your device model or consulting the official documentation for your device. Remember, the process can vary slightly depending on the Android device and its manufacturer.

What should I do if I can’t find the Developer Options on my Android device?

If you can’t find the Developer Options on your Android device, go to the "About Phone" section in your device settings and tap on the "Build Number" seven times. This will enable the Developer Options on your device.

Can I use a different text editor instead of gedit?

Yes, you can use any text editor of your choice. Simply replace "gedit" with the command to open your preferred text editor in the terminal.

How can I find the vendor ID of my Android device?

To find the vendor ID of your Android device, you can use the lsusb command in the terminal. Look for the line that corresponds to your device, and the vendor ID will be listed as a hexadecimal number in the format "0x<vendor ID>".

Leave a Comment

Your email address will not be published. Required fields are marked *