Allow SurfaceFlinger to talk to statsd bootstrap

This is for logging atoms from the SF process.

Also clean up an sepolicy for the old way SF used to try pushing atoms,
which has not been used.

Bug: 329474645
Test: GraphicsAtomTests
Change-Id: I3ca58ed9d3a4c9799a55936c40969d9844fccf4a
diff --git a/private/surfaceflinger.te b/private/surfaceflinger.te
index f6f1d9b..547cc7c 100644
--- a/private/surfaceflinger.te
+++ b/private/surfaceflinger.te
@@ -135,6 +135,8 @@
 allow surfaceflinger statsmanager_service:service_manager find;
 # TODO(146461633): remove this once native pullers talk to StatsManagerService
 binder_call(surfaceflinger, statsd);
+# Allow pushing atoms to the stats bootstrap atom service
+allow surfaceflinger statsbootstrap_service:service_manager find;
 
 # Allow to use files supplied by hal_evs
 allow surfaceflinger hal_evs:fd use;
@@ -142,10 +144,6 @@
 # Allow to use release fence fds supplied by hal_camera
 allow surfaceflinger hal_camera:fd use;
 
-# Allow pushing jank event atoms to statsd
-userdebug_or_eng(`
-    unix_socket_send(surfaceflinger, statsdw, statsd)
-')
 
 # Surfaceflinger should not be reading default vendor-defined properties.
 dontaudit surfaceflinger vendor_default_prop:file read;