Allow debuggable apps to do skp capture

Change-Id: Ibb56887b28eb8260bf2ca0b38dbe78233e9cfaf4
Fixes: 74086676
Test: verified can still capture an skp
diff --git a/libs/hwui/Properties.cpp b/libs/hwui/Properties.cpp
index 6cd283a..e9adbdc 100644
--- a/libs/hwui/Properties.cpp
+++ b/libs/hwui/Properties.cpp
@@ -62,6 +62,7 @@
 bool Properties::enableRTAnimations = true;
 
 bool Properties::runningInEmulator = false;
+bool Properties::debuggingEnabled = false;
 
 static int property_get_int(const char* key, int defaultValue) {
     char buf[PROPERTY_VALUE_MAX] = {
@@ -134,8 +135,7 @@
 
     filterOutTestOverhead = property_get_bool(PROPERTY_FILTER_TEST_OVERHEAD, false);
 
-    skpCaptureEnabled = property_get_bool("ro.debuggable", false) &&
-                        property_get_bool(PROPERTY_CAPTURE_SKP_ENABLED, false);
+    skpCaptureEnabled = debuggingEnabled && property_get_bool(PROPERTY_CAPTURE_SKP_ENABLED, false);
 
     runningInEmulator = property_get_bool(PROPERTY_QEMU_KERNEL, false);