sdm845-common: Move LiveDisplay HAL default profile path to /data/misc/display
* /data/display does not exist and we are unable to allow writing to /data/system since it's a neverallow. Instead we are creating /data/misc/display which coredomain is allowed to write to. Change-Id: I1198c61177b75fd2ad460aafab5f2d5010b2ca63
This commit is contained in:
parent
4875e13d6a
commit
f0e0e8184e
5 changed files with 9 additions and 6 deletions
|
@ -28,7 +28,7 @@ namespace implementation {
|
|||
|
||||
static constexpr const char* kModePath =
|
||||
"/sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/display_mode";
|
||||
static constexpr const char* kDefaultPath = "/data/system/default_display_mode";
|
||||
static constexpr const char* kDefaultPath = "/data/misc/display/default_display_mode";
|
||||
|
||||
const std::map<int32_t, DisplayModes::ModeInfo> DisplayModes::kModeMap = {
|
||||
{0, {"Standard", "default"}},
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
on post-fs-data
|
||||
mkdir /data/misc/display 0770 system graphics
|
||||
|
||||
on boot
|
||||
chmod 0660 /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/display_mode
|
||||
chmod 0660 /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/hbm
|
||||
|
|
|
@ -17,4 +17,4 @@ type sysfs_oem, sysfs_type, fs_type;
|
|||
type sysfs_usb_supply, sysfs_type, fs_type;
|
||||
|
||||
# data
|
||||
type display_data_file, file_type, data_file_type, core_data_file_type;
|
||||
type display_misc_file, file_type, data_file_type, core_data_file_type;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Data files
|
||||
/data/display(/.*)? u:object_r:display_data_file:s0
|
||||
/data/misc/display(/.*)? u:object_r:display_misc_file:s0
|
||||
|
||||
# Files in rootfs
|
||||
/bt_firmware(/.*)? u:object_r:bt_firmware_file:s0
|
||||
|
|
|
@ -4,9 +4,9 @@ hal_server_domain(hal_livedisplay_sdm845, hal_lineage_livedisplay)
|
|||
type hal_livedisplay_sdm845_exec, exec_type, file_type;
|
||||
init_daemon_domain(hal_livedisplay_sdm845)
|
||||
|
||||
# Allow LiveDisplay to store files under /data/display and access them
|
||||
allow hal_livedisplay_sdm845 display_data_file:dir rw_dir_perms;
|
||||
allow hal_livedisplay_sdm845 display_data_file:file create_file_perms;
|
||||
# Allow LiveDisplay to store files under /data/misc/display and access them
|
||||
allow hal_livedisplay_sdm845 display_misc_file:dir rw_dir_perms;
|
||||
allow hal_livedisplay_sdm845 display_misc_file:file create_file_perms;
|
||||
|
||||
# Grant access over LiveDisplay tuneables
|
||||
allow hal_livedisplay_sdm845 sysfs_livedisplay_tuneable:file rw_file_perms;
|
||||
|
|
Loading…
Reference in a new issue