Grant concession for FileManager and SystemGallery

Non-legacy apps have to obey path restrictions while using
RELATIVE_PATH and DISPLAY_NAME for inserting a file to database.
However, FileManager should be allowed to insert files in any directory,
and SystemGallery should be allowed to insert images/videos files in
any existing directory.

Changed ensureFileColumns to allow FileManager to insert file anywhere
and allow system gallery to create images/videos in any existing
directory.

Test: atest FuseDaemonHostTest
Bug: 151076202
Change-Id: I534ac7437281b033afaa28b0c7ab835f6547f4c5
1 file changed