From: Tomasz Iwanek Date: Mon, 18 Jan 2016 09:31:48 +0000 (+0100) Subject: Recovery mode for hybrid application X-Git-Tag: accepted/tizen/mobile/20160203.051934^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fdevel%2Fivi;p=platform%2Fcore%2Fappfw%2Fwgt-backend.git Recovery mode for hybrid application Requires: - https://review.tizen.org/gerrit/58104 Change-Id: I174cd185ad12bb97b406d250b3d339568e79345f --- diff --git a/src/hybrid/hybrid_installer.cc b/src/hybrid/hybrid_installer.cc index d2070d5..d26de1d 100644 --- a/src/hybrid/hybrid_installer.cc +++ b/src/hybrid/hybrid_installer.cc @@ -23,6 +23,14 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -42,6 +50,7 @@ #include "wgt/step/step_check_wgt_background_category.h" #include "wgt/step/step_create_symbolic_link.h" #include "wgt/step/step_generate_xml.h" +#include "wgt/step/step_parse_recovery.h" #include "wgt/step/step_remove_encryption_data.h" #include "wgt/step/step_wgt_patch_icons.h" #include "wgt/step/step_wgt_patch_storage_directories.h" @@ -173,8 +182,21 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr) AddStep(); break; case ci::RequestType::Recovery: - // TODO(t.iwanek): implement recovery for hybrid apps if possible - AddStep(); + AddStep(pkgmgr_); + AddStep(); + AddStep( + ci::parse::StepParseManifest::ManifestLocation::RECOVERY, + ci::parse::StepParseManifest::StoreLocation::NORMAL); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); break; default: AddStep();