From 254e4979828b48fa69a19f3cf67bab9456500094 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 24 Mar 2021 07:53:00 -0700 Subject: [PATCH] Fairphone (#208) Did some searching for info, plus also found some data on Fairphone. --- 51-android.rules | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/51-android.rules b/51-android.rules index f255e0b..2e6be86 100644 --- a/51-android.rules +++ b/51-android.rules @@ -119,8 +119,16 @@ ATTR{idProduct}=="c03[02]", ENV{adb_adb}="yes" GOTO="android_usb_rule_match" LABEL="not_Essential" -# Fairphone 2 -ATTR{idVendor}=="2ae5", ENV{adb_user}="yes" +# Fairphone 1 (see Hisense 109b) +# Fairphone 2 (f005=tether, f00e=rndis, 90de=charge, 90dc=charge,adb f000=MTP, 9039=MTP,adb, 904d=PTP, 904e=PTP,adb, 9015=storage,adb, 9024=rndis,adb) 90bb=qualcom midi+adb +ATTR{idVendor}!="2ae5", GOTO="not_Fairphone2" +ATTR{idProduct}=="9015", ENV{adb_adb}="yes" +ATTR{idProduct}=="9039", ENV{adb_adb}="yes" +ATTR{idProduct}=="904e", ENV{adb_adb}="yes" +ATTR{idProduct}=="90dc", ENV{adb_adb}="yes" +ATTR{idProduct}=="90bb", ENV{adb_adb}="yes", ENV{midi_user}="yes" +GOTO="android_usb_rule_match" +LABEL="not_Fairphone2" # Foxconn # Commtiva Z71, Geeksphone One @@ -140,7 +148,7 @@ ATTR{idVendor}=="091e", ENV{adb_user}="yes" # Google ATTR{idVendor}!="18d1", GOTO="not_Google" -# Nexus, Pixel, Pixel XL, Pixel 2, Pixel 2XL (4ee2=mtp,adb 4ee4=rndis,adb 4ee6=ptp,adb 4ee7=adb 4ee9=midi,adb 2d01=accessory,adb 2d03=audio_source,adb 2d05=accessory,audio_source,adb) +# Nexus, Pixel, Pixel XL, Pixel 2, Pixel 2XL (4ee1=mtp, 4ee2=mtp,adb 4ee3=rndis, 4ee4=rndis,adb 4ee5=ptp, 4ee6=ptp,adb 4ee7=adb 4ee8=midi, 4ee9=midi,adb 2d01=accessory,adb 2d03=audio_source,adb 2d05=accessory,audio_source,adb) # See https://android.googlesource.com/device/google/wahoo/+/master/init.hardware.usb.rc # OnePlus 6, 4ee1=charging, 4ee2=MTP+debug, 4ee6=PTP+debug, 4ee7=charging+debug # Pico i.MX7 Dual Development Board 4ee7=debug @@ -189,7 +197,7 @@ LABEL="not_Google" # Haier ATTR{idVendor}=="201e", ENV{adb_user}="yes" -# Hisense +# Hisense (includes Fairphone 1) ATTR{idVendor}=="109b", ENV{adb_user}="yes" # Honeywell/Foxconn @@ -451,10 +459,10 @@ ATTR{idVendor}!="2a70", GOTO="not_OnePlus" ATTR{idProduct}=="4ee2", ENV{adb_adb}="yes" ATTR{idProduct}=="4ee6", ENV{adb_adb}="yes" ATTR{idProduct}=="4ee7", ENV{adb_adb}="yes" -# MTP mode -ATTR{idProduct}=="9011", ENV{adb_adb}="yes" -# PTP mode -ATTR{idProduct}=="904e", ENV{adb_adb}="yes" +# OnePlus 3T with Oreo MIDI mode 90bb=adb+midi, 9011=MTP, 904e=PTP +ATTR{idProduct}=="90bb", ENV{adb_adb}="yes" +ATTR{idProduct}=="9011", SYMLINK+="android_adb" +ATTR{idProduct}=="904e", SYMLINK+="android_adb" GOTO="android_usb_rule_match" LABEL="not_OnePlus" @@ -494,7 +502,7 @@ ATTR{idProduct}=="5101", ENV{adb_user}="yes" GOTO="android_usb_rule_match" LABEL="not_Point_Mobile" -# Qualcomm +# Qualcomm (Wearners also 05c6) ATTR{idVendor}!="05c6", GOTO="not_Qualcomm" ENV{adb_user}="yes" # Geeksphone Zero @@ -507,14 +515,13 @@ ATTR{idProduct}=="9011", SYMLINK+="android_adb" ATTR{idProduct}=="900e", SYMLINK+="android_adb" # OnePlus 3T ATTR{idProduct}=="676c", SYMLINK+="android_adb" -# OnePlus 3T w/ Oreo MIDI mode -ATTR{idProduct}=="90bb", SYMLINK+="android_adb" +# Snapdragon, OnePlus 3T w/ Oreo MIDI mode (90bb=adb,midi, 9011=MTP, 904e=PTP) +# Xiaomi A1 (90bb=midi+adb) +ATTR{idProduct}=="90bb", ENV{adb_adb}="yes" # OnePlus 5 / 6 / 6T ATTR{idProduct}=="9011", SYMLINK+="android_adb" # OnePlus 6 / Asia ATTR{idProduct}=="f003", SYMLINK+="android_adb" -# Xiaomi A1 (90bb=midi+adb) -ATTR{idProduct}=="90bb", SYMLINK+="android_adb" GOTO="android_usb_rule_match" LABEL="not_Qualcomm"