Attaching new devices on your Ubuntu Linux can be annoying because the system does not give you permission to access. Simply put, you have to let udev know about special permission to your device.
First we have to grab vendor id from lsusb or android developers site.
lsusb method:
Run
lsusb
look for a your device (phone manufacturer), the listing looks like formatted like this vendorId:modelId, i.e.:
...
Bus 001 Device 006: ID 22b8:7090 Motorola PCS
...
now make sure permission get set on every usb plug event:
add/create new to /etc/udev/rules.d/51-android.rules:
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="plugdev"
set the right permissions on 51-android.rules (if just created the file):
-rw-r--r-- 1 root root 213 2008-12-04 22:45 51-android.rules
or
chmod a+r 51-android.rules
Done.
Credit: Android developer site
No comments:
Post a Comment