summaryrefslogtreecommitdiff
path: root/android/hal-bluetooth.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-06-11 15:22:07 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-06-12 13:04:31 +0200
commit02dc1cdd6041c34899f4fd047997ba0f54e036aa (patch)
tree4fbff6da3450a1fb76131f395fd027c32788bbdc /android/hal-bluetooth.c
parent1c393c18d0bf29f2f216096d33fd14a733baf055 (diff)
downloadbluez-02dc1cdd6041c34899f4fd047997ba0f54e036aa.tar.gz
android/hal-ipc: Move daemon starting to bluetooth HAL
Diffstat (limited to 'android/hal-bluetooth.c')
-rw-r--r--android/hal-bluetooth.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index a220328a4..b8eae694d 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -423,6 +423,14 @@ static int init(bt_callbacks_t *callbacks)
bt_hal_cbacks = callbacks;
+ /* Start Android Bluetooth daemon service */
+ if (property_set("bluetooth.start", "daemon") < 0) {
+ error("Failed to set bluetooth.start=daemon");
+ hal_ipc_cleanup();
+ bt_hal_cbacks = NULL;
+ return BT_STATUS_FAIL;
+ }
+
if (!hal_ipc_accept()) {
hal_ipc_cleanup();
bt_hal_cbacks = NULL;