Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to MTP mobile device. #638

Open
fxzxmicah opened this issue Oct 13, 2024 · 4 comments
Open

Unable to connect to MTP mobile device. #638

fxzxmicah opened this issue Oct 13, 2024 · 4 comments

Comments

@fxzxmicah
Copy link

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
Copy link
Author

usbguard.log

@fxzxmicah
Copy link
Author

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

@secretmango
Copy link

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
Copy link

secretmango commented Nov 8, 2024

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

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

No branches or pull requests

2 participants