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 030f3b1..977d7a4 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 48b3d16..588f04b 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 5b09f72..2359aae 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 22b9aee..2be2099 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 27f3475..6a44693 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 0883576..9666cc1 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);