#include <tpk/step/filesystem/step_tpk_patch_icons.h>
#include <tpk/step/filesystem/step_tpk_prepare_package_directory.h>
#include <tpk/step/filesystem/step_tpk_update_package_directory.h>
+#include <tpk/step/security/step_tpk_recover_signature.h>
#include "hybrid/hybrid_backend_data.h"
#include "hybrid/step/configuration/step_merge_tpk_config.h"
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>();
break;
case ci::RequestType::Clear:
step/security/step_check_wgt_ime_privilege.cc
step/security/step_direct_manifest_check_signature.cc
step/security/step_check_extension_privileges.cc
+ step/security/step_wgt_recover_signature.cc
wgt_app_query_interface.cc
wgt_installer.cc
extension_config_parser.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 "wgt/step/security/step_wgt_recover_signature.h"
+
+namespace bf = boost::filesystem;
+
+namespace {
+
+const char kResWgt[] = "res/wgt";
+
+} // namespace
+
+namespace wgt {
+namespace security {
+
+bf::path StepWgtRecoverSignature::GetSignatureRoot() {
+ return context_->pkg_path.get() / kResWgt;
+}
+
+} // namespace security
+} // namespace wgt
--- /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 WGT_STEP_SECURITY_STEP_WGT_RECOVER_SIGNATURE_H_
+#define WGT_STEP_SECURITY_STEP_WGT_RECOVER_SIGNATURE_H_
+
+#include <common/step/security/step_recover_signature.h>
+
+#include <boost/filesystem/path.hpp>
+
+namespace wgt {
+namespace security {
+
+class StepWgtRecoverSignature
+ : public common_installer::security::StepRecoverSignature {
+ public:
+ using StepRecoverSignature::StepRecoverSignature;
+
+ private:
+ boost::filesystem::path GetSignatureRoot() override;
+};
+
+} // namespace security
+} // namespace wgt
+
+#endif // WGT_STEP_SECURITY_STEP_WGT_RECOVER_SIGNATURE_H_
#include "wgt/step/security/step_check_wgt_ime_privilege.h"
#include "wgt/step/security/step_direct_manifest_check_signature.h"
#include "wgt/step/security/step_check_extension_privileges.h"
+#include "wgt/step/security/step_wgt_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<wgt::security::StepWgtRecoverSignature>();
+ AddStep<ci::pkgmgr::StepRecoverApplication>();
AddStep<ci::security::StepRecoverSecurity>();
break;
}