Allow the api for amd to get all info without storage checking 90/116590/2 accepted/tizen/3.0/common/20170306.135406 accepted/tizen/3.0/ivi/20170305.222707 accepted/tizen/3.0/mobile/20170305.222611 accepted/tizen/3.0/tv/20170305.222643 accepted/tizen/3.0/wearable/20170305.222658 submit/tizen_3.0/20170303.015631
authorjongmyeongko <jongmyeong.ko@samsung.com>
Mon, 27 Feb 2017 06:28:56 +0000 (15:28 +0900)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Mon, 27 Feb 2017 06:43:08 +0000 (22:43 -0800)
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(