beast: Migrate deprecated BT profile configs into sysprops
authorNolen Johnson <johnsonnolen@gmail.com>
Sat, 28 Oct 2023 19:05:27 +0000 (15:05 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Sat, 28 Oct 2023 19:08:33 +0000 (19:08 +0000)
Google moved all these into sysprops except for "profile_supported_hdp"
which is obsolete since Android 8.0.

This effectivelly disables Hands-Free Profile (HFP) Audio Gateway role,
Object Push Profile (OPP) and Phonebook Access Profile (PBAP) server
role.

Change-Id: I6f96862611b7f21b30157188e6373984561342aa

rro_overlays/BluetoothOverlay/res/values/config.xml
vendor.prop

index 0d9c979fd1b2703526817d3287bbeeb7dec72498..20608863d3605db3e0211d04f4dd48297ea59f30 100644 (file)
@@ -1,8 +1,8 @@
+<!-- Copyright (C) 2021-2023 The LineageOS Project
+
+     SPDX-License-Identifier: Apache-2.0
+-->
 <resources>
-    <bool name="profile_supported_opp">false</bool>
-    <bool name="profile_supported_hdp">false</bool>
-    <bool name="profile_supported_hs_hfp">false</bool>
-    <bool name="profile_supported_pbap">false</bool>
-    <bool name="pbap_include_photos_in_vcard">false</bool>
     <bool name="enable_phone_policy">false</bool>
+    <bool name="pbap_include_photos_in_vcard">false</bool>
 </resources>
index 81d0929a29ada8bac2a7af40f4c34077c3d37606..6998c84af52fc004fccf6ad1c0f6ddb5d8bb8921 100644 (file)
@@ -1,11 +1,14 @@
 #
-# Copyright (C) 2022 The LineageOS Project
+# Copyright (C) 2022-2023 The LineageOS Project
 #
 # SPDX-License-Identifier: Apache-2.0
 #
 
 ## Bluetooth
 bluetooth.device.default_name=ADT-2
+bluetooth.profile.hfp.ag.enabled=false
+bluetooth.profile.opp.enabled=false
+bluetooth.profile.pbap.server.enabled=false
 persist.bluetooth.rtkcoex=true
 ro.autoconnectbt.macprefix=00:CD:FF
 ro.autoconnectbt.btclass=50c