Saturday, January 20, 2018

adb - Problem with attaching Archos device on Ubuntu


On my laptop I have Ubuntu 12.04.


1) mounting the tablet


$ sudo mkdir /media/tb
$ sudo chmod 777 /media/tb
$ sudo mount /dev/sdc /media/tb

2) downloading and updating Android SDK



$ cd ~
$ wget http://dl.google.com/android/adt/adt-bundle-linux-x86-20130219.zip
$ cd ~/adt-bundle-linux-x86-20130219/sdk/tools
$ ./android update sdk

3) editing rules for my device. Each hardware device has its ID. According to Archos website my vendor ID is e79. According to this website I should also edit ~/.android/adb_usb.ini.


$ sudo vim /etc/udev/rules.d/51-android.rules

After editing the file has this content:


SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",

ENV{PRODUCT}=="e79/*", MODE="0666"
SUBSYSTEM=="usb", SYSFS{idVendor}=="e79", MODE="0666"

$ sudo chmod a+r /etc/udev/rules.d/51-android.rules
$ sudo vim ~/.android/adb_usb.ini

after editing the file has this content:


0x0e79

$ sudo chmod a+r ~/.android/adb_usb.ini


4) updating the information


$ sudo udevadm control --reload-rules
$ cd ~/adt-bundle-linux-x86-20130219/sdk/platform-tools
$ ./adb kill-server
$ ./adb start-server
$ sudo reboot
$ sudo mount /dev/sdc /media/tb
$ cd ~/adt-bundle-linux-x86-20130219/sdk/platform-tools
$ ./adb start-server

$ ./adb devices

List of devices attached

You can see that I have problem with attaching my device.


What else would you try to solve it?



Answer



For adb devices to list your device (and other ADB commands to be able to work with it), you need to enable USB Debugging in your Android device. This will start the required services (the ADB daemon) on the Android device, which is what then responds to ADB commands issued from your computer.


Besides: If you are not going to use all the development stuff from the SDK, but simply wnat to interact with your device using ADB commands, you don't need to install the entire SDK overhead. See Is there a minimal installation of ADB? for details :)


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...