diff options
author | Siva Velusamy <vsiva@google.com> | 2012-11-20 20:01:30 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-11-20 20:01:30 -0800 |
commit | 0e34af6284c258c1dc56670a573ef11a76dda9fe (patch) | |
tree | 88adb837835a868424241a115b62ec893c13d5c1 /opengl | |
parent | b171fe9f47f0082dae55d5a08fe9b379cbd8e33c (diff) | |
parent | c859084ca303ca1ab69bdc78f864d39c9c81ab0b (diff) | |
download | frameworks_native-0e34af6284c258c1dc56670a573ef11a76dda9fe.zip frameworks_native-0e34af6284c258c1dc56670a573ef11a76dda9fe.tar.gz frameworks_native-0e34af6284c258c1dc56670a573ef11a76dda9fe.tar.bz2 |
am c859084c: am a9a4cd48: gltrace: Make sure device is debuggable.
* commit 'c859084ca303ca1ab69bdc78f864d39c9c81ab0b':
gltrace: Make sure device is debuggable.
Diffstat (limited to 'opengl')
-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 96e1cba..0d4bed5 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(); |