Wire file deletion to go through MediaProvider
Make FuseDaemon call MediaProvider API to delete a file on the app's
behalf instead of going directly to the lower FS.
MediaProvider ensures that apps can't delete files under other apps'
specific directories, and can't delete contributed files unless they
are the owners or they have the right permissions.
In case an app tries to create a file in another app's specific
directory, ENOENT will be returned regardless of whether that file
exists or not (see: b/113074599).
Test: manual and local testing for all of the scenarios mentioned above
Test: b/142926859 - will add CTS tests soon
Bug: 142797468
Bug: 142475473
Change-Id: I4a83b7d93e48619a78f74e4c22d2bcc0b4474020
4 files changed