From 0c9ace503c07ffa433beed313b013956f51e9ff8 Mon Sep 17 00:00:00 2001 From: Adam Shih Date: Tue, 16 Aug 2022 13:58:57 +0800 Subject: [PATCH] move bcmbt settings to gs-common Bug: 242661555 Test: build pass Change-Id: Ib02f88317c31438871ac84bbe71d359b7186394d --- bluetooth/device.te | 3 --- bluetooth/file_contexts | 6 ------ bluetooth/genfs_contexts | 7 ------- bluetooth/hal_bluetooth_btlinux.te | 22 ---------------------- bluetooth/hwservice.te | 3 --- bluetooth/hwservice_contexts | 6 ------ 6 files changed, 47 deletions(-) delete mode 100644 bluetooth/device.te delete mode 100644 bluetooth/file_contexts delete mode 100644 bluetooth/genfs_contexts delete mode 100644 bluetooth/hal_bluetooth_btlinux.te delete mode 100644 bluetooth/hwservice.te delete mode 100644 bluetooth/hwservice_contexts diff --git a/bluetooth/device.te b/bluetooth/device.te deleted file mode 100644 index a2563322..00000000 --- a/bluetooth/device.te +++ /dev/null @@ -1,3 +0,0 @@ -# Bt Wifi Coexistence device -type wb_coexistence_dev, dev_type; - diff --git a/bluetooth/file_contexts b/bluetooth/file_contexts deleted file mode 100644 index d4681dbd..00000000 --- a/bluetooth/file_contexts +++ /dev/null @@ -1,6 +0,0 @@ -# Bluetooth -/(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.1-service\.bcmbtlinux u:object_r:hal_bluetooth_btlinux_exec:s0 - -/dev/wbrc u:object_r:wb_coexistence_dev:s0 -/dev/ttySAC16 u:object_r:hci_attach_dev:s0 - diff --git a/bluetooth/genfs_contexts b/bluetooth/genfs_contexts deleted file mode 100644 index 607e1462..00000000 --- a/bluetooth/genfs_contexts +++ /dev/null @@ -1,7 +0,0 @@ -genfscon sysfs /devices/platform/odm/odm:btbcm/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0 -genfscon sysfs /devices/platform/odm/odm:btbcm/rfkill/rfkill2/state u:object_r:sysfs_bluetooth_writable:s0 -genfscon proc /bluetooth/sleep/lpm u:object_r:proc_bluetooth_writable:s0 -genfscon proc /bluetooth/sleep/btwrite u:object_r:proc_bluetooth_writable:s0 -genfscon proc /bluetooth/sleep/btwake u:object_r:proc_bluetooth_writable:s0 -genfscon proc /bluetooth/timesync u:object_r:proc_bluetooth_writable:s0 - diff --git a/bluetooth/hal_bluetooth_btlinux.te b/bluetooth/hal_bluetooth_btlinux.te deleted file mode 100644 index f348099e..00000000 --- a/bluetooth/hal_bluetooth_btlinux.te +++ /dev/null @@ -1,22 +0,0 @@ -add_hwservice(hal_bluetooth_btlinux, hal_bluetooth_coexistence_hwservice); -get_prop(hal_bluetooth_btlinux, boot_status_prop) - -allow hal_bluetooth_btlinux sysfs_bluetooth_writable:file rw_file_perms; -allow hal_bluetooth_btlinux proc_bluetooth_writable:file rw_file_perms; -allow hal_bluetooth_btlinux hci_attach_dev:chr_file rw_file_perms; -allow hal_bluetooth_btlinux wb_coexistence_dev:chr_file rw_file_perms; -binder_call(hal_bluetooth_btlinux, servicemanager) - -# power stats -vndbinder_use(hal_bluetooth_btlinux) -allow hal_bluetooth_btlinux hal_power_stats_vendor_service:service_manager find; -binder_call(hal_bluetooth_btlinux, hal_power_stats_default) - -allow hal_bluetooth_btlinux sscoredump_vendor_data_crashinfo_file:dir create_dir_perms; -allow hal_bluetooth_btlinux sscoredump_vendor_data_crashinfo_file:file create_file_perms; - -userdebug_or_eng(` - allow hal_bluetooth_btlinux sscoredump_vendor_data_coredump_file:dir create_dir_perms; - allow hal_bluetooth_btlinux sscoredump_vendor_data_coredump_file:file create_file_perms; - allow hal_bluetooth_btlinux logbuffer_device:chr_file r_file_perms; -') diff --git a/bluetooth/hwservice.te b/bluetooth/hwservice.te deleted file mode 100644 index 5e36cd0c..00000000 --- a/bluetooth/hwservice.te +++ /dev/null @@ -1,3 +0,0 @@ -# Bluetooth HAL extension -type hal_bluetooth_coexistence_hwservice, hwservice_manager_type, vendor_hwservice_type; - diff --git a/bluetooth/hwservice_contexts b/bluetooth/hwservice_contexts deleted file mode 100644 index 8480b4e1..00000000 --- a/bluetooth/hwservice_contexts +++ /dev/null @@ -1,6 +0,0 @@ -# Bluetooth HAL extension -hardware.google.bluetooth.bt_channel_avoidance::IBTChannelAvoidance u:object_r:hal_bluetooth_coexistence_hwservice:s0 -hardware.google.bluetooth.sar::IBluetoothSar u:object_r:hal_bluetooth_coexistence_hwservice:s0 -hardware.google.bluetooth.ccc::IBluetoothCcc u:object_r:hal_bluetooth_coexistence_hwservice:s0 -hardware.google.bluetooth.ewp::IBluetoothEwp u:object_r:hal_bluetooth_coexistence_hwservice:s0 -hardware.google.bluetooth.ext::IBluetoothExt u:object_r:hal_bluetooth_coexistence_hwservice:s0