2023-07-07 04:24:55 +02:00
# SPDX-FileCopyrightText: 2012-2023 JoesCat, M0Rf30 and contributors
2023-07-06 23:24:48 +02:00
# SPDX-License-Identifier: GPL-3.0-or-later
2022-01-02 19:45:54 +01:00
2023-07-07 04:25:50 +02:00
# Latest version can be found at:
# <https://github.com/M0Rf30/android-udev-rules>
2022-01-02 19:45:54 +01:00
# These rules refer to:
2023-07-07 04:25:50 +02:00
# <https://developer.android.com/studio/run/device.html>
2022-01-02 19:45:54 +01:00
# and include many suggestions from Arch Linux, GitHub and other Communities.
2023-07-07 04:25:50 +02:00
2015-02-28 21:17:25 +01:00
2020-08-11 09:16:53 +02:00
# Skip testing for android devices if device is not add, or usb
2021-03-16 12:22:18 +01:00
ACTION!="add", ACTION!="bind", GOTO="android_usb_rules_end"
2013-02-26 05:13:25 +01:00
SUBSYSTEM!="usb", GOTO="android_usb_rules_end"
2022-08-24 13:06:31 +02:00
# Skip testing for unexpected devices like hubs, controllers or printers
2020-08-11 09:16:53 +02:00
ATTR{bDeviceClass}=="09", GOTO="android_usb_rules_end"
2022-08-24 13:06:31 +02:00
ENV{ID_MODEL}=="Controller", GOTO="android_usb_rules_end"
2023-08-19 18:41:13 +02:00
ENV{ID_USB_INTERFACES}=="*:0701??:*", GOTO="android_usb_rules_end"
2018-07-19 12:32:57 +02:00
2013-02-26 05:13:25 +01:00
LABEL="android_usb_rules_begin"
# Devices listed here in android_usb_rules_{begin...end} are connected by USB
2023-07-07 04:25:50 +02:00
2022-03-02 18:49:47 +01:00
# Acer
2014-04-24 07:21:33 +02:00
ATTR{idVendor}!="0502", GOTO="not_Acer"
2022-03-02 18:49:47 +01:00
# Iconia Tab A1-830
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="3604", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Iconia Tab A210 (33cc=normal,33cb=debug)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="33cb", GOTO="adb"
2022-03-02 18:49:47 +01:00
# Iconia Tab A500
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="3325", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Liquid (3202=normal,3203=debug)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="3203", GOTO="adb"
GOTO="android_usb_rules_end"
2014-04-24 07:21:33 +02:00
LABEL="not_Acer"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Actions Semiconductor Co., Ltd
# Denver TAD 70111
2023-08-22 08:10:58 +02:00
ATTR{idVendor}=="10d6", ATTR{idProduct}=="0c02", GOTO="adb"
2016-04-26 12:32:18 +02:00
2022-03-02 18:49:47 +01:00
# ADVANCE (Need product specific rules)
# S5
2023-08-22 08:10:58 +02:00
ATTR{idVendor}=="0a5c", ATTR{idProduct}=="e681", GOTO="adb"
2014-04-24 07:26:49 +02:00
2022-03-02 18:49:47 +01:00
# Amazon Lab126
feat: add Kindle Fire 10, Anbernic RG353P, Pinephone (#257)
* more codes for Kindle 10, plus Anbernic RG353P
Cycled through the various sequences and found codes for these modes.
Continuation of issue #256
* Kindle 8, Kindle 10, Anbernic RG353P, PinePhone
Joshua Fern collected information and provided details for
Kindle 8, 10, game emulator and a phone. This is a
continuation of Issue #256
* Add adb_adb{mtp,ptp,tet,midi}
Attempt to add adb and mtp at the same time.
Add differentiation between different adb modes.
Follow-up with details in Issue #256
---------
Co-authored-by: Joshua Fern <JoshuaFern@protonmail.com>
2023-05-22 10:35:19 +02:00
ATTR{idVendor}!="1949", GOTO="not_Amazon"
2022-03-02 18:49:47 +01:00
# Amazon Kindle Fire
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0006", GOTO="adbfast"
feat: add Kindle Fire 10, Anbernic RG353P, Pinephone (#257)
* more codes for Kindle 10, plus Anbernic RG353P
Cycled through the various sequences and found codes for these modes.
Continuation of issue #256
* Kindle 8, Kindle 10, Anbernic RG353P, PinePhone
Joshua Fern collected information and provided details for
Kindle 8, 10, game emulator and a phone. This is a
continuation of Issue #256
* Add adb_adb{mtp,ptp,tet,midi}
Attempt to add adb and mtp at the same time.
Add differentiation between different adb modes.
Follow-up with details in Issue #256
---------
Co-authored-by: Joshua Fern <JoshuaFern@protonmail.com>
2023-05-22 10:35:19 +02:00
# Amazon Kindle 8 2016 (giza) (0bb4:0c01=fastboot 0231=mtp 0232=adb,mtp 0233=ptp 0234=adb,ptp)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0232", GOTO="adbmtp"
ATTR{idProduct}=="0234", GOTO="adbptp"
feat: add Kindle Fire 10, Anbernic RG353P, Pinephone (#257)
* more codes for Kindle 10, plus Anbernic RG353P
Cycled through the various sequences and found codes for these modes.
Continuation of issue #256
* Kindle 8, Kindle 10, Anbernic RG353P, PinePhone
Joshua Fern collected information and provided details for
Kindle 8, 10, game emulator and a phone. This is a
continuation of Issue #256
* Add adb_adb{mtp,ptp,tet,midi}
Attempt to add adb and mtp at the same time.
Add differentiation between different adb modes.
Follow-up with details in Issue #256
---------
Co-authored-by: Joshua Fern <JoshuaFern@protonmail.com>
2023-05-22 10:35:19 +02:00
# Amazon Kindle 10 2021 (trona) (05e0=fastboot 05e1=mtp 05e1=chg 05e2=adb,mtp 05e3=ptp 05e4=adb,ptp 05e8=adb,chg=05e8 2046=midi 2048=adb,midi)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="05e0", GOTO="adbfast"
ATTR{idProduct}=="05e2", GOTO="adbmtp"
ATTR{idProduct}=="05e4", GOTO="adbptp"
ATTR{idProduct}=="05e8", GOTO="adb"
ATTR{idProduct}=="2048", GOTO="adbmidi"
2023-02-06 15:33:43 +01:00
# Amazon Fire TV Stick Lite (3rd gen)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="03a8", GOTO="adbfast"
2023-05-26 22:40:28 +02:00
# Amazone Fire 7 (mustang)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="03c8", GOTO="adbfast"
ATTR{idProduct}=="03cb", GOTO="adbfast"
GOTO="android_usb_rules_end"
feat: add Kindle Fire 10, Anbernic RG353P, Pinephone (#257)
* more codes for Kindle 10, plus Anbernic RG353P
Cycled through the various sequences and found codes for these modes.
Continuation of issue #256
* Kindle 8, Kindle 10, Anbernic RG353P, PinePhone
Joshua Fern collected information and provided details for
Kindle 8, 10, game emulator and a phone. This is a
continuation of Issue #256
* Add adb_adb{mtp,ptp,tet,midi}
Attempt to add adb and mtp at the same time.
Add differentiation between different adb modes.
Follow-up with details in Issue #256
---------
Co-authored-by: Joshua Fern <JoshuaFern@protonmail.com>
2023-05-22 10:35:19 +02:00
LABEL="not_Amazon"
2023-02-06 15:33:43 +01:00
2022-03-02 18:49:47 +01:00
# Archos
2014-04-24 07:26:49 +02:00
ATTR{idVendor}!="0e79", GOTO="not_Archos"
2022-03-02 18:49:47 +01:00
# 43
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="1417", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# 101
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="1411", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# 101 xs
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="1549", GOTO="adbfast"
GOTO="android_usb_rules_end"
2014-04-24 07:26:49 +02:00
LABEL="not_Archos"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Ascom
2021-10-29 23:06:19 +02:00
ATTR{idVendor}!="1768", GOTO="not_Ascom"
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0007", GOTO="adb"
ATTR{idProduct}=="000e", GOTO="adb"
ATTR{idProduct}=="4ee7", GOTO="adb"
ATTR{idProduct}=="0013", GOTO="adb"
ATTR{idProduct}=="0011", GOTO="adb"
GOTO="android_usb_rules_end"
2021-10-29 23:06:19 +02:00
LABEL="not_Ascom"
2022-03-02 18:49:47 +01:00
# ASUSTeK
2016-01-21 15:52:16 +01:00
ATTR{idVendor}!="0b05", GOTO="not_Asus"
2022-03-02 18:49:47 +01:00
# False positive - accessory
2016-01-21 15:52:16 +01:00
ATTR{idProduct}=="1???", GOTO="android_usb_rules_end"
2023-08-23 08:34:34 +02:00
# Zenphone 2 (ZE500CL) (7770=adb 7773=mtp,adb 7775=rndis,adb,mass_storage 7777=ptp,adb 5F03=mtp,adb,pclink,mass_storage 5F05=rndis,adb,pclink,mass_storage 5F07=ptp,adb,pclink)
# Zenfone GO (ZB500KL) (7772=mtp 7773=mtp,adb 7774=rndis 7775=rndis,adb 7776=ptp 7777=ptp,adb)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="7770", GOTO="adb"
2023-08-23 08:34:34 +02:00
ATTR{idProduct}=="7773", GOTO="adbmtp"
ATTR{idProduct}=="7775", ENV{adb_adbmass}="yes", GOTO="adbrndis"
ATTR{idProduct}=="7777", GOTO="adbptp"
ATTR{idProduct}=="5F03", GOTO="adbmtp"
ATTR{idProduct}=="5F07", GOTO="adbptp"
ATTR{idProduct}=="5F05", ENV{adb_adbmass}="yes", GOTO="adbrndis"
2022-03-02 18:49:47 +01:00
# Zenphone 4 (581f=mtp,adb 583f=rndis,adb)
2023-08-23 08:34:34 +02:00
ATTR{idProduct}=="581f", GOTO="adbmtp"
ATTR{idProduct}=="583f", GOTO="adbrndis"
# TF300 (4c80=mtp 4c81=mtp,adb)
# TF700 (4c90=mtp 4c91=mtp,adb)
# Zenphone 5 (4c90=normal 4c91=debug 4daf=Fastboot 7780=mtp 7781=mtp,adb)
# TF701T (4ca0=mtp, 4ca1=mtp,adb)
# ME302KL (4cc0=mtp, 4cc1=mtp,adb)
# ME301T (4cd0=mtp, 4cd1=mtp,adb)
# Fonepad 6 (4ce0=mtp, 4ce1=mtp,adb)
ATTR{idProduct}=="4c81", GOTO="adbmtp"
ATTR{idProduct}=="4c91", GOTO="adbmtp"
ATTR{idProduct}=="4ca1", GOTO="adbmtp"
ATTR{idProduct}=="4cc1", GOTO="adbmtp"
ATTR{idProduct}=="4cd1", GOTO="adbmtp"
ATTR{idProduct}=="4ce1", GOTO="adbmtp"
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="4daf", GOTO="adbfast"
2023-08-23 08:34:34 +02:00
ATTR{idProduct}=="7781", GOTO="adbmtp"
# SL101 (4e00=mtp, 4e01=mtp,adb)
# TF101 (4e0f=mtp, 4e1f=mtp,adb)
ATTR{idProduct}=="4e1f", GOTO="adbmtp"
2022-03-02 18:49:47 +01:00
# Tegra APX
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="7030", GOTO="adb"
2023-08-23 08:34:34 +02:00
GOTO="android_usb_rules_end"
2016-01-21 15:52:16 +01:00
LABEL="not_Asus"
2012-05-09 03:14:18 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Azpen Onda (Need product specific rules)
#ATTR{idVendor}=="1f3a", GOTO="user"
2014-09-28 06:16:26 +02:00
2022-03-02 18:49:47 +01:00
# BQ
2014-10-22 02:00:50 +02:00
ATTR{idVendor}!="2a47", GOTO="not_BQ"
2023-09-03 09:30:52 +02:00
# Aquaris 4.5, Krillin (0c02=mtp,adb 2008=mtp)
ATTR{idProduct}=="0c02", GOTO="adbmtp"
2023-08-22 08:10:58 +02:00
GOTO="android_usb_rules_end"
2014-10-22 02:00:50 +02:00
LABEL="not_BQ"
2022-03-02 18:49:47 +01:00
# Castles
2020-09-06 00:33:09 +02:00
ATTR{idVendor}!="0ca6", GOTO="not_Castles"
2022-03-02 18:49:47 +01:00
# Saturn1000-E
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="a051", GOTO="user"
GOTO="android_usb_rules_end"
2020-09-06 00:33:09 +02:00
LABEL="not_Castles"
2020-09-06 00:13:15 +02:00
2022-03-02 18:49:47 +01:00
# Dell (Need product specific rules)
2020-01-21 21:24:53 +01:00
#ATTR{idVendor}=="413c", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Essential
2017-12-21 07:22:12 +01:00
ATTR{idVendor}!="2e17", GOTO="not_Essential"
2022-03-02 18:49:47 +01:00
# Essential PH-1
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="c009", GOTO="adb"
ATTR{idProduct}=="c03[02]", GOTO="adb"
GOTO="android_usb_rules_end"
2017-12-21 07:22:12 +01:00
LABEL="not_Essential"
2017-12-14 13:23:15 +01:00
2022-03-02 18:49:47 +01:00
# Fairphone 1 (see Hisense 109b)
2023-08-23 08:34:56 +02:00
# Fairphone 2 (f000=mtp,mass f003=mtp f005=tether f00e=rndis 90de=charge 90dc=charge,adb 9015=storage,adb, 9024=rndis,adb, 9039=mtp,adb 904d=ptp 904e=ptp,adb) 90bb=qualcom midi+adb
2021-03-24 15:53:00 +01:00
ATTR{idVendor}!="2ae5", GOTO="not_Fairphone2"
2023-08-23 08:34:56 +02:00
ATTR{idProduct}=="9015", GOTO="go_adb"
ATTR{idProduct}=="9024", GOTO="go_adbrndis"
ATTR{idProduct}=="9039", GOTO="go_adbmtp"
ATTR{idProduct}=="904e", GOTO="go_adbptp"
ATTR{idProduct}=="90bb", GOTO="go_adbmidi"
ATTR{idProduct}=="90dc", GOTO="go_adb"
2023-08-22 08:10:58 +02:00
GOTO="android_usb_rules_end"
2021-03-24 15:53:00 +01:00
LABEL="not_Fairphone2"
2016-04-30 11:23:34 +02:00
2022-03-02 18:49:47 +01:00
# Foxconn
# Commtiva Z71, Geeksphone One
2023-08-22 08:10:58 +02:00
ATTR{idVendor}=="0489", ATTR{idProduct}=="c001", GOTO="adb"
2012-05-09 03:14:18 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Fujitsu/Fujitsu Toshiba (Need product specific rules)
#ATTR{idVendor}=="04c5", GOTO="user"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Fuzhou Rockchip Electronics
# Mediacom Smartpad 715i
feat: add Kindle Fire 10, Anbernic RG353P, Pinephone (#257)
* more codes for Kindle 10, plus Anbernic RG353P
Cycled through the various sequences and found codes for these modes.
Continuation of issue #256
* Kindle 8, Kindle 10, Anbernic RG353P, PinePhone
Joshua Fern collected information and provided details for
Kindle 8, 10, game emulator and a phone. This is a
continuation of Issue #256
* Add adb_adb{mtp,ptp,tet,midi}
Attempt to add adb and mtp at the same time.
Add differentiation between different adb modes.
Follow-up with details in Issue #256
---------
Co-authored-by: Joshua Fern <JoshuaFern@protonmail.com>
2023-05-22 10:35:19 +02:00
ATTR{idVendor}!="2207", GOTO="not_Fuzhou"
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0000", GOTO="adb"
2022-03-02 18:49:47 +01:00
# Ubislate 7Ci
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0010", GOTO="adb"
feat: add Kindle Fire 10, Anbernic RG353P, Pinephone (#257)
* more codes for Kindle 10, plus Anbernic RG353P
Cycled through the various sequences and found codes for these modes.
Continuation of issue #256
* Kindle 8, Kindle 10, Anbernic RG353P, PinePhone
Joshua Fern collected information and provided details for
Kindle 8, 10, game emulator and a phone. This is a
continuation of Issue #256
* Add adb_adb{mtp,ptp,tet,midi}
Attempt to add adb and mtp at the same time.
Add differentiation between different adb modes.
Follow-up with details in Issue #256
---------
Co-authored-by: Joshua Fern <JoshuaFern@protonmail.com>
2023-05-22 10:35:19 +02:00
# Anbernic RG353P - AOSP12beta#1 (0003=rndis 0006=adb,chg 0007=mtp 0008=ptp 0013=adb,rndis 0017=adb,mtp 0018=adb,ptp)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0006", GOTO="adb"
ATTR{idProduct}=="0013", GOTO="adbrndis"
ATTR{idProduct}=="0017", GOTO="adbmtp"
ATTR{idProduct}=="0018", GOTO="adbptp"
GOTO="android_usb_rules_end"
feat: add Kindle Fire 10, Anbernic RG353P, Pinephone (#257)
* more codes for Kindle 10, plus Anbernic RG353P
Cycled through the various sequences and found codes for these modes.
Continuation of issue #256
* Kindle 8, Kindle 10, Anbernic RG353P, PinePhone
Joshua Fern collected information and provided details for
Kindle 8, 10, game emulator and a phone. This is a
continuation of Issue #256
* Add adb_adb{mtp,ptp,tet,midi}
Attempt to add adb and mtp at the same time.
Add differentiation between different adb modes.
Follow-up with details in Issue #256
---------
Co-authored-by: Joshua Fern <JoshuaFern@protonmail.com>
2023-05-22 10:35:19 +02:00
LABEL="not_Fuzhou"
2012-07-14 02:03:56 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Garmin-Asus (Need product specific rules)
#ATTR{idVendor}=="091e", GOTO="user"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Google
2014-04-24 07:41:26 +02:00
ATTR{idVendor}!="18d1", GOTO="not_Google"
2023-08-27 09:27:42 +02:00
# Nexus, Pixel (/XL/2/2XL) (4ee1=mtp 4ee2=mtp,adb 4ee3=rndis 4ee4=rndis,adb 4ee5=ptp 4ee6=ptp,adb 4ee7=adb 4ee8=midi 4ee9=midi,adb 2d00=accessory 2d01=accessory,adb 2d03=audio,adb 2d05=accessory,audio,adb)
2022-03-02 18:49:47 +01:00
# See https://android.googlesource.com/device/google/wahoo/+/master/init.hardware.usb.rc
2023-08-27 09:27:42 +02:00
# OnePlus 6 (4ee1=charging 4ee2=mtp,adb 4ee6=ptp,adb 4ee7=charging,adb)
# Onda V972 (0001=mass_storage 0006=mtp 0007=ptp 0008=camera)
2022-03-02 18:49:47 +01:00
# Pico i.MX7 Dual Development Board 4ee7=debug
2023-08-27 09:27:42 +02:00
# PinePhone (v1.2) (4ee0=fast 4ee1=mtp 4ee2=mtp,adb 4ee3=rndis 4ee4=rndis,adb 4ee5=ptp 4ee6=ptp,adb 4ee7=adb)
2022-03-02 18:49:47 +01:00
# Yandex Phone 4ee7=debug
2023-08-23 08:34:56 +02:00
# Fairphone3 (4ee1=mtp)
2023-08-26 09:26:27 +02:00
# Motorola G3 (2d02=audio 2d03=audio,adb 4ee8=midi 4ee9=midi,adb)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="4ee0", GOTO="adbfast"
2023-08-27 09:27:42 +02:00
ATTR{idProduct}=="4ee2", GOTO="adbmtp"
ATTR{idProduct}=="4ee4", GOTO="adbrndis"
ATTR{idProduct}=="4ee6", GOTO="adbptp"
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="4ee7", GOTO="adb"
2023-08-22 20:38:16 +02:00
ATTR{idProduct}=="4ee8", GOTO="midi" # some non-Google phones as well
ATTR{idProduct}=="4ee9", GOTO="adbmidi" # some non-Google phones as well
2020-08-11 09:16:53 +02:00
2023-04-07 17:49:01 +02:00
# Tensor Pixel phones (Pixel 7/7 pro/6/6A/6 Pro) 4eeb=cdc-ncm; 4eec=cdc-ncm,adb
2023-08-27 09:27:42 +02:00
ATTR{idProduct}=="4eec", GOTO="adbcdc"
2022-08-31 09:43:22 +02:00
2023-08-27 09:27:42 +02:00
# Pixel C Tablet (5202=mtp 5203=mtp,adb)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="5201", GOTO="adbfast"
2023-08-27 09:27:42 +02:00
ATTR{idProduct}=="5203", GOTO="adbmtp"
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="5208", GOTO="adb"
2023-08-27 09:27:42 +02:00
# Android Open Accessory device (2d00=accessory 2d01=accessory,adb 2d02=audio 2d03=audio,adb 2d04=accessory,audio 2d05=accessory,audio,adb)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="2d00", GOTO="adb"
ATTR{idProduct}=="2d01", GOTO="adb"
2023-08-26 09:26:27 +02:00
ATTR{idProduct}=="2d03", GOTO="adbaud"
2023-08-27 09:27:42 +02:00
ATTR{idProduct}=="2d05", GOTO="adbaud"
# Nexus 7 (4e40=fastboot 4e41=mtp 4e42=mtp,adb 4e43=ptp) Nexus 7 2012 (4e44=ptp)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="4e40", GOTO="adbfast"
2023-08-27 09:27:42 +02:00
ATTR{idProduct}=="4e42", GOTO="adbmtp"
# Nexus S (4e20=fastboot 4e21=? 4e22=mass_storage,adb 4e24=rndis,adb)
2022-03-02 18:49:47 +01:00
# See https://android.googlesource.com/device/samsung/crespo/+/android-4.1.2_r2.1/init.herring.usb.rc
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="4e20", GOTO="adbfast"
2023-08-27 09:27:42 +02:00
ATTR{idProduct}=="4e22", GOTO="adbmass"
ATTR{idProduct}=="4e24", GOTO="adbrndis"
ATTR{idProduct}=="4e20", GOTO="adbfast"
# Galaxy Nexus, Galaxy Nexus (GSM) (4e30=fastboot)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="4e30", GOTO="adbfast"
2023-08-27 09:27:42 +02:00
# Nexus One (4e11=normal 4e12=mtp,adb 4e13=tether 0fff=debug)
ATTR{idProduct}=="4e12", GOTO="adbmtp"
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0fff", GOTO="adbfast"
2023-08-23 08:35:19 +02:00
# Xiaomi MiPhone Mi1/Mi1S (9024=ndis,adb 9025=mass_storage,adb 9026=mass storage f00e=ndis)
2023-08-27 09:27:42 +02:00
ATTR{idProduct}=="9024", GOTO="adb"
2023-08-23 08:35:19 +02:00
ATTR{idProduct}=="9025", GOTO="adbmass"
2022-03-02 18:49:47 +01:00
# Generic and unspecified debug interface (test after d00?)
feat: add Kindle Fire 10, Anbernic RG353P, Pinephone (#257)
* more codes for Kindle 10, plus Anbernic RG353P
Cycled through the various sequences and found codes for these modes.
Continuation of issue #256
* Kindle 8, Kindle 10, Anbernic RG353P, PinePhone
Joshua Fern collected information and provided details for
Kindle 8, 10, game emulator and a phone. This is a
continuation of Issue #256
* Add adb_adb{mtp,ptp,tet,midi}
Attempt to add adb and mtp at the same time.
Add differentiation between different adb modes.
Follow-up with details in Issue #256
---------
Co-authored-by: Joshua Fern <JoshuaFern@protonmail.com>
2023-05-22 10:35:19 +02:00
# examples: Xiaomi Mi/Redmi 2, Anbernic RG353P
2023-08-23 08:35:19 +02:00
# Xiaomi Mi2 (d00d=bootloader d002=charger)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="d00d", GOTO="adbfast"
2023-08-27 09:27:42 +02:00
# Nexus 4 (d001=fastboot d002=debug)
ATTR{idProduct}=="d001", GOTO="adbfast"
ATTR{idProduct}=="d002", GOTO="adb"
# LG G2x (d109=mtp d10a=mtp,adb)
ATTR{idProduct}=="d10a", GOTO="adbmtp"
2021-03-22 09:14:24 +01:00
2022-03-02 18:49:47 +01:00
# Other vendors that also used duplicated Google's idVendor code follows:
# IDEA XDS-1078 (debug=2c11)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="2c11", GOTO="adb"
GOTO="android_usb_rules_end"
2014-04-24 07:41:26 +02:00
LABEL="not_Google"
2012-05-09 03:14:18 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Haier (Need product specific rules)
#ATTR{idVendor}=="201e", GOTO="user"
2013-09-10 18:29:22 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Hisense (includes Fairphone 1) (Need product specific rules)
#ATTR{idVendor}=="109b", GOTO="user"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Honeywell/Foxconn
2016-10-12 13:56:31 +02:00
ATTR{idVendor}!="0c2e", GOTO="not_Honeywell"
2022-03-02 18:49:47 +01:00
# D70e
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0ba3", GOTO="adb"
GOTO="android_usb_rules_end"
2016-10-12 13:56:31 +02:00
LABEL="not_Honeywell"
2016-02-05 14:36:41 +01:00
2022-03-02 18:49:47 +01:00
# HTC
2014-04-24 07:54:15 +02:00
ATTR{idVendor}!="0bb4", GOTO="not_HTC"
2023-08-27 09:27:57 +02:00
# Android phone (0fff=fastboot 0001=mass_storage)
ATTR{idProduct}=="0001", GOTO="mass"
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0fff", GOTO="adbfast"
2023-08-27 09:27:57 +02:00
# ADP1, Dream, G1, HD2, Magic, Tatoo (0c01=mass_storage, 0c02=mass_storage,adb)
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Desire/desire HD/Hero (0ce5=debug 0fb4=rndis 0ff8=tether 0ff9=charge,mass_storage 0ffc=sync_manager 0ffe=modem)
feat: add Kindle Fire 10, Anbernic RG353P, Pinephone (#257)
* more codes for Kindle 10, plus Anbernic RG353P
Cycled through the various sequences and found codes for these modes.
Continuation of issue #256
* Kindle 8, Kindle 10, Anbernic RG353P, PinePhone
Joshua Fern collected information and provided details for
Kindle 8, 10, game emulator and a phone. This is a
continuation of Issue #256
* Add adb_adb{mtp,ptp,tet,midi}
Attempt to add adb and mtp at the same time.
Add differentiation between different adb modes.
Follow-up with details in Issue #256
---------
Co-authored-by: Joshua Fern <JoshuaFern@protonmail.com>
2023-05-22 10:35:19 +02:00
# NOTE: Amazon Kindle 8 2016 (giza) (fastboot=0bb4:0c01 conflicts with mass storage=0c01)
2023-08-27 09:27:57 +02:00
ATTR{idProduct}=="0c01", GOTO="mass"
ATTR{idProduct}=="0c02", GOTO="adbmass"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
ATTR{idProduct}=="0ce5", GOTO="adb"
ATTR{idProduct}=="0ff9", GOTO="mass"
2022-03-02 18:49:47 +01:00
# ChaCha
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0cb2", GOTO="adbfast"
2023-08-27 09:27:57 +02:00
# Desire (Bravo) (0c87=debug 0c99=debug)
ATTR{idProduct}=="0c87", GOTO="adb"
ATTR{idProduct}=="0c99", GOTO="adb"
# Desire HD (0ca2=debug 0ff8=tether 0ff9=charge 0ffe=modem)
ATTR{idProduct}=="0ca2", GOTO="adb"
# Desire S (Saga), Desire HD, Hero, Thunderbolt (0cab=syncmode 0ff9=charge)
2014-04-24 07:54:15 +02:00
ATTR{idProduct}=="0cab", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Desire Z
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0c91", GOTO="adbfast"
2023-08-27 09:27:57 +02:00
# Evo Shift 4G (0c8d=debug 0ca5=?)
ATTR{idProduct}=="0c8d", GOTO="adb"
2014-04-24 07:54:15 +02:00
ATTR{idProduct}=="0ca5", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Hero (GSM), Desire
2014-04-24 07:54:15 +02:00
ATTR{idProduct}=="0c99", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Hero (CDMA)
2014-04-24 07:54:15 +02:00
ATTR{idProduct}=="0c9a", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Incredible
2014-04-24 07:54:15 +02:00
ATTR{idProduct}=="0c9e", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Incredible rev 0002
2014-04-24 07:54:15 +02:00
ATTR{idProduct}=="0c8d", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# MyTouch 4G
2014-04-24 07:54:15 +02:00
ATTR{idProduct}=="0c96", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# One (m7) && One (m8)
2020-04-10 20:21:18 +02:00
ATTR{idProduct}=="0c93", SYMLINK+="android_adb"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Sensation, One (0f87=mtp,?,adb)
ATTR{idProduct}=="0f87", GOTO="adbmtp"
2014-04-24 07:54:15 +02:00
ATTR{idProduct}=="0ff0", SYMLINK+="android_fastboot"
2022-03-02 18:49:47 +01:00
# One X
2018-11-01 15:16:33 +01:00
ATTR{idProduct}=="0cd6", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Slide
2014-04-24 07:54:15 +02:00
ATTR{idProduct}=="0e03", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Vision
2014-04-24 07:54:15 +02:00
ATTR{idProduct}=="0c91", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Wildfire
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0c8b", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Wildfire S
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0c86", GOTO="adbfast"
2023-08-27 09:27:57 +02:00
# Zopo ZP900, Fairphone 1
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0c03", GOTO="adbfast"
2023-08-27 09:27:57 +02:00
# Zopo C2, Android phone via MTP [MT65xx] (2008=mtp)
ATTR{idProduct}=="2008", GOTO="mtp"
# Android phone via PTP [Wiko Cink Peax 2] (200b=ptp)
ATTR{idProduct}=="200b", GOTO="ptp"
# Desire 510 (05fd=mtp,adb)
ATTR{idProduct}=="05fd", GOTO="adbmtp"
# Droid DNA (0dff=mtp,ums,adb 0ebd=mtp,ums)
ATTR{idProduct}=="0dff", GOTO="adbmtp"
ATTR{idProduct}=="0ebd", GOTO="mtp"
# Droid Incredible 4G LTE (0e31=mtp 0e32=mtp,adb)
ATTR{idProduct}=="0e31", GOTO="mtp"
ATTR{idProduct}=="0e32", GOTO="adbmtp"
# One (0dea=mtp,ums,adb 0f87=mtp,?,adb 0f5f=mtp,cdc,adb 0f60=mtp,cdc 0f63=mtp,adb 0f64=mtp)
ATTR{idProduct}=="0dea", GOTO="adbmtp"
ATTR{idProduct}=="0f87", GOTO="adbmtp"
ATTR{idProduct}=="0f5f", ENV{adb_adbcdc}="yes", GOTO="adbmtp"
ATTR{idProduct}=="0f60", ENV{adb_cdc}="yes", GOTO="mtp"
ATTR{idProduct}=="0f63", GOTO="adbmtp"
ATTR{idProduct}=="0f64", GOTO="mtp"
# One M8 Google Play Edition (060b=mtp,adb)
ATTR{idProduct}=="060b", GOTO="adbmtp"
# One M8 (061a=mtp,adb 0f25=mtp 0fb4=mtp,ums,adb 0fb5=mtp,ums)
ATTR{idProduct}=="061a", GOTO="adbmtp"
ATTR{idProduct}=="0f25", GOTO="mtp"
ATTR{idProduct}=="0fb4", GOTO="adbmtp"
ATTR{idProduct}=="0fb5", GOTO="mtp"
# HP Touchpad (685c=mtp 6860=mtp,adb)
ATTR{idProduct}=="6860", GOTO="adbmtp"
2023-08-22 08:10:58 +02:00
ENV{adb_user}="yes"
2014-04-24 07:54:15 +02:00
GOTO="android_usb_rule_match"
LABEL="not_HTC"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Huawei
2016-01-21 16:10:19 +01:00
ATTR{idVendor}!="12d1", GOTO="not_Huawei"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# IDEOS (1037=? 1038=debug 1039=tether)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="1038", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# U8850 Vision
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="1021", GOTO="adbfast"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# HiKey (1050=usbnet 1057=adb)
2016-01-20 01:49:36 +01:00
ATTR{idProduct}=="1050", SYMLINK+="android_adb"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
ATTR{idProduct}=="1057", GOTO="adb"
2022-03-02 18:49:47 +01:00
# Honor 6
2017-09-10 13:42:06 +02:00
ATTR{idProduct}=="103a", SYMLINK+="android_adb"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
ATTR{idProduct}=="1051", GOTO="mtp"
2022-03-02 18:49:47 +01:00
# MediaPad M2-A01L
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
ATTR{idProduct}=="1052", GOTO="mtp"
2022-03-02 18:49:47 +01:00
# MediaPad T3
2019-01-26 14:55:10 +01:00
ATTR{idProduct}=="107d", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# P10 Lite
2020-06-13 12:19:09 +02:00
ATTR{idProduct}=="107e", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Watch
2016-08-05 16:20:29 +02:00
ATTR{idProduct}=="1c2c", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Mate 9
2018-08-02 14:58:49 +02:00
ATTR{idProduct}=="107e", SYMLINK+="android_adb"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
GOTO="android_usb_rules_end"
2016-01-21 16:10:19 +01:00
LABEL="not_Huawei"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Intel
2020-08-03 23:20:15 +02:00
ATTR{idVendor}!="8087", GOTO="not_Intel"
2022-03-02 18:49:47 +01:00
# Geeksphone Revolution
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0a16", GOTO="adb"
2022-03-02 18:49:47 +01:00
# Chuwi Hi 10 Pro (HQ64)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="2a65", GOTO="adb"
ATTR{idProduct}=="07ef", GOTO="adb"
2022-03-02 18:49:47 +01:00
# Asus ZenFone 2 (ADB Sideload in TWRP Recovery)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0a5d", GOTO="adb"
2023-08-21 14:55:59 +02:00
# ASUS MeMo Pad 7 ME176C/CX (DNX/Rescue mode)
ATTR{idProduct}=="0a65", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Reference Boards using kernelflinger
# See https://github.com/intel/kernelflinger/blob/master/libefiusb/usb.c#L56
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="09ef", GOTO="adbfast"
GOTO="android_usb_rules_end"
2020-08-03 23:20:15 +02:00
LABEL="not_Intel"
2014-02-25 19:09:04 +01:00
2022-03-02 18:49:47 +01:00
# IUNI
2017-01-03 10:07:13 +01:00
ATTR{idVendor}!="271d", GOTO="not_IUNI"
2023-08-23 08:34:07 +02:00
# Gionee (3f11=mass,adb)
ATTR{idProduct}=="3f11", GOTO="adbmass"
2022-03-02 18:49:47 +01:00
# U3
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="bf39", GOTO="adb"
GOTO="android_usb_rules_end"
2017-01-03 10:07:13 +01:00
LABEL="not_IUNI"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# K-Touch (Need product specific rules)
#ATTR{idVendor}=="24e3", GOTO="user"
2012-05-09 03:14:18 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# KT Tech (Need product specific rules)
#ATTR{idVendor}=="2116", GOTO="user"
2012-05-09 03:14:18 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Kyocera (Need product specific rules)
2017-09-02 16:20:47 +02:00
#ATTR{idVendor}=="0482", ENV{adb_user}="yes"
2012-05-09 03:14:18 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Lenovo (Need product specific rules)
#ATTR{idVendor}=="17ef", GOTO="user"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# LeTv (LeECo)
2017-02-28 12:22:32 +01:00
ATTR{idVendor}!="2b0e", GOTO="not_letv"
2022-03-02 18:49:47 +01:00
# LEX720 LeEco Pro3 6GB (610c=normal,610d=debug, 610b=camera)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="610d", GOTO="adbfast"
ENV{adb_user}="yes"
2023-08-22 16:08:05 +02:00
GOTO="android_usb_rule_match"
2017-02-28 12:22:32 +01:00
LABEL="not_letv"
2022-03-02 18:49:47 +01:00
# LG
2014-04-24 08:02:31 +02:00
ATTR{idVendor}!="1004", GOTO="not_LG"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Ally, Vortex, P500, P500h (61c5=charge 618e=debug 618f=mass_storage)
2023-08-27 09:28:14 +02:00
ATTR{idProduct}=="618e", GOTO="adb"
ATTR{idProduct}=="618f", GOTO="mass"
# G2 D802 (61f1=LG software mode)
2016-08-05 16:18:12 +02:00
ATTR{idProduct}=="61f1", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# G2 D803
2015-08-20 03:18:49 +02:00
ATTR{idProduct}=="618c", SYMLINK+="android_adb"
2023-08-27 09:28:14 +02:00
# G2 D803 rogers (631f=charge)
2014-04-24 08:02:31 +02:00
ATTR{idProduct}=="631f", SYMLINK+="android_adb"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# G3 (VS985), Android Phone (627f=mtp)
2023-08-27 09:28:14 +02:00
ATTR{idProduct}=="627f", GOTO="mtp"
# LM-X420xxx/G2/Optimus (6300=charge 631c=charge 631d=ptp 631e=ptp 633e=mtp 6344=tether 6348=midi 6356=CDrom)
ATTR{idProduct}=="631c", GOTO="adb"
ATTR{idProduct}=="631d", GOTO="ptp"
ATTR{idProduct}=="631e", GOTO="ptp"
ATTR{idProduct}=="633e", GOTO="mtp"
ATTR{idProduct}=="6344", GOTO="rndis"
ATTR{idProduct}=="6348", GOTO="midi"
# Optimus LTE (61f9=mtp 61fe=tether)
2014-04-24 08:02:31 +02:00
ATTR{idProduct}=="6315", SYMLINK+="android_adb"
2023-08-27 09:28:14 +02:00
ATTR{idProduct}=="61f9", GOTO="mtp"
2022-03-02 18:49:47 +01:00
# Swift GT540
2014-04-24 08:02:31 +02:00
ATTR{idProduct}=="61b4", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# P500 CM10
2014-04-24 08:02:31 +02:00
ATTR{idProduct}=="61a6", SYMLINK+="android_adb"
2023-08-27 09:28:14 +02:00
# L90 D410, Various (6300=charge)
2019-02-21 05:05:49 +01:00
ATTR{idProduct}=="6300", SYMLINK+="android_adb"
2023-08-27 09:28:14 +02:00
ENV{adb_user}="yes"
2014-04-24 08:02:31 +02:00
GOTO="android_usb_rule_match"
LABEL="not_LG"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Meizu
2017-11-10 02:10:36 +01:00
ATTR{idVendor}!="2a45", GOTO="not_Meizu"
2022-12-30 14:25:39 +01:00
# M1E
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0c01", GOTO="adb"
2022-03-02 18:49:47 +01:00
# MX6
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0c02", GOTO="adb"
2023-07-06 13:47:35 +02:00
# M6T (untested; See <https://github.com/M0Rf30/android-udev-rules/issues/262>
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="201c", GOTO="adb"
GOTO="android_usb_rules_end"
2017-11-10 02:10:36 +01:00
LABEL="not_Meizu"
2017-11-03 01:20:57 +01:00
2022-03-02 18:49:47 +01:00
# Micromax
2016-04-08 17:24:06 +02:00
ATTR{idVendor}!="2a96", GOTO="not_Micromax"
2022-03-02 18:49:47 +01:00
# P702
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="201d", GOTO="adbfast"
GOTO="android_usb_rules_end"
2016-04-08 17:24:06 +02:00
LABEL="not_Micromax"
2022-03-02 18:49:47 +01:00
# Microsoft
2021-03-12 11:03:15 +01:00
ATTR{idVendor}!="045e", GOTO="not_Microsoft"
2023-08-22 08:10:58 +02:00
# Surface Duo
ATTR{idProduct}=="0c26", GOTO="adbfast"
2023-03-03 11:13:54 +01:00
# False positive xbox controllers 028e, 02ea, 0719
ATTR{idProduct}=="02??", GOTO="android_usb_rules_end"
ATTR{idProduct}=="07??", GOTO="android_usb_rules_end"
2021-03-16 12:20:18 +01:00
ENV{adb_user}="yes"
2021-03-12 11:03:15 +01:00
GOTO="android_usb_rule_match"
LABEL="not_Microsoft"
2021-03-08 21:42:28 +01:00
2022-03-02 18:49:47 +01:00
# Motorola
2014-04-24 08:07:18 +02:00
ATTR{idVendor}!="22b8", GOTO="not_Motorola"
2022-03-02 18:49:47 +01:00
# CLIQ XT/Quench
2020-04-10 20:21:18 +02:00
ATTR{idProduct}=="2d66", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Defy/MB525
2020-04-10 20:21:18 +02:00
ATTR{idProduct}=="428c", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Droid
2020-04-10 20:21:18 +02:00
ATTR{idProduct}=="41db", SYMLINK+="android_adb"
2023-08-26 09:26:27 +02:00
# Xoom (70a8=mtp 70a9=mtp,adb)
ATTR{idProduct}=="70a8", GOTO="mtp"
ATTR{idProduct}=="70a9", GOTO="adbmtp"
# XT890/907/Razr (710d=mtp 710e=mtp,adb)
ATTR{idProduct}=="710e", GOTO="adbmtp"
2022-03-02 18:49:47 +01:00
# Razr XT912
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="4362", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Droid Turbo 2
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="2ea4", GOTO="adbfast"
2023-08-26 09:26:27 +02:00
# Atrix/Razr HD (2e32=mtp 2e33=mtp,adb)
# Razr M (2e50=mtp 2e51=mtp,adb)
# Moto G3 (2e76=mtp,adb 2e81=charge,adb 2e82=mtp 2e83=ptp 2e84=ptp,adb 2e24=rndis 2e25=rndis,adb)
2023-08-22 20:38:16 +02:00
# Moto Z3 Play, beckham, XT1929
# For details see: <https://github.com/M0Rf30/android-udev-rules/issues/264>
# 18d1:4ee8=midi; 18d1:4ee9=midi+adb
# BP TOOLS: 2ee5=charging, mtp, ptp; 2ee6=charging+adb, mtp+adb, ptp+adb; 2ee7=rndis; 2ee8=rndis+adb; 18d1:4ee8=midi; 18d1:4ee9=midi+adb
# QCOM: 05c6:9091=charing+adb, mtp+adb, ptp+adb; 05c6:9092=charging, mtp, ptp; 18d1:4ee8=midi; 18d1:4ee9=midi+adb; 22b8:2e24=rndis; 22b8:2e25=rndis+adb
ATTR{idProduct}=="2e24", GOTO="rndis"
ATTR{idProduct}=="2e25", GOTO="adbrndis"
2023-08-26 09:26:27 +02:00
ATTR{idProduct}=="2e33", GOTO="adbmtp"
ATTR{idProduct}=="2e51", GOTO="adbmtp"
2023-08-22 20:38:16 +02:00
ATTR{idProduct}=="2e76", GOTO="adbmtp"
ATTR{idProduct}=="2e80", GOTO="fast"
ATTR{idProduct}=="2e81", GOTO="adb" # also sideload
ATTR{idProduct}=="2e82", GOTO="mtp" # also charging
ATTR{idProduct}=="2e83", GOTO="ptp"
ATTR{idProduct}=="2e84", GOTO="adbptp"
ATTR{idProduct}=="2eb7", GOTO="mass" # off
2023-08-22 08:10:58 +02:00
ENV{adb_user}="yes"
2014-04-24 08:07:18 +02:00
GOTO="android_usb_rule_match"
LABEL="not_Motorola"
2023-09-03 09:30:52 +02:00
2022-03-02 18:49:47 +01:00
# MTK (MediaTek Inc)
2021-05-01 22:40:44 +02:00
ATTR{idVendor}!="0e8d", GOTO="not_MTK"
2023-08-23 08:33:01 +02:00
# Umidigi F1 (201c=adbfast)
# MT65xx/67xx (2000=cdc 2008=mtp 200a=mtp,cdc,adb 2012=mtp,cdc 201d=mtp,adb)
# Moto E22i (2005=rndis,adb 200c=ptp,adb 2048=midi,adb 201c=adb 201d=mtp,adb)
ATTR{idProduct}=="2005", GOTO="adbrndis"
ATTR{idProduct}=="200a", ENV{adb_adbcdc}="yes", GOTO="adbmtp"
ATTR{idProduct}=="200c", GOTO="adbptp"
ATTR{idProduct}=="2048", GOTO="adbmidi"
ATTR{idProduct}=="201c", GOTO="adb"
ATTR{idProduct}=="201d", GOTO="adbmtp"
GOTO="android_usb_rules_end"
2021-03-16 12:20:18 +01:00
LABEL="not_MTK"
2013-09-10 18:29:22 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# NEC LifeTouch Note (0300=? 0301=debug)
ATTR{idVendor}=="0409", ATTR{idProduct}=="0300", GOTO="user"
2012-05-09 03:14:18 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Nextbit (Need product specific rules)
#ATTR{idVendor}=="2c3f", GOTO="user"
2018-07-15 19:02:37 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Nokia X (Need product specific rules)
#ATTR{idVendor}=="0421", GOTO="user"
2017-01-09 01:14:44 +01:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Nokia 3 (Need product specific rules)
#ATTR{idVendor}=="2e04", GOTO="user"
2017-10-10 01:47:10 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Nook (Barnes & Noble) (Need product specific rules)
#ATTR{idVendor}=="2080", GOTO="user"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Nvidia
2020-06-14 12:31:42 +02:00
ATTR{idVendor}!="0955", GOTO="not_Nvidia"
2022-03-02 18:49:47 +01:00
# Audi SDIS Rear Seat Entertainment Tablet
# Folio
2016-12-21 10:24:31 +01:00
ATTR{idProduct}=="7000", SYMLINK+="android_fastboot"
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="7100", GOTO="user"
2023-08-26 09:27:00 +02:00
# SHIELD Tablet (cf05=mtp,adb cf06= cf07=mtp cf08= cf09=)
ATTR{idProduct}=="cf05", GOTO="adbmtp"
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="cf09", GOTO="adb"
2023-08-26 09:27:00 +02:00
# Shield TV (b42a=mtp)
2019-04-11 20:19:14 +02:00
ATTR{idProduct}=="b442", SYMLINK+="android_fastboot"
2023-08-22 08:10:58 +02:00
ENV{adb_user}="yes"
2019-04-11 20:19:14 +02:00
GOTO="android_usb_rule_match"
2019-05-09 16:51:39 +02:00
LABEL="not_Nvidia"
2012-05-09 03:14:18 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Oculus (Need product specific rules)
#ATTR{idVendor}=="2833", GOTO="user"
2019-03-13 18:55:01 +01:00
2022-03-02 18:49:47 +01:00
# OnePlus(Oreo)
2017-12-06 04:29:54 +01:00
ATTR{idVendor}!="2a70", GOTO="not_OnePlus"
2023-08-23 08:34:07 +02:00
# Oneplus 3T/5T/6 (4ee7=charge,adb)
2022-03-02 18:49:47 +01:00
# OnePlus 6, 4ee1=charging, 4ee2=MTP+debug, 4ee6=PTP+debug, 4ee7=charging+debug
2023-08-23 08:34:07 +02:00
ATTR{idProduct}=="4ee2", GOTO="adbmtp"
ATTR{idProduct}=="4ee6", GOTO="adbptp"
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="4ee7", GOTO="adb"
2023-05-02 19:05:51 +02:00
# OnePlus Nord N10 4G USB tethering mode
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="9024", GOTO="adb"
2023-08-23 08:34:07 +02:00
# OnePlus 3T with Oreo MIDI mode 90bb=midi,adb 9011=mtp 904d=ptp 904e=ptp,adb
# OnePlus 7t (9012=mtp,adb)
ATTR{idProduct}=="9011", GOTO="mtp"
ATTR{idProduct}=="9012", GOTO="adbmtp"
ATTR{idProduct}=="904d", GOTO="ptp"
ATTR{idProduct}=="904e", GOTO="adbptp"
ATTR{idProduct}=="90bb", GOTO="adbmidi"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
GOTO="android_usb_rules_end"
2017-12-06 04:29:54 +01:00
LABEL="not_OnePlus"
2022-03-02 18:49:47 +01:00
# Oppo
2020-06-15 11:14:39 +02:00
ATTR{idVendor}!="22d9", GOTO="not_Oppo"
2022-03-02 18:49:47 +01:00
# Find 5 (2767=debug)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="2767", GOTO="adb"
2022-03-02 18:49:47 +01:00
# Realme 8
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="2769", GOTO="adb"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
ATTR{idProduct}=="2764", GOTO="mtp"
2022-04-28 12:47:08 +02:00
# Oppo Watch, fastboot
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="2024", GOTO="user"
2022-09-14 12:04:21 +02:00
# RMX3231 - Realme C11 20221, normal, rndis, mtp
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="200e", GOTO="user"
ATTR{idProduct}=="2028", GOTO="user"
ATTR{idProduct}=="2026", GOTO="user"
2023-08-23 08:34:07 +02:00
# OnePlus 7a (2774=mass,adb)
# OnePlus 8T (2771=adb,ptp 2772=adb,mtp)
ATTR{idProduct}=="2771", GOTO="adbptp"
ATTR{idProduct}=="2772", GOTO="adbmtp"
ATTR{idProduct}=="2774", GOTO="adbmass"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
GOTO="android_usb_rules_end"
2020-06-15 11:14:39 +02:00
LABEL="not_Oppo"
2013-06-09 12:44:41 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# OTGV (Need product specific rules)
#ATTR{idVendor}=="2257", GOTO="user"
2012-05-09 03:14:18 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Pantech (SK Teletech Co, Ltd.) (Need product specific rules)
#ATTR{idVendor}=="10a9", GOTO="user"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Parrot SA (Car HUD)
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
ATTR{idVendor}=="19cf", ATTR{idProduct}=="0001", GOTO="user"
2020-06-15 11:14:19 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Pegatron Chagall (5035=adb)
ATTR{idVendor}=="1d4d", ATTR{idProduct}=="5035", GOTO="adb"
2012-05-09 03:14:18 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Philips (and NXP) (Need product specific rules)
#ATTR{idVendor}=="0471", GOTO="user"
2012-05-09 03:14:18 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Pico (Need product specific rules)
#ATTR{idVendor}=="2d40", GOTO="user"
2019-04-11 00:22:29 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# PMC-Sierra, (Panasonic Mobile communications, Matsushita) (Need product specific rules)
#ATTR{idVendor}=="04da", GOTO="user"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Point Mobile
2020-09-06 00:33:09 +02:00
ATTR{idVendor}!="2a48", GOTO="not_Point_Mobile"
2022-03-02 18:49:47 +01:00
# PM90
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="5101", GOTO="user"
GOTO="android_usb_rules_end"
2020-09-06 00:33:09 +02:00
LABEL="not_Point_Mobile"
2020-09-06 00:13:15 +02:00
2023-01-05 14:51:49 +01:00
# Polar
ATTR{idVendor}!="0da4", GOTO="not_Polar"
ENV{adb_user}="yes"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Polar M600 (0010=adb 000b=fastboot)
ATTR{idProduct}=="0010", GOTO="adb"
ATTR{idProduct}=="000b", GOTO="adbfast"
GOTO="android_usb_rules_end"
2023-01-05 14:51:49 +01:00
LABEL="not_Polar"
2023-01-04 16:48:11 +01:00
2022-03-02 18:49:47 +01:00
# Qualcomm (Wearners also 05c6)
2016-01-19 18:27:16 +01:00
ATTR{idVendor}!="05c6", GOTO="not_Qualcomm"
2022-03-02 18:49:47 +01:00
# Geeksphone Zero
2014-12-15 19:27:05 +01:00
ATTR{idProduct}=="9025", SYMLINK+="android_adb"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# OnePlus One (6765=mtp,adb 6764=mtp)
2023-08-23 08:34:07 +02:00
ATTR{idProduct}=="6765", GOTO="adbmtp"
2022-03-02 18:49:47 +01:00
# OnePlus Two
2015-12-08 23:26:33 +01:00
ATTR{idProduct}=="9011", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# OnePlus 3
2017-01-09 13:57:57 +01:00
ATTR{idProduct}=="900e", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# OnePlus 3T
2017-02-02 15:23:57 +01:00
ATTR{idProduct}=="676c", SYMLINK+="android_adb"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Snapdragon, OnePlus 3T w/ Oreo MIDI mode (9011=mtp 90bb=midi,adb 904e=ptp)
# Xiaomi A1 (90bb=midi,adb)
2023-08-26 09:27:00 +02:00
ATTR{idProduct}=="90bb", GOTO="adbmidi"
ATTR{idProduct}=="90dc", GOTO="adb"
2022-03-02 18:49:47 +01:00
# OnePlus 5 / 6 / 6T
2017-08-07 10:44:46 +02:00
ATTR{idProduct}=="9011", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# OnePlus 6 / Asia
2019-03-22 10:58:07 +01:00
ATTR{idProduct}=="f003", SYMLINK+="android_adb"
2022-02-22 18:19:31 +01:00
# Yongnuo YN450m (identified in lsusb as Intex Aqua Fish & Jolla C Diagnostic Mode)
2023-08-26 09:27:00 +02:00
ATTR{idProduct}=="9091", GOTO="adb"
2023-01-17 10:50:50 +01:00
# Wileyfox Swift 2 Plus
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0001", GOTO="user"
ENV{adb_user}="yes"
2016-01-19 18:27:16 +01:00
GOTO="android_usb_rule_match"
LABEL="not_Qualcomm"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Razer USA, Ltd.
2020-10-11 12:39:49 +02:00
ATTR{idVendor}!="1532", GOTO="not_Razer"
2022-03-02 18:49:47 +01:00
# Razer Phone 2
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="9050", GOTO="adbfast"
ATTR{idProduct}=="9051", GOTO="adb"
GOTO="android_usb_rules_end"
2020-10-11 12:39:49 +02:00
LABEL="not_Razer"
2022-03-02 18:49:47 +01:00
# Research In Motion, Ltd.
2017-10-30 19:51:23 +01:00
ATTR{idVendor}!="0fca", GOTO="not_RIM"
2022-03-02 18:49:47 +01:00
# BlackBerry DTEK60
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="8042", GOTO="adbfast"
GOTO="android_usb_rules_end"
2017-10-30 19:51:23 +01:00
LABEL="not_RIM"
2022-03-02 18:49:47 +01:00
# Samsung
2014-04-24 08:15:32 +02:00
ATTR{idVendor}!="04e8", GOTO="not_Samsung"
2023-08-23 14:46:27 +02:00
# False positive printer and other devices
ATTR{idProduct}!="6???", GOTO="android_usb_rules_end"
2022-03-02 18:49:47 +01:00
# Galaxy i5700
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="681c", GOTO="adbfast"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Galaxy i5800 (681c=debug 6601=fastboot 68a0=mediaplayer)
2014-04-24 08:15:32 +02:00
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"
2022-03-02 18:49:47 +01:00
# Galaxy i7500
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="6640", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Galaxy i9000 S, i9300 S3
2014-04-24 08:15:32 +02:00
ATTR{idProduct}=="6601", SYMLINK+="android_adb"
ATTR{idProduct}=="685d", MODE="0660"
ATTR{idProduct}=="68c3", MODE="0660"
2022-03-02 18:49:47 +01:00
# Galaxy Ace (S5830) "Cooper"
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="689e", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Galaxy Tab
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="6877", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Galaxy Nexus (GSM) (6860=mtp,adb 6864=rndis,adb 6866=ptp,adb)
2023-08-23 14:46:27 +02:00
# Galaxy Core ([6860=mtp+6860=mtp,adb] 6863=tether 6864=tether,adb 6865=ptp 6866=ptp,adb)
ATTR{idProduct}=="6860", SYMLINK+="android_adb", GOTO="mtp"
ATTR{idProduct}=="6864", GOTO="adbrndis"
ATTR{idProduct}=="6866", GOTO="adbptp"
2022-03-02 18:49:47 +01:00
# Galaxy Core, Tab 10.1, i9100 S2, i9300 S3, N5100 Note (8.0), Galaxy S3 SHW-M440S 3G (Korea only)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="685e", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Galaxy S4 GT-I9500
2014-04-24 08:15:32 +02:00
ATTR{idProduct}=="685d", SYMLINK+="android_adb"
2023-08-22 08:10:58 +02:00
ENV{adb_user}="yes"
2014-04-24 08:15:32 +02:00
GOTO="android_usb_rule_match"
LABEL="not_Samsung"
2012-05-09 03:14:18 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Sharp (Need product specific rules)
#ATTR{idVendor}=="04dd", GOTO="user"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# SK Telesys
2023-08-22 08:10:58 +02:00
ATTR{idVendor}=="1f53", GOTO="user"
2020-06-14 12:31:27 +02:00
2022-03-02 18:49:47 +01:00
# Sonim
2023-08-22 08:10:58 +02:00
ATTR{idVendor}=="1d9c", GOTO="user"
2020-01-16 11:47:08 +01:00
2022-03-02 18:49:47 +01:00
# Sony
2023-03-03 11:13:54 +01:00
ATTR{idVendor}!="054c", GOTO="not_Sony"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# (Need product specific rules)
GOTO="android_usb_rules_end"
2023-03-03 11:13:54 +01:00
# False positives dualshock 0268,05c4,05c5, adapters 0ba0, bluetooth 09cc, 0ce6, VR 09af
ATTR{idProduct}=="02??", GOTO="android_usb_rules_end"
ATTR{idProduct}=="05??", GOTO="android_usb_rules_end"
ATTR{idProduct}=="09??", GOTO="android_usb_rules_end"
ATTR{idProduct}=="0b??", GOTO="android_usb_rules_end"
ATTR{idProduct}=="0c??", GOTO="android_usb_rules_end"
ENV{adb_user}="yes"
GOTO="android_usb_rule_match"
LABEL="not_Sony"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Sony Ericsson
2014-04-24 08:22:25 +02:00
ATTR{idVendor}!="0fce", GOTO="not_Sony_Ericsson"
2022-03-02 18:49:47 +01:00
# Xperia X10 mini (3137=mass_storage)
2014-04-24 08:22:25 +02:00
ATTR{idProduct}=="2137", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Xperia X10 mini pro (3138=mass_storage)
2014-04-24 08:22:25 +02:00
ATTR{idProduct}=="2138", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Xperia X8 (3149=mass_storage)
2014-04-24 08:22:25 +02:00
ATTR{idProduct}=="2149", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Xperia X12 (e14f=mass_storage)
2014-04-24 08:22:25 +02:00
ATTR{idProduct}=="614f", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Xperia Arc S
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="414f", GOTO="adbfast"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Xperia Neo V (6156=debug 0dde=fastboot)
2014-04-24 08:22:25 +02:00
ATTR{idProduct}=="6156", SYMLINK+="android_adb"
ATTR{idProduct}=="0dde", SYMLINK+="android_fastboot"
2022-03-02 18:49:47 +01:00
# Xperia S
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="5169", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia SP
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="6195", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia L
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="5192", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia Mini Pro
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0166", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia V
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0186", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia Acro S
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="5176", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia Z1 Compact
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="51a7", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia Z2
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="51ba", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia Z3
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="01af", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia Z3 Compact
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="01bb", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia Z3+ Dual
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="51c9", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia XZ
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="51e7", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia XZ1 Compact
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="01f4", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia XZ2 Compact
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="b00b", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia 5 II
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="020d", GOTO="adbfast"
2022-03-02 18:49:47 +01:00
# Xperia Z Ultra
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="519c", GOTO="adbfast"
ENV{adb_user}="yes"
2014-04-24 08:22:25 +02:00
GOTO="android_usb_rule_match"
LABEL="not_Sony_Ericsson"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Spectralink
2023-08-22 08:10:58 +02:00
ATTR{idVendor}=="1973", GOTO="user"
2020-04-26 12:58:57 +02:00
2022-03-02 18:49:47 +01:00
# Spreadtrum
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
ATTR{idVendor}=="1782", GOTO="not_Spreadtrum"
# (Unisoc) Various devices (4001=mtp 4002=mtp,adb 4003=mtp,adb)
ATTR{idProduct}=="4002", GOTO="adbmtp"
ATTR{idProduct}=="4003", GOTO="adbmtp"
GOTO="android_usb_rules_end"
LABEL="not_Spreadtrum"
2014-02-04 14:49:27 +01:00
2022-03-02 18:49:47 +01:00
# T & A Mobile Phones
2021-09-15 12:41:34 +02:00
ATTR{idVendor}!="1bbb", GOTO="not_T_A_Mobile"
2022-03-02 18:49:47 +01:00
# Alcatel 1 2019 5033F
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0c01", GOTO="adb"
2022-03-02 18:49:47 +01:00
# Alcatel OT991D
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="00f2", GOTO="adb"
2022-03-02 18:49:47 +01:00
# Alcatel OT6012A
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0167", GOTO="adb"
ENV{adb_user}="yes"
2021-09-15 12:41:34 +02:00
GOTO="android_usb_rule_match"
LABEL="not_T_A_Mobile"
2012-11-09 18:48:31 +01:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Teleepoch (Need product specific rules)
#ATTR{idVendor}=="2340", GOTO="user"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Texas Instruments UsbBoot
2023-08-22 08:10:58 +02:00
ATTR{idVendor}=="0451", ATTR{idProduct}=="d00f", GOTO="user"
ATTR{idVendor}=="0451", ATTR{idProduct}=="d010", GOTO="user"
2013-12-05 13:22:44 +01:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Toshiba (Need product specific rules)
#ATTR{idVendor}=="0930", GOTO="user"
2012-05-09 03:14:18 +02:00
2022-03-02 18:49:47 +01:00
# Unitech Electronics
2021-01-19 14:29:41 +01:00
ATTR{idVendor}!="2e8e", GOTO="not_Unitech_Electronics"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# EA630 (96e1=normal 96e7=debug)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="96e7", GOTO="adb"
ENV{adb_user}="yes"
2021-01-19 14:29:41 +01:00
GOTO="android_usb_rule_match"
LABEL="not_Unitech_Electronics"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Vivo (Need product specific rules)
2023-08-22 08:10:58 +02:00
ATTR{idVendor}=="2d95", GOTO="user"
2022-09-15 23:22:11 +02:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Wileyfox (Need product specific rules)
#ATTR{idVendor}=="2970", GOTO="user"
2020-06-14 12:31:27 +02:00
2022-03-02 18:49:47 +01:00
# XiaoMi
2016-01-21 16:03:25 +01:00
ATTR{idVendor}!="2717", GOTO="not_XiaoMi"
2022-03-02 18:49:47 +01:00
# Mi2A
2014-12-15 19:27:05 +01:00
ATTR{idProduct}=="904e", SYMLINK+="android_adb"
ATTR{idProduct}=="9039", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# Mi3
2014-12-15 19:27:05 +01:00
ATTR{idProduct}=="0368", SYMLINK+="android_adb"
2022-03-02 18:49:47 +01:00
# RedMi 1S WCDMA (MTP+Debug)
2023-08-23 08:35:19 +02:00
ATTR{idProduct}=="1268", GOTO="adbmtp"
2022-03-02 18:49:47 +01:00
# RedMi / RedMi Note WCDMA (MTP+Debug)
2023-08-23 08:35:19 +02:00
ATTR{idProduct}=="1248", GOTO="adbmtp"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# RedMi 1S / RedMi / RedMi Note WCDMA (1218=ptp,adb 1228=usb,adb)
2023-08-23 08:35:19 +02:00
ATTR{idProduct}=="1218", GOTO="adbptp"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
ATTR{idProduct}=="1228", GOTO="adb"
# RedMi / RedMi Note 4G WCDMA (1311=ptp,adb 1328=usb,adb 1368=mtp,adb)
2023-08-23 08:35:19 +02:00
ATTR{idProduct}=="1318", GOTO="adbptp"
ATTR{idProduct}=="1328", GOTO="adb"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
ATTR{idProduct}=="1368", GOTO="adbmtp"
2023-08-23 08:35:19 +02:00
# Mi2 (f003=mtp,mass_storage 9039=mtp,adb,mass_storage 904d=ptp 904e=ptp,adb f000=mass_storage 9015=mass_storage,adb f00e=ndis 9024=ndis,adb f00f=ndis 803e=ndis,adb)
ATTR{idProduct}=="9039", GOTO="adbmtp"
ATTR{idProduct}=="904e", GOTO="adbptp"
ATTR{idProduct}=="9015", GOTO="adbmass"
ATTR{idProduct}=="9024", GOTO="adb"
ATTR{idProduct}=="803e", GOTO="adb"
# Redmi Note 3 (ff08=adb)
# Mi/Redmi (ff10=ptp ff18=ptp,adb ff40=mtp ff48=mtp,adb ff80=rndis ff88=rndis,adb)
# Mi Mix / A1 (ff18=ptp,adb ff28=storage,adb ff48=mtp,adb ff88=rndis,adb)
ATTR{idProduct}=="ff08", GOTO="adb"
ATTR{idProduct}=="ff18", GOTO="adbptp"
ATTR{idProduct}=="ff28", GOTO="adbmass"
ATTR{idProduct}=="ff40", GOTO="mtp"
ATTR{idProduct}=="ff48", GOTO="adbmtp"
ATTR{idProduct}=="ff88", GOTO="adbrndis"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# RedMi / RedMi Note 4G CDMA (ff68=usb,adb) / Mi4c / Mi5
2023-08-23 08:35:19 +02:00
ATTR{idProduct}=="ff68", GOTO="adb"
ENV{adb_user}="yes"
2016-01-21 16:03:25 +01:00
GOTO="android_usb_rule_match"
LABEL="not_XiaoMi"
2013-10-13 04:15:33 +02:00
2022-03-02 18:49:47 +01:00
# Yota
2017-01-04 09:37:53 +01:00
ATTR{idVendor}!="2916", GOTO="not_Yota"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# YotaPhone2 (f003=normal 9139=debug)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="9139", GOTO="adb"
ENV{adb_user}="yes"
2017-01-25 07:19:37 +01:00
GOTO="android_usb_rule_match"
2017-01-04 09:37:53 +01:00
LABEL="not_Yota"
2017-01-04 09:37:53 +01:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# YU (Need product specific rules)
2023-08-22 08:10:58 +02:00
ATTR{idVendor}=="1ebf", GOTO="user"
2017-01-04 09:37:53 +01:00
2022-03-02 18:49:47 +01:00
# Zebra
2016-10-12 13:56:31 +02:00
ATTR{idVendor}!="05e0", GOTO="not_Zebra"
2022-03-02 18:49:47 +01:00
# TC55
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="2101", GOTO="adb"
2022-03-02 18:49:47 +01:00
# TC72
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="2106", GOTO="adb"
GOTO="android_usb_rules_end"
2016-10-12 13:56:31 +02:00
LABEL="not_Zebra"
2016-02-05 14:36:41 +01:00
2022-03-02 18:49:47 +01:00
# ZTE
2017-12-06 04:29:54 +01:00
ATTR{idVendor}!="19d2", GOTO="not_ZTE"
2023-08-26 09:26:42 +02:00
# ZTE Blade A5 2020 (0306=mtp,adb 0310=ptp,adb 0501=cdrom,adb 1352=charging,adb 1373=rndis,adb)
ATTR{idProduct}=="0306", GOTO="adbmtp"
ATTR{idProduct}=="0310", GOTO="adbptp"
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="0501", GOTO="adb"
ATTR{idProduct}=="1352", GOTO="adb"
2023-08-26 09:26:42 +02:00
ATTR{idProduct}=="1373", GOTO="adbrndis"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Blade (1351=debug 1353=normal)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="1351", GOTO="adb"
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# Blade S (Crescent, Orange San Francisco 2) (1354=debug 1355=normal)
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="1354", GOTO="adb"
2022-03-02 18:49:47 +01:00
# P685M LTE modem
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="1275", GOTO="user"
2022-06-15 21:42:31 +02:00
# MF286[A] internal LTE modem
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="1432", GOTO="user"
2022-06-15 21:42:31 +02:00
# MF286D internal LTE modem
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="1485", GOTO="user"
2022-06-15 21:42:31 +02:00
# MF286R internal LTE modem
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="1489", GOTO="user"
2022-04-30 14:28:09 +02:00
# Nubia / RedMagic Series (NX***)
# See https://github.com/TadiT7/nubia_nx619j_dump/blob/NX619J-user-9-PKQ1.180929.001-eng.nubia.20181220.181559-release-keys/vendor/etc/init/hw/init.nubia.usb.rc
2023-08-26 09:26:42 +02:00
# (... ffc0=diag,mass_storage,adb ffc1=adb ffcb=rndis,adb ffcd=mass_storage,adb ffcf=mtp,adb ffd1=ptp,adb)
ATTR{idProduct}=="ffc0", GOTO="adbmass"
ATTR{idProduct}=="ffc1", GOTO="adb"
ATTR{idProduct}=="ffcb", GOTO="adbrndis"
ATTR{idProduct}=="ffcd", GOTO="adbmass"
ATTR{idProduct}=="ffcf", GOTO="adbmtp"
ATTR{idProduct}=="ffd1", GOTO="adbptp"
2022-04-30 14:28:09 +02:00
# modem,service,nema,adb
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="ffc9", GOTO="adb"
2022-04-30 14:28:09 +02:00
# modem,service,nema,mass_storage,adb
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="ffc7", GOTO="adb"
2022-04-30 14:28:09 +02:00
# diag,modem,mass_storage,adb
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="ffb0", GOTO="adb"
2022-04-30 14:28:09 +02:00
# diag,modem,service,mass_storage,adb
2023-08-22 08:10:58 +02:00
ATTR{idProduct}=="ffb2", GOTO="adb"
GOTO="android_usb_rules_end"
2017-12-06 04:29:54 +01:00
LABEL="not_ZTE"
2016-01-21 16:05:34 +01:00
chore: use more specific adb GOTOs for misc (#283)
Reduce several generic links down to more specifics
by changing "assumed match" due to vendor code, to
"assumed exits" using GOTO="android_usb_rules_end".
This should help reduce false positives that perhaps
should be handled elsewhere like cameras, keypads,
keyboards, mice, or other devices, etc, etc, etc.
Some vendor info is very ambigous and needs more info
therefore commented-out code (needs more info).
Some vendors left as-is since they appear specific to
a product type and it might break a line of something
which may be better left for now, looked at in future.
merged in some idProduct details from linux-usb.org,
device hunt, and also libmtp.
Cleaned up some commenting for more consistency.
2023-08-28 14:36:08 +02:00
# ZUK (Need product specific rules)
#ATTR{idVendor}=="2b4c", GOTO="user"
2016-02-06 12:35:14 +01:00
2022-03-30 14:49:39 +02:00
# Verifone
2023-08-22 08:10:58 +02:00
ATTR{idVendor}=="11ca", GOTO="user"
2022-03-30 14:49:39 +02:00
2023-08-22 08:10:58 +02:00
# No android devices found
GOTO="android_usb_rules_end"
# ADB Debug User (default)
LABEL="adb", ENV{adb_adb}="yes", GOTO="android_usb_rule_match"
# ADB Debug and Audio Source
LABEL="adbaud", ENV{adb_adb}="yes"
LABEL="aud", ENV{adb_user}="yes", GOTO="android_usb_rule_match"
# ADB Debug and AT-commands CDC Serial
2023-08-23 08:33:01 +02:00
LABEL="adbcdc", ENV{adb_adbcdc}="yes"
# check if exists /dev/ttyACM%n, GROUP=dialout, modeprobe cdc_acm)
2023-08-22 08:10:58 +02:00
LABEL="cdc", ENV{adb_user}="yes", GOTO="android_usb_rule_match"
# ADB Debug and Fastboot mode
2023-08-22 20:38:01 +02:00
LABEL="adbfast", ENV{adb_adb}="yes"
LABEL="fast", ENV{adb_fast}="yes", GOTO="android_usb_rule_match"
2014-04-24 07:21:33 +02:00
2023-08-22 20:38:16 +02:00
# ADB Debug and mass storage (note: generally android_ver<4.3; Moto Z3 Play when powered off)
2023-08-22 08:10:58 +02:00
LABEL="adbmass", ENV{adb_adbmass}="yes"
LABEL="mass", ENV{adb_mass}="yes", GOTO="android_usb_rule_match"
# ADB Debug and MIDI mode (also check to see /dev/midi%n)
LABEL="adbmidi", ENV{adb_adbmidi}="yes"
LABEL="midi", ENV{adb_user}="yes", GOTO="android_usb_rule_match"
# ADB Debug and MTP mode
LABEL="adbmtp", ENV{adb_adbmtp}="yes"
LABEL="mtp", ENV{adb_mtp}="yes", GOTO="android_usb_rule_match"
# ADB Debug and PTP mode
LABEL="adbptp", ENV{adb_adbptp}="yes"
LABEL="ptp", ENV{adb_ptp}="yes", GOTO="android_usb_rule_match"
# ADB Debug and Tether mode
LABEL="adbrndis", ENV{adb_adb}="yes"
LABEL="rndis", ENV{adb_user}="yes", GOTO="android_usb_rule_match"
# Add "android" SYMLINK
LABEL="user", ENV{adb_user}="yes"
# Symlink common code to reduce steps above
LABEL="android_usb_rule_match"
2023-08-23 08:33:01 +02:00
ENV{adb_adbcdc}=="yes", ENV{adb_adb}="yes", SYMLINK+="android_cdc", SYMLINK+="android_cdc%n"
2016-01-22 16:19:40 +01:00
ENV{adb_adbfast}=="yes", ENV{adb_adb}="yes", ENV{adb_fast}="yes"
2023-08-27 09:27:57 +02:00
ENV{adb_adbmass}=="yes", ENV{adb_mass}="yes"
2023-08-22 08:10:58 +02:00
ENV{adb_adbmtp}=="yes", ENV{adb_adb}="yes", ENV{adb_mtp}="yes"
ENV{adb_adbptp}=="yes", ENV{adb_adb}="yes", ENV{adb_ptp}="yes"
ENV{adb_adbmidi}=="yes", ENV{adb_adb}="yes", SYMLINK+="android_midi", SYMLINK+="android_midi0%n"
2016-01-22 16:19:40 +01:00
ENV{adb_adb}=="yes", ENV{adb_user}="yes", SYMLINK+="android_adb"
2020-06-15 11:14:39 +02:00
ENV{adb_fast}=="yes", SYMLINK+="android_fastboot"
2023-08-27 09:27:57 +02:00
ENV{adb_mass}=="yes", ENV{adb_mtp}="yes"
2023-08-22 08:10:58 +02:00
ENV{adb_ptp}=="yes", ENV{adb_user}="yes", ATTR{bDeviceClass}=="00|02|06|ef|ff", ENV{adb_mtp}="yes"
ENV{adb_mtp}=="yes", ENV{adb_user}="yes", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
2016-01-22 16:19:40 +01:00
# Enable device as a user device if found (add an "android" SYMLINK)
2021-03-22 09:14:24 +01:00
ENV{adb_user}=="yes", MODE="0660", GROUP="adbusers", TAG+="uaccess", SYMLINK+="android", SYMLINK+="android%n"
2013-02-26 05:33:21 +01:00
# Devices listed here {begin...end} are connected by USB
2013-02-26 05:13:25 +01:00
LABEL="android_usb_rules_end"