From 807014fedbfadbda85fbae730d3184e069ffc2e7 Mon Sep 17 00:00:00 2001 From: Sal Savage Date: Tue, 16 Aug 2022 19:47:41 +0100 Subject: [PATCH] universal7885: bluetooth: set default the class of device The class of device is a string with a list of uint8t values: 90,2,12 The meaning is as follows: {Service Field, Major class, Minor class} 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) --- universal7885-common/universal7885-common.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/universal7885-common/universal7885-common.mk b/universal7885-common/universal7885-common.mk index 669e8e9..238787c 100644 --- a/universal7885-common/universal7885-common.mk +++ b/universal7885-common/universal7885-common.mk @@ -51,6 +51,17 @@ PRODUCT_COPY_FILES += \ hardware/samsung_slsi/libbt/conf/bt_did.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_did.conf \ hardware/samsung_slsi/libbt/conf/bt_vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf +# 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) +PRODUCT_PRODUCT_PROPERTIES += \ + bluetooth.device.class_of_device=90,2,12 + # Camera TARGET_BOARD_CAMERA_COUNT ?= 3 ifeq ($(TARGET_BOARD_CAMERA_COUNT), 3)