From 798b72ad9cd898c26ebaff59c143a05562739bab Mon Sep 17 00:00:00 2001 From: Adam Shih Date: Mon, 4 Oct 2021 09:56:33 +0800 Subject: [PATCH] review hal_tetheroffload_default Bug: 201599426 Test: boot to home with hal_tetheroffload_default started Change-Id: I85491753dc7336eff285f61c71ad51840a13d7c3 --- legacy/device.te | 3 --- legacy/file_contexts | 4 ---- whitechapel_pro/device.te | 2 ++ whitechapel_pro/file_contexts | 2 ++ {legacy => whitechapel_pro}/hal_tetheroffload_default.te | 0 5 files changed, 4 insertions(+), 7 deletions(-) rename {legacy => whitechapel_pro}/hal_tetheroffload_default.te (100%) diff --git a/legacy/device.te b/legacy/device.te index 11d87f51..182fe4d5 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 650a1858..b7ab1342 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 168968bb..30753c77 100644 --- a/whitechapel_pro/device.te +++ b/whitechapel_pro/device.te @@ -6,3 +6,5 @@ type persist_block_device, dev_type, bdev_type; 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 094d339b..e837d038 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