From 4de27c6a6d56a71a1ca87d1d972cf3cfaa6acf96 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Fri, 2 Dec 2016 14:16:37 -0700 Subject: [PATCH] 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 --- include/private/android_filesystem_config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h index c364317c3..c9e1923c4 100644 --- a/include/private/android_filesystem_config.h +++ b/include/private/android_filesystem_config.h @@ -96,6 +96,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_SHELL 2000 /* adb and debug shell user */ @@ -210,6 +213,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, },