bluedroid蓝牙子系统启动过程
Android6 采用了Bluedroid架构的蓝牙,该蓝牙相对于Bluez有较大的变化,不再采用linux kernel的HCI驱动,kenel使用过的驱动包括tty和蓝牙芯片的驱动。其它部分全部转到android中了。
###1. 蓝牙串口号选择###
<hardware/Broadcom/libbt/include/bt_vendor_brcm.h>
52 /* Run-time configuration file */
53 #ifndef VENDOR_LIB_CONF_FILE
54 #define VENDOR_LIB_CONF_FILE "/etc/bluetooth/bt_vendor.conf"
55 #endif
56
57 /* Device port name where Bluetooth controller attached */
58 #ifndef BLUETOOTH_UART_DEVICE_PORT
59 #define BLUETOOTH_UART_DEVICE_PORT "/dev/ttyO1" /* maguro */
60 #endif
61
62 /* Location of firmware patch files */
63 #ifndef FW_PATCHFILE_LOCATION
64 #define FW_PATCHFILE_LOCATION "/vendor/firmware/" /* maguro */
65