Join now - be part of our community!

[Bug] File timestamps are lost when copying via MTP or from the internal storage to the SD card

pribambas
Contributor

[Bug] File timestamps are lost when copying via MTP or from the internal storage to the SD card

This is a well-known Android bug that Sony and HTC are known to patch in their devices. But in XZP it's not completely fixed.
In short, there are 2 problems here:
1) MTP doesn't preserve last modified times when copying from a PC to XZP
2) 3'd party apps from Play store cannot change last modified times on SD card (but they can do on the internal storage)

Below is a longer description
1) When I copy a file from my PC to my XZP's internal storage or SD card via MTP, the file loses it's last modified time.
2) When I copy a file from the internal storage to the SD card, it loses it's last modified time. I tested with Total Commander from Play store. It's capable to preserve timestamps. Note that when I copy a file from the SD card back to the internal storage, the timestamp is preserved.

Xperia's 'Move to SD card' moves stuff correctly, no problems with timestamps.
The Documents/Downloads app doen't preserve timestamps anywhere, but it's an app's bug.

Other vendors don't care about timestamps at all.
Sony, please fix these issues. They make it too hard to consistently move or sync my files using MTP or 3'd part apps.
Let me know if you need additional info. Thanks.

6 REPLIES 6
pribambas
Contributor

If I rename or move a file within SD card using a 3'd party app (Total Commander from Google Play, for example), it's last modified time changes to current time after a reboot or remount. This doesn't occur if I rename with the built-in Downloads app, timestamps of renamed/moved files are preserved across reboots in this case. Also there is no problem with renames within the internal storage.

pribambas
Contributor

Sony, I'm waiting for a response from your devs.

pribambas
Contributor

45.0.A.7.137. Nothing changed.

pribambas
Contributor

The oreo update (47.1.A.3.254) fixed a small part of this bug. Now 3d-party apps can preserve timestamps when do copying to the SD card.

What is still broken:

1) Copying to the phone using MTP doesn't preserve timestamps (both for the Internal storage and the SD card)

2) Moving a file to another folder withing SD card changes its timestamp. There is no such issue with the Internal storage. This is the most annoying bug for me.

pribambas
Contributor

47.1.A.5.51. The issue is still the same as described above.

I forgot to note last time that moving a file within the SD card doesn't change its timestamp immediately, the change is reflected after a remount or reboot.

Let's summarize once again.

What works wrong:

1) Copying a file from a PC to the device using MTP doesn't preserve the source timestamp.

2) Moving a file withing the SD card (from one folder to another) changes its timestamp, but the change isn't visible immediately, the SD card has to be remounted (or device has to be rebooted) to see the change.

What is ok (timestamps always preserved):

1) Copying a file from the internal storage to the SD card or vice versa

2) Copying a file within a storage

3) Moving a file within the internal storage

 

I used Total Commander for Android from GPlay for testing.

Please fix this ugly annoying bug that Google can't fix for years.

pribambas
Contributor

Anybody from the support team. Could you escalate the issue?