Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to register this tablet to Ubuntu udev list?

I've got a cheap android tablet and I need to use it to test apps on it. I am using Ubuntu so I first have to add the device to udev list.

I connected the tablet, but adb does not see it

$ adb devices
List of devices attached 

$ 

The I tried using lsusb, but the device is not identified to the Ubuntu (USB debugging is checked! in tablet's properties)

$ lsusb 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 046d:0928 Logitech, Inc. QuickCam Express
Bus 005 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
Bus 001 Device 004: ID 2207:0000 

If I attach my mobile phone, I see that it is connected via the last channel. So, I assumed that this tablet is identified as ID 2207:0000, thus making ID Vendor "2207". I edited udev file 51-android.rules to look like this

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

Restarted the comp, reattached USB cable to the tablet, the the tablet was not recognized again.

Any advise of what should I do? How to make this tablet be visible to the adb?

EDIT

Does this vendor id looks odd to you: 2207:0000? Especially those four zeroes?

like image 596
sandalone Avatar asked Aug 24 '12 14:08

sandalone


2 Answers

I had same problem as you, what i done: Added vendor id to ~/.android/adb_usb.ini

echo "0x2207" >>~/.android/adb_usb.ini

Added the following lines to /etc/udev/rules.d/51-android.rules:

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", 
ENV{PRODUCT}=="207/*", MODE="0666" 
SUBSYSTEM=="usb", SYSFS{idVendor}=="207", MODE="0666"

After making the above changes, restart the adb server and check the device again.

adb kill-server  // kill the adb server if it is running
adb start-server  // Restarts the adb server
adb devices  // It will list all connected devices

Now my chinese tablet Archos c906 is recognize on ./adb device as:

List of devices attached 
0123456789ABCDEF    device    
like image 90
Mateus Sousa Mello Avatar answered Sep 24 '22 05:09

Mateus Sousa Mello


For all those having a tablet with ID 2207, these 2 links made it be visible.

First one is this one (http://clamel.netai.net/smartpad850i/enable_adb).

It will help you set such device up. If after this setup the tablet appears as ???????, then use the other link to make it visible.

The other link is here (http://ptspts.blogspot.com/2011/10/how-to-fix-adb-no-permissions-error-on.html).

If after system restart you lose the settings, then either repeat the same steps or simply restart udev service.

like image 27
sandalone Avatar answered Sep 23 '22 05:09

sandalone