Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I'm trying to deploy and test an Android app on my Nexus 4 from my Ubuntu 11.10 computer, but ADB doesn't recognize it. I think I need the Google USB drivers, but I cannot find instructions on how to install them on Ubuntu.

How can I install the drivers on Ubuntu 11.10 so that ADB will recognize my N4?

share|improve this question

3 Answers 3

You don't need any special drivers -- all you need is to make your device known. A few simple steps can accomplish this when your device is connected via USB:

sudo lsusb
Bus 002 Device 054: ID 18d1:4e22 Google Inc. Nexus S (debug)

See the two hex values separated by a colon: 18d1:4e22 This is the manufacturerID:deviceID you need to tell the system to handle. So as root:

sudo su -
cd /etc/udev/rules.d
vi 51-android.rules

In this file, add a line (you can use the editor of your choice, of course -- my example uses vi)

# MyDeviceName
SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4e22", MODE="0666" GROUP="androiddev", SYMLINK+="android%n"

This example uses the values from above lsusb output -- you need to replace them by yours. Now, to let your changes take effect:

sudo service udev reload

Final step: Disconnect your device, and reconnect it. It should be recognized now.

share|improve this answer

As explained at Enable developer options in Android 4.2 on Nexus 4 and Galaxy Nexus you need to activate developer mode.

Step 1: Pull down the notifications panel on your device’s interface and tap on Settings.

Step 2: Next, scroll all the way down and tap on About Phone, and you will notice a segment detailing your device’s build number.

Step 3: Repeatedly tap on Build Number (seven taps should do the trick) until you’re met with a message that reads: “you are now a developer!”

share|improve this answer

I just recently finished my most comprehensive write up on how to make adb work in a debian based linux environment

share|improve this answer
No need for that, Alex. I didn't do that on my Ubuntu machine, and all my devices connect fine after I did above adjustments (and no, I did never install the SDK -- I just use the adb binary shipping with the QtADB stuff). Furthermore: OP states ADB doesn't recognize it. Hm, to me this looks like he already had the SDK installed ;) –  Izzy Feb 11 '13 at 23:47
OK, so why should one install the SDK then to make it work? As for the Nexus in my example, I didn't even need to add an UDev rule, it simply worked. –  Izzy Feb 12 '13 at 0:03
OK, let's leave the decision to the OP. For me (not doing development), installing the complete SDK is a bit overhead. And the OP seems to have at least adb already installed, if not the entire SDK. –  Izzy Feb 12 '13 at 0:16
Thanks for the update, Alex. Could you give a little more information on that adb_usb.ini? I cannot find that file on my machine (the ~/.android directory only holds two "key files", public and private), but still adb is working fine. What do entries look like in that file, so one can manually add them? –  Izzy Feb 12 '13 at 7:28
Will try that with the next device coming by, thanx! –  Izzy Feb 13 '13 at 0:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.