From 9780c3bc8ee0a87a0c04200142467162fba688c8 Mon Sep 17 00:00:00 2001 From: jongmyeongko Date: Mon, 27 Feb 2017 15:28:56 +0900 Subject: [PATCH] Allow the api for amd to get all info without storage checking 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 --- src/pkgmgrinfo_appinfo.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pkgmgrinfo_appinfo.c b/src/pkgmgrinfo_appinfo.c index 6d9bc49..02c35a1 100644 --- a/src/pkgmgrinfo_appinfo.c +++ b/src/pkgmgrinfo_appinfo.c @@ -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( -- 2.7.4