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/