1.device/ti/panda/BoardConfig.mk
BOARD_HAVE_BLUETOOTH := true
2.从master分支copy android.hardware.bluetooth.xml到device/ti/panda/
3.device/ti/device.mk
device/ti/panda/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
# BlueZ test tools
PRODUCT_PACKAGES += \
hciconfig \
hcitool
4.device/ti/panda/init.omap4pandaboard.rc
# change permissions for Bluetooth/FM/GPS
chmod 0600 /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chmod 0600 /dev/ttyO1
chown bluetooth bluetooth /dev/ttyO1
# take a wakelock on boot until PM is working
write /sys/power/wake_lock hack
service pvrsrvinit /vendor/bin/pvrsrvinit
class core
user root
group root
oneshot
#shared transport user space mgr service for Bluetooth, FM and GPS
service uim /system/bin/uim-sysfs
class core
user bluetooth
group bluetooth net_bt_admin
5.copy uim-sys to /system/bin/
本文档详细介绍了如何通过修改特定文件来启用Android设备上的蓝牙功能。包括设置BoardConfig.mk以支持蓝牙,复制必要的XML权限文件,调整device.mk以包含蓝牙工具,以及在init.omap4pandaboard.rc中设置正确的权限。
962

被折叠的 条评论
为什么被折叠?



