diff --git a/msm8226.mk b/msm8226.mk index a06fc6d..8812b50 100644 --- a/msm8226.mk +++ b/msm8226.mk @@ -213,6 +213,10 @@ PRODUCT_PACKAGES += \ android.hardware.sensors@1.0-impl.samsung8226 \ android.hardware.sensors@1.0-service.samsung8226 +# Touch features +PRODUCT_PACKAGES += \ + vendor.lineage.touch@1.0-service.samsung + # USB PRODUCT_PACKAGES += \ android.hardware.usb@1.0-service.basic @@ -243,4 +247,4 @@ PRODUCT_COPY_FILES += \ $(call inherit-product-if-exists, vendor/samsung/msm8226-common/msm8226-common-vendor.mk) # common msm8226 -$(call inherit-product, device/samsung/qcom-common/qcom-common.mk) +$(call inherit-product, device/samsung/qcom-common/qcom-common.mk) \ No newline at end of file diff --git a/sepolicy/common/file_contexts b/sepolicy/common/file_contexts index 2badf49..fb5609e 100644 --- a/sepolicy/common/file_contexts +++ b/sepolicy/common/file_contexts @@ -27,6 +27,7 @@ # executeables /(vendor|system/vendor)/bin/hw/android\.hardware\.sensors@1\.0-service.samsung8226 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 # sockets /data/cam_socket3 u:object_r:camera_socket: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;