Page 1 of 1

Changing the Properties does not work

Posted: 2018-02-25, 09:02 UTC
by mr108
Hello,

I'm using the latest version 2.8.

I'm trying to change the timestamp of a jpg file by showing the Properties and clicking on Now and then Apply. I'm getting a Warning: Access denied (1x) image.jpg

In the Settings - Application Manager - Total Commander - app permissions the storage is selected.

What else should I do to be able to change the timestamp?

Thanks

Posted: 2018-02-26, 14:47 UTC
by ghisler(Author)
Unfortunarely this is a very longtime Android bug: It's not possible to set/copy the timestamp of files on Android due to missing permissions of the user to set them. Only the root user is allowed to set/copy the timestamp.

Here are the relevant bug reports in the Android bug tracker:

File setLastModified always returns false
https://code.google.com/p/android/issues/detail?id=1992

setLastModified() always fails on Xoom unless running as root
https://code.google.com/p/android/issues/detail?id=18624

File.setLastModified() always returns false on Samsung Galaxy Nexus
https://code.google.com/p/android/issues/detail?id=25460

It works with root rights, but I wouldn't root your device just for this function.