aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-01-10 09:27:56 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-01-10 09:27:56 -0800
commit48b911c573c92742aa80270b734811f722c67c37 (patch)
tree06d15da032c8f350e58505cf036a4193147281bf
parent73334cfab136d405f389f2174c2f86bea3ddb683 (diff)
parentaf7bdc646088e3112052f4fd35061bb720393287 (diff)
downloadsystem_core-48b911c573c92742aa80270b734811f722c67c37.tar.gz
system_core-48b911c573c92742aa80270b734811f722c67c37.tar.bz2
system_core-48b911c573c92742aa80270b734811f722c67c37.zip
am af7bdc64: Add separate permission and group for access to MTP USB driver
* commit 'af7bdc646088e3112052f4fd35061bb720393287': Add separate permission and group for access to MTP USB driver
-rw-r--r--include/private/android_filesystem_config.h2
-rw-r--r--rootdir/ueventd.rc2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h
index 87eaf091..e446fc91 100644
--- a/include/private/android_filesystem_config.h
+++ b/include/private/android_filesystem_config.h
@@ -57,6 +57,7 @@
#define AID_GPS 1021 /* GPS daemon */
#define AID_NFC 1022 /* nfc subsystem */
#define AID_MEDIA_RW 1023 /* internal media storage write access */
+#define AID_MTP 1024 /* MTP USB driver access */
#define AID_SHELL 2000 /* adb and debug shell user */
#define AID_CACHE 2001 /* cache access */
@@ -111,6 +112,7 @@ static const struct android_id_info android_ids[] = {
{ "vpn", AID_VPN, },
{ "keystore", AID_KEYSTORE, },
{ "usb", AID_USB, },
+ { "mtp", AID_MTP, },
{ "gps", AID_GPS, },
{ "inet", AID_INET, },
{ "net_raw", AID_NET_RAW, },
diff --git a/rootdir/ueventd.rc b/rootdir/ueventd.rc
index c0540a78..d343bd46 100644
--- a/rootdir/ueventd.rc
+++ b/rootdir/ueventd.rc
@@ -68,7 +68,7 @@
/dev/qmi1 0640 radio radio
/dev/qmi2 0640 radio radio
/dev/bus/usb/* 0660 root usb
-/dev/mtp_usb 0660 root usb
+/dev/mtp_usb 0660 root mtp
# CDMA radio interface MUX
/dev/ts0710mux* 0640 radio radio