2Lines Software
31Jan/096

Getting Android SDK to work with Fedora 10

Just thought I pass this little bit of information on. Fedora 10 (and Ubuntu also) is a little screwy when it comes to connecting the ADP1 device to Eclipse for testing.

Any USB device automatically gets connected as read-only which means the adb server and Eclipse won´t see the device when you plug it in.

This post gives a little information on how to fix it.

The idea is to create a rules file that listens for the Android device and sets the permissions differently. The rules are all located under /etc/udev/rules.d. So in detail,

Create a new rule for Android devices

vi /etc/udev/rules.d/99-android.rules

Add the following code

SUBSYSTEM=="usb",SYSFS{idVendor}=="0bb4",SYMLINK+="android_adb",MODE="0666"

And run

udevcontrol reload_rules

Plug it in and it should work.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
  • mike

    hi, i’m the original author of your note. looks like the udev stuff have
    been changed yet again. on fedora core 11, it appears that you need to
    change SYSFS(idVendor) to ATTR(idVendor):

    SUBSYSTEM==”usb”,SYSFS{idVendor}==”0bb4″,SYMLINK+=”android_adb”,MODE=”0666″

    also: apparently udevcontrol is being deprecated in favor of:

    udevadm control –reload_rules

    found your website trying to figure out what I had done! :)

    Mike

  • David Khosid

    Hi,

    ’50-android.rules’ name is problematic. It should be at least 51-android.rules to be alphabetically after /lib/udev/rules.d/50-udev-default.rules

    I tried your recipe for connecting Android Dev Phone 1 on Fedora 11. It worked after I with ATTR{idVendor} and udevadm command

    Two questions:
    1. Why you add SYMLINK+=”android_adb” to its content? It works fine without it also.

    2. As I checked, the system uses original files, it’s no need to reload. Why we need to reload rules?

    NB, the command is slightly different from mike’s mail.
    # sudo udevadm control –-reload-rules

    Also, looking on syslog output (#tail -f /usr/var/messages) helped in investigating the problem, this way I understood that it was a problem in the file name.

    Thanks a lot to you both!

    David

  • http://7stringbass.info 7 String Bass

    Its always good to discover tips in the event that you discuss for weblog posting. Because simply started posting comments for blog and facing issue associated with associated with rejections. I think your own suggestion will useful for me. I will in its work for me too.

  • nwk

    Your post was the solution to the device permissions problem I was having with Fedora 12.
    http://forums.fedoraforum.org/showthread.php?t=246154

    Thanks for taking the time to post this!

  • http://www.zmalltalker.com/ Marius Mathiesen

    The SYSFS identifier seems to be deprecated in newer Fedora/udev builds, I wrote a recipe for how to get it running under Fedora 14 as a gist here: https://gist.github.com/715264

  • http://joditest.com Katharina Posto

    When i visit a blog, chances are that i get disappointed. On the contrary,I could honestly say that you writting is decent and your website solid.