Change-Id: Id4da031b6d11e39ade4c217984deb8f499a0285f
Signed-off-by: junsuk77.oh <junsuk77.oh@samsung.com>
Name: pkgmgr-info
Summary: Packager Manager infomation api for package
Name: pkgmgr-info
Summary: Packager Manager infomation api for package
Release: 1
Group: Application Framework/Package Management
License: Apache-2.0
Release: 1
Group: Application Framework/Package Management
License: Apache-2.0
char *val = NULL;
pkgmgr_appinfo_x *info = (pkgmgr_appinfo_x *)handle;
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;
if (strcmp(val, "signature") == 0)
*permission = PMINFO_PERMISSION_SIGNATURE;