mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 19:18:35 +00:00
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:
committed by
TreeHugger Robot
parent
8de207127f
commit
85f961fa57
13
device.mk
13
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 += \
|
||||
|
||||
Reference in New Issue
Block a user