Merge "Allow pulling profiling result files" into main
diff --git a/private/mmd.te b/private/mmd.te
index fec356e..3efb00f 100644
--- a/private/mmd.te
+++ b/private/mmd.te
@@ -33,3 +33,7 @@
# Allow mmd to write to statsd socket.
unix_socket_send(mmd, statsdw, statsd)
+# Allow mmd to interact with statsd binder calls for pulled atoms.
+allow mmd stats_service:service_manager find;
+allow mmd statsmanager_service:service_manager find;
+binder_call(mmd, statsd)
diff --git a/private/statsd.te b/private/statsd.te
index 3db5c60..acc3aa6 100644
--- a/private/statsd.te
+++ b/private/statsd.te
@@ -98,6 +98,10 @@
allow statsd mediaserver_service:service_manager find;
binder_call(statsd, mediaserver)
+# Allow statsd to interact with mmd
+allow statsd mmd_service:service_manager find;
+binder_call(statsd, mmd)
+
# Allow logd access.
read_logd(statsd)
control_logd(statsd)