Enable bluetooth profiles with product.prop
Referred to the change for db845c
Test: BT pair and BT earplug on both hikey and hikey960
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Change-Id: I60115e85f24a5b63f87043a936e864a9d44e4c8d
diff --git a/device-common.mk b/device-common.mk
index 33d28c1..dea852c 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -272,3 +272,5 @@
# TODO: disable this service once we implement system suspend
PRODUCT_PACKAGES += \
suspend_blocker
+
+TARGET_PRODUCT_PROP := $(LOCAL_PATH)/product.prop
diff --git a/product.prop b/product.prop
new file mode 100644
index 0000000..2499291
--- /dev/null
+++ b/product.prop
@@ -0,0 +1,24 @@
+# System props to enable aac vbr feature
+persist.bluetooth.a2dp_aac.vbr_supported=true
+# Set supported Bluetooth profiles to enabled
+bluetooth.profile.asha.central.enabled=true
+bluetooth.profile.a2dp.source.enabled=true
+bluetooth.profile.avrcp.target.enabled=true
+bluetooth.profile.bap.broadcast.assist.enabled=true
+bluetooth.profile.bap.unicast.server.enabled=true
+bluetooth.profile.bas.client.enabled=true
+bluetooth.profile.csip.set_coordinator.enabled=true
+bluetooth.profile.gatt.enabled=true
+bluetooth.profile.hap.client.enabled=true
+bluetooth.profile.hfp.ag.enabled=true
+bluetooth.profile.hid.device.enabled=true
+bluetooth.profile.hid.host.enabled=true
+bluetooth.profile.map.server.enabled=true
+bluetooth.profile.mcp.server.enabled=true
+bluetooth.profile.opp.enabled=true
+bluetooth.profile.pan.nap.enabled=true
+bluetooth.profile.pan.panu.enabled=true
+bluetooth.profile.pbap.server.enabled=true
+bluetooth.profile.sap.server.enabled=true
+bluetooth.profile.tbs.server.enabled=true
+bluetooth.profile.vc.server.enabled=true