[Q] Automatically scan / rebuild / refresh newly added media files

kgtau

Senior Member
Nov 18, 2012
75
6
0
28
HI everyone

I'm using Xperia Z C6603 with rooted stock android 4.4.4 ( 10.5.1.A.0.283 )

so i was copying a file ( mp3 , jpeg ) from my Windows PC with WinSCP to my device External SD Card viaSSHDroid ( SSH Protocol )

then i was noticing , the file that i recently copied to my phone is not automatically scanned in Album nor Walkman app
but i'm pretty sure the file was there , i open up the root explorer ( file manager ) and navigate through the files / folder , and files was there , it can be opened too by walkman or album app via root explorer , trying to force close the album and walkman and try reopening the app still no luck

now the question is , is there a way / terminal command to rebuild / rescan media files that newly added to my device without rebooting it first or without installing additional app ?



Thanks :cowboy:




Regards ,
L
 

androidfreak70

Senior Member
Feb 12, 2014
3,830
653
0
30
here!
HI everyone

I'm using Xperia Z C6603 with rooted stock android 4.4.4 ( 10.5.1.A.0.283 )

so i was copying a file ( mp3 , jpeg ) from my Windows PC with WinSCP to my device External SD Card viaSSHDroid ( SSH Protocol )

then i was noticing , the file that i recently copied to my phone is not automatically scanned in Album nor Walkman app
but i'm pretty sure the file was there , i open up the root explorer ( file manager ) and navigate through the files / folder , and files was there , it can be opened too by walkman or album app via root explorer , trying to force close the album and walkman and try reopening the app still no luck

now the question is , is there a way / terminal command to rebuild / rescan media files that newly added to my device without rebooting it first or without installing additional app ?



Thanks :cowboy:




Regards ,
L
Hi

Open settings and go to apps then navigate to the ALL tap and find Media Storage and clear it's data. Reboot. And wait few minutes. But don't panic if you didn't saw all your media (songs pics) in album and Walkman. Just wait. ;)

TapaTalked from my Xperia™ Z (C660²) running Ultimate PureXZ Ultra!
 
  • Like
Reactions: jdegreef

kgtau

Senior Member
Nov 18, 2012
75
6
0
28
Hi

Open settings and go to apps then navigate to the ALL tap and find Media Storage and clear it's data. Reboot. And wait few minutes. But don't panic if you didn't saw all your media (songs pics) in album and Walkman. Just wait. ;)

TapaTalked from my Xperia™ Z (C660²) running Ultimate PureXZ Ultra!
Thx for the reply

is there another workaround without rebooting the device ?

yeah you know , i mean more quicker method :D

i notice this problem arise in a KitKat , i dont find this kind of thing on Jelly Bean
 

androidfreak70

Senior Member
Feb 12, 2014
3,830
653
0
30
here!
Thx for the reply

is there another workaround without rebooting the device ?

yeah you know , i mean more quicker method :D

i notice this problem arise in a KitKat , i dont find this kind of thing on Jelly Bean
Is it too hard to reboot and wait? Lol...
This is the only way worked for me. The apps didn't changed anything.

TapaTalked from my Xperia™ Z (C660²) running Ultimate PureXZ Ultra!
 

kgtau

Senior Member
Nov 18, 2012
75
6
0
28
Is it too hard to reboot and wait? Lol...
This is the only way worked for me. The apps didn't changed anything.

TapaTalked from my Xperia™ Z (C660²) running Ultimate PureXZ Ultra!
That's the problem i've told before on my first post , i think rebooting the device just for refreshing my music / picture library is so annoying yet wasting time , i'm just too lazy to do it :eek: even my old symbian can do this without rebooting , hahaha

so i've figured out the culprit ( maybe ) is somewhat named android media scanner , but still i need some help to run / trigger this process to run automatically by it's own , since i'm not too familiar with android API's , so far i just know basic & simple linux command , administration & programming for everyday's computing , heheh

i don't know if this just me or what on KK , but on JB , the media scanner runs automatically if i'm not wrong
 

androidfreak70

Senior Member
Feb 12, 2014
3,830
653
0
30
here!
That's the problem i've told before on my first post , i think rebooting the device just for refreshing my music / picture library is so annoying yet wasting time , i'm just too lazy to do it :eek: even my old symbian can do this without rebooting , hahaha

so i've figured out the culprit ( maybe ) is somewhat named android media scanner , but still i need some help to run / trigger this process to run automatically by it's own , since i'm not too familiar with android API's , so far i just know basic & simple linux command , administration & programming for everyday's computing , heheh

i don't know if this just me or what on KK , but on JB , the media scanner runs automatically if i'm not wrong
I didn't said reboot only. I said clear the media storage data in settings. Then reboot. Wait few time and it will be ok and it will work every time without rebooting or anything.

TapaTalked from my Xperia™ Z (C660²) running Ultimate PureXZ Ultra!
 

kgtau

Senior Member
Nov 18, 2012
75
6
0
28
I didn't said reboot only. I said clear the media storage data in settings. Then reboot. Wait few time and it will be ok and it will work every time without rebooting or anything.

TapaTalked from my Xperia™ Z (C660²) running Ultimate PureXZ Ultra!
oh okay , will try it then :)
 

jdegreef

Senior Member
Oct 24, 2013
518
165
73
Brussels
I didn't said reboot only. I said clear the media storage data in settings. Then reboot. Wait few time and it will be ok and it will work every time without rebooting or anything.

TapaTalked from my Xperia™ Z (C660²) running Ultimate PureXZ Ultra!

@androidfreak70
Well this is not true for my Moto G 4G/LTE (xt1039, peregrine) with stock Lollipop 5.1. I have to clear data from media storage and reboot each time I add media, either on the phone itself or external sd card.