//TODO: remove dao.getHandle()
if (m_context.mode.installTime == InstallMode::InstallTime::PRELOAD) {
- LogDebug("This widget is prealoaded. So ace check will be skiped");
+ LogDebug("This widget is preloaded. So ace check will be skiped");
policyResult = ACE_PERMIT;
} else {
ace_return_t ret = ace_get_policy_result(
WrtDB::GlobalConfig::GetWidgetResPath();
if (0 != access(optRes.c_str(), F_OK)) {
- LogDebug("Make symbolic name for preaload app" <<
+ LogDebug("Make symbolic name for preload app" <<
usrRes << " to " << optRes);
if (symlink(usrRes.c_str(), optRes.c_str()) != 0)
std::string dataDir = m_context.locations->getPackageInstallationDir() +
"/" + WrtDB::GlobalConfig::GetWidgetPrivateStoragePath();
if (0 != access(dataDir.c_str(), F_OK)) {
- LogDebug("Make symbolic name for preaload app " <<
+ LogDebug("Make symbolic name for preload app " <<
storagePath << " to " << dataDir);
if (symlink(storagePath.c_str(), dataDir.c_str()) != 0)
changeOwnerForDirectory(m_context.locations->getSharedTrustedDir(),
SHARED_STORAGE_MODE);
- if (m_context.isUpdateMode) { //update
- std::string backSharedData = m_context.locations->getBackupSharedDir();
- std::string BackSharedTrusted = m_context.locations->getBackupSharedDir();
+
+ // additional check for rootPath installation
+ // If this app is preloaded, "shared" diretory is already on place and do not needs to be moved
+ // TODO: why "shared" is on RW partion always but "data" and "tmp" are linked
+ if (m_context.isUpdateMode
+ && !(m_context.mode.rootPath == InstallMode::RootPath::RO
+ && m_context.mode.installTime == InstallMode::InstallTime::PRELOAD)) {
/* Restore /shared/data */
LogDebug("copy " << m_context.locations->getBackupSharedDataDir() <<
installPath = DPL::Utils::Path(*dao.getWidgetInstalledPath());
}
if(installPath.isSubPath(PRELOAD_INSTALLED_PATH)){
- LogDebug("This widget is prealoded.");
+ LogDebug("This widget is preloaded.");
}
} Catch(WidgetDAOReadOnly::Exception::WidgetNotExist) {
LogDebug("package id : " << pkgId);