From a4a5a70d3cc98ab610484a4b287c3f4fea1cc220 Mon Sep 17 00:00:00 2001 From: Davide Depau Date: Tue, 5 Dec 2017 16:50:43 +0100 Subject: [PATCH] Add special rules for OnePlus 3T running Oreo OnePlus 3T running Oxygen OS Oreo changes IDs for every USB mode --- 51-android.rules | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/51-android.rules b/51-android.rules index 65b6e87..4d30621 100644 --- a/51-android.rules +++ b/51-android.rules @@ -411,6 +411,23 @@ ATTR{idProduct}=="90bb", SYMLINK+="android_adb" GOTO="android_usb_rule_match" LABEL="not_Qualcomm" +# OnePlus 3T with Android Oreo +ATTR{idVendor}!="2a70", GOTO="not_OnePlus_bitch" +ENV{adb_user}="yes" +# Charging mode +ATTR{idProduct}=="4ee7", SYMLINK+="android_adb" +# MTP mode +ATTR{idProduct}=="9011", SYMLINK+="android_adb" +# PTP mode +ATTR{idProduct}=="904e", SYMLINK+="android_adb" +GOTO="android_usb_rule_match" +LABEL="not_OnePlus_bitch" + +# OnePlus 3T w/ Oreo MIDI mode +ATTR{idVendor}!="05c6", GOTO="not_OnePlus_MIDI_bitch" +ATTR{idProduct}=="90bb", SYMLINK+="android_adb" +LABEL="not_OnePlus_MIDI_bitch" + # Research In Motion, Ltd. ATTR{idVendor}!="0fca", GOTO="not_RIM" ENV{adb_user}="yes"