How to disable Bluetooth profiles in Android system

793 views
Skip to first unread message

ASMA ALEKAR

unread,
Feb 26, 2021, 12:02:05 PM2/26/21
to android-platform
Hello Everyone,

I am working on imx7d from nxp with Android 9.0. I would like to disable all bluetooth profiles except for SPP. After searching and reading a bit I disabled all the profiles by setting the config to false in apps/Bluetooth/res/values/config.xml

<resources>
    <bool name="profile_supported_a2dp">false</bool>
    <bool name="profile_supported_a2dp_sink">false</bool>
    <bool name="profile_supported_hdp">false</bool>
    <bool name="profile_supported_hs_hfp">false</bool>
    <bool name="profile_supported_hfpclient">false</bool>
    <bool name="profile_supported_hid_host">false</bool>
    <bool name="profile_supported_opp">false</bool>
    <bool name="profile_supported_pan">false</bool>
    <bool name="profile_supported_pbap">false</bool>
    <bool name="profile_supported_gatt">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_map">false</bool>
    <bool name="profile_supported_avrcp_target">false</bool>
    <bool name="profile_supported_avrcp_controller">false</bool>
    <bool name="profile_supported_sap">false</bool>
    <bool name="profile_supported_pbapclient">false</bool>
    <bool name="profile_supported_mapmce">false</bool>
    <bool name="profile_supported_hid_device">false</bool>
    <bool name="profile_supported_hearing_aid">false</bool>
 </resources>

Is this the right approach to disable all the profiles?

However, I can still see avrcp version and other info in the developer option. Is there any reason for it? Does that mean avrcp profile is still present? Photo attached

How can I disable all the profiles?

Any help is really appreciated.

Thanks,
Asma


Capture.PNG
Reply all
Reply to author
Forward
0 new messages