/* SLP library header */
#include "package-manager.h"
+#include "pkgmgr-info.h"
#include "aul.h"
/* local header */
ByteArray result;
int ret = 0;
pkgmgr_certinfo_h handle = NULL;
+ pkgmgrinfo_appinfo_h handle_appinfo;
+ char *pkgid = NULL;
+ if(pkgmgrinfo_appinfo_get_appinfo(packageName, &handle_appinfo) != PMINFO_R_OK)
+ {
+ SCARD_DEBUG_ERR("pkgmgrinfo_appinfo_get_appinfo fail");
+ return result;
+ }
+
+ if(pkgmgrinfo_appinfo_get_pkgid(handle_appinfo, &pkgid) != PMINFO_R_OK)
+ {
+ pkgmgrinfo_appinfo_destroy_appinfo(handle_appinfo);
+ SCARD_DEBUG_ERR("pkgmgrinfo_appinfo_get_pkgid fail");
+ return result;
+ }
+ pkgmgrinfo_appinfo_destroy_appinfo(handle_appinfo);
- SCARD_DEBUG("package name : %s", packageName);
+ SCARD_DEBUG("package name : %s", pkgid);
if ((ret = pkgmgr_pkginfo_create_certinfo(&handle)) == 0)
{
- if ((ret = pkgmgr_pkginfo_load_certinfo(packageName, handle)) == 0)
+ if ((ret = pkgmgr_pkginfo_load_certinfo(pkgid, handle)) == 0)
{
int type;
bool result = false;
int ret = 0;
pkgmgr_certinfo_h handle = NULL;
+ pkgmgrinfo_appinfo_h handle_appinfo;
+ char *pkgid = NULL;
+
+ if(pkgmgrinfo_appinfo_get_appinfo(packageName, &handle_appinfo) != PMINFO_R_OK)
+ {
+ SCARD_DEBUG_ERR("pkgmgrinfo_appinfo_get_appinfo fail");
+ return result;
+ }
+
+ if(pkgmgrinfo_appinfo_get_pkgid(handle_appinfo, &pkgid) != PMINFO_R_OK)
+ {
+ pkgmgrinfo_appinfo_destroy_appinfo(handle_appinfo);
+ SCARD_DEBUG_ERR("pkgmgrinfo_appinfo_get_pkgid fail");
+ return result;
+ }
+ pkgmgrinfo_appinfo_destroy_appinfo(handle_appinfo);
- SCARD_DEBUG("package name : %s", packageName);
+ SCARD_DEBUG("package name : %s", pkgid);
if ((ret = pkgmgr_pkginfo_create_certinfo(&handle)) == 0)
{
- if ((ret = pkgmgr_pkginfo_load_certinfo(packageName, handle)) == 0)
+ if ((ret = pkgmgr_pkginfo_load_certinfo(pkgid, handle)) == 0)
{
int type;
Name: smartcard-service
Summary: Smartcard Service FW
-Version: 0.1.11
+Version: 0.1.12
Release: 0
Group: libs
License: Apache License, Version 2.0
BuildRequires: pkgconfig(libssl)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(pkgmgr)
+BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(aul)
BuildRequires: cmake