Changing the Properties does not work

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
mr108
New Member
New Member
Posts: 1
Joined: 2018-02-25, 08:50 UTC

Changing the Properties does not work

Post 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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
Post Reply