Only allow extra_guardrails for domains that can connect to heapprofd.
Always load perfetto_hprof plugin for system server, as it does not have
a manifest. The android_mallopt call marking it as profileable comes too
late for plugin initialization, so we have to hardcode here.
Test: flash user device
allow systemui to use central heapprofd
make system_server perfetto producer
profile systemui with extra guardrails -> success
profile sys_srv without extra guardrails -> success
profile sys_srv with extra guardrails -> rejected
Bug: 151140716
Change-Id: Icb8b70139eabca19838f0b122cc62af6b7c5a6ab
2 files changed