summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Jansen <jansene@google.com>2022-09-23 09:49:20 -0700
committerErwin Jansen <jansene@google.com>2022-09-27 13:15:06 -0700
commitccbdf2509894f23baf93b0239a45d16e1391eab8 (patch)
tree7ae14568292bdb5f0b1257c984d64954ca82ecc6
parentd4cf4e6b1a077a13ce4130fd3c0ef3e047ec2eae (diff)
downloadgoldfish-ccbdf2509894f23baf93b0239a45d16e1391eab8.tar.gz
Add bluetooth configuration
We were missing the bluetooth configuration properties, causing our hardware to be improperly configured, this in turn results in us not being able to pass the tethering gts tests. Bug: 244450474 Bug: 247143664 Test: Run emulator and cts verifier Change-Id: Idebebded43f9da8f937c10a22976ea2d801ff216
-rw-r--r--64bitonly/product/vendor.mk6
-rw-r--r--bluetooth.prop31
-rw-r--r--vendor.mk4
3 files changed, 39 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..2bce15e6
--- /dev/null
+++ b/bluetooth.prop
@@ -0,0 +1,31 @@
+# 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
+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.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.ccp.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