android-udev-rules/51-android.rules

523 lines
15 KiB
Plaintext
Raw Normal View History

2016-08-26 11:07:35 +02:00
# These rules refer: https://developer.android.com/studio/run/device.html
2016-04-08 17:56:52 +02:00
# and include many suggestions from Arch Linux, GitHub and other Communities.
# Latest version can be found at: https://github.com/M0Rf30/android-udev-rules
2013-11-05 16:40:15 +01:00
# 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
2012-07-10 19:34:33 +02:00
# Acer
ATTR{idVendor}!="0502", GOTO="not_Acer"
ENV{adb_user}="yes"
2014-05-07 17:02:52 +02:00
# Iconia Tab A1-830
ATTR{idProduct}=="3604", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# Iconia Tab A500
ATTR{idProduct}=="3325", ENV{adb_adbfast}="yes"
# Liquid (3202=normal,3203=debug)
ATTR{idProduct}=="3203", SYMLINK+="android_adb"
GOTO="android_usb_rule_match"
LABEL="not_Acer"
2012-05-09 03:14:18 +02:00
2016-04-26 12:32:18 +02:00
# Actions Semiconductor Co., Ltd
ATTR{idVendor}=="10d6", ENV{adb_user}="yes"
# Denver TAD 70111
ATTR{idVendor}=="10d6", ATTR{idProduct}=="0c02", SYMLINK+="android_adb"
# ADVANCE
2013-05-04 17:14:30 +02:00
ATTR{idVendor}=="0a5c", ENV{adb_user}="yes"
# S5
2014-12-15 19:27:05 +01:00
ATTR{idProduct}=="e681", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Archos
ATTR{idVendor}!="0e79", GOTO="not_Archos"
ENV{adb_user}="yes"
2012-07-10 19:34:33 +02:00
# 43
ATTR{idProduct}=="1417", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# 101
ATTR{idProduct}=="1411", ENV{adb_adbfast}="yes"
2013-08-08 15:05:08 +02:00
# 101 xs
ATTR{idProduct}=="1549", ENV{adb_adbfast}="yes"
GOTO="android_usb_rule_match"
LABEL="not_Archos"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Asus
ATTR{idVendor}!="0b05", GOTO="not_Asus"
# False positive - accessory
ATTR{idProduct}=="1???", GOTO="android_usb_rules_end"
ENV{adb_user}="yes"
# Zenphone 5 (4c90=normal,4c91=debug,4daf=Fastboot)
ATTR{idProduct}=="4c91", SYMLINK+="android_adb"
ATTR{idProduct}=="4daf", SYMLINK+="android_fastboot"
2016-04-08 17:56:52 +02:00
# Tegra APX
ATTR{idProduct}=="7030"
GOTO="android_usb_rule_match"
LABEL="not_Asus"
2012-05-09 03:14:18 +02:00
2014-09-28 06:16:26 +02:00
# Azpen Onda
ATTR{idVendor}=="1f3a", ENV{adb_user}="yes"
# BQ
ATTR{idVendor}!="2a47", GOTO="not_BQ"
ENV{adb_user}="yes"
# Aquaris 4.5
ATTR{idProduct}=="0c02", ENV{adb_adbfast}="yes"
ATTR{idProduct}=="2008", ENV{adb_adbfast}="yes"
GOTO="android_usb_rule_match"
LABEL="not_BQ"
2012-07-10 19:34:33 +02:00
# Dell
ATTR{idVendor}=="413c", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2016-04-30 11:23:34 +02:00
# Fairphone 2
ATTR{idVendor}=="2ae5", ENV{adb_user}="yes"
2012-07-10 19:34:33 +02:00
# Foxconn
ATTR{idVendor}=="0489", ENV{adb_user}="yes"
2014-02-25 19:09:04 +01:00
# Commtiva Z71, Geeksphone One
ATTR{idVendor}=="0489", ATTR{idProduct}=="c001", SYMLINK+="android_adb"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Fujitsu/Fujitsu Toshiba
ATTR{idVendor}=="04c5", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
# Fuzhou Rockchip Electronics
ATTR{idVendor}=="2207", ENV{adb_user}="yes"
# Mediacom Smartpad 715i
ATTR{idVendor}=="2207", ATTR{idProduct}=="0000", SYMLINK+="android_adb"
2014-02-19 16:14:22 +01:00
# Ubislate 7Ci
ATTR{idVendor}=="2207", ATTR{idProduct}=="0010", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Garmin-Asus
ATTR{idVendor}=="091e", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Google
ATTR{idVendor}!="18d1", GOTO="not_Google"
ENV{adb_user}="yes"
2014-02-25 19:09:04 +01:00
# Nexus 4, Nexus 7 2013
ATTR{idProduct}=="4ee2", SYMLINK+="android_adb"
ATTR{idProduct}=="4ee0", SYMLINK+="android_fastboot"
2012-12-18 21:37:05 +01:00
# Nexus 7
ATTR{idProduct}=="4e42", SYMLINK+="android_adb"
ATTR{idProduct}=="4e40", SYMLINK+="android_fastboot"
2014-02-25 19:09:04 +01:00
# Nexus 5, Nexus 10
ATTR{idProduct}=="4ee1", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# Nexus S
ATTR{idProduct}=="4e21"
ATTR{idProduct}=="4e22", SYMLINK+="android_adb"
ATTR{idProduct}=="4e20", SYMLINK+="android_fastboot"
2013-06-07 19:49:05 +02:00
# Galaxy Nexus
ATTR{idProduct}=="4e30", ENV{adb_adbfast}="yes"
# Nexus One (4e11=normal,4e12=debug,0fff=debug)
ATTR{idProduct}=="4e12", SYMLINK+="android_adb"
ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
2012-07-10 19:34:33 +02:00
# Generic and unspecified debug interface
ATTR{idProduct}=="d00d", SYMLINK+="android_fastboot"
# Include: Samsung Galaxy Nexus (GSM)
ATTR{idProduct}=="4e30", SYMLINK+="android_fastboot"
2014-06-09 13:38:35 +02:00
# Recovery adb entry for Nexus Family
ATTR{idProduct}=="d001", SYMLINK+="android_adb"
GOTO="android_usb_rule_match"
LABEL="not_Google"
2012-05-09 03:14:18 +02:00
2013-09-10 18:29:22 +02:00
# Haier
ATTR{idVendor}=="201e", ENV{adb_user}="yes"
2012-07-10 19:34:33 +02:00
# Hisense
2013-09-10 18:29:22 +02:00
ATTR{idVendor}=="109b", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2016-04-26 12:42:50 +02:00
# Honeywell/Foxconn
ATTR{idVendor}!="0c2e", GOTO="not_Honeywell"
ENV{adb_user}="yes"
2016-04-26 12:42:50 +02:00
# D70e
ATTR{idProduct}=="0ba3", SYMLINK+="android_adb"
GOTO="android_usb_rule_match"
LABEL="not_Honeywell"
2012-07-10 19:34:33 +02:00
# HTC
ATTR{idVendor}!="0bb4", GOTO="not_HTC"
ENV{adb_user}="yes"
# fastboot mode enabled
ATTR{idProduct}=="0fff", ENV{adb_adbfast}="yes", GOTO="android_usb_rule_match"
2012-07-10 19:34:33 +02:00
# ChaCha
ATTR{idProduct}=="0cb2", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# Desire (Bravo)
ATTR{idProduct}=="0c87", SYMLINK+="android_adb"
2012-07-11 19:04:56 +02:00
# Desire HD
ATTR{idProduct}=="0ca2", SYMLINK+="android_adb"
2013-01-23 02:15:13 +01:00
# Desire S (Saga)
ATTR{idProduct}=="0cab", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Desire Z
ATTR{idProduct}=="0c91", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# Evo Shift
ATTR{idProduct}=="0ca5", SYMLINK+="android_adb"
2014-09-28 06:18:06 +02:00
# G1
ATTR{idProduct}=="0c01", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# HD2
ATTR{idProduct}=="0c02", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# Hero H2000
ATTR{idProduct}=="0001", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# Hero (GSM), Desire
ATTR{idProduct}=="0c99", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Hero (CDMA)
ATTR{idProduct}=="0c9a", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Incredible
ATTR{idProduct}=="0c9e", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Incredible rev 0002
ATTR{idProduct}=="0c8d", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# MyTouch 4G
ATTR{idProduct}=="0c96", SYMLINK+="android_adb"
2015-07-27 14:00:01 +02:00
# One (m7) && One (m8)
ATTR{idProduct}=="0c93"
# Sensation
ATTR{idProduct}=="0f87", SYMLINK+="android_adb"
ATTR{idProduct}=="0ff0", SYMLINK+="android_fastboot"
2015-02-28 20:37:26 +01:00
# One V
ATTR{idProduct}=="0ce5", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Slide
ATTR{idProduct}=="0e03", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Tatoo, Dream, ADP1, G1, Magic
ATTR{idProduct}=="0c01"
ATTR{idProduct}=="0c02", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# Vision
ATTR{idProduct}=="0c91", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Wildfire
ATTR{idProduct}=="0c8b", ENV{adb_adbfast}="yes"
2013-05-13 01:27:09 +02:00
# Wildfire S
ATTR{idProduct}=="0c86", ENV{adb_adbfast}="yes"
2014-02-25 19:09:04 +01:00
# Zopo ZP900, Fairphone
ATTR{idProduct}=="0c03", ENV{adb_adbfast}="yes"
2013-09-11 20:08:07 +02:00
# Zopo C2
ATTR{idProduct}=="2008", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
GOTO="android_usb_rule_match"
LABEL="not_HTC"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Huawei
ATTR{idVendor}!="12d1", GOTO="not_Huawei"
ENV{adb_user}="yes"
2014-12-15 19:27:05 +01:00
# IDEOS
ATTR{idProduct}=="1038", ENV{adb_adbfast}="yes"
2013-01-21 21:04:34 +01:00
# U8850 Vision
ATTR{idProduct}=="1021", ENV{adb_adbfast}="yes"
2016-01-20 01:49:36 +01:00
# HiKey adb
ATTR{idProduct}=="1057", SYMLINK+="android_adb"
# HiKey usbnet
ATTR{idProduct}=="1050", SYMLINK+="android_adb"
2016-04-22 13:11:04 +02:00
# MediaPad M2-A01L
ATTR{idProduct}=="1052", SYMLINK+="android_adb"
2016-08-05 16:20:29 +02:00
# Huawei Watch
ATTR{idProduct}=="1c2c", SYMLINK+="android_adb"
GOTO="android_usb_rule_match"
LABEL="not_Huawei"
2012-05-09 03:14:18 +02:00
2014-02-25 19:09:04 +01:00
# Intel
ATTR{idVendor}=="8087", ENV{adb_user}="yes"
# Geeksphone Revolution
ATTR{idVendor}=="8087", ATTR{idProduct}=="0a16", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# K-Touch
ATTR{idVendor}=="24e3", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# KT Tech
ATTR{idVendor}=="2116", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Kyocera
ATTR{idVendor}=="0482", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Lab126
ATTR{idVendor}=="1949", ENV{adb_user}="yes"
2012-07-10 19:34:33 +02:00
# Amazon Kindle Fire
ATTR{idProduct}=="0006", ENV{adb_adbfast}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Lenovo
ATTR{idVendor}=="17ef", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# LG
ATTR{idVendor}!="1004", GOTO="not_LG"
ENV{adb_user}="yes"
# Ally, Vortex, P500, P500h
ATTR{idProduct}=="618f"
ATTR{idProduct}=="618e", SYMLINK+="android_adb"
2016-08-05 16:18:12 +02:00
# G2 D802
ATTR{idProduct}=="61f1", SYMLINK+="android_adb"
2014-03-23 15:26:14 +01:00
# G2 D803
2015-08-20 03:18:49 +02:00
ATTR{idProduct}=="618c", SYMLINK+="android_adb"
2015-08-20 03:28:38 +02:00
# G2 D803 rogers
ATTR{idProduct}=="631f", SYMLINK+="android_adb"
2014-12-15 19:18:02 +01:00
# G3 D855
2014-12-14 09:38:00 +01:00
ATTR{idProduct}=="633e", SYMLINK+="android_adb"
2013-10-19 18:04:42 +02:00
# Optimus LTE
ATTR{idProduct}=="6315", SYMLINK+="android_adb"
ATTR{idProduct}=="61f9", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
2012-07-10 19:34:33 +02:00
# Optimus One
ATTR{idProduct}=="61c5", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Swift GT540
ATTR{idProduct}=="61b4", SYMLINK+="android_adb"
2013-05-06 15:29:43 +02:00
# P500 CM10
ATTR{idProduct}=="61a6", SYMLINK+="android_adb"
2014-01-05 16:00:00 +01:00
# 4X HD P880
ATTR{idProduct}=="61f9", SYMLINK+="android_adb"
GOTO="android_usb_rule_match"
LABEL="not_LG"
2012-05-09 03:14:18 +02:00
2017-01-01 13:25:08 +01:00
# IUNI
ATTR{idVendor}!="271d", GOTO="not_IUNI"
ENV{adb_user}="yes"
# U3
ATTR{idProduct}=="bf39", SYMLINK+="android_adb"
2016-04-08 17:24:06 +02:00
# Micromax
ATTR{idVendor}!="2a96", GOTO="not_Micromax"
ENV{adb_user}="yes"
# P702
ATTR{idProduct}=="201d", SYMLINK+="android_adb", SYMLINK+="android_fastboot"
GOTO="android_usb_rule_match"
LABEL="not_Micromax"
2012-07-10 19:34:33 +02:00
# Motorola
ATTR{idVendor}!="22b8", GOTO="not_Motorola"
ENV{adb_user}="yes"
2012-07-10 19:34:33 +02:00
# CLIQ XT/Quench
ATTR{idProduct}=="2d66"
2012-07-10 19:34:33 +02:00
# Defy/MB525
ATTR{idProduct}=="428c"
2012-07-11 19:04:56 +02:00
# Droid
ATTR{idProduct}=="41db"
2012-07-10 19:34:33 +02:00
# Xoom ID 1
ATTR{idProduct}=="70a8", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# Xoom ID 2
ATTR{idProduct}=="70a9", ENV{adb_adbfast}="yes"
2013-10-31 15:00:45 +01:00
# Razr XT912
ATTR{idProduct}=="4362", ENV{adb_adbfast}="yes"
2015-09-18 14:38:51 +02:00
# Moto XT1052
ATTR{idProduct}=="2e83", ENV{adb_adbfast}="yes"
2014-12-25 03:39:35 +01:00
# Moto E/G
ATTR{idProduct}=="2e76", ENV{adb_adbfast}="yes"
2014-12-25 03:39:35 +01:00
# Moto E/G (Dual SIM)
ATTR{idProduct}=="2e80", ENV{adb_adbfast}="yes"
2014-12-25 03:39:35 +01:00
# Moto E/G (Global GSM)
ATTR{idProduct}=="2e82", ENV{adb_adbfast}="yes"
GOTO="android_usb_rule_match"
LABEL="not_Motorola"
2012-05-09 03:14:18 +02:00
2013-09-10 18:29:22 +02:00
# MTK
ATTR{idVendor}=="0e8d", ENV{adb_user}="yes"
2012-07-10 19:34:33 +02:00
# NEC
ATTR{idVendor}=="0409", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Nook
ATTR{idVendor}=="2080", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Nvidia
ATTR{idVendor}=="0955", ENV{adb_user}="yes"
2016-12-21 10:24:31 +01:00
# Audi SDIS Rear Seat Entertainment Tablet
ATTR{idProduct}=="7000", SYMLINK+="android_fastboot"
2012-05-09 03:14:18 +02:00
2013-06-09 12:44:41 +02:00
# Oppo
ATTR{idVendor}=="22d9", ENV{adb_user}="yes"
# Find 5
2014-12-15 19:27:05 +01:00
ATTR{idProduct}=="2767", SYMLINK+="android_adb"
ATTR{idProduct}=="2764", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
2013-06-09 12:44:41 +02:00
2012-07-10 19:34:33 +02:00
# OTGV
ATTR{idVendor}=="2257", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Pantech
ATTR{idVendor}=="10a9", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Pegatron
ATTR{idVendor}=="1d4d", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Philips
ATTR{idVendor}=="0471", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# PMC-Sierra
ATTR{idVendor}=="04da", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Qualcomm
2016-01-19 18:27:16 +01:00
ATTR{idVendor}!="05c6", GOTO="not_Qualcomm"
ENV{adb_user}="yes"
2014-02-25 19:10:55 +01:00
# Geeksphone Zero
2014-12-15 19:27:05 +01:00
ATTR{idProduct}=="9025", SYMLINK+="android_adb"
2014-09-26 15:30:08 +02:00
# OnePlus One
ATTR{idProduct}=="676?", SYMLINK+="android_adb"
2015-12-08 23:26:33 +01:00
# OnePlus Two
ATTR{idProduct}=="9011", SYMLINK+="android_adb"
2016-01-19 18:27:16 +01:00
GOTO="android_usb_rule_match"
LABEL="not_Qualcomm"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# SK Telesys
ATTR{idVendor}=="1f53", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Samsung
ATTR{idVendor}!="04e8", GOTO="not_Samsung"
# False positive printer
ATTR{idProduct}=="3???", GOTO="android_usb_rules_end"
ENV{adb_user}="yes"
2012-07-10 19:34:33 +02:00
# Galaxy i5700
ATTR{idProduct}=="681c", ENV{adb_adbfast}="yes"
# Galaxy i5800 (681c=debug,6601=fastboot,68a0=mediaplayer)
ATTR{idProduct}=="681c", SYMLINK+="android_adb"
ATTR{idProduct}=="6601", SYMLINK+="android_fastboot"
ATTR{idProduct}=="68a9", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
2012-07-10 19:34:33 +02:00
# Galaxy i7500
ATTR{idProduct}=="6640", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# Galaxy i9000 S, i9300 S3
ATTR{idProduct}=="6601", SYMLINK+="android_adb"
ATTR{idProduct}=="685d", MODE="0660"
ATTR{idProduct}=="68c3", MODE="0660"
2012-07-10 19:34:33 +02:00
# Galaxy Ace (S5830) "Cooper"
ATTR{idProduct}=="689e", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# Galaxy Tab
ATTR{idProduct}=="6877", ENV{adb_adbfast}="yes"
2012-11-08 17:37:35 +01:00
# Galaxy Nexus (GSM)
ATTR{idProduct}=="685c"
# Galaxy Core, Tab 10.1, i9100 S2, i9300 S3, N5100 Note (8.0), Galaxy S3 SHW-M440S 3G (Korea only)
ATTR{idProduct}=="6860", SYMLINK+="android_adb"
ATTR{idProduct}=="685e", ENV{adb_adbfast}="yes"
2012-07-10 19:34:33 +02:00
# Galaxy i9300 S3
ATTR{idProduct}=="6866", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
2013-07-21 14:45:52 +02:00
# Galaxy S4 GT-I9500
ATTR{idProduct}=="685d", SYMLINK+="android_adb"
GOTO="android_usb_rule_match"
LABEL="not_Samsung"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Sharp
ATTR{idVendor}=="04dd", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Sony
ATTR{idVendor}=="054c", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2012-07-10 19:34:33 +02:00
# Sony Ericsson
ATTR{idVendor}!="0fce", GOTO="not_Sony_Ericsson"
ENV{adb_user}="yes"
2012-07-10 19:34:33 +02:00
# Xperia X10 mini
ATTR{idProduct}=="3137"
ATTR{idProduct}=="2137", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Xperia X10 mini pro
ATTR{idProduct}=="3138"
ATTR{idProduct}=="2138", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Xperia X8
ATTR{idProduct}=="3149"
ATTR{idProduct}=="2149", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Xperia X12
ATTR{idProduct}=="e14f"
ATTR{idProduct}=="614f", SYMLINK+="android_adb"
2012-07-10 19:34:33 +02:00
# Xperia Arc S
ATTR{idProduct}=="414f", ENV{adb_adbfast}="yes"
# Xperia Neo V (6156=debug,0dde=fastboot)
ATTR{idProduct}=="6156", SYMLINK+="android_adb"
ATTR{idProduct}=="0dde", SYMLINK+="android_fastboot"
2013-06-03 00:43:43 +02:00
# Xperia S
ATTR{idProduct}=="5169", ENV{adb_adbfast}="yes"
2014-04-03 16:13:21 +02:00
# Xperia SP
ATTR{idProduct}=="6195", ENV{adb_adbfast}="yes"
2013-08-29 11:25:06 +02:00
# Xperia L
ATTR{idProduct}=="5192", ENV{adb_adbfast}="yes"
# Xperia Mini Pro
ATTR{idProduct}=="0166", ENV{adb_adbfast}="yes"
2014-04-07 16:54:46 +02:00
# Xperia V
ATTR{idProduct}=="0186", ENV{adb_adbfast}="yes"
2014-04-07 16:54:46 +02:00
# Xperia Acro S
ATTR{idProduct}=="5176", ENV{adb_adbfast}="yes"
2014-06-08 12:35:25 +02:00
# Xperia Z1 Compact
ATTR{idProduct}=="51a7", ENV{adb_adbfast}="yes"
# Xperia Z3 Compact
ATTR{idProduct}=="01bb", ENV{adb_adbfast}="yes"
2015-12-05 01:38:10 +01:00
# Xperia Z3+ Dual
ATTR{idProduct}=="51c9", ENV{adb_adbfast}="yes"
GOTO="android_usb_rule_match"
LABEL="not_Sony_Ericsson"
2012-05-09 03:14:18 +02:00
2014-02-10 15:58:09 +01:00
# Spreadtrum
2014-02-04 14:49:27 +01:00
ATTR{idVendor}=="1782", ENV{adb_user}="yes"
2016-04-08 17:56:52 +02:00
# T & A Mobile Phones
ATTR{idVendor}=="1bbb", ENV{adb_user}="yes"
2012-11-11 16:49:51 +01:00
# Alcatel OT991D
2014-12-15 19:27:05 +01:00
ATTR{idProduct}=="00f2", SYMLINK+="android_adb"
# Alcatel OT6012A
ATTR{idProduct}=="0167", SYMLINK+="android_adb"
2012-11-09 18:48:31 +01:00
2012-07-10 19:34:33 +02:00
# Teleepoch
ATTR{idVendor}=="2340", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2013-12-05 13:22:44 +01:00
# Texas Instruments UsbBoot
ATTR{idVendor}=="0451", ATTR{idProduct}=="d00f", ENV{adb_user}="yes"
ATTR{idVendor}=="0451", ATTR{idProduct}=="d010", ENV{adb_user}="yes"
2013-12-05 13:22:44 +01:00
2012-07-10 19:34:33 +02:00
# Toshiba
ATTR{idVendor}=="0930", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2013-02-24 20:36:42 +01:00
# WEARNERS
ATTR{idVendor}=="05c6", ENV{adb_user}="yes"
2013-02-24 20:36:42 +01:00
2013-10-13 04:15:33 +02:00
# XiaoMi
ATTR{idVendor}!="2717", GOTO="not_XiaoMi"
ENV{adb_user}="yes"
2013-10-13 04:15:33 +02:00
# Mi2A
2014-12-15 19:27:05 +01:00
ATTR{idProduct}=="904e", SYMLINK+="android_adb"
ATTR{idProduct}=="9039", SYMLINK+="android_adb"
2014-07-11 16:17:10 +02:00
# Mi3
2014-12-15 19:27:05 +01:00
ATTR{idProduct}=="0368", SYMLINK+="android_adb"
2017-01-01 13:28:43 +01:00
# Mi4c
ATTR{idProduct}=="ff68", SYMLINK+="android_adb"
2015-02-02 02:59:11 +01:00
# RedMi 1S WCDMA (MTP+Debug)
ATTR{idProduct}=="1268", SYMLINK+="android_adb"
# RedMi / RedMi Note WCDMA (MTP+Debug)
ATTR{idProduct}=="1248", SYMLINK+="android_adb"
# RedMi 1S / RedMi / RedMi Note WCDMA (PTP+Debug)
ATTR{idProduct}=="1218", SYMLINK+="android_adb"
# RedMi 1S /RedMi / RedMi Note WCDMA (Usb+Debug)
ATTR{idProduct}=="1228", SYMLINK+="android_adb"
# RedMi / RedMi Note 4G WCDMA (MTP+Debug)
ATTR{idProduct}=="1368", SYMLINK+="android_adb"
# RedMi / RedMi Note 4G WCDMA (PTP+Debug)
ATTR{idProduct}=="1318", SYMLINK+="android_adb"
# RedMi / RedMi Note 4G WCDMA (Usb+Debug)
ATTR{idProduct}=="1328", SYMLINK+="android_adb"
2016-03-03 11:09:37 +01:00
# RedMi / RedMi Note 4G CDMA (Usb+Debug)
ATTR{idProduct}=="ff68", SYMLINK+="android_adb"
GOTO="android_usb_rule_match"
LABEL="not_XiaoMi"
2013-10-13 04:15:33 +02:00
# Zebra
ATTR{idVendor}!="05e0", GOTO="not_Zebra"
ENV{adb_user}="yes"
2016-02-06 12:35:14 +01:00
# TC55
ATTR{idProduct}=="2101", SYMLINK+="android_adb"
GOTO="android_usb_rule_match"
LABEL="not_Zebra"
2016-01-21 16:05:34 +01:00
# ZTE
ATTR{idVendor}=="19d2", ENV{adb_user}="yes"
# Blade (1353=normal,1351=debug)
2016-01-21 16:05:34 +01:00
ATTR{idProduct}=="1351", SYMLINK+="android_adb"
# Blade S (Crescent, Orange San Francisco 2) (1355=normal,1354=debug)
2016-01-21 16:05:34 +01:00
ATTR{idProduct}=="1354", SYMLINK+="android_adb"
2016-09-01 17:56:37 +02:00
# Wileyfox
2016-09-01 10:56:31 +02:00
ATTR{idVendor}=="2970", ENV{adb_user}="yes"
2016-09-01 17:56:37 +02:00
# YU
2016-09-01 10:56:31 +02:00
ATTR{idVendor}=="1ebf", ENV{adb_user}="yes"
2016-02-06 12:35:14 +01:00
# ZUK
ATTR{idVendor}=="2b4c", ENV{adb_user}="yes"
# Skip other vendor tests
LABEL="android_usb_rule_match"
# Symlink shortcuts to reduce code in tests above
ENV{adb_adbfast}=="yes", ENV{adb_adb}="yes", ENV{adb_fast}="yes"
ENV{adb_adb}=="yes", ENV{adb_user}="yes", SYMLINK+="android_adb"
ENV{adb_fast}=="yes", ENV{adb_user}="yes", SYMLINK+="android_fastboot"
# Enable device as a user device if found (add an "android" SYMLINK)
ENV{adb_user}=="yes", MODE="0660", GROUP="adbusers", TAG+="uaccess", SYMLINK+="android"
# Devices listed here {begin...end} are connected by USB
LABEL="android_usb_rules_end"