sepolicy: Support Touch AIDL

Change-Id: I9166e371468bcaabf9d59d0bf8abe047aa1ffd0b
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
diff --git a/common/dynamic/hal_lineage_touch.te b/common/dynamic/hal_lineage_touch.te
index 0cc8082..21022fe 100644
--- a/common/dynamic/hal_lineage_touch.te
+++ b/common/dynamic/hal_lineage_touch.te
@@ -3,3 +3,6 @@
 
 add_hwservice(hal_lineage_touch_server, hal_lineage_touch_hwservice)
 allow hal_lineage_touch_client hal_lineage_touch_hwservice:hwservice_manager find;
+
+add_service(hal_lineage_touch_server, hal_lineage_touch_service)
+allow hal_lineage_touch_client hal_lineage_touch_service:service_manager find;
diff --git a/common/dynamic/service.te b/common/dynamic/service.te
index eb5e132..ff29e55 100644
--- a/common/dynamic/service.te
+++ b/common/dynamic/service.te
@@ -1,2 +1,3 @@
 type hal_lineage_health_service, hal_service_type, service_manager_type;
 type hal_lineage_powershare_service, hal_service_type, service_manager_type;
+type hal_lineage_touch_service, hal_service_type, service_manager_type;
diff --git a/common/dynamic/service_contexts b/common/dynamic/service_contexts
index ffafdbd..acdc4e9 100644
--- a/common/dynamic/service_contexts
+++ b/common/dynamic/service_contexts
@@ -1,2 +1,8 @@
 vendor.lineage.health.IChargingControl/default        u:object_r:hal_lineage_health_service:s0
 vendor.lineage.powershare.IPowerShare/default         u:object_r:hal_lineage_powershare_service:s0
+vendor.lineage.touch.IGloveMode/default               u:object_r:hal_lineage_touch_service:s0
+vendor.lineage.touch.IHighTouchPollingRate/default    u:object_r:hal_lineage_touch_service:s0
+vendor.lineage.touch.IKeyDisabler/default             u:object_r:hal_lineage_touch_service:s0
+vendor.lineage.touch.IKeySwapper/default              u:object_r:hal_lineage_touch_service:s0
+vendor.lineage.touch.IStylusMode/default              u:object_r:hal_lineage_touch_service:s0
+vendor.lineage.touch.ITouchscreenGesture/default      u:object_r:hal_lineage_touch_service:s0
diff --git a/common/vendor/hal_lineage_touch_default.te b/common/vendor/hal_lineage_touch_default.te
index dc68b98..c5d9a89 100644
--- a/common/vendor/hal_lineage_touch_default.te
+++ b/common/vendor/hal_lineage_touch_default.te
@@ -3,3 +3,5 @@
 
 type hal_lineage_touch_default_exec, exec_type, vendor_file_type, file_type;
 init_daemon_domain(hal_lineage_touch_default)
+
+binder_call(hal_lineage_touch_default, servicemanager)