Restrict hidden file visibility to apps

Hidden files will be accessible by app that created it, and apps that
have MANAGE_EXTERNAL_STORAGE. Hidden files will not be visible to other
apps, when accessed via FUSE operations or ContentResolver operations.
This is achieved by marking MEDIA_TYPE of hidden files as
MEDIA_TYPE_NONE and restricting the access of MEDIA_TYPE_NONE to owner
package and file managers.

Added additional where clause in query builder to match shared owner
packages when querying for MEDIA_TYPE_NONE with mime type as image,
video or audio.

Test: atest FuseDaemonHostTest#testQueryOtherAppsFiles
Test: atest
FuseDaemonHostTest#testManageExternalStorageQueryOtherAppsFile
Test: atest FuseDaemonHostTest#testSystemGalleryQueryOtherAppsFiles
Bug: 148585977, 151135996

Change-Id: Ieba4ebe89da9c110fd681a8359f16888e2ff2d5b
2 files changed