Add G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flag.
pkgmgr-server does not provide object which has properties.
Without this flag, g_dbus_proxy_new_sync() will try to load properties
using GetAll method, and this call will be denied by default dbus policy.
Change-Id: I77248031e93bf30ea386d5e6b4838129cdc2aaa1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
g_variant_ref_sink(params);
do {
- proxy = g_dbus_proxy_new_sync(pc->conn, G_DBUS_PROXY_FLAGS_NONE,
+ proxy = g_dbus_proxy_new_sync(pc->conn,
+ G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
NULL, PKGMGR_DBUS_SERVICE,
PKGMGR_DBUS_OBJECT_PATH,
PKGMGR_DBUS_INTERFACE, NULL, &error);