mirror of
https://github.com/Evolution-X-Devices/device_google_zuma
synced 2026-01-30 19:53:51 +00:00
Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,66,12
The meaning is as follows:
{Service Field, Major class, Minor class}
Service Field: 0x5A -> 90
Bit 14: LE audio
Bit 17: Networking
Bit 19: Capturing
Bit 20: Object Transfer
Bit 22: Telephony
MAJOR_CLASS: 0x42 -> 66 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)
Bug: 268583002
Test: Check COD
Change-Id: I46b62aa06296f3b565cd35da5d6742ab0b30fab8
This commit is contained in:
12
device.mk
12
device.mk
@@ -143,6 +143,18 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.vendor.ril.enable_set_screen_state=1
|
||||
|
||||
# Set the Bluetooth Class of Device
|
||||
# Service Field: 0x5A -> 90
|
||||
# Bit 14: LE audio
|
||||
# Bit 17: Networking
|
||||
# Bit 19: Capturing
|
||||
# Bit 20: Object Transfer
|
||||
# Bit 22: Telephony
|
||||
# MAJOR_CLASS: 0x42 -> 66 (Phone)
|
||||
# MINOR_CLASS: 0x0C -> 12 (Smart Phone)
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
bluetooth.device.class_of_device=90,66,12
|
||||
|
||||
# Set supported Bluetooth profiles to enabled
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
bluetooth.profile.asha.central.enabled=true \
|
||||
|
||||
Reference in New Issue
Block a user