From 3cd6cbd422a6a2ca69786f179ca439616b6fcd1e Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Fri, 27 Oct 2023 13:14:29 +0100 Subject: [PATCH] dopinder: Migrate deprecated BT profile configs into sysprops 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 --- .../BluetoothOverlay/res/values/config.xml | 25 ++++--------------- vendor.prop | 14 ++++++++++- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/rro_overlays/BluetoothOverlay/res/values/config.xml b/rro_overlays/BluetoothOverlay/res/values/config.xml index 7df2fca..a3b0980 100644 --- a/rro_overlays/BluetoothOverlay/res/values/config.xml +++ b/rro_overlays/BluetoothOverlay/res/values/config.xml @@ -1,22 +1,7 @@ - - false - false - false - false - false - false - false - - false - false - false - false - false + + + false diff --git a/vendor.prop b/vendor.prop index 8288fcf..e8f5bb6 100644 --- a/vendor.prop +++ b/vendor.prop @@ -1,9 +1,21 @@ # -# Copyright (C) 2021 The LineageOS Project +# Copyright (C) 2021-2023 The LineageOS Project # # SPDX-License-Identifier: Apache-2.0 # +## Bluetooth +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 vendor.media.support.dolbyvision=false -- 2.20.1