deadpool: Migrate deprecated BT profile configs into sysprops
authorBruno Martins <bgcngm@gmail.com>
Fri, 27 Oct 2023 12:14:29 +0000 (13:14 +0100)
committerBruno Martins <bgcngm@gmail.com>
Fri, 27 Oct 2023 21:11:27 +0000 (21:11 +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 4c1b8dbc4e486b4c7486f981246e928faff92d85..fc089d6f0b0ec24f4f31504655cc8f4da940be5c 100644 (file)
@@ -1,13 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2021 The LineageOS Project
+<!-- Copyright (C) 2021-2023 The LineageOS Project
 
      SPDX-License-Identifier: Apache-2.0
 -->
 <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
     <bool name="enable_phone_policy">false</bool>
     <bool name="pbap_include_photos_in_vcard">false</bool>
-    <bool name="profile_supported_hdp">false</bool>
-    <bool name="profile_supported_hs_hfp">false</bool>
-    <bool name="profile_supported_opp">false</bool>
-    <bool name="profile_supported_pbap">false</bool>
 </resources>
index c98d7d0f091a8f6dfaade35a1c99a97787a15c20..c3e21ab709c4bd822cc7a7670f8e40b901259b3f 100644 (file)
@@ -1,11 +1,14 @@
 #
-# Copyright (C) 2021 The LineageOS Project
+# Copyright (C) 2021-2023 The LineageOS Project
 #
 # SPDX-License-Identifier: Apache-2.0
 #
 
 ## Bluetooth
 bluetooth.device.default_name=ADT-3
+bluetooth.profile.hfp.ag.enabled=false
+bluetooth.profile.opp.enabled=false
+bluetooth.profile.pbap.server.enabled=false
 
 ## FRP
 ro.frp.pst=/dev/block/by-name/frp