Skip to content

fix: route Huawei/Motorola adb PIDs through adb labels - #365

Merged
M0Rf30 merged 1 commit into
mainfrom
fix/huawei-motorola-adb-labels
Sep 3, 2026
Merged

M0Rf30 merged 1 commit into
mainfrom
fix/huawei-motorola-adb-labels

Conversation

@M0Rf30

@M0Rf30 M0Rf30 commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Fixes #364.

Bare SYMLINK+="android_adb" lines in the Huawei and Motorola sections never reached LABEL="android_usb_rule_match": both sections terminate with GOTO="android_usb_rules_end", which jumps past the ENV{adb_user}=="yes", MODE="0660", GROUP="adbusers", TAG+="uaccess" line. Only the symlink was applied. Replaced with GOTO="adb" (same android_adb symlink, plus mode/group/uaccess).

Affected PIDs: Huawei 1050, 103a, 107d; Motorola 2d66, 428c, 41db. An audit of every vendor section (guard -> LABEL="not_X", terminator, assignment lines without GOTO) found no other section with this shape.

12d1:107e was listed twice (P10 Lite, Mate 9); the second line was unreachable. Merged into one GOTO="adbmtp" line, matching the composition reported for LYA-L29 (Mate 20 Pro): MTP + mass storage + ADB interface.

udevadm verify 51-android.rules: Success 1 / Fail 0. No 12d1:107e device available, so no runtime udevadm test.

Bare SYMLINK+="android_adb" lines in the Huawei and Motorola sections
never reached LABEL="android_usb_rule_match": both sections end with
GOTO="android_usb_rules_end", so MODE="0660", GROUP="adbusers" and
TAG+="uaccess" were not applied. Use GOTO="adb" instead.

Huawei 12d1:107e was listed twice (P10 Lite, Mate 9); the second line
was unreachable. Merged into one GOTO="adbmtp" line, matching the
reported mtp+mass_storage+adb composition of LYA-L29 (Mate 20 Pro).

Fixes #364
@M0Rf30
M0Rf30 merged commit 7ce74d6 into main Sep 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

51-android.rules: 12d1:107e listed twice, and neither line reaches the adb_user branch

1 participant