Move false positive printer to top & exit. Assume all phones are "6???"
6??? might be a correct assumption of all phones, or it may be too drastic for a cutoff value since you may want to include other USB devices too. NOTE: Someone (eventually) needs to submit a non=6??? android device :-)
This commit is contained in:
parent
a5d728a622
commit
6c08804451
|
@ -309,6 +309,11 @@ ATTR{idVendor}=="1f53", ENV{adb_user}="yes"
|
|||
|
||||
# Samsung
|
||||
ATTR{idVendor}!="04e8", GOTO="not_Samsung"
|
||||
# False positive printer
|
||||
ATTR{idProduct}=="3252", GOTO="android_usb_rules_end"
|
||||
# False positive {non-phone devices}
|
||||
ATTR{idProduct}!="6???", GOTO="android_usb_rules_end"
|
||||
|
||||
ENV{adb_user}="yes"
|
||||
# Galaxy i5700
|
||||
ATTR{idProduct}=="681c", SYMLINK+="android_adb", SYMLINK+="android_fastboot"
|
||||
|
@ -337,8 +342,6 @@ ATTR{idProduct}=="6860", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_ME
|
|||
ATTR{idProduct}=="6866", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
|
||||
# Galaxy S4 GT-I9500
|
||||
ATTR{idProduct}=="685d", SYMLINK+="android_adb"
|
||||
# False positive printer
|
||||
ATTR{idProduct}=="3252", OPTIONS=="ignore_device"
|
||||
GOTO="android_usb_rule_match"
|
||||
LABEL="not_Samsung"
|
||||
|
||||
|
|
Loading…
Reference in New Issue