From 0c841906f80890597d7fa5e7cfc3de223ef8b54e Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 26 Aug 2023 00:26:27 -0700 Subject: [PATCH] feat: add Motorola G3, edit some other Motorola values (#277) (#277) Added values according to Motorola G3. Fetched some related idProducts from libmtp. --- 51-android.rules | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/51-android.rules b/51-android.rules index 905495c..7564eed 100644 --- a/51-android.rules +++ b/51-android.rules @@ -197,6 +197,7 @@ ATTR{idVendor}!="18d1", GOTO="not_Google" # PinePhone (v1.2) (4ee0=fast 4ee1=mtp, 4ee2=mtp,adb 4ee3=rndis 4ee4=rndis,adb 4ee5=ptp, 4ee6=ptp,adb 4ee7=adb) # Yandex Phone 4ee7=debug # Fairphone3 (4ee1=mtp) +# Motorola G3 (2d02=audio 2d03=audio,adb 4ee8=midi 4ee9=midi,adb) ATTR{idProduct}=="4ee0", GOTO="adbfast" ATTR{idProduct}=="4ee2", GOTO="adb" ATTR{idProduct}=="4ee4", GOTO="adb" @@ -215,7 +216,7 @@ ATTR{idProduct}=="5208", GOTO="adb" ATTR{idProduct}=="2d00", GOTO="adb" ATTR{idProduct}=="2d01", GOTO="adb" -ATTR{idProduct}=="2d03", GOTO="adb" +ATTR{idProduct}=="2d03", GOTO="adbaud" ATTR{idProduct}=="2d05", GOTO="adb" # Nexus 7 ATTR{idProduct}=="4e42", GOTO="adb" @@ -458,24 +459,18 @@ ATTR{idProduct}=="2d66", SYMLINK+="android_adb" ATTR{idProduct}=="428c", SYMLINK+="android_adb" # Droid ATTR{idProduct}=="41db", SYMLINK+="android_adb" -# Xoom ID 1 -ATTR{idProduct}=="70a8", GOTO="adbfast" -# Xoom ID 2 -ATTR{idProduct}=="70a9", GOTO="adbfast" +# Xoom (70a8=mtp 70a9=mtp,adb) +ATTR{idProduct}=="70a8", GOTO="mtp" +ATTR{idProduct}=="70a9", GOTO="adbmtp" +# XT890/907/Razr (710d=mtp 710e=mtp,adb) +ATTR{idProduct}=="710e", GOTO="adbmtp" # Razr XT912 ATTR{idProduct}=="4362", GOTO="adbfast" -# Moto XT1052 -#ATTR{idProduct}=="2e83", GOTO="adbfast" -# Moto E/G -#ATTR{idProduct}=="2e76", GOTO="adbfast" -# Moto E/G (Dual SIM) -#ATTR{idProduct}=="2e80", GOTO="adbfast" -# Moto E/G (Global GSM) -#ATTR{idProduct}=="2e82", GOTO="adbfast" -# Moto x4 -#ATTR{idProduct}=="2e81", GOTO="adbfast" # Droid Turbo 2 ATTR{idProduct}=="2ea4", GOTO="adbfast" +# Atrix/Razr HD (2e32=mtp 2e33=mtp,adb) +# Razr M (2e50=mtp 2e51=mtp,adb) +# Moto G3 (2e76=mtp,adb 2e81=charge,adb 2e82=mtp 2e83=ptp 2e84=ptp,adb 2e24=rndis 2e25=rndis,adb) # Moto Z3 Play, beckham, XT1929 # For details see: # 18d1:4ee8=midi; 18d1:4ee9=midi+adb @@ -483,6 +478,8 @@ ATTR{idProduct}=="2ea4", GOTO="adbfast" # QCOM: 05c6:9091=charing+adb, mtp+adb, ptp+adb; 05c6:9092=charging, mtp, ptp; 18d1:4ee8=midi; 18d1:4ee9=midi+adb; 22b8:2e24=rndis; 22b8:2e25=rndis+adb ATTR{idProduct}=="2e24", GOTO="rndis" ATTR{idProduct}=="2e25", GOTO="adbrndis" +ATTR{idProduct}=="2e33", GOTO="adbmtp" +ATTR{idProduct}=="2e51", GOTO="adbmtp" ATTR{idProduct}=="2e76", GOTO="adbmtp" ATTR{idProduct}=="2e80", GOTO="fast" ATTR{idProduct}=="2e81", GOTO="adb" # also sideload