rewrite getURLForFile to use FileProvider