Allow hidl_allocator_default service to set its own prop
This prop is read in its .rc file to stop the service. Otherwise, evertyime the service exits, it is restarted. We don't want it to be `oneshot` because under normal operation, it should be restarted if it exits/crashes. Test: remove kTempHidlSupport && m && launch_cvd Bug: 218588089 Change-Id: I9a4c61778c244a08ff753689604e79168058dd4c
This commit is contained in:
parent
cbfdcc450e
commit
01b91e790d
4 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
hal_macsec_service
|
||||
hal_remotelyprovisionedcomponent_avf_service
|
||||
hal_threadnetwork_service
|
||||
hidl_memory_prop
|
||||
hidraw_device
|
||||
virtual_camera_service
|
||||
ot_daemon_service
|
||||
|
|
|
@ -3,3 +3,6 @@ hal_server_domain(hal_allocator_default, hal_allocator)
|
|||
|
||||
type hal_allocator_default_exec, system_file_type, exec_type, file_type;
|
||||
init_daemon_domain(hal_allocator_default)
|
||||
|
||||
# to force stop the service when it's not supported
|
||||
set_prop(hal_allocator_default, hidl_memory_prop)
|
||||
|
|
|
@ -60,6 +60,7 @@ system_internal_prop(sensors_config_prop)
|
|||
system_internal_prop(hypervisor_pvmfw_prop)
|
||||
system_internal_prop(hypervisor_virtualizationmanager_prop)
|
||||
system_internal_prop(game_manager_config_prop)
|
||||
system_internal_prop(hidl_memory_prop)
|
||||
|
||||
# Properties which can't be written outside system
|
||||
system_restricted_prop(device_config_virtualization_framework_native_prop)
|
||||
|
|
|
@ -233,6 +233,9 @@ servicemanager.ready u:object_r:servicemanager_prop:s0 exact bool
|
|||
# hwservicemanager properties
|
||||
hwservicemanager. u:object_r:hwservicemanager_prop:s0
|
||||
|
||||
# hidl_memory properties to intentionally force a shutdown
|
||||
hidl_memory. u:object_r:hidl_memory_prop:s0
|
||||
|
||||
# Common default properties for vendor, odm, vendor_dlkm, and odm_dlkm.
|
||||
init.svc.odm. u:object_r:vendor_default_prop:s0
|
||||
init.svc.vendor. u:object_r:vendor_default_prop:s0
|
||||
|
|
Loading…
Reference in a new issue