Grant dalvik_dynamic_prop access to power HAL

Currently vendors need to write dex2oat property from power HAL for
performance but vendors should workaround it with init rc scripts. This
allows power HAL to write such properties directly, without workaround.

Bug: 163539793
Test: boot
Change-Id: I1812c577cb11d24d924d32cdab40594c0eb72d52
This commit is contained in:
Inseob Kim 2024-05-23 16:12:32 +09:00
parent 42598a96ba
commit 179c2c9671
2 changed files with 12 additions and 0 deletions

View file

@ -7,3 +7,6 @@ hal_attribute_service(hal_power, hal_power_service)
binder_call(hal_power_server, servicemanager)
binder_call(hal_power_client, servicemanager)
# power HAL sets dex2oat performance tuning properties
set_prop(hal_power_server, dalvik_dynamic_config_prop)

View file

@ -357,8 +357,17 @@ compatible_property_only(`
-nfc_prop
-powerctl_prop
-radio_prop
-dalvik_dynamic_config_prop
}:file no_rw_file_perms;
neverallow {
domain
-coredomain
-appdomain
-vendor_init
-hal_power_server
} dalvik_dynamic_config_prop:file no_rw_file_perms;
neverallow {
domain
-coredomain