rk3288 Android9 AP6236蓝牙打开报错

确保底层kernel已经配置好了,那么就用logcat打印日志

 

09-16 10:00:03.798   927   944 I bt_osi_thread: run_thread: thread id 944, thread name stack_manager started
09-16 10:00:03.798   927   944 I bt_stack_manager: event_init_stack is initializing the stack
09-16 10:00:03.799   927   944 E         : [0916/100003.799297:ERROR:config.cc(74)] config_new: unable to open file '/data/misc/bluedroid/bt_config.conf': No such file or directory
09-16 10:00:03.799   927   944 W bt_btif_config: init unable to load config file: /data/misc/bluedroid/bt_config.conf; using backup.
09-16 10:00:03.799   927   944 E         : [0916/100003.799474:ERROR:config.cc(74)] config_new: unable to open file '/data/misc/bluedroid/bt_config.bak': No such file or directory
09-16 10:00:03.799   927   944 W bt_btif_config: init unable to load backup; attempting to transcode legacy file.
09-16 10:00:03.799   927   944 E bt_btif_config_transcode: btif_config_transcode unable to load XML file '/data/misc/bluedroid/bt_config.xml': 3
09-16 10:00:03.799   927   944 E bt_btif_config: init unable to transcode legacy file; creating empty config.
09-16 10:00:03.800   927   944 E bt_osi_alarm: timer_create_internal unable to create timer with clock 9: Unknown error 524
09-16 10:00:03.800   927   944 E bt_osi_alarm: The kernel might not have support for timer_create(CLOCK_BOOTTIME_ALARM): https://lwn.net/Articles/429925/
09-16 10:00:03.800   927   944 E bt_osi_alarm: See following patches: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/?qt=grep&q=CLOCK_BOOTTIME_ALARM
09-16 10:00:03.800   927   944 F         : [0916/100003.800342:FATAL:alarm.cc(179)] Check failed: false. 
09-16 10:00:03.800   927   944 F libc    : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 944 (stack_manager), pid 927 (droid.bluetooth)
 

sdk-9.0\system\bt\osi\src\alarm.cc文件报错,于是修改

#define KERNEL_MISSING_CLOCK_BOOTTIME_ALARM TRUE    /*add by wugk*/
#if (KERNEL_MISSING_CLOCK_BOOTTIME_ALARM == TRUE)

蓝牙就可以工作了

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值