usbguard icon indicating copy to clipboard operation
usbguard copied to clipboard

Unable to connect to MTP mobile device.

Open fxzxmicah opened this issue 1 year ago • 4 comments

Modern mobile phones are using MTP as the transmission protocol, and for security reasons, it is necessary to manually switch to this mode on the phone. However, after using USBGuard, the MTP device did not appear on the computer.

fxzxmicah avatar Oct 13 '24 14:10 fxzxmicah

usbguard.log

fxzxmicah avatar Oct 13 '24 14:10 fxzxmicah

I can't even use adb to connect my phone.

fxzxmicah avatar Oct 21 '24 11:10 fxzxmicah

Same here

Fedora 40, usbguard usbguard-selinux usbguard-notifier installed

Phone is a Google Pixek 6a with GrapheneOS

When connecting, it always shows up as a new device which I need to allow. Same for every usb mode, which also always appears as a new device.

I assume that this is because of some form of randomization which would be needed turned off.

https://discuss.grapheneos.org/d/17175

secretmango avatar Nov 07 '24 23:11 secretmango

I have found the solution

The usbguard-notify prompt seems to be a temporary allowance. Only the initial setup allows the devices permanently.

Connect your phone with the mode you want.

usbguard list-devices
# for example
usbguard allow-device -p 12

repeat this for every USB mode, i.e. filesharing, webcam, usb tethering

MTP works for me

this also worked for fixing my webcam that is registered as a usb device

secretmango avatar Nov 08 '24 14:11 secretmango