From 411813f472acc4438a703e5be38b3edb51ab8983 Mon Sep 17 00:00:00 2001 From: Ted Wang Date: Mon, 27 Mar 2023 09:13:18 +0000 Subject: [PATCH] Switch to AIDL vendor service Bug: 274906319 Test: build pass Change-Id: Ic1b8cb6aec6c0ed48f3450d6e9db5a3aaf38f1c3 --- bcmbt/bluetooth.mk | 3 ++- bcmbt/manifest_bluetooth.xml | 10 +++------- bcmbt/sepolicy/file_contexts | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/bcmbt/bluetooth.mk b/bcmbt/bluetooth.mk index 6615878..6a951c7 100644 --- a/bcmbt/bluetooth.mk +++ b/bcmbt/bluetooth.mk @@ -1,6 +1,7 @@ PRODUCT_SOONG_NAMESPACES += vendor/broadcom/bluetooth PRODUCT_PACKAGES += \ - android.hardware.bluetooth@1.1-service.bcmbtlinux \ + android.hardware.bluetooth-V1-ndk.so \ + android.hardware.bluetooth-service.bcmbtlinux \ bt_vendor.conf \ android.hardware.bluetooth.prebuilt.xml \ android.hardware.bluetooth_le.prebuilt.xml diff --git a/bcmbt/manifest_bluetooth.xml b/bcmbt/manifest_bluetooth.xml index 64238c7..30d1506 100644 --- a/bcmbt/manifest_bluetooth.xml +++ b/bcmbt/manifest_bluetooth.xml @@ -1,12 +1,8 @@ - + android.hardware.bluetooth - hwbinder - 1.1 - - IBluetoothHci - default - + 1 + IBluetoothHci/default hardware.google.bluetooth.bt_channel_avoidance diff --git a/bcmbt/sepolicy/file_contexts b/bcmbt/sepolicy/file_contexts index d4681db..e7aac6a 100644 --- a/bcmbt/sepolicy/file_contexts +++ b/bcmbt/sepolicy/file_contexts @@ -1,5 +1,5 @@ # Bluetooth -/(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.1-service\.bcmbtlinux u:object_r:hal_bluetooth_btlinux_exec:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth-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