Add lmkd. property policies
lmkd.reinit property allows vendors to trigger lmkd reinitialization. Add lmkd_prop to support lmkd.* properties inlcuding lmkd.reinit. Bug: 155149944 Test: setprop lmkd.reinit 1 Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: I6ba598bad7ebb40fd6f23de473f25f32e53c996d
This commit is contained in:
parent
d66fc4909f
commit
b221e66301
5 changed files with 9 additions and 0 deletions
|
@ -75,6 +75,7 @@
|
|||
mirror_data_file
|
||||
light_service
|
||||
linkerconfig_file
|
||||
lmkd_prop
|
||||
media_variant_prop
|
||||
metadata_bootstat_file
|
||||
mnt_pass_through_file
|
||||
|
|
|
@ -4,3 +4,8 @@ init_daemon_domain(lmkd)
|
|||
|
||||
# Set sys.lmk.* properties.
|
||||
set_prop(lmkd, system_lmk_prop)
|
||||
|
||||
# Set lmkd.* properties.
|
||||
set_prop(lmkd, lmkd_prop)
|
||||
|
||||
neverallow { -init -lmkd -vendor_init } lmkd_prop:property_service set;
|
||||
|
|
|
@ -440,6 +440,7 @@ ro.lmk.thrashing_limit u:object_r:exported3_default_prop:s0 exact int
|
|||
ro.lmk.thrashing_limit_decay u:object_r:exported3_default_prop:s0 exact int
|
||||
ro.lmk.use_minfree_levels u:object_r:exported3_default_prop:s0 exact bool
|
||||
ro.lmk.upgrade_pressure u:object_r:exported3_default_prop:s0 exact int
|
||||
lmkd.reinit u:object_r:lmkd_prop:s0 exact int
|
||||
|
||||
ro.media.xml_variant.codecs u:object_r:media_variant_prop:s0 exact string
|
||||
ro.media.xml_variant.codecs_performance u:object_r:media_variant_prop:s0 exact string
|
||||
|
|
|
@ -143,6 +143,7 @@ system_public_prop(exported_system_radio_prop)
|
|||
system_public_prop(exported_wifi_prop)
|
||||
system_public_prop(sota_prop)
|
||||
system_public_prop(hwservicemanager_prop)
|
||||
system_public_prop(lmkd_prop)
|
||||
system_public_prop(logd_prop)
|
||||
system_public_prop(logpersistd_logging_prop)
|
||||
system_public_prop(log_prop)
|
||||
|
|
|
@ -226,6 +226,7 @@ set_prop(vendor_init, exported2_system_prop)
|
|||
set_prop(vendor_init, exported3_default_prop)
|
||||
set_prop(vendor_init, exported3_radio_prop)
|
||||
set_prop(vendor_init, incremental_prop)
|
||||
set_prop(vendor_init, lmkd_prop)
|
||||
set_prop(vendor_init, logd_prop)
|
||||
set_prop(vendor_init, log_tag_prop)
|
||||
set_prop(vendor_init, log_prop)
|
||||
|
|
Loading…
Reference in a new issue