}
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;
}
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;