gltrace: Make sure device is debuggable.
Change-Id: Icc22ff823a2f56733b232b927dd1fa494e9e1e81
This commit is contained in:
parent
588bb086f7
commit
6482fa4db0
@ -124,6 +124,12 @@ void initEglTraceLevel() {
|
|||||||
void initEglDebugLevel() {
|
void initEglDebugLevel() {
|
||||||
int propertyLevel = 0;
|
int propertyLevel = 0;
|
||||||
char value[PROPERTY_VALUE_MAX];
|
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, "");
|
property_get("debug.egl.debug_proc", value, "");
|
||||||
if (strlen(value) > 0) {
|
if (strlen(value) > 0) {
|
||||||
long pid = getpid();
|
long pid = getpid();
|
||||||
|
Loading…
Reference in New Issue
Block a user