#include <common/step/filesystem/step_copy_storage_directories.h>
#include <common/step/filesystem/step_copy_tep.h>
#include <common/step/filesystem/step_create_icons.h>
+#include <common/step/filesystem/step_create_globalapp_symlinks.h>
#include <common/step/filesystem/step_create_per_user_storage_directories.h>
-#include <common/step/filesystem/step_create_legacy_directories.h>
#include <common/step/filesystem/step_create_storage_directories.h>
#include <common/step/filesystem/step_delta_patch.h>
#include <common/step/filesystem/step_disable_external_mount.h>
#include <common/step/filesystem/step_recover_external_storage.h>
#include <common/step/filesystem/step_recover_storage_directories.h>
#include <common/step/filesystem/step_remove_files.h>
+#include <common/step/filesystem/step_remove_globalapp_symlinks.h>
#include <common/step/filesystem/step_remove_icons.h>
#include <common/step/filesystem/step_remove_per_user_storage_directories.h>
-#include <common/step/filesystem/step_remove_legacy_directories.h>
#include <common/step/filesystem/step_remove_temporary_directory.h>
#include <common/step/filesystem/step_remove_tep.h>
#include <common/step/filesystem/step_remove_zip_image.h>
AddStep<tpk::configuration::StepAdjustInstallLocation>();
AddStep<ci::security::StepPrivilegeCompatibility>();
AddStep<tpk::security::StepCheckTpkBackgroundCategory>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
AddStep<ci::filesystem::StepAcquireExternalStorage>(false);
AddStep<ci::security::StepRollbackInstallationSecurity>();
AddStep<ci::filesystem::StepCopy>();
AddStep<ci::pkgmgr::StepRunParserPlugin>(
ci::Plugin::ActionType::Install);
AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepCreateLegacyDirectories>();
AddStep<ci::filesystem::StepChangeOwner>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void TpkInstaller::UpdateSteps() {
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::pkgmgr::StepUpdateApplication>();
AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Upgrade);
AddStep<ci::filesystem::StepChangeOwner>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void TpkInstaller::UninstallSteps() {
AddStep<ci::pkgmgr::StepRunParserPlugin>(
ci::Plugin::ActionType::Uninstall);
AddStep<ci::pkgmgr::StepKillApps>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
AddStep<ci::filesystem::StepAcquireExternalStorage>(true);
AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
AddStep<tpk::filesystem::StepRemoveExternalStorageDirectories>();
AddStep<ci::security::StepRollbackDeinstallationSecurity>();
AddStep<ci::filesystem::StepRemoveTep>();
AddStep<ci::filesystem::StepRemoveFiles>();
- AddStep<ci::filesystem::StepRemoveLegacyDirectories>();
AddStep<ci::filesystem::StepRemoveZipImage>();
AddStep<ci::filesystem::StepRemoveIcons>();
AddStep<ci::security::StepRevokeSecurity>();
AddStep<ci::pkgmgr::StepRemoveManifest>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void TpkInstaller::ReinstallSteps() {
AddStep<ci::pkgmgr::StepKillApps>();
AddStep<ci::backup::StepBackupManifest>();
AddStep<ci::backup::StepBackupIcons>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
AddStep<ci::rds::StepRDSParse>();
AddStep<tpk::rds::StepTpkRDSModify>();
AddStep<ci::filesystem::StepUpdateTep>();
AddStep<ci::pkgmgr::StepUpdateApplication>();
AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Upgrade);
AddStep<ci::filesystem::StepChangeOwner>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void TpkInstaller::DeltaSteps() {
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::pkgmgr::StepUpdateApplication>();
AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Upgrade);
AddStep<ci::filesystem::StepChangeOwner>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void TpkInstaller::MoveSteps() {
AddStep<ci::security::StepPrivilegeCompatibility>();
AddStep<tpk::security::StepCheckTpkBackgroundCategory>();
AddStep<ci::security::StepRollbackInstallationSecurity>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
AddStep<ci::mount::StepMountInstall>();
AddStep<tpk::filesystem::StepTpkPreparePackageDirectory>();
AddStep<ci::filesystem::StepCopyTep>();
AddStep<ci::pkgmgr::StepRunParserPlugin>(
ci::Plugin::ActionType::Install);
AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepCreateLegacyDirectories>();
AddStep<ci::filesystem::StepChangeOwner>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void TpkInstaller::MountUpdateSteps() {
AddStep<ci::pkgmgr::StepKillApps>();
AddStep<ci::backup::StepBackupManifest>();
AddStep<ci::backup::StepBackupIcons>();
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
AddStep<ci::mount::StepMountUpdate>();
AddStep<tpk::filesystem::StepTpkPreparePackageDirectory>();
AddStep<ci::filesystem::StepUpdateTep>();
AddStep<tpk::filesystem::StepTpkGrantPermission>();
AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Upgrade);
AddStep<ci::filesystem::StepChangeOwner>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void TpkInstaller::ManifestDirectInstallSteps() {
AddStep<ci::configuration::StepParseManifest>(
ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
AddStep<tpk::filesystem::StepCheckPkgDirPath>();
AddStep<ci::configuration::StepParsePreload>();
AddStep<ci::configuration::StepCheckTizenVersion>();
AddStep<tpk::filesystem::StepTpkGrantPermission>();
AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Install);
AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>();
- AddStep<ci::filesystem::StepCreateLegacyDirectories>();
AddStep<ci::filesystem::StepChangeOwner>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void TpkInstaller::ManifestDirectUpdateSteps() {
AddStep<ci::configuration::StepParseManifest>(
ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
ci::configuration::StepParseManifest::StoreLocation::NORMAL);
+ AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
AddStep<ci::configuration::StepParsePreload>();
AddStep<ci::configuration::StepCheckTizenVersion>();
AddStep<tpk::pkgmgr::StepManifestAdjustment>();
AddStep<tpk::filesystem::StepTpkGrantPermission>();
AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Upgrade);
AddStep<ci::filesystem::StepChangeOwner>();
+ AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
}
void TpkInstaller::ClearSteps() {