pixelstats-vendor: Add permissions to talk to stats HAL

Bug: 117826269
Test: No permission denied messages from pixelstats-vendor
Change-Id: I0df3a6d450ce2910268e51ab49936d5bca2620f7
Signed-off-by: Maggie White <maggiewhite@google.com>
(cherry picked from commit c76c1aa7a3f7a8c883ed0b31544122d46c5d6b4f)
diff --git a/vendor/google/pixelstats.te b/vendor/google/pixelstats.te
index 557b553..307f128 100644
--- a/vendor/google/pixelstats.te
+++ b/vendor/google/pixelstats.te
@@ -8,3 +8,5 @@
 hal_server_domain(pixelstats_system, hal_pixelstats)
 init_daemon_domain(pixelstats_system)
 type pixelstats_system_exec, system_file_type, exec_type, file_type;
+
+unix_socket_send(pixelstats_system, statsdw, statsd)
diff --git a/vendor/google/pixelstats_vendor.te b/vendor/google/pixelstats_vendor.te
index 44c1957..0344519 100644
--- a/vendor/google/pixelstats_vendor.te
+++ b/vendor/google/pixelstats_vendor.te
@@ -9,6 +9,9 @@
 allow pixelstats_vendor hal_pixelstats_hwservice:hwservice_manager find;
 binder_call(pixelstats_vendor, pixelstats_system)
 
+allow pixelstats_vendor fwk_stats_hwservice:hwservice_manager find;
+binder_call(pixelstats_vendor, statsd)
+
 unix_socket_connect(pixelstats_vendor, chre, chre)
 
 allow pixelstats_vendor sysfs_scsi_devices_0000:file rw_file_perms;