universal7885: CameraLightSensor: Correctly monitor brightness settings

* Added an observer
This commit is contained in:
roynatech2544 2021-11-03 22:11:45 +09:00
commit 0d81c5b97d
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
7 changed files with 111 additions and 102 deletions

View file

@ -24,6 +24,8 @@ mdc. u:object_r:exported_config_prop:s0
persist.sys.omc_support u:object_r:exported_config_prop:s0
persist.sys.omc_etcpath u:object_r:exported_config_prop:s0
ro.omc. u:object_r:exported_config_prop:s0
mdc.sys.enable_smff0 u:object_r:exported_config_prop:s0
ro.csc.countryiso_code u:object_r:exported_config_prop:s0
### RADIO
ril.NwNmId u:object_r:telephony_config_prop:s0

View file

@ -1,38 +0,0 @@
type lhd, domain;
type lhd_exec, exec_type, vendor_file_type, file_type;
# lhd is started by init, type transit from init domain to lhd domain
init_daemon_domain(lhd)
get_prop(lhd, hwservicemanager_prop)
hwbinder_use(lhd)
allow lhd system_suspend_hwservice:hwservice_manager { find };
binder_call(lhd, system_suspend_server)
allow lhd self:tcp_socket create_stream_socket_perms;
allow lhd port:tcp_socket { name_bind name_connect };
allow lhd node:tcp_socket node_bind;
# /data/vendor/gps
allow lhd gps_vendor_data_file:dir rw_dir_perms;
allow lhd gps_vendor_data_file:file create_file_perms;
allow lhd gps_vendor_data_file:fifo_file create_file_perms;
# /dev/bbd_control
allow lhd bbd_device:chr_file rw_file_perms;
# /dev/socket/fwmarkd
allow lhd fwmarkd_socket:sock_file write;
# /sys/bbd/lk_enable
r_dir_file(lhd, sysfs_bbd)
# /sys/class/sec/gps
allow lhd sysfs_sec_gps:dir r_dir_perms;
allow lhd sysfs_sec_gps:file r_file_perms;
# /sys/devices/virtual/sec/sensorhub/mcu_power
allow lhd sysfs_sensorhub_writable:file rw_file_perms;
# /sys/class/sec/gps/GPS_PWR_EN/value
allow lhd sysfs_gps_writable:file rw_file_perms;

View file

@ -52,11 +52,6 @@ vendor.wlan. u:object_r:vendor_wlan_prop:s0
# Hwc
hwc.exynos.vsync_mode u:object_r:vendor_hwc_prop:s0
# Rild
mdc.sys.enable_smff0 u:object_r:rild_prop:s0
ro.csc.countryiso_code u:object_r:rild_prop:s0
persist.sys.omc_etcpath u:object_r:rild_prop:s0
# TEEGRIS
vendor.secureos. u:object_r:vendor_secureos_prop:s0
vendor.tzdaemon u:object_r:vendor_tzdaemon_prop:s0

View file

@ -94,4 +94,3 @@ allow rild hal_audio_default:file r_file_perms;
# hwservice
add_hwservice(rild, rild_hwservice)
get_prop(rild, rild_prop)