From 85f961fa5727f2a7e763a6177b8b15cda8a7cb2c Mon Sep 17 00:00:00 2001 From: shihchienc Date: Thu, 1 Sep 2022 07:48:37 +0000 Subject: [PATCH] Differentiate COD between phone and non-phone project Since we have tablet project and its COD device class should not be same as phone, we need to add tag for each tablet project so that when we build project, we can use different COD setting toward different projects. Bug: 244403430 Test: build project and check EIR tablet should have ComputeR/handheld PC/PDA class and phone should have Phone/Smartphone class Change-Id: I044d93b3c2200ad2025ae44319f0836b079f2584 --- device.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/device.mk b/device.mk index 83a997cd..06a0205a 100644 --- a/device.mk +++ b/device.mk @@ -127,6 +127,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.ril.enable_set_screen_state=1 # Set the Bluetooth Class of Device +ifneq ($(USE_TABLET_BT_COD),true) # Service Field: 0x5A -> 90 # Bit 14: LE audio # Bit 17: Networking @@ -137,6 +138,18 @@ PRODUCT_PROPERTY_OVERRIDES += \ # MINOR_CLASS: 0x0C -> 12 (Smart Phone) PRODUCT_PRODUCT_PROPERTIES += \ bluetooth.device.class_of_device=90,66,12 +else +# Service Field: 0x5A -> 90 +# Bit 14: LE audio +# Bit 17: Networking +# Bit 19: Capturing +# Bit 20: Object Transfer +# Bit 22: Telephony +# MAJOR_CLASS: 0x41 -> 65 (Computer) +# MINOR_CLASS: 0x10 -> 16 (Handheld PC/PDA clamshell) +PRODUCT_PRODUCT_PROPERTIES += \ + bluetooth.device.class_of_device=90,65,16 +endif # Set supported Bluetooth profiles to enabled PRODUCT_PRODUCT_PROPERTIES += \