m5: Migrate deprecated BT profile configs into sysprops
authorBruno Martins <bgcngm@gmail.com>
Fri, 27 Oct 2023 12:14:29 +0000 (13:14 +0100)
committerNolen Johnson <johnsonnolen@gmail.com>
Sat, 28 Oct 2023 18:58:01 +0000 (14:58 -0400)
Google moved all these into sysprops except for "profile_supported_hdp"
which is obsolete since Android 8.0.

This effectivelly disables Advanced Audio Distribution Profile (A2DP)
Sink role, Audio/Video Remote Control Profile (AVRCP) Controller role,
Hands-Free Profile (HFP) Audio Gateway role, Hands-Free Profile (HFP)
Hands-free role, Message Access Profile (MAP) Client role, Object Push
Profile (OPP), Personal Area Networking Profile (PAN) PANU role and
Phonebook Access Profile (PBAP) client and server roles. All the rest
are enabled by default in the common device tree.

As for the config "hfp_client_connection_service", Google dropped it
since it was only used in HfpClientConnectionServiceTest and blocking
the test from running.

Change-Id: I6f96862611b7f21b30157188e6373984561342aa

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

index 7df2fca754b243af6a8fc11b3236805a2acdfdf4..a3b09802609d5c4bc0b944e2a7b5eb2b7d9201f3 100644 (file)
@@ -1,22 +1,7 @@
-<resources>
-    <bool name="profile_supported_avrcp_controller">false</bool>
-    <bool name="profile_supported_a2dp_sink">false</bool>
-    <bool name="profile_supported_hs_hfp">false</bool>
-    <bool name="profile_supported_pbap">false</bool>
-    <bool name="profile_supported_hdp">false</bool>
-    <bool name="profile_supported_opp">false</bool>
-    <bool name="enable_phone_policy">false</bool>
-
-    <bool name="profile_supported_hfpclient">false</bool>
-    <bool name="hfp_client_connection_service_enabled">false</bool>
-    <bool name="profile_supported_pbapclient">false</bool>
-    <bool name="profile_supported_pan">false</bool>
-    <bool name="profile_supported_mapmce">false</bool>
+<!-- Copyright (C) 2021-2023 The LineageOS Project
 
-    <bool name="profile_supported_hid_host">true</bool>
-    <bool name="profile_supported_hid_device">true</bool>
-    <bool name="profile_supported_avrcp_target">true</bool>
-    <bool name="profile_supported_a2dp">true</bool>
-    <bool name="profile_supported_gatt">true</bool>
-    <bool name="profile_supported_map">true</bool>
+     SPDX-License-Identifier: Apache-2.0
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+    <bool name="enable_phone_policy">false</bool>
 </resources>
index b30f2f9c1059c3ca56b5da6ede760bbd41171f82..3bd7ac168850351cc1e63edfa71eedddd255f0bc 100644 (file)
@@ -1,11 +1,21 @@
 #
-# Copyright (C) 2021 The LineageOS Project
+# Copyright (C) 2021-2023 The LineageOS Project
 #
 # SPDX-License-Identifier: Apache-2.0
 #
 
 ## Bluetooth
 bluetooth.device.default_name=Banana Pi M5
+bluetooth.profile.a2dp.sink.enabled=false
+bluetooth.profile.avrcp.controller.enabled=false
+bluetooth.profile.hfp.ag.enabled=false
+bluetooth.profile.hfp.hf.enabled=false
+bluetooth.profile.map.client.enabled=false
+bluetooth.profile.map.server.enabled=true
+bluetooth.profile.opp.enabled=false
+bluetooth.profile.pan.panu.enabled=false
+bluetooth.profile.pbap.client.enabled=false
+bluetooth.profile.pbap.server.enabled=false
 
 # Dolby
 ro.vendor.platform.support.dolbyvision=false