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: I3f5bb98159ee5c3f01ba51d7064e262aa9da457f
This commit is contained in:
parent
ebec6a203c
commit
4a4cb90798
1 changed files with 11 additions and 0 deletions
11
device.mk
11
device.mk
|
@ -120,6 +120,17 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
PRODUCT_PRODUCT_PROPERTIES += \
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
persist.vendor.ril.camp_on_earlier=1
|
persist.vendor.ril.camp_on_earlier=1
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
# Set supported Bluetooth profiles to enabled
|
# Set supported Bluetooth profiles to enabled
|
||||||
PRODUCT_PRODUCT_PROPERTIES += \
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
bluetooth.profile.asha.central.enabled?=true \
|
bluetooth.profile.asha.central.enabled?=true \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue