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

Commit 90fe9d0d authored by Siva Velusamy's avatar Siva Velusamy Committed by Android (Google) Code Review
Browse files

Merge "gldebugger: Allow connections from root user" into jb-dev

parents 8e846fd6 c7d767ad
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -75,8 +75,9 @@ int acceptClientConnection(char *sockname) {
        return -1;
    }

    // Only accept connects from the shell (adb forward comes to us as shell user)
    if (cr.uid != AID_SHELL) {
    // Only accept connects from the shell (adb forward comes to us as shell user),
    // or the root user.
    if (cr.uid != AID_SHELL && cr.uid != AID_ROOT) {
        ALOGE("Unknown peer type (%d), expected shell to be the peer", cr.uid);
        return -1;
    }