msm8974-common: Build the Samsung hwbinder light service

Change-Id: I33c259766914a5a714b05b59735ee2a8d70b0a5c
This commit is contained in:
Kevin F. Haggerty 2020-04-10 16:54:03 -06:00
parent 1e9008e54f
commit b46d020e98
No known key found for this signature in database
GPG Key ID: 6D95512933112729
5 changed files with 23 additions and 5 deletions

View File

@ -131,6 +131,15 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.light</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>ILight</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.media.omx</name>
<transport>hwbinder</transport>

View File

@ -115,6 +115,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \
android.hardware.keymaster@3.0-impl
# Lights
PRODUCT_PACKAGES += \
android.hardware.light@2.0-service.samsung
# LiveDisplay
PRODUCT_PACKAGES += \
vendor.lineage.livedisplay@2.0-service.samsung-qcom

View File

@ -21,6 +21,7 @@
# executeables
/system/vendor/bin/macloader u:object_r:macloader_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.ir@1\.0-service\.samsung u:object_r:hal_ir_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service\.samsung u:object_r:hal_light_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.sensors@1\.0-service.samsung8974 u:object_r:hal_sensors_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.samsung-qcom u:object_r:hal_lineage_livedisplay_sysfs_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.samsung u:object_r:hal_lineage_touch_default_exec:s0

View File

@ -0,0 +1,9 @@
allow hal_light_default {
sysfs_sec_led
sysfs_sec_touchkey
}:dir search;
allow hal_light_default {
sysfs_sec_led
sysfs_sec_touchkey
}:file rw_file_perms;

View File

@ -7,8 +7,3 @@ allow system_server {
efs_file
qti_debugfs
}:file r_file_perms;
allow system_server {
sysfs_sec_led
sysfs_sec_touchkey
}:file w_file_perms;