universal7580: Build vendor.lineage.touch HAL from hardware/samsung
authorPaul Keith <javelinanddart@gmail.com>
Tue, 8 Jan 2019 23:47:48 +0000 (00:47 +0100)
committerJan Altensen <info@stricted.net>
Fri, 16 Aug 2019 21:18:57 +0000 (23:18 +0200)
Change-Id: I6eca1e9875cb5793a3a45c6e77bc201946ebd897

device-common.mk
sepolicy/file_contexts
sepolicy/hal_lineage_touch_default.te [new file with mode: 0644]

index 2352a1f97d1cd877167d9a18cadc87c9d24355f2..8f984f1319cd055b19cff74f389a578d81931315 100644 (file)
@@ -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
index cd26b40994e8da3ef9c88e0f4909618aad28ee80..64db0792ac0861072d95bc389a0b631322ff6b53 100644 (file)
 /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 (file)
index 0000000..044f569
--- /dev/null
@@ -0,0 +1,2 @@
+allow hal_lineage_touch_default sysfs_input:dir search;
+allow hal_lineage_touch_default sysfs_input:file rw_file_perms;