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
This commit is contained in:
Ryan Savitski 2022-04-05 02:50:40 +01:00
parent aaacfdb054
commit 6111f0cfc8

View file

@ -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
###