Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 4 of 4
  1. Thread Author  Thread Author    #1  

    Default [How-To] Set up udev rules on Ubuntu 10.10

    These instructions only work for Ubuntu 10.10 (Maverick). You need to edit the systems udev rules to allow your Android device to connect, or use root to start and run adb. Udev rules are preferred, because running things as root when it isn't necessary is never a good thing.

    It can all be done from the terminal:
    Warning -- this is all being done as root. Be careful
    sudo su
    touch /etc/udev/rules.d/51-android.rules
    ls /etc/udev/rules.d
    make sure the file 51-android.rules is listed.
    nano -w /etc/udev/rules.d/51-android.rules
    enter the following line, exactly as written:
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
    The {idVendor} in this case (0bb4) is for HTC devices. You can add more than one vendor, but can only have one per line. To add a second device, copy a new line but substitute the vendor ID with the correct id for your device manufacturer. Get a list of vendor ID's right here.

    Control+X, then say Y when asked to save the file.

    Now give the file the right permissions, restart udev to read the new rules, and relinquish the root shell:
    chmod a+r /etc/udev/rules.d/51-android.rules
    service udev restart
    Now that you're back to your normal shell, you need to add the vendor id(s) to the ~/.android/adb_usb.ini file:
    echo $VENDOR_ID >> ~/.android/adb_usb.ini
    Now you shouldn't have to run adb as root any longer.
  2. #2  
    igotsanevo4g's Avatar
    Retired Moderator

    3,558 Posts
    Ice Cream Sandwich


    Sweeeet. This is gonna save me time
  3. #3  

    Default Re: [How-To] Set up udev rules on Ubuntu 10.10

    Hi I am using Maverick and a Galaxy ACE phone. I followed all your instruction but it is not working. Help please.
  4. #4  
    Arun Badole's Avatar
    Junior Member

    0 Posts

    Default Re: [How-To] Set up udev rules on Ubuntu 10.10

    Hi I am using Ubuntu 10.10 & I have device HTC Desire C. Your solution didn't work for me.Please help

Tags for this Thread

Posting Permissions