From c036f18fe2e8aed76b5117906c46ff586d6b1978 Mon Sep 17 00:00:00 2001 From: Paul Keith Date: Wed, 9 Jan 2019 00:47:48 +0100 Subject: [PATCH] msm8974-common: Build vendor.lineage.touch HAL from hardware/samsung Change-Id: I6eca1e9875cb5793a3a45c6e77bc201946ebd897 --- msm8974.mk | 4 ++++ sepolicy/common/file_contexts | 1 + sepolicy/common/hal_lineage_touch_default.te | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 sepolicy/common/hal_lineage_touch_default.te 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;