Define vendor-specific property ro.incremental.enable

[Will cherry-pick to AOSP]

Make ro.incremental.enable a vendor-specific property. Allow
system_server and vold to read this property.

Test: manual
BUG: 155212902
Change-Id: I8ff8837af635fa8e7b5bb02e5f6de5ac15b5023b
Merged-In: I8ff8837af635fa8e7b5bb02e5f6de5ac15b5023b
This commit is contained in:
Songchun Fan 2020-04-28 13:24:54 -07:00
parent f7ba4f4726
commit 916163cf1b
6 changed files with 10 additions and 0 deletions

View file

@ -54,6 +54,7 @@
hal_tv_tuner_hwservice
hal_vibrator_service
incremental_control_file
incremental_prop
incremental_service
init_perf_lsm_hooks_prop
init_svc_debug_prop

View file

@ -249,6 +249,9 @@ persist.sys.userspace_reboot.log. u:object_r:userspace_reboot_log_prop:s0
# history size.
ro.lib_gui.frame_event_history_size u:object_r:bq_config_prop:s0
# Property to enable incremental feature
ro.incremental.enable u:object_r:incremental_prop:s0
# Properties to configure userspace reboot.
init.userspace_reboot.is_supported u:object_r:userspace_reboot_config_prop:s0 exact bool
init.userspace_reboot.sigkill.timeoutmillis u:object_r:userspace_reboot_config_prop:s0 exact int

View file

@ -678,6 +678,9 @@ get_prop(system_server, apk_verity_prop)
# Read wifi.interface
get_prop(system_server, wifi_prop)
# Read the vendor property that indicates if Incremental features is enabled
get_prop(system_server, incremental_prop)
# Create a socket for connections from debuggerd.
allow system_server system_ndebug_socket:sock_file create_file_perms;

View file

@ -117,6 +117,7 @@ system_vendor_config_prop(exported_camera_prop)
system_vendor_config_prop(exported_config_prop)
system_vendor_config_prop(exported_default_prop)
system_vendor_config_prop(exported3_default_prop)
system_vendor_config_prop(incremental_prop)
system_vendor_config_prop(media_variant_prop)
system_vendor_config_prop(storage_config_prop)
system_vendor_config_prop(userspace_reboot_config_prop)

View file

@ -228,6 +228,7 @@ set_prop(vendor_init, exported2_system_prop)
set_prop(vendor_init, exported2_vold_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, logd_prop)
set_prop(vendor_init, log_tag_prop)
set_prop(vendor_init, log_prop)

View file

@ -202,6 +202,7 @@ set_prop(vold, ota_prop)
set_prop(vold, boottime_prop)
set_prop(vold, boottime_public_prop)
get_prop(vold, storage_config_prop)
get_prop(vold, incremental_prop)
# ASEC
allow vold asec_image_file:file create_file_perms;