Fix OPP Server dbus rejection issue 84/201584/2 accepted/tizen/unified/20190320.082303 submit/tizen/20190319.064604
authorWootak Jung <wootak.jung@samsung.com>
Mon, 18 Mar 2019 02:26:03 +0000 (11:26 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 18 Mar 2019 04:50:33 +0000 (04:50 +0000)
Change-Id: Icd6098a74a6336d5f93cbc985761cf3de9463fd1

obexd/plugins/bluetooth.c

index a844633..bb688e8 100644 (file)
@@ -487,7 +487,14 @@ static unsigned int listener_id = 0;
 
 static int bluetooth_init(void)
 {
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+       /* All of method call will be rejected if we use private connection
+        * although we have applied allow option for org.tizen.obexd because
+        * private connection does not have well-known name. */
+       connection = g_dbus_setup_bus(DBUS_BUS_SYSTEM, NULL, NULL);
+#else
        connection = g_dbus_setup_private(DBUS_BUS_SYSTEM, NULL, NULL);
+#endif
        if (connection == NULL)
                return -EPERM;