[Bluetooth] fix initialization in IVI and getDefaultAdapter()
authorCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Fri, 10 Oct 2014 09:53:18 +0000 (11:53 +0200)
committerCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Fri, 10 Oct 2014 11:54:05 +0000 (13:54 +0200)
commit7a86586dc8e6506eacd4395532d8cc756008f332
tree3b5a0ed934ceeb5f636e7061f843f5cf99b304c2
parent4a5234b4bfc4afef447dcee19835e10fa106d661
[Bluetooth] fix initialization in IVI and getDefaultAdapter()

bluetooth-frwk doesn't handle correctly the case that the bluetooth is
powered and its framework is off. In that case, we call a hackish method
in order to start bt-service daemon via dbus service activation.

This patch also prevents from being blocked in getDefaultAdapter() method.

BUG=XWALK-2419
bluetooth/bluetooth_api.js
bluetooth/bluetooth_instance_capi.cc
bluetooth/bluetooth_instance_capi.h