wasp256
wasp256

Reputation: 6242

ADB not recognizing nexus 4 on Ubuntu

I have installed the mtpfs tools for Ubuntu and mounted the nexus 4 successfully. Here the steps:

 sudo apt-get install mtp-tools mtpfs
 sudo gedit /etc/udev/rules.d/51-android.rules

added to the file 51-android.rules:

 #LG – Nexus 4
 SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"

then

 sudo chmod +x /etc/udev/rules.d/51-android.rules
 sudo service udev restart
 sudo mkdir /media/nexus4
 chmod 755 /media/nexus4
 sudo mtpfs -o allow_other /media/nexus4

Got everything from this site here. But unfortunately I can't list the Nexus 4 with adb, when I run adb devices I get

 adb devices
 List of devices attached

But no devices are listed... Do I need to configure anything when I want to access the nexus with adb?

Upvotes: 2

Views: 8141

Answers (2)

Ashish Jadhav
Ashish Jadhav

Reputation: 116

You can try developer options on the device (Nexus 4) and then use "adb devices".

How to enabled developer options? : http://forums.androidcentral.com/google-nexus-4/258607-how-close-turn-off-developer-option-my-nexus-4-a.html

So, you should try:

  1. Enable the developer option on Nexus 4 (using above link).
  2. On terminal, use command "adb kill-server"
  3. On terminal, use command "adb start-server"
  4. On terminal, use command "adb devices"

You should then be able to see in the device list.

Upvotes: 4

Vijay C
Vijay C

Reputation: 4869

worked for me only when I executed adb commands as root,

sudo adb kill-server
sudo adb start-server

Upvotes: 3

Related Questions