Fix ReadonlyUpdateUninstall 54/143354/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Mon, 17 Jul 2017 07:25:12 +0000 (16:25 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 9 Aug 2017 10:28:29 +0000 (10:28 +0000)
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>
(cherry picked from commit 50b5482126136e6f1155d43e14150e3e1dca4e51)

src/wgt/wgt_installer.cc

index c4d1217..718c9fc 100755 (executable)
@@ -514,6 +514,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);