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:
parent
62f4359626
commit
bf07d8d771
|
@ -0,0 +1,2 @@
|
|||
# DC Dimming
|
||||
type vendor_sysfs_dc_dim, fs_type, sysfs_type;
|
|
@ -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;
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
allow priv_app vendor_sysfs_dc_dim:file rw_file_perms;
|
|
@ -0,0 +1,2 @@
|
|||
# DC Dimming
|
||||
type dc_dimming_service, system_api_service, system_server_service, service_manager_type;
|
|
@ -0,0 +1,2 @@
|
|||
# DC Dimming
|
||||
dc_dim_service u:object_r:dc_dimming_service:s0
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue