g12-common: Use the ?= operator so BT properties can be overridden
authorSal Savage <salsavage@google.com>
Wed, 27 Apr 2022 20:30:38 +0000 (13:30 -0700)
committerBruno Martins <bgcngm@gmail.com>
Fri, 27 Oct 2023 20:05:49 +0000 (21:05 +0100)
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.

Bug: 230638462
Test: adb shell getprop | grep bluetooth
Change-Id: Id6cd7901555edafef141bbc1bbd5e06dc3a54d0c

vendor.prop

index ab96fd43945ea521de83b257d3a7dde23f9ccf16..4caad75be41fda6370a10cf19aa259cca189bf4d 100644 (file)
@@ -1,15 +1,15 @@
 ## Bluetooth
 bluetooth.core.gap.le.privacy.enabled=false
-bluetooth.profile.asha.central.enabled=true
-bluetooth.profile.a2dp.source.enabled=true
-bluetooth.profile.avrcp.target.enabled=true
-bluetooth.profile.gatt.enabled=true
-bluetooth.profile.hfp.ag.enabled=true
-bluetooth.profile.hid.host.enabled=true
-bluetooth.profile.mcp.server.enabled=true
-bluetooth.profile.opp.enabled=true
-bluetooth.profile.pan.nap.enabled=true
-bluetooth.profile.pan.panu.enabled=true
+bluetooth.profile.a2dp.source.enabled?=true
+bluetooth.profile.asha.central.enabled?=true
+bluetooth.profile.avrcp.target.enabled?=true
+bluetooth.profile.gatt.enabled?=true
+bluetooth.profile.hfp.ag.enabled?=true
+bluetooth.profile.hid.host.enabled?=true
+bluetooth.profile.mcp.server.enabled?=true
+bluetooth.profile.opp.enabled?=true
+bluetooth.profile.pan.nap.enabled?=true
+bluetooth.profile.pan.panu.enabled?=true
 bluetooth.core.gap.le.conn.min.limit=6
 persist.vendor.bluetooth.prefferedrole=master
 wc_transport.soc_initialized=0