diff --git a/a2dp_in_audio_policy_configuration.xml b/a2dp_in_audio_policy_configuration.xml
new file mode 100644
index 00000000..57bd4f81
--- /dev/null
+++ b/a2dp_in_audio_policy_configuration.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/audio_policy_configuration_bluetooth_hal_enabled.xml b/audio_policy_configuration_bluetooth_hal_enabled.xml
new file mode 100644
index 00000000..4ad3f6d2
--- /dev/null
+++ b/audio_policy_configuration_bluetooth_hal_enabled.xml
@@ -0,0 +1,210 @@
+
+
+
+
+
+
+
+
+
+ - Speaker
+ - Speaker Safe
+ - Earpiece
+ - Telephony Tx
+ - Built-In Mic
+ - Built-In Back Mic
+ - Telephony Rx
+
+ Speaker
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bluetooth_audio_policy_configuration.xml b/bluetooth_audio_policy_configuration.xml
new file mode 100644
index 00000000..ce78eb00
--- /dev/null
+++ b/bluetooth_audio_policy_configuration.xml
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/device.mk b/device.mk
index 38ed3e7c..087aac99 100755
--- a/device.mk
+++ b/device.mk
@@ -500,12 +500,14 @@ PRODUCT_PACKAGES += \
audio.usb.default \
audio.r_submix.default \
libaudio-resampler \
- audio.hearing_aid.default
+ audio.hearing_aid.default \
+ audio.bluetooth.default
PRODUCT_PACKAGES += \
android.hardware.audio@5.0-impl:32 \
android.hardware.audio.effect@5.0-impl:32 \
android.hardware.soundtrigger@2.2-impl:32 \
+ android.hardware.bluetooth.audio@2.0-impl \
android.hardware.audio@2.0-service
# stereo speakers: orientation changes swap L/R channels
@@ -538,6 +540,9 @@ endif
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
+ $(LOCAL_PATH)/audio_policy_configuration_bluetooth_hal_enabled.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_hal_enabled.xml \
+ $(LOCAL_PATH)/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
+ $(LOCAL_PATH)/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_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 \
diff --git a/manifest.xml b/manifest.xml
index 0531ba4e..6d46674e 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -35,6 +35,15 @@
default
+
+ android.hardware.bluetooth.audio
+ hwbinder
+ 2.0
+
+ IBluetoothAudioProvidersFactory
+ default
+
+
android.hardware.boot
hwbinder