summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2014-01-15 03:22:22 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-01-15 03:22:22 +0000
commit39e63b53bc13de85afbf91bc1f50a724d4d43630 (patch)
tree74ba9cef78d4ac20c10d165811082b4a1307e131 /adb
parentef53917406e90bc7620e036083e4d50b5cbb201e (diff)
parent42acb5314c8fb01f426e946392c248fde3371aff (diff)
downloadsystem_core-39e63b53bc13de85afbf91bc1f50a724d4d43630.zip
system_core-39e63b53bc13de85afbf91bc1f50a724d4d43630.tar.gz
system_core-39e63b53bc13de85afbf91bc1f50a724d4d43630.tar.bz2
am 42acb531: Merge "Remove obsolete vdc call." into klp-modular-dev
* commit '42acb5314c8fb01f426e946392c248fde3371aff': Remove obsolete vdc call.
Diffstat (limited to 'adb')
-rw-r--r--adb/adb.c3
-rw-r--r--adb/services.c15
2 files changed, 2 insertions, 16 deletions
diff --git a/adb/adb.c b/adb/adb.c
index 41270f9..66e4953 100644
--- a/adb/adb.c
+++ b/adb/adb.c
@@ -1335,12 +1335,11 @@ int adb_main(int is_daemon, int server_port)
** AID_NET_BT and AID_NET_BT_ADMIN to diagnose bluetooth (hcidump)
** AID_SDCARD_R to allow reading from the SD card
** AID_SDCARD_RW to allow writing to the SD card
- ** AID_MOUNT to allow unmounting the SD card before rebooting
** AID_NET_BW_STATS to read out qtaguid statistics
*/
gid_t groups[] = { AID_ADB, AID_LOG, AID_INPUT, AID_INET, AID_GRAPHICS,
AID_NET_BT, AID_NET_BT_ADMIN, AID_SDCARD_R, AID_SDCARD_RW,
- AID_MOUNT, AID_NET_BW_STATS };
+ AID_NET_BW_STATS };
if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) {
exit(1);
}
diff --git a/adb/services.c b/adb/services.c
index 95cd7d0..be0cc72 100644
--- a/adb/services.c
+++ b/adb/services.c
@@ -116,23 +116,10 @@ void reboot_service(int fd, void *arg)
{
char buf[100];
char property_val[PROPERTY_VALUE_MAX];
- int pid, ret;
+ int ret;
sync();
- /* Attempt to unmount the SD card first.
- * No need to bother checking for errors.
- */
- pid = fork();
- if (pid == 0) {
- /* ask vdc to unmount it */
- execl("/system/bin/vdc", "/system/bin/vdc", "volume", "unmount",
- getenv("EXTERNAL_STORAGE"), "force", NULL);
- } else if (pid > 0) {
- /* wait until vdc succeeds or fails */
- waitpid(pid, &ret, 0);
- }
-
ret = snprintf(property_val, sizeof(property_val), "reboot,%s", (char *) arg);
if (ret >= (int) sizeof(property_val)) {
snprintf(buf, sizeof(buf), "reboot string too long. length=%d\n", ret);