Joined: Dec 2012
MTP mounts vs USB storage - restrictions
Just got a nexus 4, and tried to copy files from my nexus one to it. Copying the N1 SD data to my linux box was a breeze, but the N4 doesn't offer simple mounting. Shows up as a USB Camera, with only access to DCIM. I was able to find and use mtpfs to mount the device, but even that has some serious limitations.
The software on the phone's end seems to make some decisions for you. I tried copying a mix of files from the N1's Ringtones directory to a Ringtones directory on the N4, and the N4 decided that mp3's belong in the Music directory, etc. I couldn't control where stuff went. Interesting, some flv files that were there went to Ringones, but not the mp3's. At first I thought the mp3's weren't copied at all. I was able to fool this logic by copying to Download on the N4. Anyway, not sure I like the phone making these decisions.
The mtpfs mount didn't allow me to preserve the timestamps on the copied files. I copied a bunch of pictures (cp -p) from the N1's DCIM/Camera folder to the N4's. They all came over with the current date/time. I can see where it'd be a good idea not to allow a usb mount to set the owner or permissions for a file, but the timestamp? Is there a way around this, or is this just a shortcoming of the linux mtpfs implementation?
|02-07-2013, 03:51 PM
Users browsing this thread: 1 Guest(s)