int installedTime = 0;
pkgmgrinfo_installed_storage storage = PMINFO_INTERNAL_STORAGE;
bool removable = true;
+ bool preloaded = true;
std::unique_ptr<char[]> pPackageId(_StringConverter::CopyToCharArrayN(packageId));
SysTryReturnResult(NID_APP, pPackageId, E_OUT_OF_MEMORY, "pPackageId is null");
result = pkgmgrinfo_pkginfo_get_pkgname(__packageInfoHandle, &pPackage);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_pkgname(): package = [%s]", pPackage);
String package(pPackage);
__id = package;
}
result = pkgmgrinfo_pkginfo_get_version(__packageInfoHandle, &pVersion);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_version(): version = [%s]", pVersion);
String version(pVersion);
__version = version;
}
result = pkgmgrinfo_pkginfo_get_type(__packageInfoHandle, &pType);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_type(): type = [%s]", pType);
String type(pType);
__type = type;
}
result = pkgmgrinfo_pkginfo_get_label(__packageInfoHandle, &pName);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_label(): name = [%s]", pName);
String Name(pName);
__displayName = Name;
}
result = pkgmgrinfo_pkginfo_get_icon(__packageInfoHandle, &pIconPath);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_icon(): iconpath = [%s]", pIconPath);
String path(pIconPath);
__appIconPath = path;
}
result = pkgmgrinfo_pkginfo_is_removable(__packageInfoHandle, &removable);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_is_removable(): removable = [%d]", removable);
-
if (removable == false)
{
__uninstallable = false;
SysLog(NID_APP, "pkgmgrinfo_pkginfo_is_removable() is failed. result = [%d]", result);
}
+ result = pkgmgrinfo_pkginfo_is_preload(__packageInfoHandle, &preloaded);
+ if (result == PMINFO_R_OK)
+ {
+ if (preloaded == false)
+ {
+ __downloaded = true;
+ }
+ }
+ else
+ {
+ SysLog(NID_APP, "pkgmgrinfo_pkginfo_is_preload() is failed. result = [%d]", result);
+ }
+
result = pkgmgrinfo_pkginfo_get_description(__packageInfoHandle, &pDescription);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_description(): description = [%s]", pDescription);
String description(pDescription);
__description = description;
}
result = pkgmgrinfo_pkginfo_get_author_name(__packageInfoHandle, &pAuthor);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_author_name(): author = [%s]", pAuthor);
String author(pAuthor);
__author = author;
}
result = pkgmgrinfo_pkginfo_get_installed_storage(__packageInfoHandle, &storage);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_installed_storage(): storage = [%d]", storage);
if (storage == PMINFO_EXTERNAL_STORAGE)
{
__externalStorage = true;
result = pkgmgrinfo_pkginfo_get_url(__packageInfoHandle, &pUrl);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_url(): url = [%s]", pUrl);
String url(pUrl);
__url = url;
}
result = pkgmgrinfo_pkginfo_get_mainappid(__packageInfoHandle, &pMainAppId);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_mainappid(): mainApp = [%s]", pMainAppId);
AppId mainAppId(pMainAppId);
__mainAppId = mainAppId;
}
result = pkgmgrinfo_pkginfo_get_storeclientid(__packageInfoHandle, &pStoreClientId);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_storeclientid(): storeClientId = [%s]", pStoreClientId);
String storeClientId(pStoreClientId);
__storeClientId = storeClientId;
}
result = pkgmgrinfo_pkginfo_get_root_path(__packageInfoHandle, &pRootPath);
if (result == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_root_path(): rootPath = [%s]", pRootPath);
String rootPath(pRootPath);
__appRootPath = rootPath;
}
SysLog(NID_APP, "pkgmgrinfo_pkginfo_get_root_path() is failed. result = [%d]", result);
}
+ SysLog(NID_APP, "package(%ls), version(%ls), type(%ls), displayName(%ls), uninstallable(%d), downloaded(%d), "
+ "externalStorage(%d), mainApp(%ls), storeClient(%ls), appRootPath(%ls)",
+ __id.GetPointer(), __version.GetPointer(), __type.GetPointer(), __displayName.GetPointer(), __uninstallable, __downloaded,
+ __externalStorage, __mainAppId.GetPointer(), __storeClientId.GetPointer(), __appRootPath.GetPointer());
+
return r;
}