Chinaunix
标题: [转帖]4412开发板/4418开发板Android4.4.4实现ble功能 [打印本页]
作者: 颜夕01 时间: 2017-05-04 14:04
标题: [转帖]4412开发板/4418开发板Android4.4.4实现ble功能
[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
]
[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功能方法:
在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的方法都是这样的。大家可以尝试一下,欢迎在下面留言评论。
作者: TIOMI 时间: 2017-09-01 10:06
写的很好,赞赞赞
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) |
Powered by Discuz! X3.2 |