From 6a3075c78287ea5a7ee7a3c85cde58e894350822 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Mon, 25 May 2009 13:52:00 -0400 Subject: [PATCH] adb: Add adbd to the AID_SDCARD_RW group to allow writing to the SD card. Signed-off-by: Mike Lockwood --- adb/adb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adb/adb.c b/adb/adb.c index 6e170aeba..203e7d29e 100644 --- a/adb/adb.c +++ b/adb/adb.c @@ -875,9 +875,10 @@ int adb_main(int is_daemon) ** AID_INET to diagnose network issues (netcfg, ping) ** AID_GRAPHICS to access the frame buffer ** AID_NET_BT and AID_NET_BT_ADMIN to diagnose bluetooth (hcidump) + ** AID_SDCARD_RW to allow writing to the SD card */ gid_t groups[] = { AID_ADB, AID_LOG, AID_INPUT, AID_INET, AID_GRAPHICS, - AID_NET_BT, AID_NET_BT_ADMIN }; + AID_NET_BT, AID_NET_BT_ADMIN, AID_SDCARD_RW }; setgroups(sizeof(groups)/sizeof(groups[0]), groups); /* then switch user and group to "shell" */