summaryrefslogtreecommitdiffstats
path: root/opengl/libs/GLES_trace
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2012-04-26 09:05:35 -0700
committerSiva Velusamy <vsiva@google.com>2012-04-26 09:07:41 -0700
commitc7d767ad57a25eeefbbfe2610396d800f04178ed (patch)
treeaf29bc1ddf124b2b9eae33c7e678acf9eacd6953 /opengl/libs/GLES_trace
parent6b8bef64f7ed94a45c1b03f65f4bffb9eba86889 (diff)
downloadframeworks_native-c7d767ad57a25eeefbbfe2610396d800f04178ed.zip
frameworks_native-c7d767ad57a25eeefbbfe2610396d800f04178ed.tar.gz
frameworks_native-c7d767ad57a25eeefbbfe2610396d800f04178ed.tar.bz2
gldebugger: Allow connections from root user
Change-Id: I26ce670ae93c43bd36843576e824a9d7acea644d
Diffstat (limited to 'opengl/libs/GLES_trace')
-rw-r--r--opengl/libs/GLES_trace/src/gltrace_transport.cpp5
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 5c73456..157bd24 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;
}