Fix MANAGE_EXTERNAL_STORAGE permission gid mapping

In Android R, we introduced a platform.xml based
mapping. Unfortunately, it only worked for signature|preinstalled
apps.

To support apps granted the appop (via special app access
permissions), we now check the permission and appop grant state
explicitly and grant the app the external_storage gid appropriately

Test: Manual
Bug: 165515144

Change-Id: Ib91e1b3a7e54ac2c83fb1d94446bed06fd44bcf6
This commit is contained in:
Zim
2021-03-17 11:59:22 +00:00
parent 9b182c69f3
commit 782dc19e95
5 changed files with 48 additions and 6 deletions

View File

@@ -60,10 +60,6 @@
<group gid="log" />
</permission>
<permission name="android.permission.MANAGE_EXTERNAL_STORAGE" >
<group gid="external_storage" />
</permission>
<permission name="android.permission.ACCESS_MTP" >
<group gid="mtp" />
</permission>