I\'ve turned USB debugging on on my Archos 43 Internet Tablet (Android 2.3.26), but adb does not detect the device.
I have Kubuntu 11.04.
Output of shell com
Mageia 2
At first, I got something like:
$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
Then I found I needed to do Settings | Applications | Development and Check the USB Debugging check box.
$ adb devices
List of devices attached
???????????????? no permissions
Trying as root, I got:
$ su -l
# adb devices
List of devices attached
???????????????? no permissions
Then I realized that adb was still running as regular user. When, as root, I did:
# adb kill-server
# adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
A43-A44C0002-9BF80000-0C60C4CC-0D020027 offline
ADB for Android Developers (ARCHOS Internet Tablet) was helpful, except I ended up doing this as root:
# cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",
SUBSYSTEM=="usb", ENV{PRODUCT}=="e79/*", MODE="0666"
SUBSYSTEM=="usb", SYSFS{idVendor}=="e79", MODE="0666"
# udevadm control --reload-rules
# udevadm monitor
.
.
.
^C
The monitor command was helpful because it showed the device connects, disconnects, paths, etc.
I was then able to stop the server running as root, and start it as a regular user:
# adb kill-server
# exit
$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
A43-A44C0002-9BF80000-0C60C4CC-0D020027 offline
The device will not work when "offline". To fix that I had to reboot the Archos 43.
$ adb devices
List of devices attached
A43-A44C0002-9BF80000-0C60C4CC-0D020027 device
Though I doubt that these actions were required, to play it safe, after rebooting, I made sure to plug in the USB and select Charge Only before I set USB Debugging on. I had also disabled WiFi and Syncing, but once it started working, adb would still connect with those being on.
At this point, downloading my app worked:
$ adb install bin/HelloWorld.apk
2914 KB/s (157589 bytes in 0.052s)
pkg: /data/local/tmp/HelloWorld.apk
Success
P.S. The next day, knowing that everything worked the night before, I booted up my development system and tried to connect again. This gave the "offline" status. I disabled sync and WiFi, without rebooting the Archos 43, and then adb devices showed "device" status instead of "offline". I am not sure what to make of that, but turning this stuff off could have significance after all.