Skip to content

Commit

Permalink
issue 250 - exclude several Sony and Microsoft USB controllers, VR, BT (
Browse files Browse the repository at this point in the history
#252)

Anticipate newer versions have similar values, allow for substitutes "??"
  • Loading branch information
JoesCat authored Mar 3, 2023
1 parent 3c59cfe commit 535984d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion 51-android.rules
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ LABEL="not_Micromax"

# Microsoft
ATTR{idVendor}!="045e", GOTO="not_Microsoft"
# False positive xbox controllers 028e, 02ea, 0719
ATTR{idProduct}=="02??", GOTO="android_usb_rules_end"
ATTR{idProduct}=="07??", GOTO="android_usb_rules_end"
ENV{adb_user}="yes"
# Surface Duo
ATTR{idProduct}=="0c26", ENV{adb_adbfast}="yes"
Expand Down Expand Up @@ -619,7 +622,16 @@ ATTR{idVendor}=="1f53", ENV{adb_user}="yes"
ATTR{idVendor}=="1d9c", ENV{adb_user}="yes"

# Sony
ATTR{idVendor}=="054c", ENV{adb_user}="yes"
ATTR{idVendor}!="054c", GOTO="not_Sony"
# 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"

# Sony Ericsson
ATTR{idVendor}!="0fce", GOTO="not_Sony_Ericsson"
Expand Down

0 comments on commit 535984d

Please sign in to comment.