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

Galaxy A5 2016 USB reset when trying to mount with simple-mtpfs #47

Closed
vitalif opened this issue Apr 10, 2016 · 8 comments
Closed

Galaxy A5 2016 USB reset when trying to mount with simple-mtpfs #47

vitalif opened this issue Apr 10, 2016 · 8 comments

Comments

@vitalif
Copy link

vitalif commented Apr 10, 2016

Hi! I don't know if this a problem of simple-mtpfs or the phone itself...
But when I'm trying to mount my galaxy A5 2016 (SM-A510F) (stock firmware) with simple-mtpfs, it results in a usb reset O_o.
dmesg from the phone is in the attachment.
mtp_reset.txt

MTP is obviously not mounted after reset, simple-mtpfs says:
LIBMTP PANIC: Trying to dump the error stack of a NULL device!
(this is because the device file in /sys/bus/usb vanishes)

This does not occur when mounting the phone with, for example, jmtpfs or android-file-transfer. But jmtpfs is very buggy and android-file-transfer fails to mount this phone read-write because it says "your device does not have android EditObject extension, mounting read-only".

Maybe it is possible to fix simple-mtpfs?

@phatina
Copy link
Owner

phatina commented Apr 11, 2016

Yes, it resets the device due to certain timeouts I encountered some time ago. See mtp-device.cpp... If this is the problem, I'll happily remove it, if it works correctly nowadays...

@vitalif
Copy link
Author

vitalif commented Apr 11, 2016

Interesting.. after removing both lines with smtpfs_reset_device it works. But why does it work with other phones with resets and does not work with A510F? O_o

@phatina
Copy link
Owner

phatina commented Apr 12, 2016

Once, I have some spare time, I will have a look at this, for sure. Thanks for the heads up.

@jbeich
Copy link

jbeich commented Apr 12, 2016

Can you try libmtp workaround from #37 ?

@vitalif
Copy link
Author

vitalif commented Apr 12, 2016

Yes that's what I've done first :) it doesn't help.

@tenforward
Copy link

I use Sony Xperia X (F5121). I have the same issue. I removed https://github.com/phatina/simple-mtpfs/blob/master/src/simple-mtpfs-mtp-device.cpp#L199, but can't mount. I also removed https://github.com/phatina/simple-mtpfs/blob/master/src/simple-mtpfs-mtp-device.cpp#L153, then work correctly.

@phatina
Copy link
Owner

phatina commented Aug 26, 2016

Thank you guys! With testing and fixes.. I'll push these asap.

@citrin
Copy link

citrin commented Nov 24, 2016

I use Sony Xperia Z2 and can mount MTP only when smtpfs_reset_device on https://github.com/phatina/simple-mtpfs/blob/master/src/simple-mtpfs-mtp-device.cpp#L153 is removed.
smtpfs_reset_device on line 199 can be kept in my case.

mspkg added a commit to mspkg/simple-mtpfs that referenced this issue Mar 4, 2018
Galaxy A5 2016 USB reset when trying to mount with simple-mtpfs
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

5 participants