sabrina: 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:56 +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,
Message Access Profile (MAP) Server role, Object Push Profile (OPP),
Personal Area Networking Profile (PAN) PANU role and Phonebook Access
Profile (PBAP) server role.

Change-Id: I6f96862611b7f21b30157188e6373984561342aa

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

index acd4fcf6ef63cd3ba8ee047c9030b2ed30a1cb65..646bbb84d6e1c321d17fd75aed777e820065fe56 100644 (file)
@@ -1,5 +1,5 @@
 <?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
 -->
@@ -7,10 +7,4 @@
     <bool name="enable_phone_policy">true</bool>
     <bool name="pbap_include_photos_in_vcard">false</bool>
     <bool name="pbap_use_profile_for_owner_vcard">false</bool>
-    <bool name="profile_supported_hdp">false</bool>
-    <bool name="profile_supported_hs_hfp">false</bool>
-    <bool name="profile_supported_map">false</bool>
-    <bool name="profile_supported_opp">false</bool>
-    <bool name="profile_supported_pan">false</bool>
-    <bool name="profile_supported_pbap">false</bool>
 </resources>
index 422dcf605feeff8b9e84a1d8471210a6f2224226..3abadf130ac5d3ea4ea374e0612872c84d530352 100644 (file)
@@ -1,11 +1,16 @@
 #
-# Copyright (C) 2021 The LineageOS Project
+# Copyright (C) 2021-2023 The LineageOS Project
 #
 # SPDX-License-Identifier: Apache-2.0
 #
 
 ## Bluetooth
 bluetooth.device.default_name=Chromecast
+bluetooth.profile.hfp.ag.enabled=false
+bluetooth.profile.map.server.enabled=false
+bluetooth.profile.opp.enabled=false
+bluetooth.profile.pan.panu.enabled=false
+bluetooth.profile.pbap.server.enabled=false
 ro.bt.bdaddr_path=/sys/class/bt_addr/value
 
 ## Dolby