Here's the low down, read and complete all of the steps before telling me it doesn't work, please.
- First, remove any rules you already set up for your Android Device (If any), they'll be very obvious if you look in /etc/udev/rules.d/
sudo ls /etc/udev/rules.d/
- Now, open an editor for the rules at /etc/udev/rules.d/99-android.rules:
gksudo gedit /etc/udev/rules.d/99-android.rules
- Now, paste all of the rules below:
#Acer SUBSYSTEM=="usb", SYSFS{idVendor}=="0502", MODE="0666" #Dell SUBSYSTEM=="usb", SYSFS{idVendor}=="413c", MODE="0666" #Foxconn SUBSYSTEM=="usb", SYSFS{idVendor}=="0489", MODE="0666" #Garmin-Asus SUBSYSTEM=="usb", SYSFS{idVendor}=="091E", MODE="0666" #Google SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666" #HTC SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" #Huawei SUBSYSTEM=="usb", SYSFS{idVendor}=="12d1", MODE="0666" #Kyocera SUBSYSTEM=="usb", SYSFS{idVendor}=="0482", MODE="0666" #LG SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666" #Motorola SUBSYSTEM=="usb", SYSFS{idVendor}=="22b8", MODE="0666" #Nvidia SUBSYSTEM=="usb", SYSFS{idVendor}=="0955", MODE="0666" #Pantech SUBSYSTEM=="usb", SYSFS{idVendor}=="10A9", MODE="0666" #Samsung SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666" #Sharp SUBSYSTEM=="usb", SYSFS{idVendor}=="04dd", MODE="0666" #Sony Ericsson SUBSYSTEM=="usb", SYSFS{idVendor}=="0fce", MODE="0666" #ZTE SUBSYSTEM=="usb", SYSFS{idVendor}=="19D2", MODE="0666" - Save and close the file.
- Change the file permissions:
sudo chmod a+r /etc/udev/rules.d/99-android.rules
- Now, unplug all Android Devices...
- Restart the udev service:
sudo service udev restart
- Kill and restart adb:
adb kill-server
adb start-server
- Done... you should now be able to work with a device from almost any manufacturer. Plug your phone in to test.
If you're unable to start adb from a command line anywhere (without sudo), you've been lazy with your setup (I am too at times)... you may want to scan my "Dev Box Setup" series of blog posts.
At any rate, just wanted to share these udev rules.
-Dustin
Edited by dustinmj, 13 June 2011 - 03:16 AM.




