免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4103 | 回复: 1

[驱动] [转帖]4412开发板/4418开发板Android4.4.4实现ble功能 [复制链接]

论坛徽章:
0
发表于 2017-05-04 14:04 |显示全部楼层
[color=rgb(68, 68, 6]本文转自迅为论坛[color=rgb(68, 68, 6]:http://bbs.topeetboard.com
[color=rgb(68, 68, 6]①.4418[color=rgb(68, 68, 6]开发板实现[color=rgb(68, 68, 6]ble功能方法[color=rgb(68, 68, 6][color=rgb(68, 68, 6]
[color=rgb(68, 68, 6]
图片1.jpg
[color=rgb(68, 68, 6]
[color=rgb(68, 68, 6]4418/android/device/nexell/drone2/device.mk中添加:

frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \

②.4412开发板实现ble功能方法
4412.jpg

4412Android4.4.4中iTop4412_KK4.4_git/device/samsung/smdk4x12/device.mk添加:

frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \

以上列举了两个开发板的Android4.4.4支持ble的修改方法,这个方法的本质是把android.hardware.bluetooth.xml,android.hardware.bluetooth_le.xml两个文件复制到system/etc/permissions/之中,这样就打开了ble权限。应该Android4.4支持ble的方法都是这样的。大家可以尝试一下,欢迎在下面留言评论。

论坛徽章:
0
发表于 2017-09-01 10:06 |显示全部楼层
写的很好,赞赞赞
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP