From b3ef03951cecf4515d0cba759fb1b94c34111adc Mon Sep 17 00:00:00 2001 From: Robin Lee Date: Fri, 25 Apr 2014 15:16:02 +0100 Subject: [PATCH] Add new AID shared by all apps in a profile Automatically assigned as a GID to all apps running under the same Android profile. Used for exposing to or sharing files with apps running in a specific profile. Analogous to AID_SHARED_GID only the sharing is between processes with the same userId rather than with the same appId. The name to be displayed for uids/gids with this AID is 'u*_everyone'. Change-Id: I46efb749f74cb86868c5609a0ce1a6aab2f9e9c9 --- include/private/android_filesystem_config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h index d662107ed..61a7243d7 100644 --- a/include/private/android_filesystem_config.h +++ b/include/private/android_filesystem_config.h @@ -93,6 +93,7 @@ #define AID_NET_BW_ACCT 3007 /* change bandwidth statistics accounting */ #define AID_NET_BT_STACK 3008 /* bluetooth: access config files */ +#define AID_EVERYBODY 9997 /* shared between all apps in the same profile */ #define AID_MISC 9998 /* access to misc storage */ #define AID_NOBODY 9999 @@ -167,6 +168,7 @@ static const struct android_id_info android_ids[] = { { "net_bw_acct", AID_NET_BW_ACCT, }, { "net_bt_stack", AID_NET_BT_STACK, }, + { "everybody", AID_EVERYBODY, }, { "misc", AID_MISC, }, { "nobody", AID_NOBODY, }, };