From f82116040035423a724be96bdd704083daa059ad Mon Sep 17 00:00:00 2001 From: "junsuk77.oh" Date: Wed, 15 May 2013 21:52:18 +0900 Subject: [PATCH] fix permission crash error Change-Id: Id4da031b6d11e39ade4c217984deb8f499a0285f Signed-off-by: junsuk77.oh --- packaging/pkgmgr-info.spec | 2 +- src/pkgmgr-info.c | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/packaging/pkgmgr-info.spec b/packaging/pkgmgr-info.spec index 8e63e75..5bca15a 100755 --- a/packaging/pkgmgr-info.spec +++ b/packaging/pkgmgr-info.spec @@ -1,6 +1,6 @@ Name: pkgmgr-info Summary: Packager Manager infomation api for package -Version: 0.0.110 +Version: 0.0.111 Release: 1 Group: Application Framework/Package Management License: Apache-2.0 diff --git a/src/pkgmgr-info.c b/src/pkgmgr-info.c index e5b6224..4da9f59 100755 --- a/src/pkgmgr-info.c +++ b/src/pkgmgr-info.c @@ -4768,14 +4768,7 @@ API int pkgmgrinfo_appinfo_get_permission_type(pkgmgrinfo_appinfo_h handle, pkg char *val = NULL; pkgmgr_appinfo_x *info = (pkgmgr_appinfo_x *)handle; - if (info->app_component == PMINFO_UI_APP) - val = info->uiapp_info->permission_type; - else if (info->app_component == PMINFO_SVC_APP) - val = info->svcapp_info->permission_type; - else { - _LOGE("app_component is not supported\n"); - return PMINFO_R_EINVAL; - } + val = info->uiapp_info->permission_type; if (strcmp(val, "signature") == 0) *permission = PMINFO_PERMISSION_SIGNATURE; -- 2.7.4