Closed kimmoli closed 7 years ago
This fix https://github.com/mer-hybris/droid-hal-device/commit/dd9ce1e4ce9ff76726894341e0775a9e86b8e003 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...
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)