device_lenovo_sdm710-common/sepolicy/private/hal_light_sdm710.te
Bruno Martins f8f10ac731 sdm710-common: Add a custom lights HAL
* This overrides stock liblights and fixes LCD backlight issues.
 * Also fix lights HAL denials

Change-Id: Iafa2ba2338932879b7a1dc480b50559e3328fd21
2019-08-29 09:49:47 +00:00

20 lines
862 B
Text

type hal_light_sdm710, coredomain, domain;
# Allow a base set of permissions required for a domain to offer a
# HAL implementation of the specified type over HwBinder.
typeattribute hal_light_sdm710 halserverdomain;
typeattribute hal_light_sdm710 hal_light_server;
# HwBinder IPC from client to server, and callbacks
binder_call(hal_light_client, hal_light_server)
binder_call(hal_light_server, hal_light_client)
add_hwservice(hal_light_server, hal_light_hwservice)
allow hal_light_client hal_light_hwservice:hwservice_manager find;
type hal_light_sdm710_exec, exec_type, file_type;
init_daemon_domain(hal_light_sdm710)
allow hal_light_sdm710 { sysfs_graphics sysfs_white_led }:lnk_file read;
allow hal_light_sdm710 { sysfs_graphics sysfs_white_led }:file rw_file_perms;
allow hal_light_sdm710 { sysfs_graphics sysfs_leds sysfs_white_led }:dir r_dir_perms;