1562-Refactor_fileObserver_implementation
Description
Current fileObserver implementation has some bugs (ex: causes mediaProvider to run into infinite loop on applying certain security patch & causes battery drain issue). This MR refactor the fileObserver implementation to resolve these issues.