From 6111f0cfc8b5559d4c3b401e490593763bb0204f Mon Sep 17 00:00:00 2001 From: Ryan Savitski Date: Tue, 5 Apr 2022 02:50:40 +0100 Subject: [PATCH] allow system_app domain to be profiled An example app in this domain is com.android.settings. This was an accidental omission from https://r.android.com/1966610. Context and rationale remain the same as for that patch, please see the bug. Tested: both traced_perf and heapprofd successfully profiled the settings app with the right additional profileability permissions on a user build (beta candidate). Bug: 217368496 Change-Id: Id8a9e16dab7774f8840cdd6b74d59f70584b5156 --- private/system_app.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/private/system_app.te b/private/system_app.te index 77cca3d01..01956f4ab 100644 --- a/private/system_app.te +++ b/private/system_app.te @@ -176,6 +176,10 @@ get_prop(system_app, oem_unlock_prop) # Allow system apps to act as Perfetto producers. perfetto_producer(system_app) +# TODO(b/217368496): remove this. +can_profile_heap(system_app) +can_profile_perf(system_app) + ### ### Neverallow rules ###