review hal_tetheroffload_default
Bug: 201599426
Test: boot to home with hal_tetheroffload_default started
Change-Id: I85491753dc7336eff285f61c71ad51840a13d7c3
diff --git a/legacy/device.te b/legacy/device.te
index 11d87f5..182fe4d 100644
--- a/legacy/device.te
+++ b/legacy/device.te
@@ -1,6 +1,3 @@
-# Exynos devices
-type vendor_toe_device, dev_type;
-
# usbpd
type logbuffer_device, dev_type;
diff --git a/legacy/file_contexts b/legacy/file_contexts
index 650a185..b7ab134 100644
--- a/legacy/file_contexts
+++ b/legacy/file_contexts
@@ -144,10 +144,6 @@
# R4
/vendor/bin/hw/hardware\.qorvo\.uwb-service u:object_r:hal_uwb_vendor_default_exec:s0
-# Tetheroffload Service
-/dev/dit2 u:object_r:vendor_toe_device:s0
-/vendor/bin/hw/vendor\.samsung_slsi\.hardware\.tetheroffload@1\.0-service u:object_r:hal_tetheroffload_default_exec:s0
-
# pixelstats binary
/vendor/bin/pixelstats-vendor u:object_r:pixelstats_vendor_exec:s0
diff --git a/whitechapel_pro/device.te b/whitechapel_pro/device.te
index 168968b..30753c7 100644
--- a/whitechapel_pro/device.te
+++ b/whitechapel_pro/device.te
@@ -6,3 +6,5 @@
type efs_block_device, dev_type, bdev_type;
type modem_userdata_block_device, dev_type, bdev_type;
type sg_device, dev_type;
+type vendor_toe_device, dev_type;
+
diff --git a/whitechapel_pro/file_contexts b/whitechapel_pro/file_contexts
index 094d339..e837d03 100644
--- a/whitechapel_pro/file_contexts
+++ b/whitechapel_pro/file_contexts
@@ -19,6 +19,7 @@
/vendor/bin/hw/vendor\.google\.wireless_charger@1\.3-service-vendor u:object_r:hal_wlc_exec:s0
/vendor/bin/hw/android\.hardware\.usb@1\.3-service\.gs201 u:object_r:hal_usb_impl_exec:s0
/vendor/bin/hw/rild_exynos u:object_r:rild_exec:s0
+/vendor/bin/hw/vendor\.samsung_slsi\.hardware\.tetheroffload@1\.0-service u:object_r:hal_tetheroffload_default_exec:s0
# Vendor Firmwares
/vendor/firmware(/.*)? u:object_r:vendor_fw_file:s0
@@ -27,6 +28,7 @@
/dev/dri/card0 u:object_r:graphics_device:s0
/dev/fimg2d u:object_r:graphics_device:s0
/dev/g2d u:object_r:graphics_device:s0
+/dev/dit2 u:object_r:vendor_toe_device:s0
/dev/trusty-ipc-dev0 u:object_r:tee_device:s0
/dev/sg1 u:object_r:sg_device:s0
/dev/st21nfc u:object_r:nfc_device:s0
diff --git a/legacy/hal_tetheroffload_default.te b/whitechapel_pro/hal_tetheroffload_default.te
similarity index 100%
rename from legacy/hal_tetheroffload_default.te
rename to whitechapel_pro/hal_tetheroffload_default.te