Add rules to allow Sensor HAL write access to als_table
Sensor HAL needs write access to /sys/class/backlight/panel0-backlight/als_table. Bug: 226435017 Test: Observing logs Change-Id: Idb592d601b92c6814493e0d28384e1013935b72f
This commit is contained in:
parent
4fa67857c3
commit
967571ee60
3 changed files with 23 additions and 18 deletions
|
@ -45,6 +45,7 @@ type sysfs_cpu, sysfs_type, fs_type;
|
|||
type sysfs_odpm, sysfs_type, fs_type;
|
||||
type sysfs_soc, sysfs_type, fs_type;
|
||||
type sysfs_camera, sysfs_type, fs_type;
|
||||
type sysfs_write_leds, sysfs_type, fs_type;
|
||||
|
||||
# debugfs
|
||||
type debugfs_f2fs, debugfs_type, fs_type;
|
||||
|
|
|
@ -115,6 +115,7 @@ genfscon sysfs /module/drm/parameters/vblankoffdelay
|
|||
|
||||
genfscon sysfs /devices/platform/exynos-drm/tui_status u:object_r:sysfs_display:s0
|
||||
|
||||
genfscon sysfs /devices/platform/1c2c0000.drmdsim/1c2c0000.drmdsim.0/backlight/panel0-backlight/als_table u:object_r:sysfs_write_leds:s0
|
||||
|
||||
# mediacodec_samsung
|
||||
genfscon sysfs /devices/platform/mfc/video4linux/video u:object_r:sysfs_mfc:s0
|
||||
|
|
|
@ -51,3 +51,6 @@ allow hal_sensors_default sysfs_leds:file r_file_perms;
|
|||
|
||||
# Allow sensor HAL to access the graphics composer.
|
||||
binder_call(hal_sensors_default, hal_graphics_composer_default);
|
||||
|
||||
# Allow display_info_service access to the backlight driver.
|
||||
allow hal_sensors_default sysfs_write_leds:file rw_file_perms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue