diff --git a/msm8974.mk b/msm8974.mk index 025a3ad..381ad2c 100644 --- a/msm8974.mk +++ b/msm8974.mk @@ -178,6 +178,10 @@ PRODUCT_PACKAGES += \ android.hardware.sensors@1.0-impl.samsung8974 \ android.hardware.sensors@1.0-service.samsung8974 +# Touch features +PRODUCT_PACKAGES += \ + vendor.lineage.touch@1.0-service.samsung + # Trust HAL PRODUCT_PACKAGES += \ vendor.lineage.trust@1.0-service diff --git a/sepolicy/common/file_contexts b/sepolicy/common/file_contexts index 0d9fde0..37f8db0 100644 --- a/sepolicy/common/file_contexts +++ b/sepolicy/common/file_contexts @@ -21,6 +21,7 @@ # executeables /system/vendor/bin/macloader u:object_r:macloader_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\.touch@1\.0-service\.samsung u:object_r:hal_lineage_touch_default_exec:s0 # firmware /system/vendor/firmware/bcm(.*).hcd u:object_r:bt_fw_file:s0 diff --git a/sepolicy/common/hal_lineage_touch_default.te b/sepolicy/common/hal_lineage_touch_default.te new file mode 100644 index 0000000..dd3851e --- /dev/null +++ b/sepolicy/common/hal_lineage_touch_default.te @@ -0,0 +1,2 @@ +allow hal_lineage_touch_default sysfs_sec_tsp:dir search; +allow hal_lineage_touch_default sysfs_sec_tsp:file rw_file_perms;