diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2014-06-11 15:22:07 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-06-12 13:04:31 +0200 |
commit | 02dc1cdd6041c34899f4fd047997ba0f54e036aa (patch) | |
tree | 4fbff6da3450a1fb76131f395fd027c32788bbdc /android/hal-bluetooth.c | |
parent | 1c393c18d0bf29f2f216096d33fd14a733baf055 (diff) | |
download | bluez-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.c | 8 |
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; |