Add file access concessions for apps with MANAGE_EXTERNAL_STORAGE

Allows apps that have MANAGE_EXTERNAL_STORAGE app-op allowed to bypass
FUSE storage access restrictions in MediaProvider.

The check for the app-op is done in the following way:
1) First we check if the app is allowed OP_MANAGE_EXTERNAL_STORAGE
2) If it's MODE_ALLOWED, we grant the file access concessions
3) If it's MODE_DEFAULT, we check MANAGE_EXTERNAL_STORAGE permission and
grant the concessions accordingly
4) Else, we don't grant the concessions

Adds 1 super basic test, but more should follow.

Test: atest FuseDaemonHostTest
Bug: 146778323
Change-Id: I2568e9e577f74421c7894c3fe22252f530b8385e
6 files changed