[英]Does Android 4.2.2 support usb bluetooth dongle?
我可以使用blueZ hciconfig
找到 USB 藍牙設備“hci0”。 但我無法在 Android 4.2.2 上啟用藍牙。 似乎 android 從版本 4.2 開始使用新的藍牙堆棧。 所以它現在不依賴於 BlueZ statck。 這是我的 BoardConfig:
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
我在內核中啟用了HCI USB drvier
程序。
有沒有人知道如何在 Android 4.2.2 上支持usb bluetooth
加密狗? 這個問題困擾了我兩周。 而且我無法從互聯網上獲得更多信息。
非常感謝 !
我的理解是 Android 放棄了 BlueZ,現在它依賴於 Broadcom 的 bluedroid,我不知道怎么做,但我要做的是在線查找 bt 加密狗的驅動程序並使用以下方法構建系統:
PRODUCT_COPY_FILES += drivers
在你的 AndroidProducts.mk 文件上
CyanogenMod 和 Android-X86 包含支持 USB HCI 的補丁,如下所示: http : //review.cyanogenmod.org/#/c/45537/
http://review.cyanogenmod.org/#/c/45538/
要在板中啟用此支持,請查看 android-x86 示例,用於 BoardConfig
# Some framework code requires this to enable BT
BOARD_HAVE_BLUETOOTH := true
BLUETOOTH_HCI_USE_USB := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/generic/x86/bluetooth
和 buildcfg
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H
#define BTM_DEF_LOCAL_NAME "Android-x86"
// At present either USB or UART is supported
#define BLUETOOTH_HCI_USE_USB TRUE
// Bluetooth Low Power Mode is supported on BT4.0
#define HCILP_INCLUDED FALSE
#endif
您的內核也需要 UHID 支持。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.