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
This commit is contained in:
shihchienc 2022-09-01 07:48:37 +00:00 committed by TreeHugger Robot
parent 8de207127f
commit 85f961fa57

View file

@ -127,6 +127,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.ril.enable_set_screen_state=1 persist.vendor.ril.enable_set_screen_state=1
# Set the Bluetooth Class of Device # Set the Bluetooth Class of Device
ifneq ($(USE_TABLET_BT_COD),true)
# Service Field: 0x5A -> 90 # Service Field: 0x5A -> 90
# Bit 14: LE audio # Bit 14: LE audio
# Bit 17: Networking # Bit 17: Networking
@ -137,6 +138,18 @@ PRODUCT_PROPERTY_OVERRIDES += \
# MINOR_CLASS: 0x0C -> 12 (Smart Phone) # MINOR_CLASS: 0x0C -> 12 (Smart Phone)
PRODUCT_PRODUCT_PROPERTIES += \ PRODUCT_PRODUCT_PROPERTIES += \
bluetooth.device.class_of_device=90,66,12 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 # Set supported Bluetooth profiles to enabled
PRODUCT_PRODUCT_PROPERTIES += \ PRODUCT_PRODUCT_PROPERTIES += \