Stats: new sepolicy for the AIDL service
This allows the statspixel_vendor communicate with new AIDL IStats service via ServiceManager
Bug: 178859845
Test: Build, flash, and logcat -s "statspixel_vendor"
Change-Id: I2632d018345e47e4b90c97794e5b8a7d91a9b4d9
diff --git a/vendor/google/pixelstats_vendor.te b/vendor/google/pixelstats_vendor.te
index 72065c2..08cedbf 100644
--- a/vendor/google/pixelstats_vendor.te
+++ b/vendor/google/pixelstats_vendor.te
@@ -12,6 +12,9 @@
allow pixelstats_vendor fwk_stats_hwservice:hwservice_manager find;
binder_call(pixelstats_vendor, stats_service_server)
+binder_use(pixelstats_vendor)
+allow pixelstats_vendor fwk_stats_service:service_manager find;
+
unix_socket_connect(pixelstats_vendor, chre, chre)
allow pixelstats_vendor sysfs_scsi_devices_0000:file rw_file_perms;