Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use more specific adb GOTOs for ZTE (#278) #278

Merged
merged 1 commit into from
Aug 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 11 additions & 21 deletions 51-android.rules
Original file line number Diff line number Diff line change
Expand Up @@ -872,17 +872,12 @@ LABEL="not_Zebra"

# ZTE
ATTR{idVendor}!="19d2", GOTO="not_ZTE"
# ZTE Blade A5 2020
# mtp,adb
ATTR{idProduct}=="0306", GOTO="adb"
# ptp,adb
ATTR{idProduct}=="0310", GOTO="adb"
# cdrom,adb
# ZTE Blade A5 2020 (0306=mtp,adb 0310=ptp,adb 0501=cdrom,adb 1352=charging,adb 1373=rndis,adb)
ATTR{idProduct}=="0306", GOTO="adbmtp"
ATTR{idProduct}=="0310", GOTO="adbptp"
ATTR{idProduct}=="0501", GOTO="adb"
# charging,adb
ATTR{idProduct}=="1352", GOTO="adb"
# rndis,adb
ATTR{idProduct}=="1373", GOTO="adb"
ATTR{idProduct}=="1373", GOTO="adbrndis"
# Blade (1353=normal,1351=debug)
ATTR{idProduct}=="1351", GOTO="adb"
# Blade S (Crescent, Orange San Francisco 2) (1355=normal,1354=debug)
Expand All @@ -897,14 +892,13 @@ ATTR{idProduct}=="1485", GOTO="user"
ATTR{idProduct}=="1489", GOTO="user"
# Nubia / RedMagic Series (NX***)
# See https://github.com/TadiT7/nubia_nx619j_dump/blob/NX619J-user-9-PKQ1.180929.001-eng.nubia.20181220.181559-release-keys/vendor/etc/init/hw/init.nubia.usb.rc
# ptp,adb
ATTR{idProduct}=="ffd1", GOTO="adb"
# mtp,adb
ATTR{idProduct}=="ffcf", GOTO="adb"
# mass_storage,adb
ATTR{idProduct}=="ffcd", GOTO="adb"
# rndis,adb
ATTR{idProduct}=="ffcb", GOTO="adb"
# (... ffc0=diag,mass_storage,adb ffc1=adb ffcb=rndis,adb ffcd=mass_storage,adb ffcf=mtp,adb ffd1=ptp,adb)
ATTR{idProduct}=="ffc0", GOTO="adbmass"
ATTR{idProduct}=="ffc1", GOTO="adb"
ATTR{idProduct}=="ffcb", GOTO="adbrndis"
ATTR{idProduct}=="ffcd", GOTO="adbmass"
ATTR{idProduct}=="ffcf", GOTO="adbmtp"
ATTR{idProduct}=="ffd1", GOTO="adbptp"
# modem,service,nema,adb
ATTR{idProduct}=="ffc9", GOTO="adb"
# modem,service,nema,mass_storage,adb
Expand All @@ -913,10 +907,6 @@ ATTR{idProduct}=="ffc7", GOTO="adb"
ATTR{idProduct}=="ffb0", GOTO="adb"
# diag,modem,service,mass_storage,adb
ATTR{idProduct}=="ffb2", GOTO="adb"
# adb
ATTR{idProduct}=="ffc1", GOTO="adb"
# diag,mass_storage,adb
ATTR{idProduct}=="ffc0", GOTO="adb"
GOTO="android_usb_rules_end"
LABEL="not_ZTE"

Expand Down