diff --git a/file_contexts b/file_contexts
index 45823ef38cda9b1cf31fe36bab8e6579325fb114..25873049b0b1299f2d1c634f0d9596881333e2f1 100644
--- a/file_contexts
+++ b/file_contexts
@@ -145,6 +145,7 @@
 /system/bin/hostapd     u:object_r:hostapd_exec:s0
 /system/bin/clatd	u:object_r:clatd_exec:s0
 /system/bin/lmkd        u:object_r:lmkd_exec:s0
+/system/bin/inputflinger u:object_r:inputflinger_exec:s0
 #############################
 # Vendor files
 #
diff --git a/inputflinger.te b/inputflinger.te
new file mode 100644
index 0000000000000000000000000000000000000000..243bee3d10f537cbb6aa001a5c6b368fa3b0abc2
--- /dev/null
+++ b/inputflinger.te
@@ -0,0 +1,9 @@
+# inputflinger
+type inputflinger, domain;
+type inputflinger_exec, exec_type, file_type;
+
+init_daemon_domain(inputflinger)
+binder_use(inputflinger)
+binder_service(inputflinger)
+
+unconfined_domain(inputflinger)