To make the system reconize the android device, in their several modes, one needs to set permissions for his user in udev.

You need to repeat this process of loading android udev ids, for every mode the phone has (operating system, bootloader or recovery) because they have different usb ids


    # reboot into fastboot mode
    adb reboot bootloader

    # grab you fastboot/bootloader device ids
    lsusb
    > Bus 001 Device 035: ID **18d1:d00d** Google Inc.

    # install the ids into /etc/udev/rules.d/99-android.rules
    SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d00d", MODE="0666", OWNER="thiago"

    # restart udev
    /etc/init.d/udev restart

    # try fastboot (only on bootloader mode)
    fastboot devices