add get support-mode info on pkginfo 12/165012/4
authorjunsuk77.oh <junsuk77.oh@samsung.com>
Tue, 24 Oct 2017 02:01:10 +0000 (11:01 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 25 Jan 2018 08:17:10 +0000 (08:17 +0000)
Change-Id: Ia397280a23110fbff30ac039f03eeb0d97baf1e1
(cherry picked from commit 31a67a8d1b528b9eaa7e21185c9625951ce68ad2)

src/pkg_info.c

index 8973bb6..6a50d57 100644 (file)
@@ -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);