Thanks, Hugh Pumphrey!

With this USB attribute listing we can try to exclude Android phones from the mode-switching trigger rule.

You can help once more if you re-install usb_modeswitch (and its data package) and then modify a line in the file
/lib/udev/rules.d/40-usb_modeswitch.rules

At line 24, there is the trigger that I referred to.
Change it to this:

ATTRS{idVendor}=="12d1", ATTRS{iManufacturer}!="Android", ATTR{bInterfaceNumber}=="00", ATTR{bInterfaceClass}=="08", RUN+="usb_modeswitch '%b/%k'"

As you can see, the only thing added to the existing line is this condition:

ATTRS{iManufacturer}!="Android"

Hopefully this will filter out all devices which have the entry "Android" in their iManufacturer attribute. So to test this you would have to enable mode-switching, connect your phone, and in the best case nothing will happen.

Remember to direct your answer also to the bug address. It's best to simply hit "Reply to all".


Regards,
Josua Dietze


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to