File movings are often invisible by the phone Gallery

Support for Android version of Total Commander

Moderators: Stefan2, white, sheep, Hacker

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8282
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

File movings are often invisible by the phone Gallery

Post by *MVV » 2019-01-06, 23:15 UTC

I often move files between albums with TC, but often after moving (or copying, or even deleting) files phone's Gallery still shows files in their previous location (even if files are deleted, but in file properties correct new path is shown) and doesn't show files in their new location (I can even create a folder in TC and don't see it in Gallery). As I discovered, there is some media service that keeps some kind of library that caches folder hierarchy... It would be nice if TC could notify that service about file operations, or it would be completely perfect to be able to cause that service to rescan specific folders from TC because not only TC can cause such inconsistency (e.g. managing files from PC sometimes causes it too).

As I discovered, there were some programs for older Android versions that could cause rescan, but it seems that it was changed in latest versions. It is discussed e.g. here, but I don't know if it works. I hope there are people that know this issue better.

I use Samsung Galaxy A320F with Android 8.0 Oreo, and I've never noticed such problems on my old Lenovo A1000 phone with older Android version.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: File movings are often invisible by the phone Gallery

Post by *ghisler(Author) » 2019-01-07, 14:50 UTC

TC does update the media library when copying, moving and deleting files. Maybe there is a certain scenario where it doesn't work? Can you write in detail what you do, including the exact names of the source and target folders?
Author of Total Commander
http://www.ghisler.com

User avatar
MVV
Power Member
Power Member
Posts: 8282
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: File movings are often invisible by the phone Gallery

Post by *MVV » 2019-01-17, 07:34 UTC

I have a standard SD card with DCIM folder in it (/storage/xxxx-xxxx/DCIM if you need mounted path), new photos go to DCIM/Camera folder, when I remove photos from this folder or move them into any other folder within TC, Gallery app is still shows in DCIM/Camera folder (but displays proper path if I open details).
I think that updating media library during file operations (at least for multimedia files or in specific folders) could help to keep my gallery synchronized between Gallery app and real state because it is a real pain that it doesn't show all existing files.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: File movings are often invisible by the phone Gallery

Post by *ghisler(Author) » 2019-01-17, 15:45 UTC

Strange, TC tells Android to update the media database each time it copies or moves files.
You can add a custom button with internal command 130 to force re-load of selected files/folders manually.
Author of Total Commander
http://www.ghisler.com

User avatar
MVV
Power Member
Power Member
Posts: 8282
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: File movings are often invisible by the phone Gallery

Post by *MVV » 2019-01-18, 07:37 UTC

Hm, unfortunately this command doesn't help. I've refreshed entire DCIM folder, but Gallery still shows moved photos in Camera album. I wonder how does Gallery get folder hierarchy...

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: File movings are often invisible by the phone Gallery

Post by *ghisler(Author) » 2019-01-21, 14:22 UTC

Sometimes rebooting the phone helps.
Author of Total Commander
http://www.ghisler.com

User avatar
MVV
Power Member
Power Member
Posts: 8282
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: File movings are often invisible by the phone Gallery

Post by *MVV » 2019-01-22, 08:43 UTC

No, it doesn't help too, I've tried. Ejecting SD-card helps, after re-mounting it phone updates database/cache. But after ejecting SD-card I lost all bindings that are set to audio files on SD-card (global and per-contact ringtones, alarms etc). I've tried to write to Samsung Support, but got no useful answer, just blah-blah-blah reset your phone blah-blah-blah.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: File movings are often invisible by the phone Gallery

Post by *ghisler(Author) » 2019-01-22, 15:24 UTC

That's really odd: in all my tests - the media database is reloaded when restarting.
Author of Total Commander
http://www.ghisler.com

User avatar
MVV
Power Member
Power Member
Posts: 8282
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: File movings are often invisible by the phone Gallery

Post by *MVV » 2019-01-25, 09:50 UTC

I don't know if it is an Android 8.0 issue, or is it an issue of Samsung Experience 9.0 shell... When I move photos within Gallery app, all work fine, when I move photos within Files app (a Samsung app that is integrated into the shell), all work fine too. Perhaps I should test other third-party file managers...

matixx
Power Member
Power Member
Posts: 951
Joined: 2003-03-21, 02:37 UTC
Location: ....
Contact:

Re: File movings are often invisible by the phone Gallery

Post by *matixx » 2019-01-25, 10:05 UTC

ghisler(Author) wrote:
2019-01-17, 15:45 UTC
Strange, TC tells Android to update the media database each time it copies or moves files.
You can add a custom button with internal command 130 to force re-load of selected files/folders manually.
I have the same effect, but it seems a little bit different:

If i use TC for Desktop on Windows 10 and access the DCIM-Folder of my Android Phone and then move files from DCIM Android to D:\folder -->after that the pictures in Android-Gallery are still visible....a few days later they are not present anymore.
I know this is normal but would it be useful or possible to start the gallery scan from TC for Dektop after that action?

User avatar
MVV
Power Member
Power Member
Posts: 8282
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: File movings are often invisible by the phone Gallery

Post by *MVV » 2019-01-25, 10:13 UTC

matixx,
I'm pretty sure that it is impossible to trigger media scanning on the phone via stupid MTP interface which is used for connecting phones to a desktop PCs. But I would be happy to have some working Android-based solution within the phone (like mentioned command 130 if it could work properly on my phone) so I could trigger rescanning from the phone after working with photos from a desktop PC.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: File movings are often invisible by the phone Gallery

Post by *ghisler(Author) » 2019-01-28, 14:30 UTC

You could try accessing the device memory via virtual folder instead of going there via physical directory: The directory is /storage/emulated/0 The virtual folder can be added via "Custom location" button. The problem you describe can happen when physical directory and virtual folder get out of sync.

However, the access from Windows already occurs via virtual folder, so I have no idea how that could cause problems with Gallery, which uses virtual folders too.
Author of Total Commander
http://www.ghisler.com

AcolmenaresG
New Member
New Member
Posts: 1
Joined: 2019-08-13, 12:47 UTC

Re: File movings are often invisible by the phone Gallery

Post by *AcolmenaresG » 2019-08-13, 12:54 UTC

Hello! A similar problem happens to me. I try to copy / move files (music, photos, apps, docs, PDF etc etc.) from my internal storage of the phone to the SD card through the file manager, however, after doing so I leave the files with a weight of 8 bytes When trying to open them, I don't allow it because it says "the file is damaged", I return it to the internal memory and return as if nothing. I have already rectified that it is not my SD problem and it is not like that, since it happens to me with other SDs that I have. It is as if the OS had been damaged and no longer automatically scan the SD card. Have you found any solution?

I've already tried to force media scanning with third-party apps but it doesn't work, it rarely does. The only thing that is working for me at the moment is to disassemble and mount the SD card. How can this problem be solved? android 8.1 Moto G4 plus

Post Reply