otter: sepolicy: Remove FP5 policies
Change-Id: Iad12389fc907586dadfb86dc485724ee260ed721
diff --git a/sepolicy/vendor/attributes b/sepolicy/vendor/attributes
deleted file mode 100644
index 10b2176..0000000
--- a/sepolicy/vendor/attributes
+++ /dev/null
@@ -1,3 +0,0 @@
-attribute hal_display_iris;
-attribute hal_display_iris_client;
-attribute hal_display_iris_server;
diff --git a/sepolicy/vendor/bt_mac.te b/sepolicy/vendor/bt_mac.te
deleted file mode 100644
index 8306764..0000000
--- a/sepolicy/vendor/bt_mac.te
+++ /dev/null
@@ -1,10 +0,0 @@
-type bt_mac, domain;
-type bt_mac_exec, exec_type, vendor_file_type, file_type;
-init_daemon_domain(bt_mac);
-
-allow bt_mac vendor_toolbox_exec:file rx_file_perms;
-
-allow bt_mac mnt_vendor_file:dir search;
-r_dir_file(bt_mac, persist_t2m_param_file)
-
-set_prop(bt_mac, vendor_bluetooth_prop)
diff --git a/sepolicy/vendor/device.te b/sepolicy/vendor/device.te
index 9748dc3..8ec31c9 100644
--- a/sepolicy/vendor/device.te
+++ b/sepolicy/vendor/device.te
@@ -1,3 +1 @@
type fingerprint_device, dev_type;
-type traceability_block_device, dev_type;
-type vl53l1_device, dev_type;
diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te
index 8b8dc3e..78e72d7 100644
--- a/sepolicy/vendor/file.te
+++ b/sepolicy/vendor/file.te
@@ -1,4 +1,2 @@
type fingerprint_data_file, file_type, data_file_type;
-type persist_t2m_param_file, file_type, vendor_persist_type;
-type vendor_sysfs_emkit, fs_type, sysfs_type;
type vendor_sysfs_touchpanel, fs_type, sysfs_type;
diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts
index 2a465e6..2319552 100644
--- a/sepolicy/vendor/file_contexts
+++ b/sepolicy/vendor/file_contexts
@@ -1,37 +1,2 @@
-# Camera
-/dev/stmvl53l1_ranging u:object_r:vl53l1_device:s0
-/sys/devices/virtual/deviceinfo/device_info/CamNameB u:object_r:vendor_sysfs_camera:s0
-/sys/devices/virtual/deviceinfo/device_info/CamNameB2 u:object_r:vendor_sysfs_camera:s0
-/sys/devices/virtual/deviceinfo/device_info/CamNameF u:object_r:vendor_sysfs_camera:s0
-/sys/devices/virtual/deviceinfo/device_info/CamOTPB u:object_r:vendor_sysfs_camera:s0
-/sys/devices/virtual/deviceinfo/device_info/CamOTPB2 u:object_r:vendor_sysfs_camera:s0
-/sys/devices/virtual/deviceinfo/device_info/CamOTPF u:object_r:vendor_sysfs_camera:s0
-
-# Emkit info nodes
-/sys/emkit/info(/.*)? u:object_r:vendor_sysfs_emkit:s0
-
-# Fingerprint
-/data/vendor/focaltech(/.*)? u:object_r:fingerprint_data_file:s0
-/dev/focaltech_fp u:object_r:fingerprint_device:s0
-
-# Iris
-/vendor/bin/hw/vendor\.pixelworks\.hardware\.feature\.irisfeature-service u:object_r:hal_graphics_composer_default_exec:s0
-
-# MAC (Bluetooth)
-/vendor/bin/init\.bt_mac\.sh u:object_r:bt_mac_exec:s0
-/mnt/vendor/persist/t2m_param(/.*)? u:object_r:persist_t2m_param_file:s0
-
-# NFC
-/dev/st21nfc u:object_r:nfc_device:s0
-/vendor/bin/hw/android\.hardware\.nfc@1\.2-service-st u:object_r:hal_nfc_default_exec:s0
-
-# Partitions
-/dev/block/platform/soc/1d84000\.ufshc/by-name/study u:object_r:vendor_modem_efs_partition_device:s0
-/dev/block/platform/soc/1d84000\.ufshc/by-name/studybk_[ab] u:object_r:vendor_custom_ab_block_device:s0
-/dev/block/platform/soc/1d84000\.ufshc/by-name/traceability u:object_r:traceability_block_device:s0
-
-# Tct daemon
-/vendor/bin/tctd u:object_r:tctd_exec:s0
-
# Vibrator
/vendor/bin/hw/vendor\.qti\.hardware\.vibrator\.service\.otter u:object_r:hal_vibrator_default_exec:s0
diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts
deleted file mode 100644
index ff8ea08..0000000
--- a/sepolicy/vendor/genfs_contexts
+++ /dev/null
@@ -1,8 +0,0 @@
-# Camera
-genfscon sysfs /class/debug_ois u:object_r:vendor_sysfs_camera:s0
-
-# Touchscreen
-genfscon sysfs /devices/platform/goodix_ts.0 u:object_r:vendor_sysfs_touchpanel:s0
-
-# Wakeup
-genfscon sysfs /devices/platform/soc/soc:focalfp_ft9362/wakeup u:object_r:sysfs_wakeup:s0
diff --git a/sepolicy/vendor/hal_camera_default.te b/sepolicy/vendor/hal_camera_default.te
deleted file mode 100644
index d08c1dc..0000000
--- a/sepolicy/vendor/hal_camera_default.te
+++ /dev/null
@@ -1,7 +0,0 @@
-allow hal_camera_default vl53l1_device:chr_file rw_file_perms;
-allow hal_camera_default vendor_xdsp_device:chr_file r_file_perms;
-
-allow hal_camera_default vendor_sysfs_camera:dir r_dir_perms;
-allow hal_camera_default vendor_sysfs_camera:file rw_file_perms;
-
-set_prop(hal_camera_default, vendor_t2m_sys_prop)
diff --git a/sepolicy/vendor/hal_display_iris.te b/sepolicy/vendor/hal_display_iris.te
deleted file mode 100644
index d3d6acc..0000000
--- a/sepolicy/vendor/hal_display_iris.te
+++ /dev/null
@@ -1,4 +0,0 @@
-hal_attribute_hwservice(hal_display_iris, hal_display_iris_hwservice)
-
-binder_call(hal_display_iris_client, hal_display_iris_server)
-binder_call(hal_display_iris_server, hal_display_iris_client)
diff --git a/sepolicy/vendor/hal_fingerprint_default.te b/sepolicy/vendor/hal_fingerprint_default.te
deleted file mode 100644
index 5ffaf95..0000000
--- a/sepolicy/vendor/hal_fingerprint_default.te
+++ /dev/null
@@ -1,8 +0,0 @@
-add_service(hal_fingerprint_default, focaltech_vndservice);
-vndbinder_use(hal_fingerprint_default)
-
-allow hal_fingerprint_default fingerprint_device:chr_file rw_file_perms;
-allow hal_fingerprint_default tee_device:chr_file rw_file_perms;
-
-allow hal_fingerprint_default fingerprint_data_file:dir rw_dir_perms;
-allow hal_fingerprint_default fingerprint_data_file:file create_file_perms;
diff --git a/sepolicy/vendor/hal_graphics_composer_default.te b/sepolicy/vendor/hal_graphics_composer_default.te
deleted file mode 100644
index c1f17a2..0000000
--- a/sepolicy/vendor/hal_graphics_composer_default.te
+++ /dev/null
@@ -1,2 +0,0 @@
-hal_client_domain(hal_graphics_composer_default, hal_display_iris)
-hal_server_domain(hal_graphics_composer_default, hal_display_iris)
diff --git a/sepolicy/vendor/hal_sensors_default.te b/sepolicy/vendor/hal_sensors_default.te
deleted file mode 100644
index 63e2752..0000000
--- a/sepolicy/vendor/hal_sensors_default.te
+++ /dev/null
@@ -1,2 +0,0 @@
-allow hal_sensors_default vendor_sysfs_emkit:dir r_dir_perms;
-allow hal_sensors_default vendor_sysfs_emkit:file rw_file_perms;
diff --git a/sepolicy/vendor/hwservice.te b/sepolicy/vendor/hwservice.te
deleted file mode 100644
index ffe3f1c..0000000
--- a/sepolicy/vendor/hwservice.te
+++ /dev/null
@@ -1 +0,0 @@
-type hal_display_iris_hwservice, hwservice_manager_type;
diff --git a/sepolicy/vendor/hwservice_contexts b/sepolicy/vendor/hwservice_contexts
deleted file mode 100644
index 72ffbb5..0000000
--- a/sepolicy/vendor/hwservice_contexts
+++ /dev/null
@@ -1,2 +0,0 @@
-vendor.pixelworks.hardware.display::IIris u:object_r:hal_display_iris_hwservice:s0
-vendor.pixelworks.hardware.feature::IIrisFeature u:object_r:hal_display_iris_hwservice:s0
diff --git a/sepolicy/vendor/property.te b/sepolicy/vendor/property.te
deleted file mode 100644
index 3da1f67..0000000
--- a/sepolicy/vendor/property.te
+++ /dev/null
@@ -1 +0,0 @@
-vendor_internal_prop(vendor_t2m_sys_prop)
diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts
deleted file mode 100644
index cbec373..0000000
--- a/sepolicy/vendor/property_contexts
+++ /dev/null
@@ -1,4 +0,0 @@
-# Serial Nums
-vendor.t2m.camera_main.sn u:object_r:vendor_t2m_sys_prop:s0
-vendor.t2m.camera_aux.sn u:object_r:vendor_t2m_sys_prop:s0
-vendor.t2m.camera_front.sn u:object_r:vendor_t2m_sys_prop:s0
diff --git a/sepolicy/vendor/tctd.te b/sepolicy/vendor/tctd.te
deleted file mode 100644
index 2cd76a1..0000000
--- a/sepolicy/vendor/tctd.te
+++ /dev/null
@@ -1,14 +0,0 @@
-type tctd, domain;
-type tctd_exec, exec_type, vendor_file_type, file_type;
-init_daemon_domain(tctd);
-
-# Traceability
-allow tctd block_device:dir search;
-allow tctd traceability_block_device:blk_file rw_file_perms;
-
-# Bluetooth MAC
-dontaudit tctd mnt_vendor_file:dir search;
-dontaudit tctd property_socket:sock_file write;
-
-# Qualcomm IPC router, necessary groundwork for the vendor.rmt_storage service
-allow tctd self:qipcrtr_socket create_socket_perms_no_ioctl;
diff --git a/sepolicy/vendor/vndservice.te b/sepolicy/vendor/vndservice.te
deleted file mode 100644
index ab4d7ba..0000000
--- a/sepolicy/vendor/vndservice.te
+++ /dev/null
@@ -1 +0,0 @@
-type focaltech_vndservice, vndservice_manager_type;
diff --git a/sepolicy/vendor/vndservice_contexts b/sepolicy/vendor/vndservice_contexts
deleted file mode 100644
index 1eaf508..0000000
--- a/sepolicy/vendor/vndservice_contexts
+++ /dev/null
@@ -1 +0,0 @@
-FocalFingerprintService u:object_r:focaltech_vndservice:s0