Allow boot color propagation

Allows SystemUI to write the boot color sysprop

Test: manual
Bug: 190093578
Change-Id: I215d92ee57240b74ce2636a67d0efd6f57cc9a30
Merged-In: I215d92ee57240b74ce2636a67d0efd6f57cc9a30
diff --git a/bonito-sepolicy.mk b/bonito-sepolicy.mk
index 6765e0c..b64d847 100644
--- a/bonito-sepolicy.mk
+++ b/bonito-sepolicy.mk
@@ -8,6 +8,9 @@
 BOARD_VENDOR_SEPOLICY_DIRS += device/google/bonito-sepolicy/vendor/verizon
 BOARD_VENDOR_SEPOLICY_DIRS += device/google/bonito-sepolicy/tracking_denials
 
+# system_ext
+SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/google/bonito-sepolicy/system_ext/private
+
 # Pixel-wide policy
 BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/ramdump/common
 BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/powerstats
diff --git a/system_ext/private/platform_app.te b/system_ext/private/platform_app.te
new file mode 100644
index 0000000..10d6bba
--- /dev/null
+++ b/system_ext/private/platform_app.te
@@ -0,0 +1,2 @@
+# allow systemui to set boot animation colors
+set_prop(platform_app, bootanim_system_prop);
diff --git a/system_ext/private/property_contexts b/system_ext/private/property_contexts
new file mode 100644
index 0000000..abcdd41
--- /dev/null
+++ b/system_ext/private/property_contexts
@@ -0,0 +1,5 @@
+# Boot animation dynamic colors
+persist.bootanim.color1     u:object_r:bootanim_system_prop:s0     exact    int
+persist.bootanim.color2     u:object_r:bootanim_system_prop:s0     exact    int
+persist.bootanim.color3     u:object_r:bootanim_system_prop:s0     exact    int
+persist.bootanim.color4     u:object_r:bootanim_system_prop:s0     exact    int