sdm845-common: Replace lineagehw implementation by HIDL services
Move DisplayModeControl and SunlightEnhancement into a livedisplay service, and TouchscreenGestures into a touch one. Change-Id: I5f46671633a13ddc6733a47f4ea5a6515d6d6c98
This commit is contained in:
committed by
Luca Stefani
parent
eaa9bbce92
commit
e3ee15e8af
@@ -1,10 +1,11 @@
|
||||
type adsprpcd_file, file_type;
|
||||
type bt_firmware_file, file_type;
|
||||
type display_data_file, file_type, data_file_type, core_data_file_type;
|
||||
type firmware_file, file_type;
|
||||
type op1_file, file_type;
|
||||
type op2_file, file_type;
|
||||
type persist_file, file_type;
|
||||
type proc_touchpanel, fs_type;
|
||||
type proc_touchpanel, fs_type, proc_type;
|
||||
type sysfs_fpc_proximity, sysfs_type, fs_type;
|
||||
type sysfs_oem, sysfs_type, fs_type;
|
||||
type sysfs_graphics, sysfs_type, fs_type;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Data files
|
||||
/data/display(/.*)? u:object_r:display_data_file:s0
|
||||
|
||||
# Files in rootfs
|
||||
/bt_firmware(/.*)? u:object_r:bt_firmware_file:s0
|
||||
/dsp(/.*)? u:object_r:adsprpcd_file:s0
|
||||
@@ -12,8 +15,10 @@
|
||||
# Audio
|
||||
/system/etc/audio_policy_configuration.xml u:object_r:vendor_configs_file:s0
|
||||
|
||||
# Lights
|
||||
/system/bin/hw/android\.hardware\.light@2\.0-service\.oneplus_sdm845 u:object_r:hal_light_sdm845_exec:s0
|
||||
# HALs
|
||||
/system/bin/hw/android\.hardware\.light@2\.0-service\.oneplus_sdm845 u:object_r:hal_light_sdm845_exec:s0
|
||||
/system/bin/hw/lineage\.livedisplay@2\.0-service\.oneplus_sdm845 u:object_r:hal_livedisplay_sdm845_exec:s0
|
||||
/system/bin/hw/lineage\.touch@1\.0-service\.oneplus_sdm845 u:object_r:hal_touch_sdm845_exec:s0
|
||||
|
||||
# Modules
|
||||
/system/lib/modules/wlan\.ko u:object_r:vendor_file:s0
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
genfscon proc /touchpanel u:object_r:proc_touchpanel:s0
|
||||
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pmi8998@2:qcom,qpnp-smb2/power_supply/dc u:object_r:sysfs_battery_supply:s0
|
||||
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pmi8998@2:qcom,qpnp-smb2/power_supply/main u:object_r:sysfs_battery_supply:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,dsi-display@18/hbm u:object_r:sysfs_livedisplay_tuneable:s0
|
||||
|
||||
12
sepolicy/private/hal_livedisplay_sdm845.te
Normal file
12
sepolicy/private/hal_livedisplay_sdm845.te
Normal file
@@ -0,0 +1,12 @@
|
||||
type hal_livedisplay_sdm845, coredomain, domain;
|
||||
hal_server_domain(hal_livedisplay_sdm845, hal_lineage_livedisplay)
|
||||
|
||||
type hal_livedisplay_sdm845_exec, exec_type, file_type;
|
||||
init_daemon_domain(hal_livedisplay_sdm845)
|
||||
|
||||
# Talk to the binder device node
|
||||
allow hal_livedisplay_sdm845 binder_device:chr_file rw_file_perms;
|
||||
|
||||
# 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;
|
||||
12
sepolicy/private/hal_touch_sdm845.te
Normal file
12
sepolicy/private/hal_touch_sdm845.te
Normal file
@@ -0,0 +1,12 @@
|
||||
type hal_touch_sdm845, coredomain, domain;
|
||||
hal_server_domain(hal_touch_sdm845, hal_lineage_touch)
|
||||
|
||||
type hal_touch_sdm845_exec, exec_type, file_type;
|
||||
init_daemon_domain(hal_touch_sdm845)
|
||||
|
||||
# Talk to the binder device node
|
||||
allow hal_touch_sdm845 binder_device:chr_file rw_file_perms;
|
||||
|
||||
# Allow access to gesture enable nodes
|
||||
allow hal_touch_sdm845 proc_touchpanel:dir search;
|
||||
allow hal_touch_sdm845 proc_touchpanel:file rw_file_perms;
|
||||
@@ -1 +1,2 @@
|
||||
# Pocketmode
|
||||
allow system_app sysfs_fpc_proximity:file { w_file_perms getattr };
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# Allow access to LiveDisplay tuning nodes
|
||||
allow system_server sysfs_livedisplay_tuneable:file rw_file_perms;
|
||||
Reference in New Issue
Block a user