From d56a00a11ae3dc46e57bc31427655ec044532283 Mon Sep 17 00:00:00 2001 From: Paul Keith Date: Wed, 9 Jan 2019 00:47:48 +0100 Subject: [PATCH] universal7580: Build vendor.lineage.touch HAL from hardware/samsung Change-Id: I6eca1e9875cb5793a3a45c6e77bc201946ebd897 --- device-common.mk | 4 ++++ sepolicy/file_contexts | 2 ++ sepolicy/hal_lineage_touch_default.te | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 sepolicy/hal_lineage_touch_default.te diff --git a/device-common.mk b/device-common.mk index 2352a1f..8f984f1 100644 --- a/device-common.mk +++ b/device-common.mk @@ -153,6 +153,10 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ textclassifier.bundle1 +# Touch features +PRODUCT_PACKAGES += \ + vendor.lineage.touch@1.0-service.samsung + # USB PRODUCT_PACKAGES += \ android.hardware.usb@1.0-service.basic diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index cd26b40..64db079 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -161,3 +161,5 @@ /system/bin/cbd u:object_r:cpboot-daemon_exec:s0 /system/bin/gpsd u:object_r:gpsd_exec:s0 /system/bin/sswap u:object_r:sswap_exec:s0 + +/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.samsung u:object_r:hal_lineage_touch_default_exec:s0 diff --git a/sepolicy/hal_lineage_touch_default.te b/sepolicy/hal_lineage_touch_default.te new file mode 100644 index 0000000..044f569 --- /dev/null +++ b/sepolicy/hal_lineage_touch_default.te @@ -0,0 +1,2 @@ +allow hal_lineage_touch_default sysfs_input:dir search; +allow hal_lineage_touch_default sysfs_input:file rw_file_perms; -- 2.20.1