Android版本所支持的蓝牙协议code查询方法:
其中,ture 代表支持,false代表不支持。
LINUX/android/packages/apps/Bluetooth/res/values/config.xml
16 <bool name="profile_supported_a2dp">true</bool>
17 <bool name="profile_supported_a2dp_sink">false</bool>
18 <bool name="profile_supported_hdp">true</bool>
19 <bool name="profile_supported_hs_hfp">true</bool>
20 <bool name="profile_supported_hfpclient">false</bool>
21 <bool name="profile_supported_hid">true</bool>
22 <bool name="profile_supported_opp">true</bool>
23 <bool name="profile_supported_pan">true</bool>
24 <bool name="profile_supported_pbap">true</bool>
25 <bool name="profile_supported_gatt">true</bool>
26 <bool name="profile_supported_hidd">true</bool>
27 <bool name="pbap_include_photos_in_vcard">false</bool>
28 <bool name="pbap_use_profile_for_owner_vcard">true</bool>
29 <bool name="profile_supported_map">true</bool>
30 <bool name="profile_supported_avrcp_controller">false</bool>
31 <bool name="profile_supported_sap">false</bool>
例如,A2DP/AVRCP/HFP/HSP/HID/PBAP/HDP/OPP/PAN都是支持的。
AVRCP默认支持,profile_supported_avrcp_controller 和AVRCP相比较就是反向的一种控制,可以不支持。
profile_supported_hs_hfp 代表HSP/HFP。