This app was mentioned in 15 comments, with an average of 3.40 upvotes
You are kidding me that tasker have this funciona natively.
Aaaaand it doesn't work. Tried leaving the file path blank, using the magnifying glass to select the entire folder, putting the full file path and etc. The task turns green for a little while and then go to the next one with no errors, but nothing changes.
I also tried this app that didn't work
https://play.google.com/store/apps/details?id=net.zhuoweizhang.scanmediaplz
Tried both adb wifi and shell commands, tried app intents.
Tried logcat to see what a 800kb app was doing when saving a video to storage that correctly is updated on media storage, and got this result. I used this as parameters for shell, adb wifi, app intents, doesn't work for some reason sad noises.
I got a workaround that was using the move file action to rename the new video to the original's name. It appears on gallery and photos normally although they think it still is h264 for a few hours until media scanner does it thing.
Any ideias how I could get it working the normal way ? Seems like a useful thing to know
alternatively, just use this app
https://play.google.com/store/apps/details?id=net.zhuoweizhang.scanmediaplz&hl=en_US
this app tells Android to refresh it's media store (which is what happens when you restart your phone.
Just install this and run every time when you copy files over to the network. It might take a while for new files to show up but it does the job.
https://play.google.com/store/apps/details?id=net.zhuoweizhang.scanmediaplz
You have to refresh/update MediaStorage data after delete that file. This app can do that (tested on my mother's phone. But for images). Just install and tap it. There's no user interface. Wait few moments then restart your phone.
If the problem still persists, I suggest you to use another music player. I used BlackPlayer app instead of Google Play Music. On BlackPlayer, go to Settings >> Metadata >> BlackPlayer Library Settings >> Manually select folders. Then checklist your music folders there. Your music files should now listed on the music library.
I'm using this app as a temporary solution. It forces a media storage scan every time you open it. It's a bit annoying to have to press it every time I want to send something through WhatsApp but it's definitely better than accessing the picture through a file manager and sharing from there.
https://play.google.com/store/apps/details?id=net.zhuoweizhang.scanmediaplz
Like I said try force scanning the media.
Here you go: https://play.google.com/store/apps/details?id=net.zhuoweizhang.scanmediaplz
If that doesn't work, sorry.
I use this https://play.google.com/store/apps/details?id=net.zhuoweizhang.scanmediaplz with a simple "launch app" and everything works just fine :)
There are apps that can trigger a media scan. https://play.google.com/store/apps/details?id=net.zhuoweizhang.scanmediaplz