From 93ac1559b8c7ad3125ddcd896082b030faadbbd4 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Thu, 6 May 2010 13:30:09 -0400 Subject: init: Add support for /dev/bus/usb/ file system and add new unix group AID_USB. init now creates files in /dev/bus/usb/ for user access to USB devices. Files are chmod 660 with group AID_USB. Signed-off-by: Mike Lockwood --- include/private/android_filesystem_config.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/private') diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h index 24b7c81..535f98c 100644 --- a/include/private/android_filesystem_config.h +++ b/include/private/android_filesystem_config.h @@ -51,6 +51,7 @@ #define AID_SDCARD_RW 1015 /* external storage write access */ #define AID_VPN 1016 /* vpn system */ #define AID_KEYSTORE 1017 /* keystore subsystem */ +#define AID_USB 1018 /* USB devices */ #define AID_SHELL 2000 /* adb and debug shell user */ #define AID_CACHE 2001 /* cache access */ @@ -100,6 +101,7 @@ static struct android_id_info android_ids[] = { { "sdcard_rw", AID_SDCARD_RW, }, { "vpn", AID_VPN, }, { "keystore", AID_KEYSTORE, }, + { "usb", AID_USB, }, { "inet", AID_INET, }, { "net_raw", AID_NET_RAW, }, { "net_admin", AID_NET_ADMIN, }, -- cgit v1.1