Page 1 of 1

File movings are often invisible by the phone Gallery

Posted: 2019-01-06, 23:15 UTC
by MVV
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.

Re: File movings are often invisible by the phone Gallery

Posted: 2019-01-07, 14:50 UTC
by ghisler(Author)
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?

Re: File movings are often invisible by the phone Gallery

Posted: 2019-01-17, 07:34 UTC
by MVV
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.

Re: File movings are often invisible by the phone Gallery

Posted: 2019-01-17, 15:45 UTC
by ghisler(Author)
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.

Re: File movings are often invisible by the phone Gallery

Posted: 2019-01-18, 07:37 UTC
by MVV
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...

Re: File movings are often invisible by the phone Gallery

Posted: 2019-01-21, 14:22 UTC
by ghisler(Author)
Sometimes rebooting the phone helps.

Re: File movings are often invisible by the phone Gallery

Posted: 2019-01-22, 08:43 UTC
by MVV
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.

Re: File movings are often invisible by the phone Gallery

Posted: 2019-01-22, 15:24 UTC
by ghisler(Author)
That's really odd: in all my tests - the media database is reloaded when restarting.

Re: File movings are often invisible by the phone Gallery

Posted: 2019-01-25, 09:50 UTC
by MVV
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...

Re: File movings are often invisible by the phone Gallery

Posted: 2019-01-25, 10:05 UTC
by matixx
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?

Re: File movings are often invisible by the phone Gallery

Posted: 2019-01-25, 10:13 UTC
by MVV
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.

Re: File movings are often invisible by the phone Gallery

Posted: 2019-01-28, 14:30 UTC
by ghisler(Author)
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.

Re: File movings are often invisible by the phone Gallery

Posted: 2019-08-13, 12:54 UTC
by AcolmenaresG
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