diff options
| author | 2012-04-26 09:05:35 -0700 | |
|---|---|---|
| committer | 2012-04-26 09:07:41 -0700 | |
| commit | c7d767ad57a25eeefbbfe2610396d800f04178ed (patch) | |
| tree | af29bc1ddf124b2b9eae33c7e678acf9eacd6953 | |
| parent | 6b8bef64f7ed94a45c1b03f65f4bffb9eba86889 (diff) | |
gldebugger: Allow connections from root user
Change-Id: I26ce670ae93c43bd36843576e824a9d7acea644d
| -rw-r--r-- | opengl/libs/GLES_trace/src/gltrace_transport.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/opengl/libs/GLES_trace/src/gltrace_transport.cpp b/opengl/libs/GLES_trace/src/gltrace_transport.cpp index 5c73456318..157bd24a61 100644 --- a/opengl/libs/GLES_trace/src/gltrace_transport.cpp +++ b/opengl/libs/GLES_trace/src/gltrace_transport.cpp @@ -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; } |