Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android device not seen by ADB but accessible from Windows XP

I just bought a new Nexus 7 tablet and I am trying to put my first Java application on it. However, I am stuck at a very basic point: ADB does not see my device. When I check on my working station, Windows perfectly detects the tablet, I switched the USB port and every one make appear the device but ADB still cannot see it. I rebooted and it is still not working. Any idea about this?

Update

There was actually two problems. First, I had not activated the USB debugging mode. This was the reason why I could use the tablet from the working station (as a simple multimedia player) even though the correct USB driver was not installed.

Second, the driver was not detected by Windows XP (even we I specified the correct repository to search for it). The problem was solved by following the procedure described by adamp

like image 309
Zonata Avatar asked Jul 20 '12 15:07

Zonata


People also ask

Why is ADB not detecting my device?

It might be that the ADB issue is not with your computer but is with your Android device. In most cases, ADB cannot recognize your device because the USB debugging option is turned off on the device. Turning this option on can fix the issue for you and this is pretty easy to do.

How do I find ADB devices on Windows?

To check if you have successfully installed ADB, connect your device to your PC/Mac with your USB cable, and run the adb devices command as described above. It should display your device listed in the Command Prompt/PowerShell/Terminal window.

How do I fix ADB no devices emulators?

Update ADB Interface Driver An outdated ADB interface driver can result in the error - device not found or ADB no devices/emulators found in Windows 11/10. To help you out, it is necessary to install a new version for that driver.


1 Answers

As Thomas K points out, you need to install the ADB driver for the device from the SDK manager. Also confirm that USB debugging is enabled on the device as mihail noted.

The basic ADB driver provided with the SDK is generic and can work with any Android device. Simply add the appropriate lines to the android_winusb.inf file under extras/google/usb_driver to make Windows recognize the device hardware IDs during driver installation. Add the lines under the x86 section for 32 bit Windows or amd64 section for 64 bit Windows.

For the Nexus 7, the configuration you'll need is:

;Nexus7
%SingleAdbInterface%        = USB_Install, USB\VID_18D1&PID_4E42
%CompositeAdbInterface%     = USB_Install, USB\VID_18D1&PID_4E42&MI_01

The significant sections there are VID_XXXX and PID_YYYY on both lines. If you have another Android device you would like to add, start by duplicating the lines above in the correct section of the file. You'll need to replace the hardware IDs with the correct IDs for your device.

Open Device Manager, locate the Android device without an ADB driver installed, right click it, and choose Properties. Under the Details tab, select Hardware IDs from the dropdown list. You'll see a line that looks something like USB\VID_18D1&PID_4E42&MI_01. Copy the VID_XXXX section and PID_YYYY section into the two lines you added in the .inf file above. Save the file, then update the driver for the device and use the driver from the directory where the .inf you just saved is.

like image 80
adamp Avatar answered Nov 04 '22 19:11

adamp