summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-09-29 23:02:39 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-09-29 23:02:39 +0000
commita7b3e6e8dcf068879ad20ec066470a81f38c696a (patch)
tree5d7dec0db008549acb25eef0edb1dc8b1e148e00
parent821d29585d522e52e125a04caece8121d82fbcbf (diff)
parent3c2f131b08ed9784186004dbbe05d8cb1d52d123 (diff)
downloadgoldfish-android13-qpr1-s7-release.tar.gz
Change-Id: I13b0d515113fd668e7c2ea9538ac69f64ed60c7c
-rw-r--r--64bitonly/product/vendor.mk6
-rw-r--r--bluetooth.prop35
-rw-r--r--vendor.mk4
3 files changed, 43 insertions, 2 deletions
diff --git a/64bitonly/product/vendor.mk b/64bitonly/product/vendor.mk
index b148f405..fa03784f 100644
--- a/64bitonly/product/vendor.mk
+++ b/64bitonly/product/vendor.mk
@@ -90,12 +90,16 @@ PRODUCT_PACKAGES += \
libGLESv2_angle
endif
+#
# Enable bluetooth
PRODUCT_PACKAGES += \
bt_vhci_forwarder \
android.hardware.bluetooth@1.1-service.btlinux \
android.hardware.bluetooth.audio@2.1-impl
- #
+
+# Bluetooth hardware properties.
+TARGET_PRODUCT_PROP := $(LOCAL_PATH)/../../bluetooth.prop
+
# Bluetooth se policies
BOARD_SEPOLICY_DIRS += system/bt/vendor_libs/linux/sepolicy
diff --git a/bluetooth.prop b/bluetooth.prop
new file mode 100644
index 00000000..0b2ef7a9
--- /dev/null
+++ b/bluetooth.prop
@@ -0,0 +1,35 @@
+# Set the Bluetooth Class of Device
+# Service Field: 0x5A -> 90
+# Bit 17: Networking
+# Bit 19: Capturing
+# Bit 20: Object Transfer
+# Bit 22: Telephony
+# MAJOR_CLASS: 0x02 -> 2 (Phone)
+# MINOR_CLASS: 0x0C -> 12 (Smart Phone)
+bluetooth.device.class_of_device=90,2,12
+
+# Set supported Bluetooth profiles to enabled
+
+# Disable asha profile as it will disable
+# the cts-verifier multi advertising tests (b/249536741)
+# 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.client.enabled=true
+bluetooth.profile.bas.client.enabled=true
+bluetooth.profile.ccp.server.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.vcp.controller.enabled=true
diff --git a/vendor.mk b/vendor.mk
index f977a20e..a922b2d4 100644
--- a/vendor.mk
+++ b/vendor.mk
@@ -93,7 +93,9 @@ PRODUCT_PACKAGES += \
bt_vhci_forwarder \
android.hardware.bluetooth@1.1-service.btlinux \
android.hardware.bluetooth.audio@2.1-impl
- #
+
+TARGET_PRODUCT_PROP := $(LOCAL_PATH)/bluetooth.prop
+
# Bluetooth se policies
BOARD_SEPOLICY_DIRS += system/bt/vendor_libs/linux/sepolicy