From: junsuk77.oh Date: Tue, 24 Oct 2017 02:01:10 +0000 (+0900) Subject: add get support-mode info on pkginfo X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_3.0;p=platform%2Fcore%2Fappfw%2Fpkgmgr-tool.git add get support-mode info on pkginfo Change-Id: Ia397280a23110fbff30ac039f03eeb0d97baf1e1 --- diff --git a/src/pkg_info.c b/src/pkg_info.c index 8973bb6..6a50d57 100644 --- a/src/pkg_info.c +++ b/src/pkg_info.c @@ -1779,6 +1779,7 @@ static int __get_pkg_info(char *pkgid, uid_t uid) static int __get_app_info(char *appid) { int ret = -1; + int support_mode = 0; char *exec = NULL; char *app_id = NULL; char *apptype = NULL; @@ -1869,6 +1870,10 @@ static int __get_app_info(char *appid) if (ret < 0) printf("Failed to get preload\n"); + ret = pkgmgrinfo_appinfo_get_support_mode(handle, &support_mode); + if (ret < 0) + printf("Failed to get support_mode\n"); + if (app_id) printf("Appid: %s\n", app_id); @@ -1911,6 +1916,7 @@ static int __get_app_info(char *appid) printf("Enabled: %d\n", enabled); printf("Preload: %d\n", preload); + printf("Support_mode: %d\n", support_mode); pkgmgrinfo_appinfo_destroy_appinfo(handle);