Sunday, October 24, 2010

Android USB debugging in linux

get the device vendor string:
$ lsusb
...
Bus 001 Device 005: ID 18d1:4e12 Google Inc. Nexus One Phone (Debug)
...


add a rule to udev to allow read/write

# cat SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666" > 
/etc/udev/rules.d/51-android.rules


disconnect and reconnect the usb cable. done.

No comments:

Post a Comment