4

I want to use adb on android - on the device it is installed, but shows an empty list

shell@android:/ $ adb devices
List of devices attached 

shell@android:/ $ 

I see the device with lsusb.

shell@android:/ $ lsusb
18d1:4ee2 (bus 2, device 6)

ADB usb shows "no device found"

shell@android:/ $ adb usb
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
error: device not found

I tried with several (client) devices - all the same - must be a general problem. I am able to execute stuff with root permissions if needed.

10
  • did you add the udev rule for the device? Commented Aug 20, 2014 at 8:49
  • there is not even udev in /etc - but as far as I know if the rules are not there - I can see the devices ( with ?????? ) but am missing permissions Commented Aug 20, 2014 at 8:57
  • probably you are right. Silly question, did you enabled the developer options on the device? Commented Aug 20, 2014 at 9:06
  • 3
    I want to issue adb commands from one android device to another Commented Aug 20, 2014 at 9:45
  • 1
    Yes, Definitely possible!. Both my devices are not having /etc/udev. Dev1 has root permission, Dev2 is not rooted. Suggestion : Edit your question as to what devices are you using. May help. Commented Aug 21, 2014 at 4:31

9 Answers 9

3
+25

Try disabling and re-enabling the USB debug option, since the latest Android version the phone will show a prompt asking you if you trust the computer trying to ADB-connect to the device otherwise it'll never show up in that list (nor in Eclipse DMBS).

Sometimes those auth get stuck and turning that option off then on seems to help, or at least it did so for me a couple of times

Sign up to request clarification or add additional context in comments.

Comments

1

Ensure you have enabled 'USB Debug' on your device, and that you have the drivers for your device installed on your computer (if applicable).

Comments

1

You may need to apply the 'Google USB Driver' for your specific device on your computer. The driver is located under your android-sdk/extras directory. If it's not there you need to download it from the Android SDK manager under the Extras category.

Comments

1

I just use Droid @ screen it's comfortable and easy to use. It offers Restarting ADB without using command lines and it's also good on android presentation heres the link http://droid-at-screen.ribomation.com/download/ download the latest version which is Version 1.0.1

2 Comments

I do not think this will run on android
but I cannot use it for my problem as it does not run on android
1

The same problem happend to me when i plugged my phone to my friend's laptop who has same phone.So what i did was,i uninstalled his driver and reinstalled using my phone.It worked,and adb devices showd my device :)

Comments

1

If you want to issue commands from one android device to another android device, as mentioned in the comments, then you need some sort of tcp connection between them. This can be done if they are both on the same network (Wifi/LAN).

  1. Install this app on the target: ADB Manager [f-droid.org].
  2. Then from the other device do a adb connect <targetip>:<targetport>

Note: You require root access on the target.

1 Comment

Thanks, but I do not want to use wifi and need root. There must be a way to do it without as one commenter on the question also confirmed
1

AFAIK, there is no such feature available. But you can surely list down the attached devices and communicate with them.

    UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
...  
HashMap<String, UsbDevice> deviceList = manager.getDeviceList();
UsbDevice device = deviceList.get("deviceName");

Reference:

USB Host

7 Comments

thanks! but this is not it - used different cables and the very same cable is working on my computer
@ligi: do you have any IDE like eclipse or android studio installed?
how should I on the android tablet?
@ligi: do you mean to say you are firing the commands on tablet which is attached to other devices?
thanks - but this is really not of help as this is not my problem
|
1

Go to SDK MANAGER in folder EXTRAS install GOOGLE USB DRIVER, if you use Windows 8 and you trying debug in Nexus devices you change your Connection USB to PTP(Camera) and enable USB DEBUG.

Reconnect your device.

Comments

0

You can always try xda and see if the support libraries are available for that, but I am 99.9% sure you need to be rooted on the host android device. If you are rooted there is a and adb option available. If you are not then when you are in a normal boot stage on the client you can use adb shell on host for sure that requires no root but only supports wifi.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.