summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSal Savage <salsavage@google.com>2022-04-25 16:43:16 -0700
committerSal Savage <salsavage@google.com>2022-04-25 16:43:16 -0700
commitd7af2bfb3d311026f46fa8286b4812b1a6b7366a (patch)
treebf8b29774deae2f8561434bfbd13b30fe4f4d6dc
parentd10561cad7d6f101ac623b71d5b6b0f86d69023c (diff)
downloadsunfish-d7af2bfb3d311026f46fa8286b4812b1a6b7366a.tar.gz
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
-rw-r--r--product.prop10
1 files changed, 10 insertions, 0 deletions
diff --git a/product.prop b/product.prop
index 91825781..68bee760 100644
--- a/product.prop
+++ b/product.prop
@@ -94,6 +94,16 @@ persist.bluetooth.bqr.event_mask=14
# BQR minimum report interval configuration
persist.bluetooth.bqr.min_interval_ms=500
+# 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
bluetooth.profile.asha.central.enabled=true
bluetooth.profile.a2dp.source.enabled=true