am a9a4cd48: gltrace: Make sure device is debuggable.

* commit 'a9a4cd4806ea5b2cf525c8ab4c6604d78c6e3f8f':
  gltrace: Make sure device is debuggable.
This commit is contained in:
Siva Velusamy 2012-11-20 19:59:23 -08:00 committed by Android Git Automerger
commit c859084ca3

View File

@ -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();