}
void HybridInstaller::InstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::filesystem::StepUnzip>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::pkgmgr::StepCheckInstallable>();
- AddStep<hybrid::configuration::StepStashTpkConfig>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, true);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::pkgmgr::StepCheckRestriction>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<hybrid::encryption::StepEncryptResources>();
- AddStep<ci::security::StepRollbackInstallationSecurity>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::filesystem::StepAcquireExternalStorage>(false);
- AddStep<ci::filesystem::StepCopy>();
- AddStep<ci::filesystem::StepCopyTep>();
- AddStep<tpk::filesystem::StepTpkPatchIcons>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<ci::filesystem::StepCreateIcons>();
- AddStep<wgt::filesystem::StepCopyPreviewIcons>();
- AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
- AddStep<ci::filesystem::StepCreateStorageDirectories>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<hybrid::pkgmgr::StepGenerateXml>();
- AddStep<tpk::pkgmgr::StepManifestAdjustment>();
- AddStep<hybrid::configuration::StepMergeTpkConfig>();
- AddStep<wgt::filesystem::StepCreateSymbolicLink>();
- AddStep<tpk::filesystem::StepCreateSymbolicLink>();
- AddStep<ci::pkgmgr::StepRegisterApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Install);
- AddStep<ci::security::StepRegisterSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Install);
- AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
- wgt::filesystem::HybridAdditionalSharedDirs);
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::filesystem::StepUnzip>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::pkgmgr::StepCheckInstallable>();
+ AddStep<hybrid::configuration::StepStashTpkConfig>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, true);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::pkgmgr::StepCheckRestriction>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<hybrid::encryption::StepEncryptResources>();
+ AddStep<ci::security::StepRollbackInstallationSecurity>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::filesystem::StepAcquireExternalStorage>(false);
+ AddStep<ci::filesystem::StepCopy>();
+ AddStep<ci::filesystem::StepCopyTep>();
+ AddStep<tpk::filesystem::StepTpkPatchIcons>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<ci::filesystem::StepCreateIcons>();
+ AddStep<wgt::filesystem::StepCopyPreviewIcons>();
+ AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
+ AddStep<ci::filesystem::StepCreateStorageDirectories>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<hybrid::pkgmgr::StepGenerateXml>();
+ AddStep<tpk::pkgmgr::StepManifestAdjustment>();
+ AddStep<hybrid::configuration::StepMergeTpkConfig>();
+ AddStep<wgt::filesystem::StepCreateSymbolicLink>();
+ AddStep<tpk::filesystem::StepCreateSymbolicLink>();
+ AddStep<ci::pkgmgr::StepRegisterApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Install);
+ AddStep<ci::security::StepRegisterSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Install);
+ AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
+ wgt::filesystem::HybridAdditionalSharedDirs);
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void HybridInstaller::UpdateSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::filesystem::StepUnzip>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<hybrid::configuration::StepStashTpkConfig>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, true);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<hybrid::encryption::StepEncryptResources>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::configuration::StepBlockCrossUpdate>();
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::backup::StepBackupManifest>();
- AddStep<ci::backup::StepBackupIcons>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::filesystem::StepAcquireExternalStorage>(true);
- AddStep<ci::backup::StepCopyBackup>();
- AddStep<ci::filesystem::StepUpdateTep>();
- AddStep<ci::filesystem::StepUpdateStorageDirectories>();
- AddStep<tpk::filesystem::StepTpkPatchIcons>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<ci::filesystem::StepCreateIcons>();
- AddStep<wgt::filesystem::StepCopyPreviewIcons>();
- AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
- AddStep<ci::filesystem::StepCopyStorageDirectories>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<hybrid::pkgmgr::StepGenerateXml>();
- AddStep<tpk::pkgmgr::StepManifestAdjustment>();
- AddStep<hybrid::configuration::StepMergeTpkConfig>();
- AddStep<wgt::filesystem::StepCreateSymbolicLink>();
- AddStep<tpk::filesystem::StepCreateSymbolicLink>();
- AddStep<ci::pkgmgr::StepUpdateApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Upgrade);
- AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::filesystem::StepUnzip>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<hybrid::configuration::StepStashTpkConfig>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, true);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<hybrid::encryption::StepEncryptResources>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::configuration::StepBlockCrossUpdate>();
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::backup::StepBackupManifest>();
+ AddStep<ci::backup::StepBackupIcons>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::filesystem::StepAcquireExternalStorage>(true);
+ AddStep<ci::backup::StepCopyBackup>();
+ AddStep<ci::filesystem::StepUpdateTep>();
+ AddStep<ci::filesystem::StepUpdateStorageDirectories>();
+ AddStep<tpk::filesystem::StepTpkPatchIcons>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<ci::filesystem::StepCreateIcons>();
+ AddStep<wgt::filesystem::StepCopyPreviewIcons>();
+ AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
+ AddStep<ci::filesystem::StepCopyStorageDirectories>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<hybrid::pkgmgr::StepGenerateXml>();
+ AddStep<tpk::pkgmgr::StepManifestAdjustment>();
+ AddStep<hybrid::configuration::StepMergeTpkConfig>();
+ AddStep<wgt::filesystem::StepCreateSymbolicLink>();
+ AddStep<tpk::filesystem::StepCreateSymbolicLink>();
+ AddStep<ci::pkgmgr::StepUpdateApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Upgrade);
+ AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void HybridInstaller::UninstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::pkgmgr::StepCheckRestriction>();
- AddStep<ci::pkgmgr::StepCheckRemovable>();
- AddStep<ci::pkgmgr::StepCheckForceClean>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Uninstall);
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
- AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
- AddStep<ci::pkgmgr::StepUnregisterApplication>();
- AddStep<ci::security::StepRollbackDeinstallationSecurity>();
- AddStep<ci::filesystem::StepRemoveTep>();
- AddStep<ci::filesystem::StepRemoveFiles>();
- AddStep<ci::filesystem::StepRemoveZipImage>();
- AddStep<ci::filesystem::StepRemoveIcons>();
- AddStep<wgt::encryption::StepRemoveEncryptionData>();
- AddStep<ci::security::StepUnregisterTrustAnchor>();
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Uninstall);
- AddStep<ci::security::StepRevokeSecurity>();
- AddStep<ci::pkgmgr::StepRemoveManifest>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::pkgmgr::StepCheckRestriction>();
+ AddStep<ci::pkgmgr::StepCheckRemovable>();
+ AddStep<ci::pkgmgr::StepCheckForceClean>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Uninstall);
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
+ AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
+ AddStep<ci::pkgmgr::StepUnregisterApplication>();
+ AddStep<ci::security::StepRollbackDeinstallationSecurity>();
+ AddStep<ci::filesystem::StepRemoveTep>();
+ AddStep<ci::filesystem::StepRemoveFiles>();
+ AddStep<ci::filesystem::StepRemoveZipImage>();
+ AddStep<ci::filesystem::StepRemoveIcons>();
+ AddStep<wgt::encryption::StepRemoveEncryptionData>();
+ AddStep<ci::security::StepUnregisterTrustAnchor>();
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Uninstall);
+ AddStep<ci::security::StepRevokeSecurity>();
+ AddStep<ci::pkgmgr::StepRemoveManifest>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void HybridInstaller::ReinstallSteps() {
- // RDS is not supported for hybrid apps
- AddStep<ci::configuration::StepFail>();
+ // RDS is not supported for hybrid apps
+ AddStep<ci::configuration::StepFail>();
}
void HybridInstaller::DeltaSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::filesystem::StepUnzip>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<wgt::filesystem::StepWgtUndoPatchStorageDirectories>();
- AddStep<hybrid::configuration::StepStashTpkConfig>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::filesystem::StepEnableExternalMount>();
- AddStep<ci::filesystem::StepDeltaPatch>();
- AddStep<ci::filesystem::StepDisableExternalMount>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, true);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<hybrid::encryption::StepEncryptResources>();
- AddStep<ci::configuration::StepBlockCrossUpdate>();
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::backup::StepBackupManifest>();
- AddStep<ci::backup::StepBackupIcons>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::filesystem::StepAcquireExternalStorage>(true);
- AddStep<ci::backup::StepCopyBackup>();
- AddStep<ci::filesystem::StepUpdateTep>();
- AddStep<ci::filesystem::StepUpdateStorageDirectories>();
- AddStep<tpk::filesystem::StepTpkPatchIcons>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<ci::filesystem::StepCreateIcons>();
- AddStep<wgt::filesystem::StepCopyPreviewIcons>();
- AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
- AddStep<ci::filesystem::StepCopyStorageDirectories>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<hybrid::pkgmgr::StepGenerateXml>();
- AddStep<tpk::pkgmgr::StepManifestAdjustment>();
- AddStep<hybrid::configuration::StepMergeTpkConfig>();
- AddStep<wgt::filesystem::StepCreateSymbolicLink>();
- AddStep<tpk::filesystem::StepCreateSymbolicLink>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::pkgmgr::StepUpdateApplication>();
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Upgrade);
- AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::filesystem::StepUnzip>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<wgt::filesystem::StepWgtUndoPatchStorageDirectories>();
+ AddStep<hybrid::configuration::StepStashTpkConfig>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::filesystem::StepEnableExternalMount>();
+ AddStep<ci::filesystem::StepDeltaPatch>();
+ AddStep<ci::filesystem::StepDisableExternalMount>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, true);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<hybrid::encryption::StepEncryptResources>();
+ AddStep<ci::configuration::StepBlockCrossUpdate>();
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::backup::StepBackupManifest>();
+ AddStep<ci::backup::StepBackupIcons>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::filesystem::StepAcquireExternalStorage>(true);
+ AddStep<ci::backup::StepCopyBackup>();
+ AddStep<ci::filesystem::StepUpdateTep>();
+ AddStep<ci::filesystem::StepUpdateStorageDirectories>();
+ AddStep<tpk::filesystem::StepTpkPatchIcons>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<ci::filesystem::StepCreateIcons>();
+ AddStep<wgt::filesystem::StepCopyPreviewIcons>();
+ AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
+ AddStep<ci::filesystem::StepCopyStorageDirectories>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<hybrid::pkgmgr::StepGenerateXml>();
+ AddStep<tpk::pkgmgr::StepManifestAdjustment>();
+ AddStep<hybrid::configuration::StepMergeTpkConfig>();
+ AddStep<wgt::filesystem::StepCreateSymbolicLink>();
+ AddStep<tpk::filesystem::StepCreateSymbolicLink>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::pkgmgr::StepUpdateApplication>();
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Upgrade);
+ AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void HybridInstaller::RecoverySteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::recovery::StepOpenRecoveryFile>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::RECOVERY,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::filesystem::StepRemoveTemporaryDirectory>();
- AddStep<ci::filesystem::StepRecoverIcons>();
- AddStep<ci::filesystem::StepRecoverManifest>();
- AddStep<ci::filesystem::StepRecoverExternalStorage>();
- AddStep<ci::filesystem::StepRecoverStorageDirectories>();
- AddStep<ci::filesystem::StepRecoverFiles>();
- AddStep<ci::mount::StepMountRecover>();
- AddStep<tpk::security::StepTpkRecoverSignature>();
- AddStep<ci::filesystem::StepRecoverChangeOwner>();
- AddStep<ci::security::StepRecoverSecurity>();
- AddStep<ci::pkgmgr::StepRecoverApplication>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::recovery::StepOpenRecoveryFile>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::RECOVERY,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::filesystem::StepRemoveTemporaryDirectory>();
+ AddStep<ci::filesystem::StepRecoverIcons>();
+ AddStep<ci::filesystem::StepRecoverManifest>();
+ AddStep<ci::filesystem::StepRecoverExternalStorage>();
+ AddStep<ci::filesystem::StepRecoverStorageDirectories>();
+ AddStep<ci::filesystem::StepRecoverFiles>();
+ AddStep<ci::mount::StepMountRecover>();
+ AddStep<tpk::security::StepTpkRecoverSignature>();
+ AddStep<ci::filesystem::StepRecoverChangeOwner>();
+ AddStep<ci::security::StepRecoverSecurity>();
+ AddStep<ci::pkgmgr::StepRecoverApplication>();
}
void HybridInstaller::MountInstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::mount::StepMountUnpacked>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::pkgmgr::StepCheckInstallable>();
- AddStep<hybrid::configuration::StepStashTpkConfig>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, true);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::pkgmgr::StepCheckRestriction>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<hybrid::encryption::StepEncryptResources>();
- AddStep<ci::security::StepRollbackInstallationSecurity>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::mount::StepMountInstall>();
- AddStep<tpk::filesystem::StepTpkPreparePackageDirectory>();
- AddStep<ci::filesystem::StepCopyTep>();
- AddStep<tpk::filesystem::StepTpkPatchIcons>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<ci::filesystem::StepCreateIcons>();
- AddStep<wgt::filesystem::StepCopyPreviewIcons>();
- AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
- AddStep<ci::filesystem::StepCreateStorageDirectories>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<hybrid::pkgmgr::StepGenerateXml>();
- AddStep<tpk::pkgmgr::StepManifestAdjustment>();
- AddStep<hybrid::configuration::StepMergeTpkConfig>();
- AddStep<wgt::filesystem::StepCreateSymbolicLink>();
- AddStep<tpk::filesystem::StepCreateSymbolicLink>();
- AddStep<ci::pkgmgr::StepRegisterApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Install);
- AddStep<ci::security::StepRegisterSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Install);
- AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
- wgt::filesystem::HybridAdditionalSharedDirs);
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>(true);
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::mount::StepMountUnpacked>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::pkgmgr::StepCheckInstallable>();
+ AddStep<hybrid::configuration::StepStashTpkConfig>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, true);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::pkgmgr::StepCheckRestriction>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<hybrid::encryption::StepEncryptResources>();
+ AddStep<ci::security::StepRollbackInstallationSecurity>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::mount::StepMountInstall>();
+ AddStep<tpk::filesystem::StepTpkPreparePackageDirectory>();
+ AddStep<ci::filesystem::StepCopyTep>();
+ AddStep<tpk::filesystem::StepTpkPatchIcons>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<ci::filesystem::StepCreateIcons>();
+ AddStep<wgt::filesystem::StepCopyPreviewIcons>();
+ AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
+ AddStep<ci::filesystem::StepCreateStorageDirectories>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<hybrid::pkgmgr::StepGenerateXml>();
+ AddStep<tpk::pkgmgr::StepManifestAdjustment>();
+ AddStep<hybrid::configuration::StepMergeTpkConfig>();
+ AddStep<wgt::filesystem::StepCreateSymbolicLink>();
+ AddStep<tpk::filesystem::StepCreateSymbolicLink>();
+ AddStep<ci::pkgmgr::StepRegisterApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Install);
+ AddStep<ci::security::StepRegisterSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Install);
+ AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
+ wgt::filesystem::HybridAdditionalSharedDirs);
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>(true);
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void HybridInstaller::MountUpdateSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::mount::StepMountUnpacked>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<hybrid::configuration::StepStashTpkConfig>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, true);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<hybrid::encryption::StepEncryptResources>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::configuration::StepBlockCrossUpdate>();
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::backup::StepBackupManifest>();
- AddStep<ci::backup::StepBackupIcons>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::mount::StepMountUpdate>();
- AddStep<tpk::filesystem::StepTpkUpdatePackageDirectory>();
- AddStep<ci::filesystem::StepUpdateTep>();
- AddStep<ci::filesystem::StepUpdateStorageDirectories>();
- AddStep<tpk::filesystem::StepTpkPatchIcons>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<ci::filesystem::StepCreateIcons>();
- AddStep<wgt::filesystem::StepCopyPreviewIcons>();
- AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<hybrid::pkgmgr::StepGenerateXml>();
- AddStep<tpk::pkgmgr::StepManifestAdjustment>();
- AddStep<hybrid::configuration::StepMergeTpkConfig>();
- AddStep<wgt::filesystem::StepCreateSymbolicLink>();
- AddStep<tpk::filesystem::StepCreateSymbolicLink>();
- AddStep<ci::pkgmgr::StepUpdateApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Upgrade);
- AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>(true);
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::mount::StepMountUnpacked>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<hybrid::configuration::StepStashTpkConfig>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, true);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<hybrid::encryption::StepEncryptResources>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::configuration::StepBlockCrossUpdate>();
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::backup::StepBackupManifest>();
+ AddStep<ci::backup::StepBackupIcons>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::mount::StepMountUpdate>();
+ AddStep<tpk::filesystem::StepTpkUpdatePackageDirectory>();
+ AddStep<ci::filesystem::StepUpdateTep>();
+ AddStep<ci::filesystem::StepUpdateStorageDirectories>();
+ AddStep<tpk::filesystem::StepTpkPatchIcons>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<ci::filesystem::StepCreateIcons>();
+ AddStep<wgt::filesystem::StepCopyPreviewIcons>();
+ AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<hybrid::pkgmgr::StepGenerateXml>();
+ AddStep<tpk::pkgmgr::StepManifestAdjustment>();
+ AddStep<hybrid::configuration::StepMergeTpkConfig>();
+ AddStep<wgt::filesystem::StepCreateSymbolicLink>();
+ AddStep<tpk::filesystem::StepCreateSymbolicLink>();
+ AddStep<ci::pkgmgr::StepUpdateApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Upgrade);
+ AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>(true);
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void HybridInstaller::ManifestDirectInstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::pkgmgr::StepCheckInstallable>();
- AddStep<hybrid::configuration::StepStashTpkConfig>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<ci::security::StepRollbackInstallationSecurity>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<tpk::filesystem::StepTpkPatchIcons>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<hybrid::pkgmgr::StepGenerateXml>();
- AddStep<tpk::pkgmgr::StepManifestAdjustment>();
- AddStep<hybrid::configuration::StepMergeTpkConfig>();
- AddStep<ci::pkgmgr::StepRegisterApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Install);
- AddStep<ci::security::StepRegisterSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Install);
- AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
- wgt::filesystem::HybridAdditionalSharedDirs);
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::pkgmgr::StepCheckInstallable>();
+ AddStep<hybrid::configuration::StepStashTpkConfig>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<ci::security::StepRollbackInstallationSecurity>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<tpk::filesystem::StepTpkPatchIcons>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<hybrid::pkgmgr::StepGenerateXml>();
+ AddStep<tpk::pkgmgr::StepManifestAdjustment>();
+ AddStep<hybrid::configuration::StepMergeTpkConfig>();
+ AddStep<ci::pkgmgr::StepRegisterApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Install);
+ AddStep<ci::security::StepRegisterSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Install);
+ AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
+ wgt::filesystem::HybridAdditionalSharedDirs);
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void HybridInstaller::ManifestDirectUpdateSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<hybrid::configuration::StepStashTpkConfig>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<tpk::filesystem::StepTpkPatchIcons>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<hybrid::pkgmgr::StepGenerateXml>();
- AddStep<tpk::pkgmgr::StepManifestAdjustment>();
- AddStep<hybrid::configuration::StepMergeTpkConfig>();
- AddStep<ci::pkgmgr::StepUpdateApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Upgrade);
- AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<hybrid::configuration::StepStashTpkConfig>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<hybrid::configuration::StepMergeTpkPrivileges>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<tpk::filesystem::StepTpkPatchIcons>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<hybrid::pkgmgr::StepGenerateXml>();
+ AddStep<tpk::pkgmgr::StepManifestAdjustment>();
+ AddStep<hybrid::configuration::StepMergeTpkConfig>();
+ AddStep<ci::pkgmgr::StepUpdateApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Upgrade);
+ AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void HybridInstaller::ManifestPartialInstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<hybrid::configuration::StepStashTpkConfig>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
- AddStep<hybrid::configuration::StepMergeTpkConfig>();
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::pkgmgr::StepRegisterApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Install);
- AddStep<ci::security::StepRegisterSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Install);
- AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
- wgt::filesystem::HybridAdditionalSharedDirs);
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<hybrid::configuration::StepStashTpkConfig>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
+ AddStep<hybrid::configuration::StepMergeTpkConfig>();
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::pkgmgr::StepRegisterApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Install);
+ AddStep<ci::security::StepRegisterSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Install);
+ AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
+ wgt::filesystem::HybridAdditionalSharedDirs);
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void HybridInstaller::ManifestPartialUpdateSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<hybrid::configuration::StepStashTpkConfig>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
- AddStep<hybrid::configuration::StepMergeTpkConfig>();
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::pkgmgr::StepUpdateApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Upgrade);
- AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<hybrid::configuration::StepStashTpkConfig>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
+ AddStep<hybrid::configuration::StepMergeTpkConfig>();
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::pkgmgr::StepUpdateApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Upgrade);
+ AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void HybridInstaller::PartialUninstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::pkgmgr::StepCheckRestriction>();
- AddStep<ci::pkgmgr::StepCheckRemovable>();
- AddStep<ci::pkgmgr::StepCheckForceClean>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Uninstall);
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
- AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
- AddStep<ci::pkgmgr::StepUnregisterApplication>();
- AddStep<wgt::encryption::StepRemoveEncryptionData>();
- AddStep<ci::security::StepUnregisterTrustAnchor>();
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Uninstall);
- AddStep<ci::security::StepRevokeSecurity>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::pkgmgr::StepCheckRestriction>();
+ AddStep<ci::pkgmgr::StepCheckRemovable>();
+ AddStep<ci::pkgmgr::StepCheckForceClean>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Uninstall);
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
+ AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
+ AddStep<ci::pkgmgr::StepUnregisterApplication>();
+ AddStep<wgt::encryption::StepRemoveEncryptionData>();
+ AddStep<ci::security::StepUnregisterTrustAnchor>();
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Uninstall);
+ AddStep<ci::security::StepRevokeSecurity>();
}
void HybridInstaller::EnablePkgSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::pkgmgr::StepUpdatePkgDisableInfo>(
- ci::pkgmgr::StepUpdatePkgDisableInfo::ActionType::Enable);
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Uninstall);
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::pkgmgr::StepUpdatePkgDisableInfo>(
+ ci::pkgmgr::StepUpdatePkgDisableInfo::ActionType::Enable);
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Uninstall);
}
void HybridInstaller::DisablePkgSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::pkgmgr::StepUpdatePkgDisableInfo>(
- ci::pkgmgr::StepUpdatePkgDisableInfo::ActionType::Disable);
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Uninstall);
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::pkgmgr::StepUpdatePkgDisableInfo>(
+ ci::pkgmgr::StepUpdatePkgDisableInfo::ActionType::Disable);
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Uninstall);
}
void HybridInstaller::MigrateExtImgSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::security::StepMigrateLegacyExtImage>();
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::security::StepMigrateLegacyExtImage>();
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
}
} // namespace hybrid
Init();
context_->backend_data.set(new WgtBackendData());
}
- void WgtInstaller::InstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::filesystem::StepUnzip>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::PACKAGE, true);
- AddStep<ci::configuration::StepCheckInstallLocation>();
- AddStep<ci::pkgmgr::StepCheckInstallable>();
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::pkgmgr::StepCheckRestriction>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<wgt::encryption::StepEncryptResources>();
- AddStep<wgt::filesystem::StepWgtResourceDirectory>();
- AddStep<ci::security::StepRollbackInstallationSecurity>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::filesystem::StepAcquireExternalStorage>(false);
- AddStep<ci::filesystem::StepCopy>();
- AddStep<ci::filesystem::StepCopyTep>();
- AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
- AddStep<ci::filesystem::StepCreateStorageDirectories>();
- AddStep<wgt::filesystem::StepCreateSymbolicLink>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<ci::filesystem::StepCreateIcons>();
- AddStep<wgt::filesystem::StepCopyPreviewIcons>();
- AddStep<wgt::security::StepCheckExtensionPrivileges>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<ci::pkgmgr::StepRegisterApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Install);
- AddStep<ci::security::StepRegisterSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Install);
- AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
- wgt::filesystem::WgtAdditionalSharedDirs);
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
- }
- void WgtInstaller::UpdateSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::filesystem::StepUnzip>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::PACKAGE, true);
- AddStep<ci::configuration::StepCheckInstallLocation>();
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<ci::security::StepCheckOldCertificate>();
- AddStep<wgt::encryption::StepEncryptResources>();
- AddStep<wgt::filesystem::StepWgtResourceDirectory>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::configuration::StepBlockCrossUpdate>();
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::backup::StepBackupManifest>();
- AddStep<ci::backup::StepBackupIcons>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::filesystem::StepAcquireExternalStorage>(true);
- AddStep<ci::backup::StepCopyBackup>();
- AddStep<ci::filesystem::StepUpdateTep>();
- AddStep<ci::filesystem::StepUpdateStorageDirectories>();
- AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
- AddStep<wgt::filesystem::StepCreateSymbolicLink>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<ci::filesystem::StepCreateIcons>();
- AddStep<wgt::filesystem::StepCopyPreviewIcons>();
- AddStep<ci::filesystem::StepCopyStorageDirectories>();
- AddStep<wgt::security::StepCheckExtensionPrivileges>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<ci::pkgmgr::StepUpdateApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Upgrade);
- AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
- }
+void WgtInstaller::InstallSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::filesystem::StepUnzip>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::PACKAGE, true);
+ AddStep<ci::configuration::StepCheckInstallLocation>();
+ AddStep<ci::pkgmgr::StepCheckInstallable>();
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::pkgmgr::StepCheckRestriction>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<wgt::encryption::StepEncryptResources>();
+ AddStep<wgt::filesystem::StepWgtResourceDirectory>();
+ AddStep<ci::security::StepRollbackInstallationSecurity>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::filesystem::StepAcquireExternalStorage>(false);
+ AddStep<ci::filesystem::StepCopy>();
+ AddStep<ci::filesystem::StepCopyTep>();
+ AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
+ AddStep<ci::filesystem::StepCreateStorageDirectories>();
+ AddStep<wgt::filesystem::StepCreateSymbolicLink>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<ci::filesystem::StepCreateIcons>();
+ AddStep<wgt::filesystem::StepCopyPreviewIcons>();
+ AddStep<wgt::security::StepCheckExtensionPrivileges>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<ci::pkgmgr::StepRegisterApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Install);
+ AddStep<ci::security::StepRegisterSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Install);
+ AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
+ wgt::filesystem::WgtAdditionalSharedDirs);
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+}
- void WgtInstaller::UninstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::pkgmgr::StepCheckRestriction>();
- AddStep<ci::pkgmgr::StepCheckRemovable>();
- AddStep<ci::pkgmgr::StepCheckForceClean>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::configuration::StepCheckInstallLocation>();
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Uninstall);
- AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
- AddStep<ci::pkgmgr::StepUnregisterApplication>();
- AddStep<ci::security::StepRollbackDeinstallationSecurity>();
- AddStep<ci::filesystem::StepRemoveTep>();
- AddStep<ci::filesystem::StepRemoveFiles>();
- AddStep<ci::filesystem::StepRemoveZipImage>();
- AddStep<ci::filesystem::StepRemoveIcons>();
- AddStep<wgt::encryption::StepRemoveEncryptionData>();
- AddStep<ci::security::StepUnregisterTrustAnchor>();
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Uninstall);
- AddStep<ci::security::StepRevokeSecurity>();
- AddStep<ci::pkgmgr::StepRemoveManifest>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
- }
+void WgtInstaller::UpdateSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::filesystem::StepUnzip>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::PACKAGE, true);
+ AddStep<ci::configuration::StepCheckInstallLocation>();
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<ci::security::StepCheckOldCertificate>();
+ AddStep<wgt::encryption::StepEncryptResources>();
+ AddStep<wgt::filesystem::StepWgtResourceDirectory>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::configuration::StepBlockCrossUpdate>();
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::backup::StepBackupManifest>();
+ AddStep<ci::backup::StepBackupIcons>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::filesystem::StepAcquireExternalStorage>(true);
+ AddStep<ci::backup::StepCopyBackup>();
+ AddStep<ci::filesystem::StepUpdateTep>();
+ AddStep<ci::filesystem::StepUpdateStorageDirectories>();
+ AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
+ AddStep<wgt::filesystem::StepCreateSymbolicLink>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<ci::filesystem::StepCreateIcons>();
+ AddStep<wgt::filesystem::StepCopyPreviewIcons>();
+ AddStep<ci::filesystem::StepCopyStorageDirectories>();
+ AddStep<wgt::security::StepCheckExtensionPrivileges>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<ci::pkgmgr::StepUpdateApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Upgrade);
+ AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+}
- void WgtInstaller::ReinstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<wgt::configuration::StepCheckRDSManifest>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, false);
- AddStep<ci::configuration::StepCheckInstallLocation>();
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::pkgmgr::StepCheckRestriction>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::configuration::StepBlockCrossUpdate>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::rds::StepRDSParse>();
- AddStep<ci::filesystem::StepUpdateTep>();
- AddStep<ci::rds::StepRDSModify>();
- AddStep<wgt::security::StepCheckExtensionPrivileges>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
- }
+void WgtInstaller::UninstallSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::pkgmgr::StepCheckRestriction>();
+ AddStep<ci::pkgmgr::StepCheckRemovable>();
+ AddStep<ci::pkgmgr::StepCheckForceClean>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::configuration::StepCheckInstallLocation>();
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Uninstall);
+ AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
+ AddStep<ci::pkgmgr::StepUnregisterApplication>();
+ AddStep<ci::security::StepRollbackDeinstallationSecurity>();
+ AddStep<ci::filesystem::StepRemoveTep>();
+ AddStep<ci::filesystem::StepRemoveFiles>();
+ AddStep<ci::filesystem::StepRemoveZipImage>();
+ AddStep<ci::filesystem::StepRemoveIcons>();
+ AddStep<wgt::encryption::StepRemoveEncryptionData>();
+ AddStep<ci::security::StepUnregisterTrustAnchor>();
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Uninstall);
+ AddStep<ci::security::StepRevokeSecurity>();
+ AddStep<ci::pkgmgr::StepRemoveManifest>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+}
+
+void WgtInstaller::ReinstallSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<wgt::configuration::StepCheckRDSManifest>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, false);
+ AddStep<ci::configuration::StepCheckInstallLocation>();
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::pkgmgr::StepCheckRestriction>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::configuration::StepBlockCrossUpdate>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::rds::StepRDSParse>();
+ AddStep<ci::filesystem::StepUpdateTep>();
+ AddStep<ci::rds::StepRDSModify>();
+ AddStep<wgt::security::StepCheckExtensionPrivileges>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+}
- void WgtInstaller::DeltaSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::filesystem::StepUnzip>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::PACKAGE, false);
- AddStep<ci::configuration::StepCheckInstallLocation>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::filesystem::StepEnableExternalMount>();
- AddStep<wgt::filesystem::StepWgtUndoPatchStorageDirectories>();
- AddStep<ci::filesystem::StepDeltaPatch>("res/wgt/");
- AddStep<ci::filesystem::StepDisableExternalMount>();
- AddStep<wgt::configuration::StepCheckStartFiles>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<ci::security::StepCheckOldCertificate>();
- AddStep<wgt::encryption::StepEncryptResources>();
- AddStep<wgt::filesystem::StepWgtResourceDirectory>();
- AddStep<ci::configuration::StepBlockCrossUpdate>();
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::backup::StepBackupManifest>();
- AddStep<ci::backup::StepBackupIcons>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::filesystem::StepAcquireExternalStorage>(true);
- AddStep<ci::backup::StepCopyBackup>();
- AddStep<ci::filesystem::StepUpdateTep>();
- AddStep<ci::filesystem::StepUpdateStorageDirectories>();
- AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
- AddStep<wgt::filesystem::StepCreateSymbolicLink>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<ci::filesystem::StepCreateIcons>();
- AddStep<wgt::filesystem::StepCopyPreviewIcons>();
- AddStep<ci::filesystem::StepCopyStorageDirectories>();
- AddStep<wgt::security::StepCheckExtensionPrivileges>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<ci::pkgmgr::StepUpdateApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Upgrade);
- AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
- }
+void WgtInstaller::DeltaSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::filesystem::StepUnzip>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::PACKAGE, false);
+ AddStep<ci::configuration::StepCheckInstallLocation>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::filesystem::StepEnableExternalMount>();
+ AddStep<wgt::filesystem::StepWgtUndoPatchStorageDirectories>();
+ AddStep<ci::filesystem::StepDeltaPatch>("res/wgt/");
+ AddStep<ci::filesystem::StepDisableExternalMount>();
+ AddStep<wgt::configuration::StepCheckStartFiles>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<ci::security::StepCheckOldCertificate>();
+ AddStep<wgt::encryption::StepEncryptResources>();
+ AddStep<wgt::filesystem::StepWgtResourceDirectory>();
+ AddStep<ci::configuration::StepBlockCrossUpdate>();
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::backup::StepBackupManifest>();
+ AddStep<ci::backup::StepBackupIcons>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::filesystem::StepAcquireExternalStorage>(true);
+ AddStep<ci::backup::StepCopyBackup>();
+ AddStep<ci::filesystem::StepUpdateTep>();
+ AddStep<ci::filesystem::StepUpdateStorageDirectories>();
+ AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
+ AddStep<wgt::filesystem::StepCreateSymbolicLink>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<ci::filesystem::StepCreateIcons>();
+ AddStep<wgt::filesystem::StepCopyPreviewIcons>();
+ AddStep<ci::filesystem::StepCopyStorageDirectories>();
+ AddStep<wgt::security::StepCheckExtensionPrivileges>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<ci::pkgmgr::StepUpdateApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Upgrade);
+ AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+}
- void WgtInstaller::RecoverySteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::recovery::StepOpenRecoveryFile>();
- AddStep<ci::filesystem::StepRemoveTemporaryDirectory>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::RECOVERY,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::filesystem::StepRecoverIcons>();
- AddStep<ci::filesystem::StepRecoverManifest>();
- AddStep<ci::filesystem::StepRecoverExternalStorage>();
- AddStep<ci::filesystem::StepRecoverStorageDirectories>();
- AddStep<ci::filesystem::StepRecoverPerUserStorageDirectories>();
- AddStep<ci::filesystem::StepRecoverFiles>();
- AddStep<ci::mount::StepMountRecover>();
- AddStep<wgt::security::StepWgtRecoverSignature>();
- AddStep<ci::filesystem::StepRecoverChangeOwner>();
- AddStep<ci::security::StepRecoverSecurity>();
- AddStep<ci::pkgmgr::StepRecoverApplication>();
- }
+void WgtInstaller::RecoverySteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::recovery::StepOpenRecoveryFile>();
+ AddStep<ci::filesystem::StepRemoveTemporaryDirectory>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::RECOVERY,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::filesystem::StepRecoverIcons>();
+ AddStep<ci::filesystem::StepRecoverManifest>();
+ AddStep<ci::filesystem::StepRecoverExternalStorage>();
+ AddStep<ci::filesystem::StepRecoverStorageDirectories>();
+ AddStep<ci::filesystem::StepRecoverPerUserStorageDirectories>();
+ AddStep<ci::filesystem::StepRecoverFiles>();
+ AddStep<ci::mount::StepMountRecover>();
+ AddStep<wgt::security::StepWgtRecoverSignature>();
+ AddStep<ci::filesystem::StepRecoverChangeOwner>();
+ AddStep<ci::security::StepRecoverSecurity>();
+ AddStep<ci::pkgmgr::StepRecoverApplication>();
+}
- void WgtInstaller::MountInstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::mount::StepMountUnpacked>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::PACKAGE, true);
- AddStep<ci::configuration::StepCheckInstallLocation>();
- AddStep<ci::pkgmgr::StepCheckInstallable>();
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::pkgmgr::StepCheckRestriction>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<wgt::encryption::StepEncryptResources>();
- AddStep<ci::security::StepRollbackInstallationSecurity>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::mount::StepMountInstall>();
- AddStep<wgt::filesystem::StepWgtPreparePackageDirectory>();
- AddStep<ci::filesystem::StepCopyTep>();
- AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
- AddStep<ci::filesystem::StepCreateStorageDirectories>();
- AddStep<wgt::filesystem::StepCreateSymbolicLink>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<ci::filesystem::StepCreateIcons>();
- AddStep<wgt::filesystem::StepCopyPreviewIcons>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<wgt::security::StepCheckExtensionPrivileges>();
- AddStep<ci::pkgmgr::StepRegisterApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Install);
- AddStep<ci::security::StepRegisterSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Install);
- AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
- wgt::filesystem::WgtAdditionalSharedDirs);
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>(true);
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
- }
+void WgtInstaller::MountInstallSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::mount::StepMountUnpacked>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::PACKAGE, true);
+ AddStep<ci::configuration::StepCheckInstallLocation>();
+ AddStep<ci::pkgmgr::StepCheckInstallable>();
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::pkgmgr::StepCheckRestriction>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<wgt::encryption::StepEncryptResources>();
+ AddStep<ci::security::StepRollbackInstallationSecurity>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::mount::StepMountInstall>();
+ AddStep<wgt::filesystem::StepWgtPreparePackageDirectory>();
+ AddStep<ci::filesystem::StepCopyTep>();
+ AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
+ AddStep<ci::filesystem::StepCreateStorageDirectories>();
+ AddStep<wgt::filesystem::StepCreateSymbolicLink>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<ci::filesystem::StepCreateIcons>();
+ AddStep<wgt::filesystem::StepCopyPreviewIcons>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<wgt::security::StepCheckExtensionPrivileges>();
+ AddStep<ci::pkgmgr::StepRegisterApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Install);
+ AddStep<ci::security::StepRegisterSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Install);
+ AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
+ wgt::filesystem::WgtAdditionalSharedDirs);
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>(true);
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+}
- void WgtInstaller::MountUpdateSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::mount::StepMountUnpacked>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::PACKAGE, true);
- AddStep<ci::configuration::StepCheckInstallLocation>();
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<ci::security::StepCheckOldCertificate>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::configuration::StepBlockCrossUpdate>();
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::backup::StepBackupManifest>();
- AddStep<ci::backup::StepBackupIcons>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::mount::StepMountUpdate>();
- AddStep<wgt::filesystem::StepWgtUpdatePackageDirectory>();
- AddStep<ci::filesystem::StepUpdateTep>();
- AddStep<ci::filesystem::StepUpdateStorageDirectories>();
- AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
- AddStep<wgt::filesystem::StepCreateSymbolicLink>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<ci::filesystem::StepCreateIcons>();
- AddStep<wgt::filesystem::StepCopyPreviewIcons>();
- AddStep<wgt::security::StepCheckExtensionPrivileges>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<ci::pkgmgr::StepUpdateApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Upgrade);
- AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>(true);
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
- }
+void WgtInstaller::MountUpdateSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::mount::StepMountUnpacked>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::PACKAGE, true);
+ AddStep<ci::configuration::StepCheckInstallLocation>();
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<ci::security::StepCheckOldCertificate>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::configuration::StepBlockCrossUpdate>();
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::backup::StepBackupManifest>();
+ AddStep<ci::backup::StepBackupIcons>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::mount::StepMountUpdate>();
+ AddStep<wgt::filesystem::StepWgtUpdatePackageDirectory>();
+ AddStep<ci::filesystem::StepUpdateTep>();
+ AddStep<ci::filesystem::StepUpdateStorageDirectories>();
+ AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
+ AddStep<wgt::filesystem::StepCreateSymbolicLink>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<ci::filesystem::StepCreateIcons>();
+ AddStep<wgt::filesystem::StepCopyPreviewIcons>();
+ AddStep<wgt::security::StepCheckExtensionPrivileges>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<ci::pkgmgr::StepUpdateApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Upgrade);
+ AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>(true);
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+}
- void WgtInstaller::ManifestDirectInstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
- AddStep<ci::pkgmgr::StepCheckInstallable>();
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<wgt::security::StepDirectManifestCheckSignature>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<ci::security::StepRollbackInstallationSecurity>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<ci::pkgmgr::StepRegisterApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Install);
- AddStep<ci::security::StepRegisterSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Install);
- AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
- wgt::filesystem::WgtAdditionalSharedDirs);
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
- }
+void WgtInstaller::ManifestDirectInstallSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
+ AddStep<ci::pkgmgr::StepCheckInstallable>();
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<wgt::security::StepDirectManifestCheckSignature>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<ci::security::StepRollbackInstallationSecurity>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<ci::pkgmgr::StepRegisterApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Install);
+ AddStep<ci::security::StepRegisterSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Install);
+ AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
+ wgt::filesystem::WgtAdditionalSharedDirs);
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+}
- void WgtInstaller::ManifestDirectUpdateSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<wgt::security::StepDirectManifestCheckSignature>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::filesystem::StepCopyTep>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<ci::pkgmgr::StepUpdateApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Upgrade);
- AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
- }
+void WgtInstaller::ManifestDirectUpdateSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<wgt::security::StepDirectManifestCheckSignature>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::filesystem::StepCopyTep>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<ci::pkgmgr::StepUpdateApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Upgrade);
+ AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+}
- void WgtInstaller::ReadonlyUpdateInstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::filesystem::StepUnzip>();
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::PACKAGE, true);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::configuration::StepCheckTizenVersion>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
- AddStep<wgt::security::StepCheckSettingsLevel>();
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<wgt::security::StepCheckWgtNotificationCategory>();
- AddStep<wgt::security::StepCheckWgtImePrivilege>();
- AddStep<ci::security::StepCheckOldCertificate>();
- AddStep<wgt::encryption::StepEncryptResources>();
- AddStep<wgt::filesystem::StepWgtResourceDirectory>();
- AddStep<ci::security::StepRollbackInstallationSecurity>();
- AddStep<ci::configuration::StepSwitchReadonlyMode>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::configuration::StepSwitchReadonlyMode>();
- AddStep<ci::configuration::StepBlockCrossUpdate>();
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::filesystem::StepCopy>();
- AddStep<ci::filesystem::StepCopyTep>();
- AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
- AddStep<ci::filesystem::StepCreateStorageDirectories>();
- AddStep<wgt::filesystem::StepCreateSymbolicLink>();
- AddStep<wgt::filesystem::StepWgtPatchIcons>();
- AddStep<wgt::filesystem::StepCopyPreviewIcons>();
- AddStep<wgt::security::StepCheckExtensionPrivileges>();
- AddStep<wgt::pkgmgr::StepGenerateXml>();
- AddStep<ci::pkgmgr::StepUpdateApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Upgrade);
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
- }
+void WgtInstaller::ReadonlyUpdateInstallSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::filesystem::StepUnzip>();
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::PACKAGE, true);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::configuration::StepCheckTizenVersion>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
+ AddStep<wgt::security::StepCheckSettingsLevel>();
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<wgt::security::StepCheckWgtNotificationCategory>();
+ AddStep<wgt::security::StepCheckWgtImePrivilege>();
+ AddStep<ci::security::StepCheckOldCertificate>();
+ AddStep<wgt::encryption::StepEncryptResources>();
+ AddStep<wgt::filesystem::StepWgtResourceDirectory>();
+ AddStep<ci::security::StepRollbackInstallationSecurity>();
+ AddStep<ci::configuration::StepSwitchReadonlyMode>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::configuration::StepSwitchReadonlyMode>();
+ AddStep<ci::configuration::StepBlockCrossUpdate>();
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::filesystem::StepCopy>();
+ AddStep<ci::filesystem::StepCopyTep>();
+ AddStep<wgt::filesystem::StepWgtPatchStorageDirectories>();
+ AddStep<ci::filesystem::StepCreateStorageDirectories>();
+ AddStep<wgt::filesystem::StepCreateSymbolicLink>();
+ AddStep<wgt::filesystem::StepWgtPatchIcons>();
+ AddStep<wgt::filesystem::StepCopyPreviewIcons>();
+ AddStep<wgt::security::StepCheckExtensionPrivileges>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
+ AddStep<ci::pkgmgr::StepUpdateApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Upgrade);
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+}
- void WgtInstaller::ReadonlyUpdateUninstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::pkgmgr::StepCheckRestriction>();
- AddStep<ci::pkgmgr::StepCheckRemovable>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::configuration::StepSwitchReadonlyMode>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<wgt::configuration::StepSetOldSignatureFilesLocation>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<ci::configuration::StepSwitchReadonlyMode>();
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::filesystem::StepRemoveTep>();
- AddStep<ci::filesystem::StepRemoveFiles>();
- AddStep<ci::filesystem::StepRemoveZipImage>();
- AddStep<ci::pkgmgr::StepUpdateApplication>();
- AddStep<ci::configuration::StepSwitchReadonlyMode>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepRemoveManifest>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Upgrade);
- }
+void WgtInstaller::ReadonlyUpdateUninstallSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::pkgmgr::StepCheckRestriction>();
+ AddStep<ci::pkgmgr::StepCheckRemovable>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::configuration::StepSwitchReadonlyMode>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<wgt::configuration::StepSetOldSignatureFilesLocation>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<ci::configuration::StepSwitchReadonlyMode>();
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::filesystem::StepRemoveTep>();
+ AddStep<ci::filesystem::StepRemoveFiles>();
+ AddStep<ci::filesystem::StepRemoveZipImage>();
+ AddStep<ci::pkgmgr::StepUpdateApplication>();
+ AddStep<ci::configuration::StepSwitchReadonlyMode>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::pkgmgr::StepRemoveManifest>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Upgrade);
+}
- void WgtInstaller::ManifestPartialInstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::security::StepCheckSignature>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::pkgmgr::StepRegisterApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Install);
- AddStep<ci::security::StepRegisterSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Install);
- AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
- wgt::filesystem::WgtAdditionalSharedDirs);
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
- }
+void WgtInstaller::ManifestPartialInstallSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::pkgmgr::StepRegisterApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::INSTALL);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Install);
+ AddStep<ci::security::StepRegisterSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Install);
+ AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
+ wgt::filesystem::WgtAdditionalSharedDirs);
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+}
- void WgtInstaller::ManifestPartialUpdateSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<wgt::configuration::StepParse>(
- wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
- AddStep<ci::configuration::StepParsePreload>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::BACKUP);
- AddStep<ci::security::StepCheckSignature>();
- AddStep<ci::security::StepPrivilegeCompatibility>(
- ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
- AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::pkgmgr::StepUpdateApplication>();
- AddStep<ci::security::StepRegisterTrustAnchor>(
- ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Update);
- AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Upgrade);
- AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
- }
+void WgtInstaller::ManifestPartialUpdateSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<wgt::configuration::StepParse>(
+ wgt::configuration::StepParse::ConfigLocation::INSTALLED, true);
+ AddStep<ci::configuration::StepParsePreload>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::BACKUP);
+ AddStep<ci::security::StepCheckSignature>();
+ AddStep<ci::security::StepPrivilegeCompatibility>(
+ ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
+ AddStep<wgt::security::StepCheckWgtBackgroundCategory>();
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::pkgmgr::StepUpdateApplication>();
+ AddStep<ci::security::StepRegisterTrustAnchor>(
+ ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Update);
+ AddStep<ci::security::StepUpdateSecurity>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Upgrade);
+ AddStep<ci::filesystem::StepUpdatePerUserStorageDirectories>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
+}
- void WgtInstaller::PartialUninstallSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::pkgmgr::StepCheckRestriction>();
- AddStep<ci::pkgmgr::StepCheckRemovable>();
- AddStep<ci::pkgmgr::StepCheckForceClean>();
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
- AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Uninstall);
- AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
- AddStep<ci::pkgmgr::StepUnregisterApplication>();
- AddStep<wgt::encryption::StepRemoveEncryptionData>();
- AddStep<ci::security::StepUnregisterTrustAnchor>();
- AddStep<ci::security::StepPrivacyPrivilege>(
- ci::security::StepPrivacyPrivilege::ActionType::Uninstall);
- AddStep<ci::security::StepRevokeSecurity>();
- }
+void WgtInstaller::PartialUninstallSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::pkgmgr::StepCheckRestriction>();
+ AddStep<ci::pkgmgr::StepCheckRemovable>();
+ AddStep<ci::pkgmgr::StepCheckForceClean>();
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
+ AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Uninstall);
+ AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
+ AddStep<ci::pkgmgr::StepUnregisterApplication>();
+ AddStep<wgt::encryption::StepRemoveEncryptionData>();
+ AddStep<ci::security::StepUnregisterTrustAnchor>();
+ AddStep<ci::security::StepPrivacyPrivilege>(
+ ci::security::StepPrivacyPrivilege::ActionType::Uninstall);
+ AddStep<ci::security::StepRevokeSecurity>();
+}
- void WgtInstaller::MoveSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::configuration::StepCheckInstallLocation>();
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::filesystem::StepMoveInstalledStorage>();
- AddStep<ci::security::StepRegisterSecurity>();
- }
+void WgtInstaller::MoveSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::configuration::StepCheckInstallLocation>();
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::filesystem::StepMoveInstalledStorage>();
+ AddStep<ci::security::StepRegisterSecurity>();
+}
- void WgtInstaller::EnablePkgSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::pkgmgr::StepUpdatePkgDisableInfo>(
- ci::pkgmgr::StepUpdatePkgDisableInfo::ActionType::Enable);
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Uninstall);
- }
+void WgtInstaller::EnablePkgSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::pkgmgr::StepUpdatePkgDisableInfo>(
+ ci::pkgmgr::StepUpdatePkgDisableInfo::ActionType::Enable);
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Uninstall);
+}
- void WgtInstaller::DisablePkgSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::configuration::StepParseManifest>(
- ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
- ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::pkgmgr::StepKillApps>();
- AddStep<ci::pkgmgr::StepUpdatePkgDisableInfo>(
- ci::pkgmgr::StepUpdatePkgDisableInfo::ActionType::Disable);
- AddStep<ci::pkgmgr::StepRunParserPlugin>(
- ci::Plugin::ActionType::Uninstall);
- }
+void WgtInstaller::DisablePkgSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::configuration::StepParseManifest>(
+ ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
+ ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::pkgmgr::StepUpdatePkgDisableInfo>(
+ ci::pkgmgr::StepUpdatePkgDisableInfo::ActionType::Disable);
+ AddStep<ci::pkgmgr::StepRunParserPlugin>(
+ ci::Plugin::ActionType::Uninstall);
+}
- void WgtInstaller::MigrateExtImgSteps() {
- AddStep<ci::configuration::StepConfigure>(pkgmgr_);
- AddStep<ci::security::StepMigrateLegacyExtImage>();
- AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
- }
+void WgtInstaller::MigrateExtImgSteps() {
+ AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+ AddStep<ci::security::StepMigrateLegacyExtImage>();
+ AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
+}
} // namespace wgt