[Android-tools-devel] Bug#1057404: android-sdk-platform-tools-common: udev rules break printing

Johannes Stezenbach js at sig21.net
Mon Dec 4 12:39:41 GMT 2023


Package: android-sdk-platform-tools-common
Version: 28.0.2+9
Severity: normal

Dear Maintainer,

CUPS printing to my USB attached printer stopped working
(with error message "cannot send data to the printer").
After some debug I found the issue is caused by wrong
ownership of the device node, it should be "lp" but is "plugdev".

Part of the "udevadm test" output:

2-1.5: /usr/lib/udev/rules.d/50-udev-default.rules:67 MODE 0664
2-1.5: /usr/lib/udev/rules.d/50-udev-default.rules:84 GROUP 7
2-1.5: /usr/lib/udev/rules.d/51-android.rules:308 GROUP 46
2-1.5: /usr/lib/udev/rules.d/51-android.rules:308 MODE 0660


The 50-udev-default.rules matches on bInterfaceClass and bInterfaceSubClass:

  SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"

51-android.rules overrides this for almost every USB device.

I'm not sure about the issue severity, maybe it should be
"critical" because it "makes unrelated software on the system break".


Best Regards,
Johannes

-- System Information:
Debian Release: trixie/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.9 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.utf-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

-- no debconf information



More information about the Android-tools-devel mailing list