diff options
-rw-r--r-- | 64bitonly/product/vendor.mk | 6 | ||||
-rw-r--r-- | bluetooth.prop | 35 | ||||
-rw-r--r-- | vendor.mk | 4 |
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 @@ -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 |