summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Dupin <dupin@google.com>2021-08-19 23:12:31 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-08-19 23:12:31 +0000
commitea3fed6cfc9d4c59aab73bd52c81a8f5179ad4d9 (patch)
tree52eb4bac1c9dfd72ad2923571de44d6d5797e21d
parentd25d27b314a7b4b2791d074524989389eefaa842 (diff)
parentebde9751d66851fe3f6793eb332ee3fbd1134b52 (diff)
downloadcrosshatch-sepolicy-ea3fed6cfc9d4c59aab73bd52c81a8f5179ad4d9.tar.gz
Allow boot color propagation am: ebde9751d6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/crosshatch-sepolicy/+/15601990 Change-Id: Ie9c5efb32bb04df83557a37d1180dc49075f276d
-rw-r--r--crosshatch-sepolicy.mk3
-rw-r--r--system_ext/private/platform_app.te2
-rw-r--r--system_ext/private/property_contexts5
3 files changed, 10 insertions, 0 deletions
diff --git a/crosshatch-sepolicy.mk b/crosshatch-sepolicy.mk
index 7acee6e..1262c3c 100644
--- a/crosshatch-sepolicy.mk
+++ b/crosshatch-sepolicy.mk
@@ -12,6 +12,9 @@ BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/ramdump/common
# Pixel-wide policies
BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/powerstats
+# system_ext
+SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/google/crosshatch-sepolicy/system_ext/private
+
# vendors for backward compatibility
ifeq ($(PRODUCT_USE_QC_SPECIFIC_SYMLINKS), true)
BOARD_SEPOLICY_DIRS += device/google/crosshatch-sepolicy/vendor/qcom/compat
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