"usr" version should be used on Tizen 3.0
Change-Id: I685d605bed1b1ae046f11a69c1d1d5c66917baea
//as ckmc_allow_access does not check if package id exists
//it has to be done before allowing access
pkgmgrinfo_pkginfo_h handle = nullptr;
- int ret = pkgmgrinfo_pkginfo_get_pkginfo(id.c_str(), &handle);
+ int ret = pkgmgrinfo_pkginfo_get_usr_pkginfo(id.c_str(), &handle);
if (PMINFO_R_OK != ret) {
LoggerE("Package id not found.");
common::tools::ReportError(PlatformResult(
return;
}
- ret = pkgmgrinfo_pkginfo_get_pkginfo(pkgid, &pkginfo_handle);
+ ret = pkgmgrinfo_pkginfo_get_usr_pkginfo(pkgid, getuid(), &pkginfo_handle);
if (ret != PMINFO_R_OK) {
LoggerE("Fail to get pkginfo_h");
ReportError(PlatformResult(ErrorCode::UNKNOWN_ERR, "Fail to get pkginfo_h"), &out);