whoozle / android-file-transfer-linux

Android File Transfer for Linux (and macOS!)
http://whoozle.github.io/android-file-transfer-linux/
GNU Lesser General Public License v2.1
1.46k stars 121 forks source link

File upload not working on Samsung phone #252

Open ioanalexme opened 3 years ago

ioanalexme commented 3 years ago

Hello guys, Great app and framework.

But one question/problem. Trying to run aft-mtp-cliwith a simple file upload (put test-file.png) and the upload starts, but it never finished - it's blocking at 100% and the file is never transferred. Any ideas?

I tested on multiple Samsung phones and macOS 11.0

Output: selected storage 65537 SECZ9519043CHOHB Phone android file transfer for linux version v4.0 Samsung Electronics Co., Ltd. SM-G930F G930FXXS6ESI4 extensions: microsoft.com: 1.0; microsoft.com/WMPPD: 11.0; microsoft.com/WMPPD: 10.0;samsung.com/kies:4.1;samsung.com/devicestatus:0; Samsung Electronics Co., Ltd. SM-G930F / Galaxy S7 [47%]:Phone> put test.png 100% [===============================================] test.png

Thanks!

ioanalexme commented 3 years ago

Actually I got it working with Android File Transfer version 3.9, the file transfer works fine, but the modified date is not present (????-??-?? ??:??:??) when doing a lsext

Here is the output of lsext after running put test.png on the device

2000058 65537 3001 0 20190101T002443. file1 2000061 65537 380b 129610 ????-??-?? ??:??:?? test.png

whoozle commented 3 years ago

Any ideas?

Samsung uses their own MTP implementation for some reasons, so it's hard to say what's going on. Could you try again with cli on 4.x with -v option passed?

whoozle commented 3 years ago

please test 8f643d268ddc64e4c35cb1bf4cb81337c9756921

pezcurrel commented 3 years ago

please test 8f643d2

I have the same problem on a samsung galaxy j5 (SM-J530F), aft 3.9 did work well for me too, 4.0 and 4.1 don't.

whoozle commented 3 years ago

should be fixed after cce42ee2b4d74bfaeff18d65ec6f88ab47b85307 (second case of separate bulk write), current master is working fine with Galaxy S20 I was able to find

pezcurrel commented 3 years ago

should be fixed after cce42ee (second case of separate bulk write), current master is working fine with Galaxy S20 I was able to find

Yes, it is! Thanks a lot! :)