mmd: add mmd_shared_status_prop
mmd.enabled_aconfig will be referenced by vendor_init at aosp/3472228.
mmd continue to be the only writer of mmd.enabled_aconfig.
Bug: 393481329
Test: manual
Change-Id: I54cbd0cbb948676fca4c885fedc7abcbe8ce8af9
diff --git a/private/mmd.te b/private/mmd.te
index 1c0eca1..9a76909 100644
--- a/private/mmd.te
+++ b/private/mmd.te
@@ -6,6 +6,7 @@
init_daemon_domain(mmd)
# Set mmd.enabled_aconfig and zram backing device size.
+set_prop(mmd, mmd_shared_status_prop)
set_prop(mmd, mmd_status_prop)
get_prop(mmd, mmd_prop)
get_prop(mmd, device_config_mmd_native_prop)
diff --git a/private/property.te b/private/property.te
index cd87e7a..a2948eb 100644
--- a/private/property.te
+++ b/private/property.te
@@ -86,6 +86,7 @@
system_restricted_prop(device_config_virtualization_framework_native_prop)
system_restricted_prop(fstype_prop)
system_restricted_prop(log_file_logger_prop)
+system_restricted_prop(mmd_shared_status_prop)
system_restricted_prop(persist_sysui_builder_extras_prop)
system_restricted_prop(persist_sysui_ranking_update_prop)
system_restricted_prop(page_size_prop)
diff --git a/private/property_contexts b/private/property_contexts
index d80931c..8903291 100644
--- a/private/property_contexts
+++ b/private/property_contexts
@@ -1823,5 +1823,5 @@
# Properties for mmd
mmd. u:object_r:mmd_prop:s0
mmd.zram.enabled u:object_r:mmd_shared_prop:s0 exact bool
-mmd.enabled_aconfig u:object_r:mmd_status_prop:s0 exact bool
+mmd.enabled_aconfig u:object_r:mmd_shared_status_prop:s0 exact bool
mmd.status. u:object_r:mmd_status_prop:s0
diff --git a/private/vendor_init.te b/private/vendor_init.te
index 60962d4..939bcc0 100644
--- a/private/vendor_init.te
+++ b/private/vendor_init.te
@@ -316,6 +316,7 @@
get_prop(vendor_init, boot_status_prop)
get_prop(vendor_init, exported3_system_prop)
+get_prop(vendor_init, mmd_shared_status_prop)
get_prop(vendor_init, ota_prop)
get_prop(vendor_init, power_debug_prop)
get_prop(vendor_init, provisioned_prop)