Skip to content

Instantly share code, notes, and snippets.

@hl4
Forked from johnmurrayvi/51-android.rules
Created February 23, 2016 10:02
Show Gist options
  • Save hl4/7998cf9fddf5f2e19b15 to your computer and use it in GitHub Desktop.
Save hl4/7998cf9fddf5f2e19b15 to your computer and use it in GitHub Desktop.
Udev permission for android devices
## Acer
#SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0600", OWNER="<username>"
## ASUS
#SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0600", OWNER="<username>"
## Dell
#SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0600", OWNER="<username>"
## Foxconn
#SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0600", OWNER="<username>"
## Garmin-ASUS
#SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0600", OWNER="<username>"
## Google
#SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0600", OWNER="<username>"
## HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0600", OWNER="<username>"
## Huawei
#SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0600", OWNER="<username>"
## K-Touch
#SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0600", OWNER="<username>"
## KT Tech
#SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0600", OWNER="<username>"
## Kyocera
#SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0600", OWNER="<username>"
## Lenovo
#SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0600", OWNER="<username>"
## LG
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0600", OWNER="<username>"
## Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0600", OWNER="<username>"
## NEC
#SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0600", OWNER="<username>"
## Nook
#SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0600", OWNER="<username>"
## Nvidia
#SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0600", OWNER="<username>"
## OTGV
#SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0600", OWNER="<username>"
## Pantech
#SUBSYSTEM=="usb", ATTR{idVendor}=="10a9", MODE="0600", OWNER="<username>"
## Pegatron
#SUBSYSTEM=="usb", ATTR{idVendor}=="1d4d", MODE="0600", OWNER="<username>"
## Phillips
#SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0600", OWNER="<username>"
## PMC-Sierra
#SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0600", OWNER="<username>"
## Qualcomm
#SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0600", OWNER="<username>"
## SK Telesys
#SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0600", OWNER="<username>"
## Samsung
#SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0600", OWNER="<username>"
## Sharp
#SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0600", OWNER="<username>"
## Sony Ericsson
#SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0600", OWNER="<username>"
## Toshiba
#SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0600", OWNER="<username>"
## ZTE
#SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0600", OWNER="<username>"
### Nexus & AOSP Devices ###
# adb protocol on passion (Nexus One)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", MODE="0600", OWNER="<username>"
# fastboot protocol on passion (Nexus One)
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", MODE="0600", OWNER="<username>"
# adb protocol on crespo/crespo4g (Nexus S)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e22", MODE="0600", OWNER="<username>"
# fastboot protocol on crespo/crespo4g (Nexus S)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e20", MODE="0600", OWNER="<username>"
# adb protocol on stingray/wingray (Xoom)
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="70a9", MODE="0600", OWNER="<username>"
# fastboot protocol on stingray/wingray (Xoom)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="708c", MODE="0600", OWNER="<username>"
# adb protocol on maguro/toro (Galaxy Nexus)
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0600", OWNER="<username>"
# fastboot protocol on maguro/toro (Galaxy Nexus)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e30", MODE="0600", OWNER="<username>"
# mtp protocol on maguro/toro (Galaxy Nexus)
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="685c", MODE="0600", OWNER="<username>"
# adb protocol on panda (PandaBoard)
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d101", MODE="0600", OWNER="<username>"
# fastboot protocol on panda (PandaBoard)
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d022", MODE="0600", OWNER="<username>"
# adb protocol on the grouper (Nexus 7)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e42", MODE="0600", OWNER="<username>"
# fastboot protocol on the grouper (Nexus 7)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e40", MODE="0600", OWNER="<username>"
# mtp protocol on the grouper (Nexus 7)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e41", MODE="0600", OWNER="<username>"
# adb for recovery mode on the grouper (Nexus 7)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d001", MODE="0666", OWNER="<username>"
# adb protocol on manta (Nexus 10)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee2", MODE="0600", OWNER="<username>"
# fastboot protocol on manta (Nexus 10)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee0", MODE="0600", OWNER="<username>"
# adb protocol on the occam (Nexus 4)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee2", MODE="0666", OWNER="<username>"
# fastboot protocol on the occam (Nexus 4)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee0", MODE="0666", OWNER="<username>"
# recovery on the occam (Nexus 4)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d001", MODE="0666", OWNER="<username>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment