mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 12:05:32 -04:00
universal7885: bluetooth: set default the 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)
This commit is contained in:
parent
fa2d822329
commit
807014fedb
1 changed files with 11 additions and 0 deletions
|
|
@ -51,6 +51,17 @@ PRODUCT_COPY_FILES += \
|
||||||
hardware/samsung_slsi/libbt/conf/bt_did.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_did.conf \
|
hardware/samsung_slsi/libbt/conf/bt_did.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_did.conf \
|
||||||
hardware/samsung_slsi/libbt/conf/bt_vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
|
hardware/samsung_slsi/libbt/conf/bt_vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
# Camera
|
# Camera
|
||||||
TARGET_BOARD_CAMERA_COUNT ?= 3
|
TARGET_BOARD_CAMERA_COUNT ?= 3
|
||||||
ifeq ($(TARGET_BOARD_CAMERA_COUNT), 3)
|
ifeq ($(TARGET_BOARD_CAMERA_COUNT), 3)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue