Summary: | dev-util/android-sdk-update-manager - 80-android.rules claims all Samsung devices as android devices, including printers | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | William Pettersson <william> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | dschridde+gentoobugs |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
William Pettersson
2014-07-22 06:21:04 UTC
Thanks for reporting. I'll be out for a few days but I will figure out what to do about this. I had this concern a few months ago when taking a closer look at the rules. These rules are actually recommended by upstream, and they do not provide device-specific ones. They don't cover all phone vendors either. Yeah my current fix is actually to copy the 80-android.rules file into /etc/udev/rules.d and comment out the Samsung line (since I know I don't currently have a Samsung phone). Having pondered for a few hours now, I have the following two possible solutions: 1. Simply add a warning to the ebuild, warning people of potential problems. 2. Attempt to filter based on ID_USB_INTERFACES. Printers should have an interface 0701??, so not triggering on those is easy. It'd be nice if phones had an interface class, but they don't. My android phone (HTC) shows up with interfaces 080650 (USB Mass Storage) and FF4201 (Vendor specific). Now these interfaces show up even if USB storage is "off" on my phone, and show up if USB debugging is switched on or off. I don't know of any Android phone which doesn't present itself as mass storage, so adding ENV{ID_USB_INTERFACES}=="*:080650:*" should work. However, I only have one android phone here to test with so more testing would be advised. Also, I feel this will only reduce the number of false positives, rather than stop them completely. |