Nexus devices under Fedora 20

Recently I have tried to connect my Nexus 5 and Nexus 7 2013 device to my desktop running Fedora 20 and it failed. Well, I was able to connect using USB cable of course but my OS refused to see them. adb devices command also informed, that both devices are unaccessible. If you have similiar problem – here is the solution.

Please keep your devices connected using USB cable. Open Terminal and run lsusb command. You should see a list of USB devices on your system. You should see following among them:

Bus 002 Device 016: ID 18d1:4ee2 Google Inc. Nexus 4 (debug)

Yes, it says about Nexus 4 even if you have connected other Nexus devices. Please write it down or have it somewhere around the screen for future reference. Now open another Terminal session. You have to check if you have access to appropriate device. To do that execute following command:

ls -l /dev/bus/usb/MMM/NNN

where MMM is the string just after the Bus word (002 in my case) and NNN is Device number (016 in my case). If output from the command show that device is owned by root and group root while lacking RW permission for other or group – it means that adb has insufficient rigths to access the device. To fix that follow the tutorial below.

You need to create 51-nexus.rules file in /etc/udev/rules.d folder. You have to do it as root so following command will be helpful:

sudo vim /etc/udev/rules.d/51-nexus.rules

Please insert following line into the file, save it and exit editor:

SUBSYSTEM==”usb”, ATTR{idVendor}==”AAAA”, ATTR{idProduct}==”BBBB” MODE=”0666″

AAAA from the line above is the first 4 characters just after ID where BBBB is 4 other characters that start just after ‘:’ (18d1 and 4ee2 in my case).

The only thing that is left is to restart UDEV. Execute following commands to do that:

sudo udevadm control --reload

and then

sudo systemctl restart systemd-udevd.service

Now you can reconnect the device and everything should work just fine.

Leave a Reply

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