Linux Scroll

Just another WordPress.com site

Enable linux machine to connect Android phone

If you connect your android phone to linux machine by default, you will get:

$ adb devices
List of devices attached
???????????? no permissions

Turn on “USB Debugging” on your device.
On the device, go to the home screen, press MENU, select Applications > Development, then enable USB debugging.

Create android rule:

$ vi /etc/udev/rules.d/51-android.rules

Add your phone usb vendor ID:

# HTC
SUBSYSTEM=="usb",SYSFS{idVendor}=="0bb4",MODE="0666"
# Samsung
SUBSYSTEM=="usb",SYSFS{idVendor}=="04e8",MODE="0666"

List of Android usb vendor ID:
http://developer.android.com/guide/developing/device.html

Verify adroid phone connected:

$ adb devices
List of devices attached
S58305ce1a513 device
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: