From 684e4c25c974a00d0f1518a1eabd8e77adfd0ae2 Mon Sep 17 00:00:00 2001 From: jkjo92 Date: Thu, 25 Aug 2016 11:36:07 +0900 Subject: [PATCH] Modify account plugin API Call according to installer backed user change Change-Id: If2e46aaab2920a636170fe70a26e66af17a0afa3 Signed-off-by: jkjo92 --- src/account.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/account.c b/src/account.c index d020158..8686de2 100644 --- a/src/account.c +++ b/src/account.c @@ -252,7 +252,12 @@ int _register_account_provider(xmlDocPtr docPtr, char* account_provider_app_id) } g_free(icon_path); } else { - ret = app_manager_get_shared_resource_path((char*)attribute_app_id, &resource_path); + uid_t uid = -1; + if (pkgmgr_installer_info_get_target_uid(&uid) < 0) { + _E("pkgmgr_installer_info_get_target_uid() fail"); + goto CATCH; + } + ret = aul_get_usr_app_shared_resource_path_by_appid((char*)attribute_app_id, &resource_path, uid); if(ret != APP_MANAGER_ERROR_NONE) { _E("Failed to get the shared resource path. app_manager ret=[%d]", ret); goto CATCH; @@ -311,7 +316,12 @@ int _register_account_provider(xmlDocPtr docPtr, char* account_provider_app_id) } g_free(small_icon_path); } else { - ret = app_manager_get_shared_resource_path((char*)attribute_app_id, &resource_path); + uid_t uid = -1; + if (pkgmgr_installer_info_get_target_uid(&uid) < 0) { + _E("pkgmgr_installer_info_get_target_uid() fail"); + goto CATCH; + } + ret = aul_get_usr_app_shared_resource_path_by_appid((char*)attribute_app_id, &resource_path, uid); if(ret != APP_MANAGER_ERROR_NONE) { _E("Failed to get the shared resource path."); goto CATCH; -- 2.34.1