This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Adding / Removing files on Mass Storage, keeping OS in sync

Hi All,

I need to use 4.1.2 on mass storage mode, which I have been able to configure. However I have some trouble syncing files added to the mass storage device with the Android file system, for example:


I add a (non media) file to the mass storage area over USB. I can see the file through the shell commands at /storage/sdcard0/ but when trying to access this file from an application, the file is not visible unless I restart the system.


The same is true if I delete a file - the file is gone but the application still sees the file until the system is restarted.


I understand there is some caching taking place. Can anyone suggest how to rescan this cache without a full restart?

Many Thanks

Richard