From c58977ea7a09745690c40c10f96579d566a571f5 Mon Sep 17 00:00:00 2001 From: Sal Savage Date: Sat, 16 Mar 2024 10:09:25 -0400 Subject: [PATCH] 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: I24fd57bacbf6786a26f7079e7a6e9857dbe170d1 --- system.prop | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system.prop b/system.prop index 8d91309..44c9c5e 100644 --- a/system.prop +++ b/system.prop @@ -28,3 +28,12 @@ bluetooth.profile.pan.nap.enabled?=true bluetooth.profile.pan.panu.enabled?=true bluetooth.profile.pbap.server.enabled?=true bluetooth.profile.sap.server.enabled?=true +# 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