欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

android7.1 蓝牙作为sink模式

程序员文章站 2022-04-14 11:21:21
蓝牙模式说明:https://blog.csdn.net/xubin341719/article/details/38228705将蓝牙作为sink模式,也就是当作接收端。修改内容如下:zhoujinyan@zhoujinyan-virtual-machine:~/public/sc826_cn_01_00/Car8953System$ git show 2e4914988915f2355b60c0bfc79707459ecde80bcommit 2e4914988915f2355b60c0....

蓝牙模式说明:https://blog.csdn.net/xubin341719/article/details/38228705

将蓝牙作为sink模式,也就是当作接收端。修改内容如下:
 

diff --git a/device/qcom/msm8953_64/system.prop b/device/qcom/msm8953_64/system.prop
index d9c8669..e4ef963 100755
--- a/device/qcom/msm8953_64/system.prop
+++ b/device/qcom/msm8953_64/system.prop
@@ -209,3 +209,11 @@ persist.debug.set.fixedfps=25
 #add by zhoujinyan
 ro.sf.lcd_density=160
 ro.lock.qs.enable=false
+# config bt as slave mode
+persist.service.bt.a2dp.sink=true
+persist.service.bt.hfp.client=true
+
diff --git a/packages/apps/Bluetooth/res/values/config.xml b/packages/apps/Bluetooth/res/values/config.xml
old mode 100644
new mode 100755
index 90e513d..06c9c36
--- a/packages/apps/Bluetooth/res/values/config.xml
+++ b/packages/apps/Bluetooth/res/values/config.xml
@@ -14,10 +14,10 @@
 -->
 <resources>
     <bool name="profile_supported_a2dp">true</bool>
-    <bool name="profile_supported_a2dp_sink">false</bool>
+    <bool name="profile_supported_a2dp_sink">true</bool>
     <bool name="profile_supported_hdp">true</bool>
     <bool name="profile_supported_hs_hfp">true</bool>
-    <bool name="profile_supported_hfpclient">false</bool>
+    <bool name="profile_supported_hfpclient">true</bool>
     <bool name="profile_supported_hid">true</bool>
     <bool name="profile_supported_opp">true</bool>
     <bool name="profile_supported_pan">true</bool>
@@ -26,7 +26,7 @@
     <bool name="pbap_include_photos_in_vcard">true</bool>
     <bool name="pbap_use_profile_for_owner_vcard">true</bool>
     <bool name="profile_supported_map">true</bool>
-    <bool name="profile_supported_avrcp_controller">false</bool>
+    <bool name="profile_supported_avrcp_controller">true</bool>
     <bool name="profile_supported_sap">false</bool>
     <bool name="profile_supported_pbapclient">false</bool>
 
@@ -65,7 +65,7 @@
     <integer name="a2dp_sink_duck_percent">25</integer>
 
     <!-- For enabling the hfp client connection service -->
-    <bool name="hfp_client_connection_service_enabled">false</bool>
+    <bool name="hfp_client_connection_service_enabled">true</bool>
 
     <!-- For disabling non AOSP bluetooth features -->
     <bool name="disable_non_aosp_bt_features">false</bool>

 

本文地址:https://blog.csdn.net/zjy764219923/article/details/107961977