diff --git a/51-android.rules b/51-android.rules index 819dcf9..e94e43f 100644 --- a/51-android.rules +++ b/51-android.rules @@ -18,9 +18,12 @@ # Skip this section below if this device is not connected by USB SUBSYSTEM!="usb", GOTO="android_usb_rules_end" -LABEL="android_universal_rule" -ENV{ID_USB_INTERFACES}!="*:ff420?:*", GOTO="android_usb_rules_begin" -ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:ff420?:*", MODE="0660", GROUP="adbusers", SYMLINK+="android/$env{ID_SERIAL_SHORT}" +# This is the universal rule suggested here: +# http://ktnr74.blogspot.com/2013/04/universal-udev-rule-for-all-android.html +# Commented as a reminder (we prefer a punctual device detection) +# LABEL="android_universal_rule" +# ENV{ID_USB_INTERFACES}!="*:ff420?:*", GOTO="android_usb_rules_begin" +# ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:ff420?:*", MODE="0660", GROUP="adbusers", SYMLINK+="android/$env{ID_SERIAL_SHORT}" LABEL="android_usb_rules_begin" # Devices listed here in android_usb_rules_{begin...end} are connected by USB