Allow Perfetto's traced daemon to set debug sysprops
This is required for the android.sdk_sysprop_guard data source
implemented in traced's builtin producers to set the system properties
that guard Skia's inititialization of the Perfetto SDK and track_event
data source in SurfaceFlinger/RenderEngine and HWUI apps.
Bug: 279614916
Test: presubmit?
Change-Id: Ia04014336e86672e54c21883533afe70fcb83e84
diff --git a/private/traced.te b/private/traced.te
index fc75239..d4e5bec 100644
--- a/private/traced.te
+++ b/private/traced.te
@@ -52,6 +52,11 @@
userdebug_or_eng(`system_server_tmpfs')
}:file { getattr map read write };
+# Allow setting debug properties which guard initialization of the Perfetto SDK
+# in SurfaceFlinger and HWUI's copy of Skia.
+# Required for the android.sdk_sysprop_guard data source.
+# TODO(b/281329340): remove this when no longer needed.
+set_prop(traced, debug_prop)
# Allow traced to notify Traceur when a trace ends by setting the
# sys.trace.trace_end_signal property.
set_prop(traced, system_trace_prop)