From e801a68239396f61751c3f8b94c44636719fc7ec Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 13 Dec 2016 23:47:16 +0000 Subject: [PATCH] Revert "Revert "android_ids: move to bionic"" This reverts commit 7b7a8074e1b949231dd18618a3d4b720c8400c66. Change-Id: Icdc7221af6745084e5a4a28d851d3ad14e2a4ece --- include/private/android_filesystem_config.h | 101 ++------------------ 1 file changed, 6 insertions(+), 95 deletions(-) diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h index c9e1923c4..80802ccfb 100644 --- a/include/private/android_filesystem_config.h +++ b/include/private/android_filesystem_config.h @@ -140,104 +140,15 @@ #define AID_SHARED_GID_START 50000 /* start of gids for apps in each user to share */ #define AID_SHARED_GID_END 59999 /* start of gids for apps in each user to share */ -#if !defined(EXCLUDE_FS_CONFIG_STRUCTURES) /* - * Used in: - * bionic/libc/bionic/stubs.cpp - * external/libselinux/src/android.c - * system/core/logd/LogStatistics.cpp - * system/core/init/ueventd.cpp - * system/core/init/util.cpp + * android_ids has moved to pwd/grp functionality. + * If you need to add one, the structure is now + * auto-generated based on the AID_ constraints + * documented at the top of this header file. + * Also see build/tools/fs_config for more details. */ -struct android_id_info { - const char *name; - unsigned aid; -}; -static const struct android_id_info android_ids[] = { - { "root", AID_ROOT, }, - - { "system", AID_SYSTEM, }, - - { "radio", AID_RADIO, }, - { "bluetooth", AID_BLUETOOTH, }, - { "graphics", AID_GRAPHICS, }, - { "input", AID_INPUT, }, - { "audio", AID_AUDIO, }, - { "camera", AID_CAMERA, }, - { "log", AID_LOG, }, - { "compass", AID_COMPASS, }, - { "mount", AID_MOUNT, }, - { "wifi", AID_WIFI, }, - { "adb", AID_ADB, }, - { "install", AID_INSTALL, }, - { "media", AID_MEDIA, }, - { "dhcp", AID_DHCP, }, - { "sdcard_rw", AID_SDCARD_RW, }, - { "vpn", AID_VPN, }, - { "keystore", AID_KEYSTORE, }, - { "usb", AID_USB, }, - { "drm", AID_DRM, }, - { "mdnsr", AID_MDNSR, }, - { "gps", AID_GPS, }, - // AID_UNUSED1 - { "media_rw", AID_MEDIA_RW, }, - { "mtp", AID_MTP, }, - // AID_UNUSED2 - { "drmrpc", AID_DRMRPC, }, - { "nfc", AID_NFC, }, - { "sdcard_r", AID_SDCARD_R, }, - { "clat", AID_CLAT, }, - { "loop_radio", AID_LOOP_RADIO, }, - { "mediadrm", AID_MEDIA_DRM, }, - { "package_info", AID_PACKAGE_INFO, }, - { "sdcard_pics", AID_SDCARD_PICS, }, - { "sdcard_av", AID_SDCARD_AV, }, - { "sdcard_all", AID_SDCARD_ALL, }, - { "logd", AID_LOGD, }, - { "shared_relro", AID_SHARED_RELRO, }, - { "dbus", AID_DBUS, }, - { "tlsdate", AID_TLSDATE, }, - { "mediaex", AID_MEDIA_EX, }, - { "audioserver", AID_AUDIOSERVER, }, - { "metrics_coll", AID_METRICS_COLL }, - { "metricsd", AID_METRICSD }, - { "webserv", AID_WEBSERV }, - { "debuggerd", AID_DEBUGGERD, }, - { "mediacodec", AID_MEDIA_CODEC, }, - { "cameraserver", AID_CAMERASERVER, }, - { "firewall", AID_FIREWALL, }, - { "trunks", AID_TRUNKS, }, - { "nvram", AID_NVRAM, }, - { "dns", AID_DNS, }, - { "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, }, - { "diag", AID_DIAG, }, - - { "net_bt_admin", AID_NET_BT_ADMIN, }, - { "net_bt", AID_NET_BT, }, - { "inet", AID_INET, }, - { "net_raw", AID_NET_RAW, }, - { "net_admin", AID_NET_ADMIN, }, - { "net_bw_stats", AID_NET_BW_STATS, }, - { "net_bw_acct", AID_NET_BW_ACCT, }, - { "readproc", AID_READPROC, }, - { "wakelock", AID_WAKELOCK, }, - - { "everybody", AID_EVERYBODY, }, - { "misc", AID_MISC, }, - { "nobody", AID_NOBODY, }, -}; - -#define android_id_count \ - (sizeof(android_ids) / sizeof(android_ids[0])) +#if !defined(EXCLUDE_FS_CONFIG_STRUCTURES) struct fs_path_config { unsigned mode;