sm8450-common: sepolicy: Cleanup displayfeature related policies
Change-Id: Ifcb8394eba045fa20e8f9e8fd356be560163bc67
This commit is contained in:
parent
27b20a7ecc
commit
6e6cb237b1
13 changed files with 3 additions and 192 deletions
3
sepolicy/vendor/file_contexts
vendored
3
sepolicy/vendor/file_contexts
vendored
|
@ -43,9 +43,6 @@
|
|||
/data/vendor/modem(/.*)? u:object_r:vendor_modem_data_file:s0
|
||||
|
||||
# Display
|
||||
/(vendor|system/vendor)/bin/displayfeature u:object_r:vendor_displayfeature_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/vendor\.xiaomi\.hardware\.displayfeature@1\.0-service u:object_r:vendor_hal_displayfeature_xiaomi_default_exec:s0
|
||||
/dev/mi_display/disp_feature u:object_r:vendor_displayfeature_device:s0
|
||||
/sys/devices/virtual/mi_display/disp_feature/disp-DSI-+[0-1](/.*)? u:object_r:vendor_sysfs_displayfeature:s0
|
||||
|
||||
# Dolby
|
||||
|
|
1
sepolicy/vendor/hal_display_config.te
vendored
1
sepolicy/vendor/hal_display_config.te
vendored
|
@ -1,2 +1 @@
|
|||
allow vendor_hal_display_config_hwservice vendor_hal_displayfeature_xiaomi_default:binder transfer;
|
||||
allow vendor_hal_display_config_hwservice vendor_hal_citsensorservice_xiaomi_default:binder transfer;
|
||||
|
|
69
sepolicy/vendor/hal_displayfeature_xiaomi.te
vendored
69
sepolicy/vendor/hal_displayfeature_xiaomi.te
vendored
|
@ -1,69 +0,0 @@
|
|||
type vendor_hal_displayfeature_xiaomi_default, domain;
|
||||
type vendor_hal_displayfeature_xiaomi_default_exec, exec_type, file_type, vendor_file_type;
|
||||
type vendor_hal_displayfeature_xiaomi_hwservice, hwservice_manager_type;
|
||||
type vendor_mistcdisplay_service, vndservice_manager_type;
|
||||
|
||||
type vendor_displayfeature, domain;
|
||||
type vendor_displayfeature_exec, exec_type, file_type, vendor_file_type;
|
||||
type vendor_DisplayFeatureControl_service, vndservice_manager_type;
|
||||
|
||||
allow vendor_hal_displayfeature_xiaomi vendor_sysfs_graphics:file rw_file_perms;
|
||||
allow vendor_hal_displayfeature_xiaomi vendor_qdisplay_service:service_manager find;
|
||||
allow vendor_hal_displayfeature_xiaomi hal_graphics_composer:binder { call transfer };
|
||||
allow vendor_hal_displayfeature_xiaomi hal_graphics_composer:fd *;
|
||||
allow vendor_hal_displayfeature_xiaomi graphics_device:chr_file rw_file_perms;
|
||||
allow vendor_hal_displayfeature_xiaomi graphics_device:dir r_dir_perms;
|
||||
allow vendor_hal_displayfeature_xiaomi_default sysfs:file { getattr open read write };
|
||||
allow vendor_hal_displayfeature_xiaomi_default sensors_device:chr_file r_file_perms;
|
||||
allow vendor_hal_displayfeature_xiaomi_default fwk_sensor_hwservice:hwservice_manager find;
|
||||
allow vendor_hal_displayfeature_xiaomi_default system_server:binder { call transfer };
|
||||
allow vendor_hal_displayfeature_xiaomi_default vendor_hal_display_config_hwservice:hwservice_manager find;
|
||||
allow vendor_hal_displayfeature_xiaomi_default vendor_hal_display_config_hwservice:binder { call transfer };
|
||||
allow vendor_hal_displayfeature_xiaomi_default vendor_hal_display_config_hwservice:fd *;
|
||||
allow vendor_hal_displayfeature_xiaomi_default vendor_display_vendor_data_file:dir create_dir_perms;
|
||||
allow vendor_hal_displayfeature_xiaomi_default vendor_display_vendor_data_file:file create_file_perms;
|
||||
allow vendor_hal_displayfeature_xiaomi_default vendor_displayfeature_device:chr_file { ioctl open read write };
|
||||
allow vendor_hal_displayfeature_xiaomi_default vendor_sysfs_displayfeature:dir r_dir_perms;
|
||||
allow vendor_hal_displayfeature_xiaomi_default vendor_sysfs_displayfeature:file rw_file_perms;
|
||||
allow vendor_hal_displayfeature_xiaomi_default vendor_mistcdisplay_service:service_manager find;
|
||||
allow vendor_hal_displayfeature_xiaomi_default system_app:binder { call transfer };
|
||||
allow vendor_hal_displayfeature_xiaomi_default system_app:fd *;
|
||||
allow vendor_hal_displayfeature_xiaomi_default surfaceflinger:binder call;
|
||||
allow vendor_hal_displayfeature_xiaomi_client vendor_hal_displayfeature_xiaomi_server:binder { call transfer };
|
||||
allow vendor_hal_displayfeature_xiaomi_client vendor_hal_displayfeature_xiaomi_server:fd *;
|
||||
allow vendor_hal_displayfeature_xiaomi_client vendor_hal_displayfeature_xiaomi_hwservice:hwservice_manager find;
|
||||
allow vendor_hal_displayfeature_xiaomi_server vendor_hal_displayfeature_xiaomi_client:binder transfer;
|
||||
attribute vendor_hal_displayfeature_xiaomi;
|
||||
attribute vendor_hal_displayfeature_xiaomi_client;
|
||||
attribute vendor_hal_displayfeature_xiaomi_server;
|
||||
init_daemon_domain(vendor_hal_displayfeature_xiaomi_default)
|
||||
r_dir_file(vendor_hal_displayfeature_xiaomi, vendor_sysfs_graphics)
|
||||
unix_socket_connect(vendor_hal_displayfeature_xiaomi_default, property, vendor_sensors)
|
||||
get_prop(vendor_hal_displayfeature_xiaomi_default, vendor_mpctl_prop)
|
||||
set_prop(vendor_hal_displayfeature_xiaomi_default, vendor_displayfeature_prop)
|
||||
vndbinder_use(vendor_hal_displayfeature_xiaomi)
|
||||
hal_server_domain(vendor_hal_displayfeature_xiaomi_default, vendor_hal_displayfeature_xiaomi)
|
||||
hal_client_domain(vendor_hal_displayfeature_xiaomi_default, vendor_hal_display_color)
|
||||
hal_client_domain(vendor_hal_displayfeature_xiaomi_default, vendor_hal_display_postproc)
|
||||
add_hwservice(vendor_hal_displayfeature_xiaomi_server, vendor_hal_displayfeature_xiaomi_hwservice)
|
||||
|
||||
allow vendor_displayfeature system_server:binder transfer;
|
||||
allow vendor_displayfeature system_server:binder { call transfer };
|
||||
allow vendor_displayfeature system_server:fd *;
|
||||
allow vendor_displayfeature appdomain:binder { call transfer };
|
||||
allow vendor_displayfeature appdomain:fd *;
|
||||
allow vendor_displayfeature sysfs:file { getattr open read write };
|
||||
allow vendor_displayfeature vendor_file:file r_file_perms;
|
||||
allow vendor_displayfeature graphics_device:dir r_dir_perms;
|
||||
allow vendor_displayfeature graphics_device:chr_file rw_file_perms;
|
||||
init_daemon_domain(vendor_displayfeature)
|
||||
get_prop(vendor_displayfeature, hwservicemanager_prop)
|
||||
get_prop(vendor_displayfeature, vendor_displayfeature_prop)
|
||||
hwbinder_use(vendor_displayfeature)
|
||||
vndbinder_use(vendor_displayfeature)
|
||||
hal_client_domain(vendor_displayfeature, hal_graphics_composer)
|
||||
hal_client_domain(vendor_displayfeature, hal_light)
|
||||
hal_client_domain(vendor_displayfeature, vendor_hal_display_color)
|
||||
hal_client_domain(vendor_displayfeature, vendor_hal_display_postproc)
|
||||
hal_client_domain(vendor_displayfeature, vendor_hal_displayfeature_xiaomi)
|
||||
add_service(vendor_displayfeature, vendor_DisplayFeatureControl_service)
|
15
sepolicy/vendor/hal_graphics_composer.te
vendored
15
sepolicy/vendor/hal_graphics_composer.te
vendored
|
@ -1,15 +1,6 @@
|
|||
allow hal_graphics_composer vendor_hal_displayfeature_xiaomi:binder transfer;
|
||||
allow hal_graphics_composer vendor_hal_citsensorservice_xiaomi_default:binder transfer;
|
||||
allow hal_graphics_composer vendor_hal_citsensorservice_xiaomi_hwservice:hwservice_manager find;
|
||||
allow hal_graphics_composer_default vendor_displayfeature_device:chr_file { ioctl open read };
|
||||
allow hal_graphics_composer_default vendor_sysfs_displayfeature:dir { open read search };
|
||||
allow hal_graphics_composer_default vendor_sysfs_displayfeature:file { open read write };
|
||||
allow hal_graphics_composer_default vendor_hal_citsensorservice_xiaomi_default:binder call;
|
||||
allow hal_graphics_composer_default vendor_hal_citsensorservice_xiaomi_default:binder { call transfer };
|
||||
allow hal_graphics_composer_default vendor_hal_citsensorservice_xiaomi_default:fd *;
|
||||
get_prop(hal_graphics_composer, vendor_displayfeature_prop)
|
||||
set_prop(hal_graphics_composer_default, vendor_ctl_vendor_display_prop)
|
||||
|
||||
binder_call(hal_graphics_composer_default, vendor_hal_citsensorservice_xiaomi_default)
|
||||
|
||||
set_prop(hal_graphics_composer_default, vendor_display_prop)
|
||||
hal_client_domain(hal_graphics_composer_default, vendor_hal_displayfeature_xiaomi)
|
||||
allow hal_graphics_composer_default vendor_mistcdisplay_service:service_manager find;
|
||||
add_service(hal_graphics_composer_default, vendor_mistcdisplay_service)
|
||||
|
|
3
sepolicy/vendor/hal_light.te
vendored
3
sepolicy/vendor/hal_light.te
vendored
|
@ -1,3 +0,0 @@
|
|||
allow hal_light_default vendor_displayfeature_device:chr_file { ioctl open read write };
|
||||
allow hal_light_default vendor_sysfs_displayfeature:dir r_dir_perms;
|
||||
allow hal_light_default vendor_sysfs_displayfeature:file rw_file_perms;
|
2
sepolicy/vendor/hal_perf.te
vendored
2
sepolicy/vendor/hal_perf.te
vendored
|
@ -12,8 +12,6 @@ allow vendor_hal_perf_default hal_audio_default:dir search;
|
|||
allow vendor_hal_perf_default hal_audio_default:file { open read };
|
||||
allow vendor_hal_perf_default thermal_data_file:dir { read search watch };
|
||||
allow vendor_hal_perf_default thermal_data_file:file { getattr open read setattr unlink };
|
||||
allow vendor_hal_perf_default vendor_hal_displayfeature_xiaomi_default:dir search;
|
||||
allow vendor_hal_perf_default vendor_hal_displayfeature_xiaomi_default:file read;
|
||||
allow vendor_hal_perf_default mi_thermald:dir r_dir_perms;
|
||||
allow vendor_hal_perf_default mi_thermald:file r_file_perms;
|
||||
|
||||
|
|
1
sepolicy/vendor/hwservice_contexts
vendored
1
sepolicy/vendor/hwservice_contexts
vendored
|
@ -1,5 +1,4 @@
|
|||
vendor.xiaomi.hardware.campostproc::IMiPostProcService u:object_r:vendor_hal_camerapostproc_xiaomi_hwservice:s0
|
||||
vendor.xiaomi.hardware.displayfeature::IDisplayFeature u:object_r:vendor_hal_displayfeature_xiaomi_hwservice:s0
|
||||
vendor.qti.sla.service::ISlaService u:object_r:hal_slaservice_hwservice:s0
|
||||
vendor.xiaomi.sensor.citsensorservice::ICitSensorService u:object_r:vendor_hal_citsensorservice_xiaomi_hwservice:s0
|
||||
vendor.xiaomi.sensor.communicate::ISensorCommunicate u:object_r:vendor_hal_sensorcommunicate_hwservice:s0
|
||||
|
|
1
sepolicy/vendor/init.te
vendored
1
sepolicy/vendor/init.te
vendored
|
@ -8,5 +8,4 @@ set_prop(vendor_init, vendor_nfc_mi_prop)
|
|||
set_prop(vendor_init, vendor_ssr_prop)
|
||||
set_prop(vendor_init, vendor_edgnss_qxwz_downloadak_prop)
|
||||
set_prop(vendor_init, vendor_qcc_prop)
|
||||
set_prop(vendor_init, vendor_displayfeature_prop)
|
||||
allow vendor_init cgroup:file getattr;
|
||||
|
|
4
sepolicy/vendor/property.te
vendored
4
sepolicy/vendor/property.te
vendored
|
@ -13,10 +13,6 @@ vendor_public_prop(vendor_cpuid_prop)
|
|||
# Dolby
|
||||
vendor_internal_prop(vendor_dolbyv_prop)
|
||||
|
||||
# Display
|
||||
vendor_public_prop(vendor_displayfeature_prop)
|
||||
vendor_internal_prop(vendor_ctl_vendor_display_prop)
|
||||
|
||||
# Fingerprint
|
||||
vendor_restricted_prop(vendor_fp_info_prop)
|
||||
vendor_public_prop(vendor_fp_prop)
|
||||
|
|
90
sepolicy/vendor/property_contexts
vendored
90
sepolicy/vendor/property_contexts
vendored
|
@ -10,96 +10,6 @@ ro.vendor.oem.meid u:object_r:vendor_deviceid_prop:s0
|
|||
ro.vendor.oem.psno u:object_r:vendor_sno_prop:s0
|
||||
ro.vendor.oem.sno u:object_r:vendor_sno_prop:s0
|
||||
|
||||
# Display
|
||||
persist.vendor.dc_backlight.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
persist.vendor.dc_backlight.threshold u:object_r:vendor_displayfeature_prop:s0
|
||||
persist.vendor.df.color.temp u:object_r:vendor_displayfeature_prop:s0
|
||||
persist.vendor.df.extcolor.proc u:object_r:vendor_displayfeature_prop:s0
|
||||
persist.vendor.dfps.level u:object_r:vendor_displayfeature_prop:s0
|
||||
persist.vendor.disable_idle_fps u:object_r:vendor_displayfeature_prop:s0
|
||||
persist.vendor.disable_idle_fps.threshold u:object_r:vendor_displayfeature_prop:s0
|
||||
persist.vendor.displayfeature.video.pq.type u:object_r:vendor_displayfeature_prop:s0
|
||||
persist.vendor.dolbyvision.flat_on u:object_r:vendor_displayfeature_prop:s0
|
||||
persist.vendor.fod.modified.dc_status u:object_r:vendor_displayfeature_prop:s0
|
||||
persist.vendor.max.brightness u:object_r:vendor_displayfeature_prop:s0
|
||||
persist.vendor.mi_sf. u:object_r:vendor_displayfeature_prop:s0
|
||||
persist.vendor.power.dfps.level u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.all_modes.colorpick_adjust u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.aod.brightness.cust u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.aod_layer.check u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.bcbc.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.cabc.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.cct.need.check.touch.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.colorpick_adjust u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.df.effect.conflict u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.dfps.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.ai_disp.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.aod_monitor_default_fps u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.benchmark_app u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.default_fps u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.dither u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.dolbyvision.support u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.dual_builtin_disp u:object_r:vendor_displayfeature_prop:s0
|
||||
#ro.vendor.display.dynamic_refresh_rate u:object_r:vendor_promotion_prop:s0
|
||||
ro.vendor.display.expert_calib.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.fod_monitor_default_fps u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.framework_thermal_dimming u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.hwc_thermal_dimming u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.idle_default_fps u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.idle_default_fps.support u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.ltpo.idle.switch.powercloud u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.ltpo.powerfull.with.charger.support u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.ltpo.sync.tp u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.ltpo.tp.idle.lowbrightness.support u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.mi_calib.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.mode_change_optimize.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.nature_mode.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.papercontrast.opt u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.primary.fps.limit u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.primary_idle_refresh_rate u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.secondary_idle_refresh_rate u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.set_fps_stat_timer_ms u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.set_sec_idle_timer_ms u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.switch_resolution.support u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.touch.idle.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.type u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.ultimate.perf.support u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.display.video_or_camera_fps.support u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.displayfeature.dump u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.dualpanel.dfps u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.eyecare.level u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.eyecare.threshold u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.fod.110nit.lux.level u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.fod.dimlayer.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.fps.switch.default u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.fps.switch.thermal u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.gcp.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.hbm_backlight.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.hist.threshold u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.histogram.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.localhbm.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.media.video.style.support u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.mi_sf. u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.need.check.cup.hbm.coverlayer.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.pcc.dc.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.sdr2hdr.by.layer.support u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.sf.enable_fb_scaling u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.soft_backlight.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.sre.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.standard.video.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.thermal.dimming.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.use.partial.brightness u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.video.style.by.layer.support u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.video_box.version u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.whitepoint_calibration_enable u:object_r:vendor_displayfeature_prop:s0
|
||||
ro.vendor.xiaomi.bl.poll u:object_r:vendor_displayfeature_prop:s0
|
||||
vendor.display.enable_fb_scaling u:object_r:vendor_displayfeature_prop:s0
|
||||
vendor.display.hwc_backlight.support u:object_r:vendor_displayfeature_prop:s0
|
||||
vendor.displayfeature.entry.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
vendor.hbm.enable u:object_r:vendor_displayfeature_prop:s0
|
||||
vendor.mi_sf. u:object_r:vendor_displayfeature_prop:s0
|
||||
vendor.video.mode.status u:object_r:vendor_displayfeature_prop:s0
|
||||
|
||||
# Dolby
|
||||
vendor.dolbyv. u:object_r:vendor_dolbyv_prop:s0
|
||||
|
||||
|
|
3
sepolicy/vendor/surfaceflinger.te
vendored
3
sepolicy/vendor/surfaceflinger.te
vendored
|
@ -1,4 +1 @@
|
|||
allow surfaceflinger vendor_sysfs_displayfeature:dir r_dir_perms;
|
||||
allow surfaceflinger vendor_sysfs_displayfeature:file rw_file_perms;
|
||||
allow surfaceflinger vendor_displayfeature_device:chr_file { ioctl open read write };
|
||||
allow surfaceflinger vendor_sysfs_graphics:dir { open read search };
|
||||
|
|
1
sepolicy/vendor/system_server.te
vendored
1
sepolicy/vendor/system_server.te
vendored
|
@ -1 +0,0 @@
|
|||
allow system_server vendor_hal_displayfeature_xiaomi_default:binder { call transfer };
|
2
sepolicy/vendor/vndservice_contexts
vendored
2
sepolicy/vendor/vndservice_contexts
vendored
|
@ -1,2 +0,0 @@
|
|||
display.mistcservice u:object_r:vendor_mistcdisplay_service:s0
|
||||
DisplayFeatureControl u:object_r:vendor_DisplayFeatureControl_service:s0
|
Loading…
Reference in a new issue