-
Notifications
You must be signed in to change notification settings - Fork 121
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
When will write access be possible with android-file-transfer-linux ? #307
Comments
Normally it should just work :) try running
I bet you have old Samsung phone, don't you? For some reason they removed google mtp code from it, and replaced it with half-working code. Maybe your phone does not support The reason why jmpts works - they are writing objects in full, so if you write something to the phone, it's always read to RAM first, then send in full. |
configurations: 1 interfaces: 1 Device usb interface: 0:0, index: 0, endpoints: 3 read control 80 06 0300 0000 languages[4]: 00000000: 04 03 09 04 .... read control 80 06 03ee 0409 vendor code: 0x01 your device may be locked or does not have any storage available
This is a Samsung S7, looks like that was Feb 2016. We have some old Samsung ones as well. On the mount I get
Thanks for explaining what
There is some discussion at #306 regarding the permissions issues. Possibly related. ? |
Some extra info ..
So, could the permissions issue be that the system has it connected already ? As a matter of practice and many experiences of using different tools over the years to connect a phone, I have found it is better to NOT respond to any system notification messages AFTER connecting the USB cable. T only respond to any phone prompts, which are usually of the format deny/allow. |
More testing .. So as it was a permissions problem, I ran the GUI and killed all users. The GUI then showed me the phone contents. I then exited the GUI and ran
Now the output is different and it looks like I'm now connected to the 'Phone'
configurations: 1 interfaces: 1 Device usb interface: 0:0, index: 0, endpoints: 3 read control 80 06 0300 0000 languages[4]: 00000000: 04 03 09 04 .... read control 80 06 03ee 0409 vendor code: 0x01 selected storage 65537 SECZ9519043CHOHB Phone Samsung Electronics Co., Ltd. SM-G930F / Galaxy S7 [93%]:Phone> |
Unfortunately, it's not possible to have proper partial writes with your mtp implementation. mtp-mount rewrites entire file from scratch each time, and it's creating O(N^2) load for hw. Is it writing ok using Windows? |
I've had to resort back to
go-mtpfs
, unfortunately.The "read only" and other issues (aft kept crashing today) resulted in trying
go-mtpfs
again. After a bit of fiddling with connecting, it worked and I can once again transfer file TO the phone.So, my question is, if
go-mtpfs
can write to a phone, why can'tandroid-file-transfer-linux
??Some of the issues I had this morning (besides not mounting) were the GUI displayed all the path names from the phone, multiple times. Sometimes even though there were files present in a path, they weren't visible (see #306 )
The text was updated successfully, but these errors were encountered: