Allow the api for amd to get all info without storage checking 89/116589/2 submit/tizen/20170302.124027
authorjongmyeongko <jongmyeong.ko@samsung.com>
Mon, 27 Feb 2017 06:28:56 +0000 (15:28 +0900)
committerjongmyeongko <jongmyeong.ko@samsung.com>
Mon, 27 Feb 2017 06:38:01 +0000 (15:38 +0900)
Because, the mount timing of sdcard might be late than amd init.
And, the real existence of a certain app in external stroage
is not significant for amd.

Change-Id: If1200968956c98003bb6780b3caf3b4c07a24126
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/pkgmgrinfo_appinfo.c

index 6d9bc49..02c35a1 100644 (file)
@@ -1428,6 +1428,12 @@ API int pkgmgrinfo_appinfo_get_usr_installed_list_full(
                return PMINFO_R_ERROR;
        }
 
+       if (pkgmgrinfo_appinfo_filter_add_bool(filter,
+                       PMINFO_APPINFO_PROP_APP_CHECK_STORAGE, false)) {
+               pkgmgrinfo_appinfo_filter_destroy(filter);
+               return PMINFO_R_ERROR;
+       }
+
        ret = _appinfo_get_filtered_foreach_appinfo(uid, filter, flag, app_func,
                        user_data);
 
@@ -1453,8 +1459,8 @@ API int pkgmgrinfo_appinfo_get_usr_install_list(pkgmgrinfo_app_list_cb app_func,
 API int pkgmgrinfo_appinfo_get_install_list(pkgmgrinfo_app_list_cb app_func,
                void *user_data)
 {
-       return pkgmgrinfo_appinfo_get_usr_installed_list_full(app_func,
-                       _getuid(), PMINFO_APPINFO_GET_ALL, user_data);
+       return pkgmgrinfo_appinfo_get_usr_install_list(app_func,
+                       _getuid(), user_data);
 }
 
 API int pkgmgrinfo_appinfo_get_usr_installed_list(