Created
December 26, 2019 15:51
-
-
Save leinardi/7c068f7371c1e939a6cfe9e47c67c033 to your computer and use it in GitHub Desktop.
/lib/udev/rules.d/51-android.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/lib/udev/rules.d/51-android.rules # These rules refer: https://developer.android.com/studio/run/device.html | |
# and include many suggestions from Arch Linux, GitHub and other Communities. | |
# Latest version can be found at: https://github.com/M0Rf30/android-udev-rules | |
# check the syntax of this file using: | |
# grep -v '^#' 51-android.rules \ | |
# | grep -Ev '^$' \ | |
# | grep -Ev '^SUBSYSTEM=="usb", ATTR{idVendor}=="[0-9a-f]{4}", ATTR{idProduct}=="[0-9a-f]{4}", ENV{adb_user}="yes"$' \ | |
# | grep -Ev '^SUBSYSTEM=="usb", ATTR{idVendor}=="[0-9a-f]{4}", ENV{adb_user}="yes"$' | |
# Skip this section below if this device is not connected by USB | |
SUBSYSTEM!="usb", GOTO="android_usb_rules_end" | |
LABEL="android_usb_rules_begin" | |
# Devices listed here in android_usb_rules_{begin...end} are connected by USB | |
# Acer | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", ATTR{idProduct}=="3604", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", ATTR{idProduct}=="3325", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", ATTR{idProduct}=="3202", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", ATTR{idProduct}=="3203", ENV{adb_user}="yes" | |
# Allwinner / Onda (Unverified) | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="1001", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="1002", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="1003", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="1004", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="1005", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="1006", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="1007", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="1008", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="1009", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="efe8", ENV{adb_user}="yes" | |
# Amazon Lab126 | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0006", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0008", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0022", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0298", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0338", ENV{adb_user}="yes" | |
# Archos | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", ATTR{idProduct}=="1417", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", ATTR{idProduct}=="1411", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", ATTR{idProduct}=="1549", ENV{adb_user}="yes" | |
# ASUSTeK | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="179e", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="179f", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="17a1", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="4c80", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="4c90", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="4c91", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="4ca0", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="4ca1", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="4d00", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="4d01", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="4daf", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="5410", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="5412", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="550f", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="7772", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="7773", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="7774", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="7775", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="7776", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="7777", ENV{adb_user}="yes" | |
# Azpen Onda | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ENV{adb_user}="yes" | |
# BQ | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2a47", ATTR{idProduct}=="0c02", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2a47", ATTR{idProduct}=="2008", ENV{adb_user}="yes" | |
# Dell | |
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", ENV{adb_user}="yes" | |
# Essential | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2e17", ATTR{idProduct}=="c009", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2e17", ATTR{idProduct}=="c030", ENV{adb_user}="yes" | |
# Fairphone 2 | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2ae5", ENV{adb_user}="yes" | |
# Fairphone 2 aka Qualcomm, Inc. | |
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="901d", ENV{adb_user}="yes" | |
# Foxconn | |
# Commtiva Z71, Geeksphone One | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", ATTR{idProduct}=="c001", ENV{adb_user}="yes" | |
# Fujitsu/Fujitsu Toshiba | |
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", ENV{adb_user}="yes" | |
# Fuzhou Rockchip Electronics | |
# Mediacom Smartpad 715i | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2207", ATTR{idProduct}=="0000", ENV{adb_user}="yes" | |
# Ubislate 7Ci | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2207", ATTR{idProduct}=="0010", ENV{adb_user}="yes" | |
# Garmin-Asus | |
SUBSYSTEM=="usb", ATTR{idVendor}=="091e", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ENV{adb_user}="yes" | |
# Haier | |
SUBSYSTEM=="usb", ATTR{idVendor}=="201e", ENV{adb_user}="yes" | |
# Hisense | |
SUBSYSTEM=="usb", ATTR{idVendor}=="109b", ENV{adb_user}="yes" | |
# Honeywell/Foxconn | |
# D70e | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0c2e", ATTR{idProduct}=="0ba3", ENV{adb_user}="yes" | |
# HTC | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ENV{adb_user}="yes" | |
# Huawei | |
# IDEOS | |
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="1038", ENV{adb_user}="yes" | |
# U8850 Vision | |
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="1021", ENV{adb_user}="yes" | |
# HiKey adb | |
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="1057", ENV{adb_user}="yes" | |
# HiKey usbnet | |
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="1050", ENV{adb_user}="yes" | |
# Honor 6 | |
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="103a", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="1051", ENV{adb_user}="yes" | |
# MediaPad M2-A01L | |
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="1052", ENV{adb_user}="yes" | |
# MediaPad T3 | |
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="107d", ENV{adb_user}="yes" | |
# Watch | |
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="1c2c", ENV{adb_user}="yes" | |
# Mate 9 | |
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="107e", ENV{adb_user}="yes" | |
# Intel | |
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="09ef", ENV{adb_user}="yes" | |
# Geeksphone Revolution | |
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="0a16", ENV{adb_user}="yes" | |
# Chuwi Hi 10 Pro (HQ64) | |
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="2a65", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="07ef", ENV{adb_user}="yes" | |
# Reference Boards using kernelflinger | |
# See https://github.com/intel/kernelflinger/blob/master/libefiusb/usb.c#L56 | |
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="09ef", ENV{adb_user}="yes" | |
# IUNI | |
SUBSYSTEM=="usb", ATTR{idVendor}=="271d", ATTR{idProduct}=="bf39", ENV{adb_user}="yes" | |
# K-Touch | |
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", ENV{adb_user}="yes" | |
# KT Tech | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", ENV{adb_user}="yes" | |
# Kyocera | |
#SUBSYSTEM=="usb", ATTR{idVendor}=="0482", ENV{adb_user}="yes" | |
# Lenovo | |
SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", ENV{adb_user}="yes" | |
# LeTv | |
# LEX720 LeEco Pro3 6GB (610c=normal,610d=debug, 610b=camera) | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2b0e", ATTR{idProduct}=="610d", ENV{adb_user}="yes" | |
# LG | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", ENV{adb_user}="yes" | |
# Meizu | |
# MX6 | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2a45", ATTR{idProduct}=="0c02", ENV{adb_user}="yes" | |
# Micromax | |
# P702 | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2a96", ATTR{idProduct}=="201d", ENV{adb_user}="yes" | |
# Motorola | |
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ENV{adb_user}="yes" | |
# MTK | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ENV{adb_user}="yes" | |
# NEC | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", ENV{adb_user}="yes" | |
# Nextbit | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2c3f", ENV{adb_user}="yes" | |
# Nokia X | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0421", ENV{adb_user}="yes" | |
# Nokia 3 | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2e04", ENV{adb_user}="yes" | |
# Nook | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2080", ENV{adb_user}="yes" | |
# Nvidia | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", ENV{adb_user}="yes" | |
# OnePlus(Oreo) | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2a70", ENV{adb_user}="yes" | |
# OTGV | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2257", ENV{adb_user}="yes" | |
# Pantech | |
SUBSYSTEM=="usb", ATTR{idVendor}=="10a9", ENV{adb_user}="yes" | |
# Pegatron | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1d4d", ENV{adb_user}="yes" | |
# Philips | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", ENV{adb_user}="yes" | |
# PMC-Sierra | |
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", ENV{adb_user}="yes" | |
# Qualcomm | |
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="6769", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="9025", ENV{adb_user}="yes" | |
# Research In Motion, Ltd. | |
# BlackBerry DTEK60 | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0fca", ATTR{idProduct}=="8042", ENV{adb_user}="yes" | |
# SK Telesys | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", ENV{adb_user}="yes" | |
# Samsung | |
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ENV{adb_user}="yes" | |
# Sharp | |
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", ENV{adb_user}="yes" | |
# Sony | |
SUBSYSTEM=="usb", ATTR{idVendor}=="054c", ENV{adb_user}="yes" | |
# Sony Ericsson | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ENV{adb_user}="yes" | |
# Spreadtrum | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1782", ENV{adb_user}="yes" | |
# T & A Mobile Phones | |
# Alcatel OT991D | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1bbb", ATTR{idProduct}=="00f2", ENV{adb_user}="yes" | |
# Alcatel OT6012A | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1bbb", ATTR{idProduct}=="0167", ENV{adb_user}="yes" | |
# Teleepoch | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2340", ENV{adb_user}="yes" | |
# Texas Instruments UsbBoot | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d00f", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d010", ENV{adb_user}="yes" | |
# Toshiba | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0930", ENV{adb_user}="yes" | |
# WEARNERS | |
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ENV{adb_user}="yes" | |
# XiaoMi | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2717", ENV{adb_user}="yes" | |
# Yota | |
# YotaPhone2 (f003=normal,9139=debug) | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2916", ATTR{idProduct}=="9139", ENV{adb_user}="yes" | |
# Wileyfox | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2970", ENV{adb_user}="yes" | |
# YU | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1ebf", ENV{adb_user}="yes" | |
# Zebra | |
# TC55 | |
SUBSYSTEM=="usb", ATTR{idVendor}=="05e0", ATTR{idProduct}=="2101", ENV{adb_user}="yes" | |
# ZTE | |
# Blade (1353=normal,1351=debug) | |
SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1351", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1353", ENV{adb_user}="yes" | |
# Blade S (Crescent, Orange San Francisco 2) (1355=normal,1354=debug) | |
SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1354", ENV{adb_user}="yes" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1355", ENV{adb_user}="yes" | |
# ZUK | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2b4c", ENV{adb_user}="yes" | |
# Enable device as a user device if found | |
ENV{adb_user}=="yes", MODE="0660", GROUP="plugdev", TAG+="uaccess" | |
LABEL="android_usb_rules_end" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment