Skip to content

Instantly share code, notes, and snippets.

@smrehan6
Forked from xgouchet/51-android.rules
Created December 8, 2015 08:56
Show Gist options
  • Save smrehan6/ec915b0d479f5cc1489c to your computer and use it in GitHub Desktop.
Save smrehan6/ec915b0d479f5cc1489c to your computer and use it in GitHub Desktop.
Android Debug Bridge (adb) udev definition file
################################################################################
# Android Debug Bridge (adb) udev definition file
#
# This rules file will add a /dev/android_adb symlink when an Android phone with
# an identified idVendor:idProduct appears on the USB port. Then it will run the
# Android adb program (located in specified RUN+ statement below).
#
# Copy this file to /etc/udev/rules.d/51-android.rules then run the following lines
# sudo chmod a+r /etc/udev/rules.d/51-android.rules
# sudo /etc/init.d/udev restart
################################################################################
# Add any new vendor by copying the following line
# You can find a list of known Vendor Ids at http://www.linux-usb.org/usb.ids
# SUBSYSTEM=="usb", ATTRS{idVendor}=="????", MODE="0660", GROUP="plugdev"
################################################################################
# Official Android device Vendors
# http://developer.android.com/tools/device.html#VendorIds
# Acer, Inc.
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0660", GROUP="plugdev"
# ASUSTek Computer, Inc.
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0660", GROUP="plugdev"
# Dell Computer Corp.
SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0660", GROUP="plugdev"
#Foxconn / Hon Hai
SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0660", GROUP="plugdev"
# Fujitsu, Ltd
SUBSYSTEM=="usb", ATTRS{idVendor}=="04c5", MODE="0660", GROUP="plugdev"
# Garmin International
SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0660", GROUP="plugdev"
# Google Inc.
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0660", GROUP="plugdev"
# Haier
SUBSYSTEM=="usb", ATTRS{idVendor}=="201e", MODE="0660", GROUP="plugdev"
# Hisense
SUBSYSTEM=="usb", ATTRS{idVendor}=="109b", MODE="0660", GROUP="plugdev"
# HTC (High Tech Computer Corp.)
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0660", GROUP="plugdev"
# Huawei Technologies Co., Ltd.
SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0660", GROUP="plugdev"
# Intel Corp.
SUBSYSTEM=="usb", ATTRS{idVendor}=="8087", MODE="0660", GROUP="plugdev"
# K-Touch
SUBSYSTEM=="usb", ATTRS{idVendor}=="24e3", MODE="0660", GROUP="plugdev"
# KT Tech
SUBSYSTEM=="usb", ATTRS{idVendor}=="2116", MODE="0660", GROUP="plugdev"
# Kyocera Corp.
SUBSYSTEM=="usb", ATTRS{idVendor}=="0482", MODE="0660", GROUP="plugdev"
# Lenovo
SUBSYSTEM=="usb", ATTRS{idVendor}=="17ef", MODE="0660", GROUP="plugdev"
# LG Electronics, Inc.
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0660", GROUP="plugdev"
# Motorola PCS
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0660", GROUP="plugdev"
# MTK (MediaTek Inc.)
SUBSYSTEM=="usb", ATTRS{idVendor}=="0e8d", MODE="0660", GROUP="plugdev"
# NEC Corp.
SUBSYSTEM=="usb", ATTRS{idVendor}=="0409", MODE="0660", GROUP="plugdev"
# Nook (Barnes & Noble)
SUBSYSTEM=="usb", ATTRS{idVendor}=="2080", MODE="0660", GROUP="plugdev"
# NVidia Corp.
SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", MODE="0660", GROUP="plugdev"
# OTGV
SUBSYSTEM=="usb", ATTRS{idVendor}=="2257", MODE="0660", GROUP="plugdev"
# Panasonic (Matsushita)
SUBSYSTEM=="usb", ATTRS{idVendor}=="04da", MODE="0660", GROUP="plugdev"
# Pantech (SK Teletech Co., Ltd)
SUBSYSTEM=="usb", ATTRS{idVendor}=="10a9", MODE="0660", GROUP="plugdev"
# PEGATRON CORPORATION
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d4d", MODE="0660", GROUP="plugdev"
# Philips (and NXP)
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", MODE="0660", GROUP="plugdev"
# Qualcomm, Inc.
SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", MODE="0660", GROUP="plugdev"
# SK Telesys
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f53", MODE="0660", GROUP="plugdev"
# Samsung Electronics Co., Ltd
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0660", GROUP="plugdev"
# Sharp Corp.
SUBSYSTEM=="usb", ATTRS{idVendor}=="04dd", MODE="0660", GROUP="plugdev"
# Sony Corp.
SUBSYSTEM=="usb", ATTRS{idVendor}=="054c", MODE="0660", GROUP="plugdev"
# Sony Ericsson Mobile Communications AB
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0660", GROUP="plugdev"
#Teleepoch
SUBSYSTEM=="usb", ATTRS{idVendor}=="2340", MODE="0660", GROUP="plugdev"
# Toshiba Corp.
SUBSYSTEM=="usb", ATTRS{idVendor}=="0930", MODE="0660", GROUP="plugdev"
#ZTE WCDMA Technologies MSM
SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", MODE="0660", GROUP="plugdev"
################################################################################
# Other Android based device Vendors
# http://developer.android.com/tools/device.html#VendorIds
# Lab126, Inc. (Amazon Kindle)
SUBSYSTEM=="usb", ATTRS{idVendor}=="1949", MODE="0660", GROUP="plugdev"
# Parrot SA (Car HUD)
SUBSYSTEM=="usb", ATTRS{idVendor}=="19cf", MODE="0660", GROUP="plugdev"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment