mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 04:25:33 -04:00
universal7885: CameraLightSensor: Correctly monitor brightness settings
* Added an observer
This commit is contained in:
parent
8e19cb0439
commit
0d81c5b97d
7 changed files with 111 additions and 102 deletions
38
universal7885-common/sepolicy/vendor/lhd.te
vendored
38
universal7885-common/sepolicy/vendor/lhd.te
vendored
|
|
@ -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;
|
||||
|
|
@ -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
|
||||
|
|
|
|||
1
universal7885-common/sepolicy/vendor/rild.te
vendored
1
universal7885-common/sepolicy/vendor/rild.te
vendored
|
|
@ -94,4 +94,3 @@ allow rild hal_audio_default:file r_file_perms;
|
|||
# hwservice
|
||||
add_hwservice(rild, rild_hwservice)
|
||||
|
||||
get_prop(rild, rild_prop)
|
||||
|
|
|
|||
Loading…
Reference in a new issue