sm8150-common: utilize ophdr service
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
This commit is contained in:
parent
8cc6968cc1
commit
06deb94c73
|
@ -246,6 +246,8 @@ vendor/bin/hw/vendor.oneplus.hardware.display@1.0-service
|
|||
vendor/etc/init/vendor.oneplus.hardware.display@1.0-service.rc
|
||||
|
||||
# Display (HDR)
|
||||
system_ext/bin/notify_hdr_change.sh
|
||||
system_ext/etc/init/hdr_trigger.rc
|
||||
vendor/etc/hdr_config.cfg
|
||||
vendor/etc/sdr_config.cfg
|
||||
vendor/lib64/libhdr_tm.so
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
# Binaries
|
||||
/system/bin/als_correction_service u:object_r:als_correction_service_exec:s0
|
||||
|
||||
# OP HDR
|
||||
/(system_ext|system/system_ext)/bin/notify_hdr_change.sh u:object_r:ophdr_detect_exec:s0
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
allow init ophdr_detect_exec:file { execute read open getattr map };
|
||||
allow init ophdr_detect:process { siginh rlimitinh };
|
|
@ -0,0 +1,12 @@
|
|||
type ophdr_detect_exec, system_file_type, exec_type, file_type;
|
||||
|
||||
typeattribute ophdr_detect system_writes_vendor_properties_violators;
|
||||
|
||||
allow ophdr_detect display_service:service_manager find;
|
||||
allow ophdr_detect shell_exec:file rx_file_perms;
|
||||
allow ophdr_detect system_file:file execute_no_trans;
|
||||
binder_call(ophdr_detect, system_server)
|
||||
binder_call(system_server, ophdr_detect)
|
||||
binder_use(ophdr_detect)
|
||||
init_daemon_domain(ophdr_detect)
|
||||
type_transition init ophdr_detect_exec:process ophdr_detect;
|
|
@ -0,0 +1 @@
|
|||
type ophdr_detect, domain, coredomain;
|
|
@ -1 +1,2 @@
|
|||
type vendor_sensors_als_prop, property_type;
|
||||
type op_hdr_prop, property_type;
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
vendor.display.hdr.mode u:object_r:op_hdr_prop:s0
|
Loading…
Reference in New Issue