Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e34af62 authored by Siva Velusamy's avatar Siva Velusamy Committed by Android Git Automerger
Browse files

am c859084c: am a9a4cd48: gltrace: Make sure device is debuggable.

* commit 'c859084c':
  gltrace: Make sure device is debuggable.
parents b171fe9f c859084c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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();