diff options
author | Siva Velusamy <vsiva@google.com> | 2012-11-20 13:39:57 -0800 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2012-11-20 13:39:57 -0800 |
commit | 6482fa4db0a7ac99cd3503d6bf170f80b26fb695 (patch) | |
tree | 28e1dfc03cb37d47be83f31b70b985fb7c6b1caa /opengl/libs | |
parent | 588bb086f77f612fd182f8b7ff29cfe171065330 (diff) | |
download | frameworks_native-6482fa4db0a7ac99cd3503d6bf170f80b26fb695.zip frameworks_native-6482fa4db0a7ac99cd3503d6bf170f80b26fb695.tar.gz frameworks_native-6482fa4db0a7ac99cd3503d6bf170f80b26fb695.tar.bz2 |
gltrace: Make sure device is debuggable.
Change-Id: Icc22ff823a2f56733b232b927dd1fa494e9e1e81
Diffstat (limited to 'opengl/libs')
-rw-r--r-- | opengl/libs/EGL/egl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index 9e303cf..d46f83b 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -124,6 +124,12 @@ void initEglTraceLevel() { void initEglDebugLevel() { int propertyLevel = 0; char value[PROPERTY_VALUE_MAX]; + + // check system property only on userdebug or eng builds + property_get("ro.debuggable", value, "0"); + if (value[0] == '0') + return; + property_get("debug.egl.debug_proc", value, ""); if (strlen(value) > 0) { long pid = getpid(); |