RRS: Apply the default config from persist prop

vendor_config plays as another role to control the display config during
the boot time. To change the default configuration of the user selected
mode, we use persist config to store the value.

Bug: 244492960
Test: Boot w/ and w/o user selected configs and check the resolution
Change-Id: Ic3eb4e1c8a2c5eed83d10799a1965dd7a6be58e1
This commit is contained in:
joenchen 2022-09-07 12:55:19 +00:00 committed by Joen Chen
parent a8eab1aaaf
commit 90aeb6e15c
3 changed files with 6 additions and 2 deletions

View file

@ -25,8 +25,8 @@ allow hal_graphics_composer_default sysfs_leds:file rw_file_perms;
# allow HWC to get vendor_persist_sys_default_prop
get_prop(hal_graphics_composer_default, vendor_persist_sys_default_prop)
# allow HWC to get vendor_display_prop
get_prop(hal_graphics_composer_default, vendor_display_prop)
# allow HWC to get/set vendor_display_prop
set_prop(hal_graphics_composer_default, vendor_display_prop)
# allow HWC to get device_config_surface_flinger_native_boot_prop for adpf flags
get_prop(hal_graphics_composer_default, device_config_surface_flinger_native_boot_prop)

View file

@ -65,6 +65,7 @@ vendor.audiodump.encode.disable u:object_r:vendor_audio_prop:s0
# for display
ro.vendor.hwc.drm.device u:object_r:vendor_display_prop:s0
persist.vendor.display. u:object_r:vendor_display_prop:s0
# for camera
persist.vendor.camera. u:object_r:vendor_camera_prop:s0

View file

@ -35,3 +35,6 @@ set_prop(vendor_init, vendor_battery_defender_prop)
# Fingerprint property
set_prop(vendor_init, vendor_fingerprint_prop)
# Display
set_prop(vendor_init, vendor_display_prop)