From 8b05099aa1f8a85485cb53994dae55dc6746bb7c Mon Sep 17 00:00:00 2001 From: Joe Da Silva Date: Thu, 21 Jan 2016 06:52:16 -0800 Subject: [PATCH] Fixes -> Rules too broad for Asus; catching my bluetooth dongle. #72 Also if vendor==Asus then skip other tests and go directly to match_found. --- 51-android.rules | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/51-android.rules b/51-android.rules index 2c1490b..d9b1a5d 100644 --- a/51-android.rules +++ b/51-android.rules @@ -38,16 +38,17 @@ GOTO="android_usb_rule_match" LABEL="not_Archos" # Asus -ATTR{idVendor}=="0b05", ENV{adb_user}="yes" -# Zenphone 5 -# normal -ATTR{idProduct}=="4c90" -# USB Debugging +ATTR{idVendor}!="0b05", GOTO="not_Asus" +# False positive - accessory +ATTR{idProduct}=="1???", GOTO="android_usb_rules_end" +ENV{adb_user}="yes" +# Zenphone 5 (4c90=normal,4c91=debug,4daf=Fastboot) ATTR{idProduct}=="4c91", SYMLINK+="android_adb" -# Fastboot ATTR{idProduct}=="4daf", SYMLINK+="android_fastboot" # Tegra APX ATTR{idProduct}=="7030" +GOTO="android_usb_rule_match" +LABEL="not_Asus" # Azpen Onda ATTR{idVendor}=="1f3a", ENV{adb_user}="yes"