* commit 'c859084ca303ca1ab69bdc78f864d39c9c81ab0b': gltrace: Make sure device is debuggable.
This commit is contained in:
commit
0e34af6284
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user