diff options
author | Jeff Sharkey <jsharkey@android.com> | 2016-12-03 00:16:37 +0300 |
---|---|---|
committer | osm0sis <osm0sis@outlook.com> | 2016-12-06 20:23:19 +0300 |
commit | fc8157371f1d64b0ea62f58c3d1669cbaa76319d (patch) | |
tree | d05b857064183bb902e1bb0a1abbacde7651676a | |
parent | c41be2ac4e956d0f52fddf0e3703c8746f5c128f (diff) |
Define GIDs for internal media file types.
Currently, all internal media storage files (under /data/media) are
given the same "media_rw" GID. To support an upcoming optimization
to disk usage calculation, this CL defines three new GIDs that can be
used to quickly identify common types: audio, video, and images.
Test: builds
Bug: 27948817
Change-Id: I8548459c3d3ccbf7d822431c6e2ebd1c2e309d70
-rw-r--r-- | private/android_filesystem_config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/private/android_filesystem_config.h b/private/android_filesystem_config.h index 63718c73..f30e0e28 100644 --- a/private/android_filesystem_config.h +++ b/private/android_filesystem_config.h @@ -97,6 +97,9 @@ #define AID_DNS_TETHER 1052 /* DNS resolution daemon (tether: dnsmasq) */ #define AID_WEBVIEW_ZYGOTE 1053 /* WebView zygote process */ #define AID_VEHICLE_NETWORK 1054 /* Vehicle network service */ +#define AID_MEDIA_AUDIO 1055 /* GID for audio files on internal media storage */ +#define AID_MEDIA_VIDEO 1056 /* GID for video files on internal media storage */ +#define AID_MEDIA_IMAGE 1057 /* GID for image files on internal media storage */ /* Changes to this file must be made in AOSP, *not* in internal branches. */ #define AID_THEMEMAN 1300 /* theme manager */ @@ -243,6 +246,9 @@ static const struct android_id_info android_ids[] = { { "dns_tether", AID_DNS_TETHER, }, { "webview_zygote", AID_WEBVIEW_ZYGOTE, }, { "vehicle_network", AID_VEHICLE_NETWORK, }, + { "media_audio", AID_MEDIA_AUDIO, }, + { "media_video", AID_MEDIA_VIDEO, }, + { "media_image", AID_MEDIA_IMAGE, }, { "shell", AID_SHELL, }, { "cache", AID_CACHE, }, |