How to set a2dp sink as a default (android 7.1)

依然范特西╮ 提交于 2019-12-08 05:16:09

问题


We made a custom board which has Android 7.1 operating system as a our custom board must act to a reciver with bluetooth(while a2dp sink profile in bluetooth can do this), but we have do many works over weeks on it , but it still not work, so i'd like to ask somebody who know or had similar expirence on it could help. Android 7.1 used the fluoride Bluetooth stack

our works :
1. packages/apps/Bluetooth/res/values/config.xml
<bool name="profile_supported_a2dp">true</bool>
<bool name="profile_supported_a2dp_sink">true</bool>
2. android/platform/system/bt/include/bt_target.h 
#define BTA_AV_SINK_INCLUDED TRUE

Android device as a receiver for A2DP profile, but it seems didn't work.so anybody could help.
I didn't check with <bool name="profile_supported_a2dp">false</bool> If both a2dp profile role like source and sink are enable then it will take default as a a2dp source instead of a2dp sink ? So that's why its not work?

来源:https://stackoverflow.com/questions/49907534/how-to-set-a2dp-sink-as-a-default-android-7-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!