Update XiaoMi to handle several devices, exit sooner if yes/no
This commit is contained in:
parent
8b05099aa1
commit
aec12bcd52
|
@ -431,7 +431,8 @@ ATTR{idProduct}=="1355"
|
||||||
ATTR{idProduct}=="1354", SYMLINK+="android_adb"
|
ATTR{idProduct}=="1354", SYMLINK+="android_adb"
|
||||||
|
|
||||||
# XiaoMi
|
# XiaoMi
|
||||||
ATTR{idVendor}=="2717", ENV{adb_user}="yes"
|
ATTR{idVendor}!="2717", GOTO="not_XiaoMi"
|
||||||
|
ENV{adb_user}="yes"
|
||||||
# Mi2A
|
# Mi2A
|
||||||
ATTR{idProduct}=="904e", SYMLINK+="android_adb"
|
ATTR{idProduct}=="904e", SYMLINK+="android_adb"
|
||||||
ATTR{idProduct}=="9039", SYMLINK+="android_adb"
|
ATTR{idProduct}=="9039", SYMLINK+="android_adb"
|
||||||
|
@ -451,6 +452,8 @@ ATTR{idProduct}=="1368", SYMLINK+="android_adb"
|
||||||
ATTR{idProduct}=="1318", SYMLINK+="android_adb"
|
ATTR{idProduct}=="1318", SYMLINK+="android_adb"
|
||||||
# RedMi / RedMi Note 4G WCDMA (Usb+Debug)
|
# RedMi / RedMi Note 4G WCDMA (Usb+Debug)
|
||||||
ATTR{idProduct}=="1328", SYMLINK+="android_adb"
|
ATTR{idProduct}=="1328", SYMLINK+="android_adb"
|
||||||
|
GOTO="android_usb_rule_match"
|
||||||
|
LABEL="not_XiaoMi"
|
||||||
|
|
||||||
# Skip other vendor tests
|
# Skip other vendor tests
|
||||||
LABEL="android_usb_rule_match"
|
LABEL="android_usb_rule_match"
|
||||||
|
|
Loading…
Reference in New Issue