omni: sepolicy: cleanup common sepolicy

Change-Id: Iea632568aae3522abba02dfeb9aed12d1756057c
diff --git a/sepolicy/private/file_contexts b/sepolicy/private/file_contexts
index dbfbcac..88b7ab1 100644
--- a/sepolicy/private/file_contexts
+++ b/sepolicy/private/file_contexts
@@ -8,6 +8,3 @@
 
 /system/bin/fsck\.ntfs                            u:object_r:fsck_exec:s0
 /system/bin/mkfs\.exfat                           u:object_r:fsck_exec:s0
-
-/system/bin/vncflinger                             u:object_r:vncflinger_exec:s0
-/system/bin/vncpasswd                             u:object_r:vncflinger_exec:s0
diff --git a/sepolicy/private/fsck_untrusted.te b/sepolicy/private/fsck_untrusted.te
deleted file mode 100644
index e69de29..0000000
--- a/sepolicy/private/fsck_untrusted.te
+++ /dev/null
diff --git a/sepolicy/private/hal_omni_fod.te b/sepolicy/private/hal_omni_fod.te
deleted file mode 100644
index 344f57e..0000000
--- a/sepolicy/private/hal_omni_fod.te
+++ /dev/null
@@ -1,8 +0,0 @@
-# HwBinder IPC from client to server
-binder_call(hal_omni_fod_client, hal_omni_fod_server)
-
-add_hwservice(hal_omni_fod_server, hal_omni_fod_hwservice)
-allow hal_omni_fod_client hal_omni_fod_hwservice:hwservice_manager find;
-
-# Allow binder communication with platform_app
-binder_call(hal_omni_fod, platform_app)
diff --git a/sepolicy/private/hwservice.te b/sepolicy/private/hwservice.te
deleted file mode 100644
index 056d58b..0000000
--- a/sepolicy/private/hwservice.te
+++ /dev/null
@@ -1 +0,0 @@
-type hal_omni_fod_hwservice, hwservice_manager_type;
diff --git a/sepolicy/private/hwservice_contexts b/sepolicy/private/hwservice_contexts
deleted file mode 100644
index 43192b7..0000000
--- a/sepolicy/private/hwservice_contexts
+++ /dev/null
@@ -1,2 +0,0 @@
-vendor.omni.biometrics.fingerprint.inscreen::IFingerprintInscreen    u:object_r:hal_omni_fod_hwservice:s0
-
diff --git a/sepolicy/private/platform_app.te b/sepolicy/private/platform_app.te
index c568299..9d7d1cc 100644
--- a/sepolicy/private/platform_app.te
+++ b/sepolicy/private/platform_app.te
@@ -1,7 +1,4 @@
 allow platform_app kernel:system syslog_read;
 
-# Allow FOD HAL service to be found
-hal_client_domain(platform_app, hal_omni_fod)
-
 allow platform_app update_engine_service:service_manager find;
 binder_call(platform_app, update_engine)
diff --git a/sepolicy/private/system_app.te b/sepolicy/private/system_app.te
index e6f46c6..73cd667 100644
--- a/sepolicy/private/system_app.te
+++ b/sepolicy/private/system_app.te
@@ -1,7 +1,5 @@
 #selinux status
 allow system_app selinuxfs:file r_file_perms;
 
-allow system_app vncflinger_exec:file { r_file_perms execute execute_no_trans map };
-
 # uinput
 allow system_app uhid_device:chr_file rw_file_perms;
diff --git a/sepolicy/private/system_server.te b/sepolicy/private/system_server.te
deleted file mode 100644
index 51326e7..0000000
--- a/sepolicy/private/system_server.te
+++ /dev/null
@@ -1 +0,0 @@
-hal_client_domain(system_server, hal_omni_fod)
diff --git a/sepolicy/private/vncflinger.te b/sepolicy/private/vncflinger.te
deleted file mode 100644
index 3579e7a..0000000
--- a/sepolicy/private/vncflinger.te
+++ /dev/null
@@ -1,24 +0,0 @@
-type vncflinger_exec, exec_type, file_type, system_file_type;
-type vncflinger, domain;
-typeattribute vncflinger coredomain;
-
-init_daemon_domain(vncflinger)
-binder_use(vncflinger)
-net_domain(vncflinger);
-
-# uinput
-allow vncflinger uhid_device:chr_file rw_file_perms;
-
-# read buffers from surfaceflinger
-allow vncflinger ion_device:chr_file r_file_perms;
-allow vncflinger surfaceflinger_service:service_manager find;
-binder_call(vncflinger, surfaceflinger);
-
-# buffer callbacks
-binder_call(surfaceflinger, vncflinger);
-
-get_prop(vncflinger, hwservicemanager_prop)
-allow vncflinger hal_graphics_allocator:fd use;
-allow vncflinger same_process_hal_file:file { execute read open getattr map };
-hal_client_domain(vncflinger, hal_graphics_allocator);
-hwbinder_use(vncflinger);
diff --git a/sepolicy/public/attributes b/sepolicy/public/attributes
deleted file mode 100644
index 8add675..0000000
--- a/sepolicy/public/attributes
+++ /dev/null
@@ -1,2 +0,0 @@
-# HALs
-hal_attribute_omni(omni_fod)