admin管理员组

文章数量:1641836

Platform: RK3368
OS: Android 6.0
Kernel: 3.10.0

wifi蓝牙模块为ap6236

现象:
APP调用BluetoothAdapter.isMultipleAdvertisementSupported返回false和BluetoothLeAdvertiser对象为Null:

解决方法:
主要是修改device/rockchip/rk3368/bluetooth/bdroid_buildcfg.h:
BLE_VND_INCLUDED为TRUE,打开供应商特定扩展的支持,比如RPA卸载、特性发现、多播等等。
Toggles support for vendor specific extensions such as RPA offloading, feature discovery, multi-adv etc.

diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h
index b23951e..0d20aef 100755
--- a/bluetooth/bdroid_buildcfg.h
+++ b/bluetooth/bdroid_buildcfg.h
@@ -18,7 +18,15 @@
 #define _BDROID_BUILDCFG_H
 
 #define BTM_DEF_LOCAL_NAME     "Android"
-#define BTA_DM_COD {0x1A, 0x01, 0x10}
+#define BTM_WBS_INCLUDED TRUE
+#define BTIF_HF_WBS_PREFERRED TRUE
+#define BLE_VND_INCLUDED TRUE
+
+/* Handsfree device */
+#define BTA_DM_COD {0x20, 0x04, 0x08}
+
+/* Enable A2DP sink */
+#define BTA_AV_SINK_INCLUDED TRUE
 
 #endif

本文标签: 蓝牙BLE