step/pkgmgr/step_manifest_adjustment.cc
step/rds/step_tpk_rds_modify.cc
step/security/step_check_tpk_background_category.cc
+ step/security/step_tpk_recover_signature.cc
tpk_app_query_interface.cc
tpk_mount_path.cc
tpk_installer.cc
--- /dev/null
+// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+// Use of this source code is governed by an apache 2.0 license that can be
+// found in the LICENSE file.
+
+#include "tpk/step/security/step_tpk_recover_signature.h"
+
+namespace bf = boost::filesystem;
+
+namespace tpk {
+namespace security {
+
+bf::path StepTpkRecoverSignature::GetSignatureRoot() {
+ return context_->pkg_path.get();
+}
+
+} // namespace security
+} // namespace tpk
--- /dev/null
+// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+// Use of this source code is governed by an apache 2.0 license that can be
+// found in the LICENSE file.
+
+#ifndef TPK_STEP_SECURITY_STEP_TPK_RECOVER_SIGNATURE_H_
+#define TPK_STEP_SECURITY_STEP_TPK_RECOVER_SIGNATURE_H_
+
+#ifndef TPK_BACKEND_EXPORT_API
+#define TPK_BACKEND_EXPORT_API
+#endif
+
+#include <common/step/security/step_recover_signature.h>
+
+#include <boost/filesystem/path.hpp>
+
+namespace tpk {
+namespace security {
+
+class TPK_BACKEND_EXPORT_API StepTpkRecoverSignature
+ : public common_installer::security::StepRecoverSignature {
+ public:
+ using StepRecoverSignature::StepRecoverSignature;
+
+ private:
+ boost::filesystem::path GetSignatureRoot() override;
+};
+
+} // namespace security
+} // namespace tpk
+
+#endif // TPK_STEP_SECURITY_STEP_TPK_RECOVER_SIGNATURE_H_
#include "tpk/step/pkgmgr/step_manifest_adjustment.h"
#include "tpk/step/rds/step_tpk_rds_modify.h"
#include "tpk/step/security/step_check_tpk_background_category.h"
+#include "tpk/step/security/step_tpk_recover_signature.h"
namespace ci = common_installer;
AddStep<ci::configuration::StepParseManifest>(
ci::configuration::StepParseManifest::ManifestLocation::RECOVERY,
ci::configuration::StepParseManifest::StoreLocation::NORMAL);
- AddStep<ci::pkgmgr::StepRecoverApplication>();
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<tpk::security::StepTpkRecoverSignature>();
+ AddStep<ci::pkgmgr::StepRecoverApplication>();
AddStep<ci::security::StepRecoverSecurity>();
}