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

MTP not working #30

Closed
kimmoli opened this issue Dec 4, 2016 · 3 comments
Closed

MTP not working #30

kimmoli opened this issue Dec 4, 2016 · 3 comments

Comments

@kimmoli
Copy link
Owner

kimmoli commented Dec 4, 2016

Propably due permissions issue.

/dev/mtp is shell:shell

On 2.0.2.x it was still root:mtp

By manually changing permissions to root:mtp (and mode to 660) PC recognizes mtp, but can not connect, as the additional endpoints ep1,ep2,ep3 are created also as shell:shell

(or something like that)

@kimmoli
Copy link
Owner Author

kimmoli commented Dec 4, 2016

This fix
mer-hybris/droid-hal-device@dd9ce1e
fixes usb-ffs/adb mounting problem.

which for still unknwon reason breaks mounting of /dev/mtp

workaround is to break usb-ffs/adb again by disabling mounting of it:

rm /etc/systemd/system/local-fs.target.wants/dev-usb\\x2dffs-adb.mount

usb-ffs/adb has options uid=2000,gid=2000

If i run systemctl start dev-usb\\x2dffs-adb.mount manually

# ll /dev/usb-ffs/adb/
total 0
-rw-rw---- 1 root mtp 0 Jan 11  1971 ep0
-rw-rw---- 1 root mtp 0 Dec  4 15:40 ep1
-rw-rw---- 1 root mtp 0 Dec  4 15:40 ep2
-rw-rw---- 1 root mtp 0 Dec  4 15:40 ep3

It gets options used for mtp mount...

@kimmoli
Copy link
Owner Author

kimmoli commented Dec 4, 2016

@kimmoli
Copy link
Owner Author

kimmoli commented Dec 6, 2016

@kimmoli kimmoli added the merged label Dec 6, 2016
@kimmoli kimmoli closed this as completed Dec 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant