Move sepolicy for _touchflow targets.

Bug: 187654303
Test: touch reflector works on flame and redfin
Change-Id: I01f378b51d2d6bd77b6e4062e85b2d583899dce5
diff --git a/input/device.te b/input/device.te
new file mode 100644
index 0000000..d3ce622
--- /dev/null
+++ b/input/device.te
@@ -0,0 +1 @@
+type touch_offload_device, dev_type;
diff --git a/input/file_contexts b/input/file_contexts
new file mode 100644
index 0000000..09728be
--- /dev/null
+++ b/input/file_contexts
@@ -0,0 +1,2 @@
+/dev/touch_offload                                                               u:object_r:touch_offload_device:s0
+/vendor/bin/twoshay                                                              u:object_r:twoshay_exec:s0
diff --git a/input/touchflow_debug/file_contexts b/input/touchflow_debug/file_contexts
new file mode 100644
index 0000000..abde29a
--- /dev/null
+++ b/input/touchflow_debug/file_contexts
@@ -0,0 +1,3 @@
+/vendor/bin/hw/android\.hardware\.input\.classifier@1\.0-reflector     u:object_r:hal_input_classifier_default_exec:s0
+/vendor/bin/twoshay_touchflow     u:object_r:twoshay_exec:s0
+
diff --git a/input/twoshay.te b/input/twoshay.te
new file mode 100644
index 0000000..7c3b38e
--- /dev/null
+++ b/input/twoshay.te
@@ -0,0 +1,7 @@
+type twoshay, domain;
+type twoshay_exec, exec_type, vendor_file_type, file_type;
+
+init_daemon_domain(twoshay)
+
+allow twoshay touch_offload_device:chr_file rw_file_perms;
+allow twoshay twoshay:capability sys_nice;