diff options
| author | Zim <zezeozue@google.com> | 2021-03-17 11:59:22 +0000 |
|---|---|---|
| committer | Zim <zezeozue@google.com> | 2021-03-17 19:42:18 +0000 |
| commit | 782dc19e95a2bfde833a0803c1d8ab77d047c11c (patch) | |
| tree | 82e83a862b8c7fb4a1303a5ce440d87b79c46330 /core/java/android/os/Process.java | |
| parent | 9b182c69f3452ae8d3e26591242aad6db12bc438 (diff) | |
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
Diffstat (limited to 'core/java/android/os/Process.java')
| -rw-r--r-- | core/java/android/os/Process.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index e75e224d9a6f..65cfef47da2a 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -225,6 +225,12 @@ public class Process { public static final int FSVERITY_CERT_UID = 1075; /** + * GID that gives access to USB OTG (unreliable) volumes on /mnt/media_rw/<vol name> + * @hide + */ + public static final int EXTERNAL_STORAGE_GID = 1077; + + /** * GID that gives write access to app-private data directories on external * storage (used on devices without sdcardfs only). * @hide |
