pa: sepolicy: Introduce automated DC Dimming.

* Label sysfs node as vendor_sysfs_dc_dim in device tree.

Change-Id: Ie370de435763e9eb4e10940bd9b2484650c3cdce
This commit is contained in:
Rituj Beniwal 2021-02-24 18:46:03 +05:30 committed by Alexander Koskovich
parent 62f4359626
commit bf07d8d771
6 changed files with 13 additions and 0 deletions

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

@ -0,0 +1,2 @@
# DC Dimming
type vendor_sysfs_dc_dim, fs_type, sysfs_type;

View File

@ -4,3 +4,5 @@ binder_call(platform_app, vendor_fod_aospa)
# Allow platform applications to find the NFC service.
allow platform_app nfc_service:service_manager find;
allow platform_app vendor_sysfs_dc_dim:file rw_file_perms;

View File

@ -0,0 +1 @@
allow priv_app vendor_sysfs_dc_dim:file rw_file_perms;

View File

@ -0,0 +1,2 @@
# DC Dimming
type dc_dimming_service, system_api_service, system_server_service, service_manager_type;

View File

@ -0,0 +1,2 @@
# DC Dimming
dc_dim_service u:object_r:dc_dimming_service:s0

View File

@ -1,2 +1,6 @@
# FOD
hal_client_domain(system_server, vendor_fod)
# DC Dimming
allow system_server vendor_sysfs_dc_dim:file rw_file_perms;
add_service(system_server, dc_dimming_service);