DBUS Policy Issues Resolved 77/184077/1
authorkamaljeet <kamal.jc@samsung.com>
Fri, 13 Jul 2018 09:35:41 +0000 (15:05 +0530)
committerkamaljeet <kamal.jc@samsung.com>
Fri, 13 Jul 2018 09:35:41 +0000 (15:05 +0530)
Change-Id: I108780f4119bcb8b09758ee3512ca6e0d0610a64
Signed-off-by: kamaljeet <kamal.jc@samsung.com>
plugin/sms_cdma_plugin/SmsCdmaPluginMain.cpp
plugin/sms_cdma_plugin/SmsCdmaPluginWapPushHandler.cpp
plugin/sms_plugin/SmsPluginMain.cpp
plugin/sms_plugin/SmsPluginWapPushHandler.cpp
utils/MsgCallStatusManager.cpp
utils/MsgUtilFunction.cpp

index 030f3b1a2913cf77e40c0f98a9eda292b3e42b07..977d7a46f94685c1a050f189fd1d0be031bd8903 100755 (executable)
@@ -356,10 +356,10 @@ void MsgResourceMonitorInit(void)
                gdbus_proxy = NULL;
        }
 
-       gdbus_proxy = g_dbus_proxy_new_sync(gdbus_conn, G_DBUS_PROXY_FLAGS_NONE,
+       gdbus_proxy = g_dbus_proxy_new_sync(gdbus_conn, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
                                                        NULL, BUS_NAME, PATH_NAME, INTERFACE_NAME, NULL, &error);
        if (error) {
-               MSG_FATAL("g_dbus_proxy_new_sync() failed : %s", error->message);
+               MSG_FATAL("G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES() failed : %s", error->message);
                g_error_free(error);
                error = NULL;
                goto _DBUS_ERROR;
index 48b3d1678afda800298bd2669130adf22bde48d5..588f04b7a968bdf40cee3bda109fb382fa664f10 100755 (executable)
@@ -1015,7 +1015,7 @@ static void launchProcessByAppcode(int appcode)
                                MSG_DEBUG("Connecting to system bus failed: %s\n", error->message);
                                goto _DBUS_ERROR;
                        }
-                               dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_NONE,
+                               dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
                                                                                NULL, "org.tizen.omadmagent", "/org/tizen/omadmagent",
                                                                                "org.tizen.omadmagent", NULL, &error);
                        if (error) {
@@ -1032,7 +1032,7 @@ static void launchProcessByAppcode(int appcode)
                                MSG_DEBUG("Connecting to system bus failed: %s\n", error->message);
                                goto _DBUS_ERROR;
                        }
-                               dbus_proxy_service = g_dbus_proxy_new_sync(connection_service, G_DBUS_PROXY_FLAGS_NONE, NULL,
+                               dbus_proxy_service = g_dbus_proxy_new_sync(connection_service, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL,
                                                                                "org.tizen.omadmservice", "/org/tizen/omadmservice",
                                                                                "org.tizen.omadmservice", NULL, &error);
                        if (error) {
@@ -1060,7 +1060,7 @@ static void launchProcessByAppcode(int appcode)
                                goto _DBUS_ERROR;
                        }
 
-                       dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_NONE, NULL,
+                       dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL,
                                                                                "org.tizen.omadsagent", "/org/tizen/omadsagent",
                                                                                "org.tizen.omadsagent", NULL, &error);
                        if (error) {
index 5b09f727cf7965437a8ab8cdd9c557e955343058..2359aaed43b140e107feab3a5094cd0ee9464939 100755 (executable)
@@ -496,10 +496,10 @@ void MsgResourceMonitorInit(void)
                gdbus_proxy = NULL;
        }
 
-       gdbus_proxy = g_dbus_proxy_new_sync(gdbus_conn, G_DBUS_PROXY_FLAGS_NONE,
+       gdbus_proxy = g_dbus_proxy_new_sync(gdbus_conn, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
                                                        NULL, BUS_NAME, PATH_NAME, INTERFACE_NAME, NULL, &error);
        if (error) {
-               MSG_FATAL("g_dbus_proxy_new_sync() failed : %s", error->message);
+               MSG_FATAL("G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES() failed : %s", error->message);
                g_error_free(error);
                error = NULL;
                goto _DBUS_ERROR;
index 22b9aee0c37b13dcc682d08877ff5057ef2f670f..2be20996e46b04758264aed6584bcf5451446d19 100755 (executable)
@@ -1098,7 +1098,7 @@ static void launchProcessByAppcode(int appcode)
                                goto _DBUS_ERROR;
                        }
 
-                       dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_NONE,
+                       dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
                                                                                NULL, "org.tizen.omadmagent", "/org/tizen/omadmagent",
                                                                                "org.tizen.omadmagent", NULL, &error);
                        if (error) {
@@ -1118,7 +1118,7 @@ static void launchProcessByAppcode(int appcode)
                                goto _DBUS_ERROR;
                        }
 
-                       dbus_proxy_service = g_dbus_proxy_new_sync(connection_service, G_DBUS_PROXY_FLAGS_NONE, NULL,
+                       dbus_proxy_service = g_dbus_proxy_new_sync(connection_service, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL,
                                                                                "org.tizen.omadmservice", "/org/tizen/omadmservice",
                                                                                "org.tizen.omadmservice", NULL, &error);
                        if (error) {
@@ -1149,7 +1149,7 @@ static void launchProcessByAppcode(int appcode)
                                goto _DBUS_ERROR;
                        }
 
-                       dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_NONE, NULL,
+                       dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL,
                                                                                "org.tizen.omadsagent", "/org/tizen/omadsagent",
                                                                                "org.tizen.omadsagent", NULL, &error);
                        if (error) {
index 27f34758f5f77776e36b2d074a7daa9764a5a82f..6a44693f18f44e1b5b136be117be6a85898fe34a 100644 (file)
@@ -64,10 +64,10 @@ void MsgInitCallStatusManager()
                call_status_gdbus_proxy = NULL;
        }
 
-       call_status_gdbus_proxy = g_dbus_proxy_new_sync(call_status_gdbus_conn, G_DBUS_PROXY_FLAGS_NONE,
+       call_status_gdbus_proxy = g_dbus_proxy_new_sync(call_status_gdbus_conn, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
                                                        NULL, CALL_MGR_BUS_NAME, CALL_MGR_PATH_NAME, CALL_MGR_INTERFACE_NAME, NULL, &error);
        if (error) {
-               MSG_FATAL("g_dbus_proxy_new_sync() failed : %s", error->message);
+               MSG_FATAL("G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES() failed : %s", error->message);
                g_error_free(error);
                error = NULL;
                goto _DBUS_ERROR;
index 0883576eb3be8f6ab780ff8b490b7a6287e71f83..9666cc1db944451d485e108b313d4c08f73e03f3 100755 (executable)
@@ -1373,7 +1373,7 @@ void msg_syspopup_message(bool is_sending)
                goto _DBUS_ERROR;
        }
 
-       dbus_proxy = g_dbus_proxy_new_sync(connection, G_DBUS_PROXY_FLAGS_NONE, NULL,
+       dbus_proxy = g_dbus_proxy_new_sync(connection, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL,
                                                                SYSPOPUP_BUS_NAME, SYSPOPUP_OBJECT_PATH, SYSPOPUP_INTERFACE, NULL, &error);
        if (error) {
                MSG_ERR("Connecting to proxy failed: %s\n", error->message);