Saturday, October 09, 2010

Connecting your Android device to Ubuntu

+ Download & install Android SDK for linux
+ Connect your Android device to your Ubuntu box, set to Debug mode on your device
+ Open your terminal at Ubuntu
+ Run "lsusb"
+ Look for your device. For my device is "Bus 001 Device 011: ID 22b8:41db Motorola PCS " . Take note on the ID XXXX:YYYY .
+ Create file /etc/udev/rules.d/51-android.rules
+ Write down one line :
    SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="41db", MODE="0666"

idVendor -> XXXX
idProduct -> YYYY

+ sudo chmod a+r /etc/udev/rules.d/51-android.rules
+ sudo restart udev
+ Go to "tools" folder on your Android SDK
   - cd /mypath/android-sdk-linux_86/tools
   - ./adb devices
Look for your device in the output,

List of devices attached
04037A281900D01A    device


That's it. Have fun ...

0 comments: