sdm845-common: Build our own lights HAL

Change-Id: I0e0d2db5c109778b86ab54101b70f0d3856195cb
This commit is contained in:
LuK1337
2018-07-02 15:46:30 +02:00
committed by Christopher H.
parent 6c408b0c2e
commit 118f6920b5
9 changed files with 354 additions and 0 deletions

View File

@@ -5,3 +5,6 @@
/op1(/.*)? u:object_r:op1_file:s0
/op2(/.*)? u:object_r:op2_file:s0
/persist(/.*)? u:object_r:persist_file:s0
# Lights
/system/bin/hw/android\.hardware\.light@2\.0-service\.oneplus_sdm845 u:object_r:hal_light_sdm845_exec:s0

View File

@@ -0,0 +1,7 @@
type hal_light_sdm845, coredomain, domain;
hal_server_domain(hal_light_sdm845, hal_light)
type hal_light_sdm845_exec, exec_type, file_type;
init_daemon_domain(hal_light_sdm845)
allow hal_light_sdm845 sysfs_leds:file rw_file_perms;