sdm710-common: 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: I07e83ca352ff969be0e53a0f63b6c940b6c34dfb
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
This commit is contained in:
Sal Savage 2022-04-25 16:42:15 -07:00 committed by CakesTwix
parent 9513de19a9
commit c7b191de6f
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825

View file

@ -42,6 +42,16 @@ ro.com.google.ime.kb_pad_port_b=1
# Disable vsync for cpu rendered apps # Disable vsync for cpu rendered apps
debug.cpurend.vsync=false debug.cpurend.vsync=false
# 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)
bluetooth.device.class_of_device=90,2,12
# Set supported Bluetooth profiles to enabled # Set supported Bluetooth profiles to enabled
bluetooth.profile.asha.central.enabled=true bluetooth.profile.asha.central.enabled=true
bluetooth.profile.a2dp.source.enabled=true bluetooth.profile.a2dp.source.enabled=true