Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tablet not appearing in ADB

Tags:

android

adb

I've just got a Lenovo Thinkpad Slate Tablet running Android and can't for the life of me get ADB to recognise it in either Win7 or Kubuntu.

USB debugging is on in the tablet settings and when I connect the tablet to the computer the "USB Debugging Connected" message appears - so all good from the tablet side of things. The computer side of things isn't so great.

Kubuntu (my main dev machine)

I've added the vendor id to the /etc/udev/rules.d/51-android.rules file (as directed here) - have tried each of the below, one at a time, with no success.

SUBSYSTEM=="usb", SYSFS{idVendor}=="17ef", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666", GROUP="plugdev"

SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0666"

For reference I have SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev" for my Nexus S and it works fine.

lsusb prints out:

root@ubuntu:/etc/udev/rules.d# lsusb
...
Bus 002 Device 008: ID 17ef:741b Lenovo 
...

Windows

Have followed these instructions and still not getting any response from adb devices.

I've restarted both machines and the tablet several times to no avail. Can anyone help?

like image 323
Martyn Avatar asked Oct 03 '11 15:10

Martyn


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 enable adb on my tablet?

Enable adb debugging on your device To make it visible, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options at the bottom. On some devices, the Developer options screen might be located or named differently. You can now connect your device with USB.


2 Answers

Creating the file ~/.android/adb_usb.ini and adding the vendor id (0x17ef) and restarting adb seems to have fixed the issue in both Windows and Kubuntu.

like image 68
Martyn Avatar answered Oct 18 '22 02:10

Martyn


I had a problem with the Lenovo's page. My thinkpad was listed under portable devices and following the directions got me "Unable to find drive for your device". I was able to remedy by search internet for updates (which updated to a USB driver and this moved my Thinkpad to the other device's category in the Device Manager). I then was able to use the instructions as listed on the web page.

like image 21
Steve Avatar answered Oct 18 '22 04:10

Steve