1 // Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache-2.0 license that can be
3 // found in the LICENSE file.
5 #ifndef COMMON_STEP_PKGMGR_STEP_RECOVER_APPLICATION_H_
6 #define COMMON_STEP_PKGMGR_STEP_RECOVER_APPLICATION_H_
8 #include <manifest_parser/utils/logging.h>
10 #include "common/installer_context.h"
11 #include "common/step/recovery/step_recovery.h"
13 namespace common_installer {
17 * @brief recovers applications entries in pkgmgr
19 * Part of RecoveryMode. In case of partial installation
20 * app get unregistered with pkgmgr. In case of unsuccessful
21 * update app in state before update gets re-registered
23 class StepRecoverApplication : public recovery::StepRecovery {
25 using StepRecovery::StepRecovery;
26 Status RecoveryNew() override;
27 Status RecoveryUpdate() override;
28 Status RecoveryReadonlyUpdateInstall() override;
32 void SetExtAttrForPreloadPackage(bool is_updated, bool is_removable,
34 bool UnregisterApplication();
35 bool RegisterApplication();
37 STEP_NAME(RecoverApplication)
41 } // namespace common_installer
43 #endif // COMMON_STEP_PKGMGR_STEP_RECOVER_APPLICATION_H_