Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c518080c authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am 9d892a8e: Merge change 2336 into donut

Merge commit '9d892a8e'

* commit '9d892a8e':
  dumpstate: Add to AID_SDCARD_RW group to fix saving bugreports to the SD card.
parents 9db377e3 9d892a8e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@ int main(int argc, char *argv[]) {
    int c, fd, vibrate_fd, fds[2];
    char path[PATH_MAX];
    pid_t   pid;
    gid_t groups[] = { AID_LOG, AID_SDCARD_RW };

    /* set as high priority, and protect from OOM killer */
    setpriority(PRIO_PROCESS, 0, -20);
@@ -207,7 +208,7 @@ int main(int argc, char *argv[]) {
        vibrate_fd = -1;

    /* switch to non-root user and group */
    setgid(AID_LOG);
    setgroups(sizeof(groups)/sizeof(groups[0]), groups);
    setuid(AID_SHELL);

    /* make it safe to use both printf and STDOUT_FILENO */