From 2bd6390627677d67241b60da52dd5a6648d85036 Mon Sep 17 00:00:00 2001 From: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com> Date: Sat, 9 Dec 2023 17:01:31 +0700 Subject: [PATCH] X6833B: Configure Bluetooth stack Refs: https://github.com/PQEnablers-Devices/android_device_xiaomi_ruby/commit/816299619623eb68c3e13eb4d2f5161693691a81 Co-authored-by: electimon Co-authored-by: bengris32 Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com> --- configs/properties/vendor.prop | 7 +++++++ device.mk | 4 ++++ proprietary-files.txt | 13 +++++++++++++ 3 files changed, 24 insertions(+) diff --git a/configs/properties/vendor.prop b/configs/properties/vendor.prop index b2c71ef..797e6f2 100644 --- a/configs/properties/vendor.prop +++ b/configs/properties/vendor.prop @@ -2,6 +2,13 @@ aaudio.mmap_exclusive_policy=2 aaudio.mmap_policy=2 +# Bluetooth +persist.bluetooth.a2dp_offload.cap=sbc-aac +persist.bluetooth.a2dp_offload.disabled=true +ro.bluetooth.a2dp_offload.supported=true +ro.vendor.bt.platform=connac1x +ro.vendor.mtk.bt_sap_enable=true + # Connsys persist.vendor.connsys.chipid=-1 persist.vendor.connsys.dynamic.dump=0 diff --git a/device.mk b/device.mk index d9c1e87..610a831 100644 --- a/device.mk +++ b/device.mk @@ -70,6 +70,10 @@ PRODUCT_COPY_FILES += \ frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml +# Bluetooth +PRODUCT_PACKAGES += \ + android.hardware.bluetooth@1.1.vendor + # Boot control HAL PRODUCT_PACKAGES += \ android.hardware.boot@1.2-service \ diff --git a/proprietary-files.txt b/proprietary-files.txt index bb8f39f..eb40750 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -184,6 +184,19 @@ vendor/etc/audio_param/preset_ringtone.bin vendor/etc/audio_param/preset_voice.bin vendor/etc/audio_param/preset_voip.bin +# Bluetooth +vendor/bin/hw/android.hardware.bluetooth@1.1-service-mediatek +vendor/etc/init/android.hardware.bluetooth@1.1-service-mediatek.rc +vendor/etc/init/init.bt_drv.rc +vendor/lib/hw/android.hardware.bluetooth@1.1-impl-mediatek.so +vendor/lib/libbluetooth_mtk.so +vendor/lib/libbluetooth_mtk_pure.so +vendor/lib/libbt-vendor.so +vendor/lib64/hw/android.hardware.bluetooth@1.1-impl-mediatek.so +vendor/lib64/libbluetooth_mtk.so +vendor/lib64/libbluetooth_mtk_pure.so +vendor/lib64/libbt-vendor.so + # Display vendor/bin/hw/mt6789/android.hardware.graphics.allocator@4.0-service-mediatek.mt6789 vendor/bin/hw/vendor.mediatek.hardware.pq@2.2-service