Android 4.2.2是否支持usb蓝牙加密狗?

时间:2013-07-12 06:30:09

标签: android android-bluetooth

我可以使用blueZ hciconfig找到usb蓝牙设备'hci0'。但我不能在Android 4.2.2上启用蓝牙。从版本4.2开始,Android似乎使用了新的蓝牙堆栈。所以它现在不依赖于BlueZ statck。 这是我的BoardConfig:

BOARD_HAVE_BLUETOOTH := true  
BOARD_HAVE_BLUETOOTH_BCM := true

我启用了内核中的HCI USB drvier

有没有人知道如何在Android 4.2.2上支持usb bluetooth加密狗? 这个问题困扰了我两个星期。我无法从互联网上获得更多信息。

非常感谢!

2 个答案:

答案 0 :(得分:0)

据我所知,Android放弃了BlueZ,它现在依赖于blucom的bluedroid,我不知道怎么做,但我要做的是在线寻找那个bt加密狗的驱动程序并构建系统:

PRODUCT_COPY_FILES += drivers

在您的AndroidProducs.mk文件

答案 1 :(得分:0)

CyanogenMod和Android-X86包含支持USB HCI的补丁: http://review.cyanogenmod.org/#/c/45537/

http://review.cyanogenmod.org/#/c/45538/

http://git.android-x86.org/?p=platform/external/bluetooth/bluedroid.git;a=commit;h=471bdeac2ffe054221b3eab72e3b87523c0aa97c

要在板上启用此支持,请查看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支持。

相关问题