From 9560c5db25f94faa950f03028519720ec0e79685 Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Mon, 18 Jan 2016 10:31:48 +0100 Subject: [PATCH] Recovery mode for hybrid application Requires: - https://review.tizen.org/gerrit/58104 Change-Id: I174cd185ad12bb97b406d250b3d339568e79345f --- src/hybrid/hybrid_installer.cc | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) 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(); -- 2.7.4