sm8150-common: utilize ophdr service

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
This commit is contained in:
Omkar Chandorkar 2021-04-05 09:34:16 +05:30
parent 8cc6968cc1
commit 06deb94c73
No known key found for this signature in database
GPG Key ID: 95A33FD984777F70
7 changed files with 22 additions and 0 deletions

View File

@ -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

View File

@ -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

2
sepolicy/private/init.te Normal file
View File

@ -0,0 +1,2 @@
allow init ophdr_detect_exec:file { execute read open getattr map };
allow init ophdr_detect:process { siginh rlimitinh };

View File

@ -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;

View File

@ -0,0 +1 @@
type ophdr_detect, domain, coredomain;

View File

@ -1 +1,2 @@
type vendor_sensors_als_prop, property_type;
type op_hdr_prop, property_type;

View File

@ -0,0 +1 @@
vendor.display.hdr.mode u:object_r:op_hdr_prop:s0