just wanted to add that MTP file operations are spotty at best,
expect some fail file operations, sometimes files/folders don't copy, delete...
The problem is basically that Google decided to restrict file operations
over USB between your PC and Android phone/tablet for reason that
user may inadvertently delete or copy systems files on Android.
So google basically limited which files could be copied and to which folders.
MTP ( media transfer protocol ) only allows media type files transfer over USB,
such as music files, movie files, playlists, pictures, pdfs, ringtones
and they devises a non block way to transfer them, which created reliability
+ If files operations don't work at all then I found what helped was this:
- unmount Android in linux
- android -> settings -> developer options -> toggle Developer options off and then back on ->
enable USB debugging and Stay awake -> get out of settings
( sometimes android gets stuck )
- mount Android in linux
- try file transfer
I red up on it here:
Media Transfer Protocol - Wikipedia, the free encyclopedia
Wubble : Native gvfs backend for MTP devices
there are several LINUX implementations:
I implemented MTPFS, which is the first on in the list.
Like I said the problems are:
- need to constantly refresh file manager in linux to see if file copied
- sometimes folders and files don't delete
- sometimes files don't copy
To make sure files are copied, open any file manager in Android and verify that
files are actually there...
for instance mp3 files only copy to /Music folder
if you try to copy mp3 files into any other folder the android will automatically
transfer them into /Music folder, what the f...?
.nomedia file placed in custom folder - does not work...
looks like MTP method basically identifies type of file being copied on the fly and
does not allow it to be copied to custom folders...
AirDroid or SSHDroid file transfer methods did not work better for me...
that tells me it's all about mtp protocol
That's sort of micro management on behalf of Google, makes it harder on the user.
It's a mess...