Remove user data when ReadonlyUpdateUninstall mode 63/169763/2
authorSangyoon Jang <jeremy.jang@samsung.com>
Fri, 9 Feb 2018 02:24:29 +0000 (11:24 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Mon, 19 Feb 2018 04:21:49 +0000 (13:21 +0900)
Submit with:
 - https://review.tizen.org/gerrit/169698

Change-Id: Ia7c6f140e4d48e2d10de16c0bb25925d0b127dd1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/wgt/wgt_installer.cc

index 056c8b6..c4b8988 100755 (executable)
@@ -47,6 +47,7 @@
 #include <common/step/filesystem/step_remove_per_user_storage_directories.h>
 #include <common/step/filesystem/step_remove_temporary_directory.h>
 #include <common/step/filesystem/step_remove_tep.h>
+#include <common/step/filesystem/step_remove_user_data.h>
 #include <common/step/filesystem/step_remove_zip_image.h>
 #include <common/step/filesystem/step_unzip.h>
 #include <common/step/filesystem/step_update_per_user_storage_directories.h>
@@ -590,6 +591,7 @@ void WgtInstaller::ReadonlyUpdateUninstallSteps() {
   AddStep<ci::filesystem::StepRemoveFiles>();
   AddStep<ci::filesystem::StepRemoveZipImage>();
   AddStep<ci::pkgmgr::StepUpdateApplication>();
+  AddStep<ci::filesystem::StepRemoveUserData>();
   AddStep<ci::configuration::StepSwitchReadonlyMode>();
   AddStep<ci::security::StepRegisterTrustAnchor>(
       ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);