From: Somin Kim Date: Tue, 8 Sep 2015 10:57:32 +0000 (+0900) Subject: Fixed to use pkgmgrinfo_appinfo_get_usr_appinfo() X-Git-Tag: accepted/tizen/mobile/20150909.141017^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_3.0.m1_tv;p=platform%2Fcore%2Fapi%2Fcontext.git Fixed to use pkgmgrinfo_appinfo_get_usr_appinfo() Change-Id: Ic1e5dbeace61fb7d71d2034d60f12760024ef8a4 Signed-off-by: Somin Kim --- diff --git a/src/context_trigger.cpp b/src/context_trigger.cpp index bd04e14..fa2cd58 100644 --- a/src/context_trigger.cpp +++ b/src/context_trigger.cpp @@ -374,7 +374,7 @@ EXTAPI int context_trigger_rule_set_action_app_control(context_trigger_rule_h ru IF_FAIL_RETURN_TAG(error == ERR_NONE, error, _E, "Failed to get app id"); pkgmgrinfo_appinfo_h app_info; - error = pkgmgrinfo_appinfo_get_appinfo(app_id, &app_info); + error = pkgmgrinfo_appinfo_get_usr_appinfo(app_id, getuid(), &app_info); g_free(app_id); IF_FAIL_RETURN_TAG(error == PMINFO_R_OK, CONTEXT_TRIGGER_ERROR_INVALID_RULE, _E, "No such app"); @@ -432,7 +432,7 @@ EXTAPI int context_trigger_rule_set_action_notification(context_trigger_rule_h r IF_FAIL_RETURN_TAG(error == ERR_NONE, error, _E, "Failed to get app id"); pkgmgrinfo_appinfo_h app_info; - error = pkgmgrinfo_appinfo_get_appinfo(app_id, &app_info); + error = pkgmgrinfo_appinfo_get_usr_appinfo(app_id, getuid(), &app_info); g_free(app_id); IF_FAIL_RETURN_TAG(error == PMINFO_R_OK, CONTEXT_TRIGGER_ERROR_INVALID_RULE, _E, "No such app"); }