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

问题描述 投票:4回答:2

我可以用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加密狗?这个问题困扰了我两个星期。我无法从互联网上获得更多信息。

非常感谢 !

android android-bluetooth
2个回答
0
投票

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

PRODUCT_COPY_FILES += drivers

在您的AndroidProducs.mk文件上


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支持。

© www.soinside.com 2019 - 2024. All rights reserved.