Fix ReadonlyUpdateUninstall 73/139073/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Mon, 17 Jul 2017 07:25:12 +0000 (16:25 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Mon, 17 Jul 2017 07:25:12 +0000 (16:25 +0900)
The original package is preloaded(readonly) so we need to switch
readonly mode before update security context.

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

index ef52922..20c741b 100755 (executable)
@@ -597,6 +597,7 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
       AddStep<ci::filesystem::StepRemoveFiles>();
       AddStep<ci::filesystem::StepRemoveZipImage>();
       AddStep<ci::pkgmgr::StepUpdateApplication>();
+      AddStep<ci::configuration::StepSwitchReadonlyMode>();
       AddStep<ci::security::StepUpdateSecurity>();
       AddStep<ci::pkgmgr::StepRemoveManifest>();
       AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Upgrade);