From a780ea6632dd1843d02f7038ca94372caec7147e Mon Sep 17 00:00:00 2001 From: Sal Savage Date: Sat, 1 Oct 2022 13:57:30 +0100 Subject: [PATCH] rosemary: Set default the Bluetooth 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) Bug: 217452259 Test: make -j; -- check that bluetooth.device.class_of_device is correct Change-Id: I24fd57bacbf6786a26f7079e7a6e9857dbe170d1 --- BoardConfig.mk | 1 + system_ext.prop | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 system_ext.prop diff --git a/BoardConfig.mk b/BoardConfig.mk index 5e726fa..07e999d 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -126,6 +126,7 @@ TARGET_TAP_TO_WAKE_NODE := "/sys/touchpanel/double_tap" # Properties TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop +TARGET_SYSTEM_EXT_PROP += $(DEVICE_PATH)/system_ext.prop TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop # Recovery diff --git a/system_ext.prop b/system_ext.prop new file mode 100644 index 0000000..8417559 --- /dev/null +++ b/system_ext.prop @@ -0,0 +1,2 @@ +# Bluetooth +bluetooth.device.class_of_device=90,2,12