platform/core/appfw/wgt-backend.git
4 years agoFix ManifestDirectInstall mode of hybrid installer 58/204758/5
Sangyoon Jang [Fri, 26 Apr 2019 05:55:58 +0000 (14:55 +0900)]
Fix ManifestDirectInstall mode of hybrid installer

Installer should parse modified (tpk & wgt combined) manifest.
(Some information such as preload are needed)

Change-Id: Iefee0992f526de4fa2d5f5cbc56e1a78bfd80782
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoCombine Plugin Steps 85/205385/4
Ilho Kim [Fri, 26 Apr 2019 06:32:57 +0000 (15:32 +0900)]
Combine Plugin Steps

StepRunParserPlugin combines below steps
 - StepRegisterPluginInfo
 - StepUpdatePluginInfo
 - StepUnregisterPluginInfo

Related changes
    [app-installers] https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/204652/
    [tpk-backend] https://review.tizen.org/gerrit/#/c/platform/core/appfw/tpk-backend/+/204757/
    [wgt-backend] https://review.tizen.org/gerrit/#/c/platform/core/appfw/wgt-backend/+/205385/

Change-Id: Ib430c9b0c71c82fc2ccf73e4af8bd1f3db66a470
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoStandardize use of STEP_NAME() 16/206316/1
Ilho Kim [Thu, 16 May 2019 03:01:04 +0000 (12:01 +0900)]
Standardize use of STEP_NAME()

In case class name is StepExampleClass, Pass "ExampleClass" to STEP_NAME()

Change-Id: I94effc1c0d26e1498483bf941d2bf0d0af6f84ba
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoCombine Signature Steps 13/203513/4
ilho [Mon, 15 Apr 2019 09:41:10 +0000 (18:41 +0900)]
Combine Signature Steps

StepCheckSignature and StepSaveSignature are combined

Related changes
    [app-installers] https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/203140/
    [tpk-backend] https://review.tizen.org/gerrit/#/c/platform/core/appfw/tpk-backend/+/203141/
    [wgt-backend] https://review.tizen.org/gerrit/#/c/platform/core/appfw/wgt-backend/+/203513/

Change-Id: I5385c1503e3d55eb291f0c7d6455c21a07fe4301
Signed-off-by: ilho <ilho159.kim@samsung.com>
5 years agoRelease version 0.12.2 44/203844/1 accepted/tizen/unified/20190419.110520 submit/tizen/20190418.055722
Sangyoon Jang [Thu, 18 Apr 2019 05:44:45 +0000 (14:44 +0900)]
Release version 0.12.2

Changes:
 - Fix build error on hybrid backend

Change-Id: I9cdbb2ec99f10c7f1c72ca12b0159cbb1837582a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoFix build error on hybrid backend 32/203832/1
Sangyoon Jang [Thu, 18 Apr 2019 04:51:30 +0000 (13:51 +0900)]
Fix build error on hybrid backend

Change-Id: I78e6da2e672a2a903dc09cb4897c76a739807603
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoRelease version 0.12.1 14/203814/1 submit/tizen/20190418.021839
Sangyoon Jang [Thu, 18 Apr 2019 02:16:49 +0000 (11:16 +0900)]
Release version 0.12.1

Changes:
 - Fix double free
 - Do not call Init() for initialize steps

Change-Id: I24802f28ff828fa6d9944d80714d377b4dca8d89
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoDo not call Init() for initialize steps 62/203762/1
Sangyoon Jang [Wed, 17 Apr 2019 11:41:20 +0000 (20:41 +0900)]
Do not call Init() for initialize steps

Init() will be called internally by AppInstaller class. (inside Run())

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/203760

Change-Id: I394b98ee0eebc6abba220d619108da15822e43d6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoFix double free 39/203739/1
Sangyoon Jang [Wed, 17 Apr 2019 08:35:05 +0000 (17:35 +0900)]
Fix double free

Change-Id: I724a8e0a7bd8ab6608ba511daff41b2796f4fab8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoRelease version 0.12.0 29/201529/1 accepted/tizen/unified/20190318.150654 submit/tizen/20190315.084013
Junghyun Yeon [Fri, 15 Mar 2019 08:35:33 +0000 (17:35 +0900)]
Release version 0.12.0

Changes:
 - Change action type when enable wgt pkgs
 - Change visibility of steps to protected
 - Add StepRegisterPluginInfo
 - Add step StepCheckUpgradable

Change-Id: I22faea5e03bb136d257be058f7b0b97b54ab913a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoAdd step StepCheckUpgradable 60/201360/1
Sangyoon Jang [Wed, 13 Mar 2019 06:30:42 +0000 (15:30 +0900)]
Add step StepCheckUpgradable

This step check the package upgradable using package dependency info.

Change-Id: Iff3753104596ebd347adf8b1ba80575cd9819de2
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoAdd StepRegisterPluginInfo 61/199861/4
Junghyun Yeon [Fri, 15 Feb 2019 05:11:07 +0000 (14:11 +0900)]
Add StepRegisterPluginInfo

- By adding procedure for storing plugin execution info,
  additional Step for storing it to db is needed.

Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/#/c/platform/core/appfw/pkgmgr-info/+/195920/
[app-installers] : https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/195744/

Change-Id: I7a970d0cd482f722ab7a0c83a1b073b05b0c6104
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoChange visibility of steps to protected 22/200322/2
Sangyoon Jang [Thu, 21 Feb 2019 11:10:35 +0000 (20:10 +0900)]
Change visibility of steps to protected

For extensibility, change visibility to protected.

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/200321

Change-Id: Ic1e3cfe37e83e0afd479cdcb5b4cdf7852bc2c64
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoChange action type when enable wgt pkgs 53/200053/2
Junghyun Yeon [Mon, 18 Feb 2019 11:19:24 +0000 (20:19 +0900)]
Change action type when enable wgt pkgs

- When wgt pkg being enabled, plugin should be executed as "Install".

Change-Id: If47320cbe7b022c68c7658fa91369e8a5982b9bb
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 0.11.1 62/199962/1 accepted/tizen/unified/20190218.163219 submit/tizen/20190218.024446
Junghyun Yeon [Mon, 18 Feb 2019 02:32:45 +0000 (11:32 +0900)]
Release version 0.11.1

Changes:
 - Add dependency explicitly

Change-Id: I552e71e47d81268af4d82a9b01dbad022dbe89fe
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoAdd dependency explicitly 49/199949/1
Junghyun Yeon [Mon, 18 Feb 2019 01:54:06 +0000 (10:54 +0900)]
Add dependency explicitly

Change-Id: I8e1bdf8da1dc6019f58746af201fcaaa5986637a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 0.11.0 91/198191/1 accepted/tizen/unified/20190128.061520 submit/tizen/20190123.005741
Hwankyu Jhun [Tue, 22 Jan 2019 07:30:02 +0000 (16:30 +0900)]
Release version 0.11.0

Changes:
 - Add ReadonlyUpdateInstall/Uninstall mode for hybrid-backend
 - Fix ManifestDirectPartialUpdate mode
 - Add attribute 'id' on app-control element

Change-Id: I1092e736cdb7a8fb9ce992850f0d8040c761e234
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoAdd attribute 'id' on app-control element 82/198182/1
Hwankyu Jhun [Tue, 22 Jan 2019 06:56:26 +0000 (15:56 +0900)]
Add attribute 'id' on app-control element

Change-Id: I0b9bacb23ecdc062b76a6e71150d339acfc7de3f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoFix ManifestDirectPartialUpdate mode 82/197682/1
Sangyoon Jang [Tue, 15 Jan 2019 08:32:14 +0000 (17:32 +0900)]
Fix ManifestDirectPartialUpdate mode

Fix manifest file location for update. The manifest which is located at
ManifestLocation::INSTALLED(where is /usr/share/package/) contains all
apps in package.

Change-Id: I1b81f07145646f40f773df90525b796483091f02
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoAdd ReadonlyUpdateInstall/Uninstall mode for hybrid-backend 63/194163/3
Sangyoon Jang [Thu, 29 Nov 2018 12:41:02 +0000 (21:41 +0900)]
Add ReadonlyUpdateInstall/Uninstall mode for hybrid-backend

Change-Id: I3007a3bcd696a100cc8c2b0374656d81ba6f47bb
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoRelease version 0.10.6 71/186771/1 accepted/tizen/5.0/unified/20181102.015802 accepted/tizen/unified/20180816.062954 submit/tizen/20180814.083738 submit/tizen_5.0/20181101.000003
Junghyun Yeon [Tue, 14 Aug 2018 07:42:48 +0000 (16:42 +0900)]
Release version 0.10.6

Changes:
 - Fix RecoverDB request
 - Replace StepRegisterTrustAnchor into StepRecoverTrustAnchor

Change-Id: I69867c8382c531dc5421a6ae02f16d0f8a04029d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoReplace StepRegisterTrustAnchor into StepRecoverTrustAnchor 24/186124/3
Junghyun Yeon [Tue, 7 Aug 2018 10:38:17 +0000 (19:38 +0900)]
Replace StepRegisterTrustAnchor into StepRecoverTrustAnchor

Related changes :
[app-installers] : https://review.tizen.org/gerrit/#/c/186122

Change-Id: I97036bf8d5b2fd88b0655e0e27c728bd4a842030
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoFix RecoverDB request 09/184809/1
Junghyun Yeon [Mon, 23 Jul 2018 08:53:38 +0000 (17:53 +0900)]
Fix RecoverDB request

- Remove StepManifestAdjustment steps.

Change-Id: I059c3db97e5d77ae9b5c09e28e87ba734a45d5ea
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 0.10.5 64/184464/1 accepted/tizen/unified/20180719.063021 submit/tizen/20180718.064806
Junghyun Yeon [Wed, 18 Jul 2018 05:45:56 +0000 (14:45 +0900)]
Release version 0.10.5

Changes:
 - Add RecoverDB step and fix codes for it

Change-Id: Ie28f4871ce62eac68e8c8f09ac496d3880770801
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoAdd RecoverDB step and fix codes for it 28/182228/5
Junghyun Yeon [Thu, 21 Jun 2018 10:46:06 +0000 (19:46 +0900)]
Add RecoverDB step and fix codes for it

- This will be invoked when db has corrupted
- Operations like ManifestDirectInstall will parse merged manifest so
  it does not have to merge configurations for hybrid pkg, so add options
  to determine merge or overwrites configurations.

Related changes:
[app-installers] : https://review.tizen.org/gerrit/182176

Change-Id: I5c7f96ab6b98ad751e08ef8ada75d5c63245e331
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 0.10.4 22/182522/1 accepted/tizen/unified/20180627.070029 submit/tizen/20180626.064201
Sangyoon Jang [Tue, 26 Jun 2018 01:35:21 +0000 (10:35 +0900)]
Release version 0.10.4

Changes:
 - Supplement ParserPlugin

Change-Id: I4c29dc1f9f1b01030b4879fb4951c74444e381bb
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoSupplement ParserPlugin 65/179065/3
Junghyun Yeon [Tue, 15 May 2018 11:29:49 +0000 (20:29 +0900)]
Supplement ParserPlugin

- Adjust order of steps.
- Add StepRecoverParserPlugin.

Related changes:
[app-installers] : https://review.tizen.org/gerrit/178962

Change-Id: I1754f5b733b02da58135f40817dcbd8dac51eb0a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 0.10.3 71/179371/1 accepted/tizen/unified/20180521.003610 submit/tizen/20180517.112055 submit/tizen/20180518.004605
Sangyoon Jang [Thu, 17 May 2018 11:19:31 +0000 (20:19 +0900)]
Release version 0.10.3

Changes:
 - Set default value of app-control visibility attribute

Change-Id: I5c9987ab8c7efefaae6d9c3866551bf46025b07e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoSet default value of app-control visibility attribute 70/179370/1
Sangyoon Jang [Thu, 17 May 2018 11:06:49 +0000 (20:06 +0900)]
Set default value of app-control visibility attribute

Change-Id: I1567d0e729f3c47cfdf30fae003799198e9dc9ed
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.10.2 65/178665/1 accepted/tizen/unified/20180514.094111 submit/tizen/20180511.064939
Junghyun Yeon [Fri, 11 May 2018 06:45:57 +0000 (15:45 +0900)]
Release version 0.10.2

Changes:
 - Add StepSaveSignature at mount install or update
 - Add signature removal process for hybrid pkg
 - Fix coding rule by including header
 - Add StepRevokeTrustAnchor steps for several installation cases.

Change-Id: I5f87775ba01b93d8cd8fb47534bf5e03b01be9c4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoAdd StepRevokeTrustAnchor steps for several installation cases. 74/163374/6
Junghyun Yeon [Mon, 11 Dec 2017 02:11:47 +0000 (11:11 +0900)]
Add StepRevokeTrustAnchor steps for several installation cases.

- When updating pkg has failed, trust anchor should be revoked.

Related changes:
[app-installers] : https://review.tizen.org/gerrit/#/c/158351/

Change-Id: Ifaf443083b8ba4b3130cc6db3d145f7e5386e334
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix coding rule by including header 32/175732/1
Junghyun Yeon [Thu, 12 Apr 2018 04:22:40 +0000 (13:22 +0900)]
Fix coding rule by including header

Change-Id: Ia2e3f0ff6e31c3be0a7a134b707e7579f0a6f9f5
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoAdd signature removal process for hybrid pkg 61/175461/1
Junghyun Yeon [Tue, 10 Apr 2018 10:34:36 +0000 (19:34 +0900)]
Add signature removal process for hybrid pkg

Change-Id: I748d38a05f91822df41d692ace94981eb732f3a2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoAdd StepSaveSignature at mount install or update 15/175015/1
Junghyun Yeon [Fri, 6 Apr 2018 04:17:17 +0000 (13:17 +0900)]
Add StepSaveSignature at mount install or update

- Distributor signature don't have to be extracted because its value will be
  stored at separated directory.

Related changes: [app-installers] : https://review.tizen.org/gerrit/174993

Change-Id: I132f25356912e7f34894c1761f8a1bac2ac27303

6 years agoRelease version 0.10.1 80/174680/1 accepted/tizen/unified/20180405.131213 submit/tizen/20180404.060840 submit/tizen/20180405.022120
Sangyoon Jang [Tue, 3 Apr 2018 10:57:39 +0000 (19:57 +0900)]
Release version 0.10.1

Changes:
 - Fix static analyzer issues

Change-Id: I095a9771cac2e8386c42f087a650f9dd62321742
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix static analyzer issues 05/174505/1
Sangyoon Jang [Mon, 2 Apr 2018 11:08:08 +0000 (20:08 +0900)]
Fix static analyzer issues

- Fix uncaught exception.

Change-Id: Ica139ffdff375bbbaf9345787744f167dc79c788
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.10.0 54/174354/1 accepted/tizen/unified/20180403.060143 submit/tizen/20180330.082234 submit/tizen/20180402.081755
Junghyun Yeon [Fri, 30 Mar 2018 08:14:03 +0000 (17:14 +0900)]
Release version 0.10.0

Changes:
 - Add StepSaveSignature step

Change-Id: I9a34653ed2a30bd7d6ee86fccd0dbff23e4f4aea
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoAdd StepSaveSignature step 37/171937/3
Junghyun Yeon [Thu, 8 Mar 2018 08:01:56 +0000 (17:01 +0900)]
Add StepSaveSignature step

- Add new step to store distributor signatures into separate files.
- Existing distributor signature files will be removed to prevent
  extract package and re-packaging it.

Related changes:
[app-installers] : https://review.tizen.org/gerrit/#/c/171653/

Change-Id: I01b3c9882db400203470595bc3c0950544312e69
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.9.6 75/173975/1 accepted/tizen/unified/20180330.060619 submit/tizen/20180327.085346
Junghyun Yeon [Tue, 27 Mar 2018 08:50:14 +0000 (17:50 +0900)]
Release version 0.9.6

Changes:
 - Fix extensive smoke test
 - Fix static analyzer issues

Change-Id: I1de6a3d07816cb0aca0fcc69c1b308ae19635729
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix static analyzer issues 28/173528/3
Sangyoon Jang [Thu, 22 Mar 2018 06:52:28 +0000 (15:52 +0900)]
Fix static analyzer issues

- Fix memory leak
- Fix using uninitialized variables
- Fix dereferencing before null check

Change-Id: I119e803a3e9acb9e63abc1f28c2fbd93f7e92699
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix extensive smoke test 46/173546/2
Sangyoon Jang [Thu, 22 Mar 2018 08:06:20 +0000 (17:06 +0900)]
Fix extensive smoke test

Cast global environment object just once when allocating.
Use static_cast for downcasting, because we know obviously that
SmokeEnvironment class is derived from testing::Environment class.

Change-Id: I89629f81453235f7dfc526a1e796bf7396cafe89
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.9.5 12/171912/1 accepted/tizen/unified/20180313.061127 submit/tizen/20180308.061646 submit/tizen/20180312.045921
Sangyoon Jang [Thu, 8 Mar 2018 06:03:36 +0000 (15:03 +0900)]
Release version 0.9.5

Changes:
 - Add codes to enable ManifestDirectInstall for mount intalled pkg
 - Fix smoke test
 - Remove user data when ReadonlyUpdateUninstall mode

Change-Id: I615e6db7f24d8e0c886865366b19675071508050
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRemove user data when ReadonlyUpdateUninstall mode 63/169763/2
Sangyoon Jang [Fri, 9 Feb 2018 02:24:29 +0000 (11:24 +0900)]
Remove user data when ReadonlyUpdateUninstall mode

Submit with:
 - https://review.tizen.org/gerrit/169698

Change-Id: Ia7c6f140e4d48e2d10de16c0bb25925d0b127dd1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix smoke test 75/169275/4
Sangyoon Jang [Mon, 5 Feb 2018 10:08:05 +0000 (19:08 +0900)]
Fix smoke test

- Cast global environment object just once when allocating.
  Use static_cast for downcasting, because we know obviously that
  SmokeEnvironment class is derived from testing::Environment class.
- Remove unused variables.

Change-Id: If5865c60aed4047cce7824a4e94f6379102d8767
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd codes to enable ManifestDirectInstall for mount intalled pkg 79/167479/6
Junghyun Yeon [Thu, 18 Jan 2018 02:14:38 +0000 (11:14 +0900)]
Add codes to enable ManifestDirectInstall for mount intalled pkg

- Some files should be extracted.
- Add Step to determine whether given pkg is mount installed or not.
- Override undo() to enable undo operation.

Related changes:
[app-installers] : https://review.tizen.org/gerrit/167144

Change-Id: I03d22721135e8b3607c5a18f11dc06e9b82ef070
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.9.4 55/169055/1 accepted/tizen/unified/20180205.060504 submit/tizen/20180202.063742
Junghyun Yeon [Fri, 2 Feb 2018 05:03:32 +0000 (14:03 +0900)]
Release version 0.9.4

Changes:
 - Fix RecoverySteps of hybrid backend
 - Remove unnecessary step

Change-Id: Iac1f21516fe6709a5f3e4e1631a27b0ac71a7a2d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRemove unnecessary step 44/168344/2
Seungha Son [Fri, 26 Jan 2018 02:39:29 +0000 (11:39 +0900)]
Remove unnecessary step

 StepRollbackDeinstallationSecurity is meaningless.
 It is meaningless to rollback in undo() because removing the security
 is done after uninstall process() steps have been compelted.

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I8aeae5000320b7707b252f496aedfe6e19dada2e

6 years agoFix RecoverySteps of hybrid backend 80/168080/3
Sangyoon Jang [Wed, 24 Jan 2018 05:14:27 +0000 (14:14 +0900)]
Fix RecoverySteps of hybrid backend

Add missing steps.

Change-Id: I1aa19c050223689869954b9f0e55e18d3bf151c4
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.9.3 89/167689/1 accepted/tizen/unified/20180123.061150 submit/tizen/20180119.081808
Junghyun Yeon [Fri, 19 Jan 2018 07:51:44 +0000 (16:51 +0900)]
Release version 0.9.3

Changes:
 - Refactoring ValidatePackage() functions parameter
 - Set nodisplay attribute of widget application as manifest value
 - Add a step for recovering ReadonlyUpdateInstall mode
 - Add condition to check nullptr
 - Add StepPrivilegeCompatibility at RecoverySteps
 - Add StepPrivilegeCompatibility at ReadonlyUpdateUninstallSteps
 - Add StepCreateRecoveryFile at ReadonlyUpdateInstallSteps
 - Replace StepPrivilegeCompatibility with StepRecoverPrivilegeCompatibility

Change-Id: I5e16453f2a10c961091582a4471c26d1fe4f6a4f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoReplace StepPrivilegeCompatibility with StepRecoverPrivilegeCompatibility 18/167418/3
Sangyoon Jang [Wed, 17 Jan 2018 12:14:51 +0000 (21:14 +0900)]
Replace StepPrivilegeCompatibility with StepRecoverPrivilegeCompatibility

Requires:
 - https://review.tizen.org/gerrit/167411

Change-Id: I1ba4b0461d42657516584f4c09a68fa7dedae705
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd StepCreateRecoveryFile at ReadonlyUpdateInstallSteps 15/167415/3
Sangyoon Jang [Wed, 17 Jan 2018 12:00:04 +0000 (21:00 +0900)]
Add StepCreateRecoveryFile at ReadonlyUpdateInstallSteps

Change-Id: Ia4a0335c3c43b5f3222c98b958deb0cd677b5601
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd StepPrivilegeCompatibility at ReadonlyUpdateUninstallSteps 25/167325/1
Sangyoon Jang [Wed, 17 Jan 2018 05:41:45 +0000 (14:41 +0900)]
Add StepPrivilegeCompatibility at ReadonlyUpdateUninstallSteps

To install internal privileges, StepPrivilegeCompatibility should be
added.

Change-Id: I7c6b3042d8729c78906d6982b4ce4d4239c9fa2d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd StepPrivilegeCompatibility at RecoverySteps 81/167181/1
Sangyoon Jang [Tue, 16 Jan 2018 05:34:52 +0000 (14:34 +0900)]
Add StepPrivilegeCompatibility at RecoverySteps

To recover internal privileges, StepPrivilegeCompatibility should be
added.

Change-Id: I4a162bfc3f2fd00ccbf6724f691e6bf98c4b4262
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd condition to check nullptr 53/166653/1
Seungha Son [Thu, 11 Jan 2018 09:54:46 +0000 (18:54 +0900)]
Add condition to check nullptr

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I4557bbb36ede24d897f80f38dd488c07f4320736

6 years agoAdd a step for recovering ReadonlyUpdateInstall mode 29/166229/1
Sangyoon Jang [Tue, 9 Jan 2018 02:06:39 +0000 (11:06 +0900)]
Add a step for recovering ReadonlyUpdateInstall mode

Requires:
 - https://review.tizen.org/gerrit/158844

Change-Id: Ib5483a13729787be094cd0a0144aaa32450a0ae1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoSet nodisplay attribute of widget application as manifest value 77/163377/4
Sangyoon Jang [Fri, 8 Dec 2017 08:07:53 +0000 (17:07 +0900)]
Set nodisplay attribute of widget application as manifest value

Change-Id: I8271e692d104325c268a5dc42f229bcb8b700bf9
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRefactoring ValidatePackage() functions parameter 40/159540/5
Damian Pietruchowski [Thu, 9 Nov 2017 12:43:13 +0000 (13:43 +0100)]
Refactoring ValidatePackage() functions parameter

Tpk package has different binary name than appid.
So we need to pass appid and exec name to ValidatePackage()
functions.

Submit with:
- https://review.tizen.org/gerrit/#/c/159539/
- https://review.tizen.org/gerrit/#/c/159542/

Change-Id: I2bd70f55e14c5aea07a9c9f7a628ab8a255fc225
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
6 years agoRelease version 0.9.2 71/164971/1 accepted/tizen/unified/20171228.065028 submit/tizen/20171222.073841
Junghyun Yeon [Fri, 22 Dec 2017 06:12:11 +0000 (15:12 +0900)]
Release version 0.9.2

Changes:
 - Skip undo operation in StepGenerateXml for ManifestDirectUpdate

Change-Id: Ic75a06e38383f96cde76a03e386c53be1d78944b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoSkip undo operation in StepGenerateXml for ManifestDirectUpdate 78/153978/3
Damian Pietruchowski [Wed, 4 Oct 2017 12:49:15 +0000 (14:49 +0200)]
Skip undo operation in StepGenerateXml for ManifestDirectUpdate

Change-Id: Icec22bb6b8ac1d7dd34afdb4a2e0ec04f0ff0369
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
6 years agoRelease version 0.9.1 82/163282/1 accepted/tizen/unified/20171211.061333 submit/tizen/20171208.083756 submit/tizen/20171211.020230
Sangyoon Jang [Fri, 8 Dec 2017 08:08:25 +0000 (17:08 +0900)]
Release version 0.9.1

Changes:
 - Fix code formatting
 - Add new step for creating recovery file

Change-Id: Ieba6b74a091dcc29b08da3a3583901e325233dd9
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd new step for creating recovery file 08/154908/8
Damian Pietruchowski [Wed, 11 Oct 2017 11:16:00 +0000 (13:16 +0200)]
Add new step for creating recovery file

Creating recovery file was moved from StepConfigure
to new step: StepCreateRecoveryFile

Submit together:
- https://review.tizen.org/gerrit/#/c/154907/
- https://review.tizen.org/gerrit/#/c/154906/

Change-Id: Iab03c201c6978d6b2e1ad6a639e0be5de221de5c
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
6 years agoFix code formatting 47/161447/3
Lukasz Pik [Thu, 23 Nov 2017 10:34:04 +0000 (11:34 +0100)]
Fix code formatting

Change-Id: Idbfbaaf22c4ada9515f7b9a0fea01788a61257a5
Signed-off-by: Lukasz Pik <lu.pik@samsung.com>
6 years agoRelease version 0.9.0 83/161783/1 accepted/tizen/unified/20171128.150354 submit/tizen/20171127.102301
Junghyun Yeon [Mon, 27 Nov 2017 10:16:52 +0000 (19:16 +0900)]
Release version 0.9.0

Changes:
 - Fix logic to store api version at application structure
 - Change name of OpenRecoveryFileForPath to OpenRecoveryFile
 - Add update steps of directories at wgt installer
 - Add patch icon steps at ManifestDirectInstall of hybrid installer
 - Revert "Revert "[Refactor] AppInstaller logic export""
 - Replace pkg_path with GetPkgPath() method in InstallerContext

Change-Id: Idb05dc912fea4b35634589e38b2055bcb013c99b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoReplace pkg_path with GetPkgPath() method in InstallerContext 04/154904/6
Damian Pietruchowski [Wed, 11 Oct 2017 11:07:12 +0000 (13:07 +0200)]
Replace pkg_path with GetPkgPath() method in InstallerContext

pkg_path is always equal to root_application_path + pkgid.
Storing this information in separate variable is problematic,
because it requires to remember to update pkg_path after
root_application_path or pkgid is changed.

Submit with:
- https://review.tizen.org/gerrit/#/c/154196/
- https://review.tizen.org/gerrit/#/c/160353/

Change-Id: I3a1a3ddccb041e93f2aa633b19174f1c67a4ff96
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
6 years agoRevert "Revert "[Refactor] AppInstaller logic export"" 13/129313/12
jongmyeong ko [Tue, 16 May 2017 05:11:27 +0000 (05:11 +0000)]
Revert "Revert "[Refactor] AppInstaller logic export""

This should be submitted with:
        - https://review.tizen.org/gerrit/#/c/93998/
        - https://review.tizen.org/gerrit/#/c/93999/

This reverts commit 35519ad818702263ead855736499c174b3e97dbe.

Change-Id: Ied92513c761f8c52c42b854d74d49eef72fc3144
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
6 years agoAdd patch icon steps at ManifestDirectInstall of hybrid installer 48/160748/1
Sangyoon Jang [Mon, 20 Nov 2017 02:10:16 +0000 (11:10 +0900)]
Add patch icon steps at ManifestDirectInstall of hybrid installer

Change-Id: I57e351b43aaca6e5429d23b1c92c506e844c64b7
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd update steps of directories at wgt installer 41/160741/2
Sangyoon Jang [Mon, 20 Nov 2017 01:45:40 +0000 (10:45 +0900)]
Add update steps of directories at wgt installer

Change-Id: I25c7598b31743d7067f5a13efbb897d667d99531
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoChange name of OpenRecoveryFileForPath to OpenRecoveryFile 37/159437/2
Sangyoon Jang [Thu, 9 Nov 2017 02:23:17 +0000 (11:23 +0900)]
Change name of OpenRecoveryFileForPath to OpenRecoveryFile

Requires:
 - https://review.tizen.org/gerrit/159379

Change-Id: Iabfaf8d4a98271678a8508d318cab3c5013a51f7
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix logic to store api version at application structure 62/159062/2
Junghyun Yeon [Tue, 7 Nov 2017 00:45:22 +0000 (09:45 +0900)]
Fix logic to store api version at application structure

- Each application could have different api version based on
  pkg which it belongs to, such as hybrid pkg.
- Store api version of each application into application structure
  to deliver it to security-manager.

Related changes:
[app-installers] :  https://review.tizen.org/gerrit/159061

Change-Id: I80c0faa909d25d23bb152d6a715ebe3e7e832f70
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.8.0 80/159080/1 accepted/tizen/unified/20171109.124930 submit/tizen/20171107.031828 submit/tizen/20171108.023404 submit/tizen/20171109.041728
Junghyun Yeon [Tue, 7 Nov 2017 02:15:14 +0000 (11:15 +0900)]
Release version 0.8.0

Changes:
 - Apply new library for smoke utils
 - Fix in RDSMode test

Change-Id: I91b97c9ed7d6ae87efa545f2fd5fddb54da34450
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix in RDSMode test 29/156929/13
kniedzielew [Fri, 20 Oct 2017 15:12:42 +0000 (17:12 +0200)]
Fix in RDSMode test

Sdk directory where are files used for
update is changed.

Submit with:
https://review.tizen.org/gerrit/#/c/158034/

Change-Id: Ia2f78f1ae6e3de4ba777773bb945d76762652203
Signed-off-by: kniedzielew <k.niedzielew@samsung.com>
6 years agoApply new library for smoke utils 37/149137/8
Damian Pietruchowski [Wed, 23 Aug 2017 12:01:03 +0000 (14:01 +0200)]
Apply new library for smoke utils

Wgt-backend and tpk-backend have common util functions for smoke tests.
They should be exported to lib in app-installers.

Submit together:
- https://review.tizen.org/gerrit/#/c/149136/
- https://review.tizen.org/gerrit/#/c/149601/

Change-Id: I405ee42332bc443fd9749e78008093280f9bbf57
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
6 years agoRelease version 0.7.5 14/157314/1 accepted/tizen/4.0/unified/20171103.162637 accepted/tizen/unified/20171024.192115 submit/tizen/20171024.074125 submit/tizen_4.0/20171024.074134 submit/tizen_4.0/20171103.002012
Seungha Son [Tue, 24 Oct 2017 07:19:21 +0000 (16:19 +0900)]
Release version 0.7.5

Changes:
 - Add privacy privilege step for hybrid

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I741802cbd47ad8c7abc77364c47e444a0504a71e

6 years agoAdd privacy privilege step for hybrid 57/157057/1
Seungha Son [Mon, 23 Oct 2017 07:56:34 +0000 (16:56 +0900)]
Add privacy privilege step for hybrid

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Ia90177a7fdcec552183b496e48436b42e947c747

6 years agoRelease version 0.7.4 10/156110/1 accepted/tizen/4.0/unified/20171018.060928 accepted/tizen/unified/20171018.062518 submit/tizen/20171017.074628 submit/tizen_4.0/20171017.080654 tizen_4.0.m2_release
Junghyun Yeon [Tue, 17 Oct 2017 06:56:44 +0000 (15:56 +0900)]
Release version 0.7.4

Changes:
 - Fix static analysis issue
 - Change behavior of trust anchor
 - Add smoke test for extended storage installation

Change-Id: I06e50d6cefbe861e59b70145a476dbbd48236f29
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoAdd smoke test for extended storage installation 72/155472/2
Sangyoon Jang [Fri, 13 Oct 2017 07:54:21 +0000 (16:54 +0900)]
Add smoke test for extended storage installation

Change-Id: I4a222b770cffe7a70b69143a4893beb7a38317e3
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoChange behavior of trust anchor 78/149978/8
Junghyun Yeon [Thu, 14 Sep 2017 01:31:17 +0000 (10:31 +0900)]
Change behavior of trust anchor

- Trust anchor certificate dir has fixed so it will not defined at manifest.
- Remove get/set codes about certificate directory.
- Enable trust-anchor on hybrid package.
  Please note that if both tpk and wgt package have trust-anchor node,
  wgt's setting will be appliced.

Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/149784
[app-installers] : https://review.tizen.org/gerrit/149836
[tpk-manifest-handlers] : https://review.tizen.org/gerrit/150060
[wgt-manifest-handlers] : https://review.tizen.org/gerrit/150136

Change-Id: Ie110eb1b52695c985495f03b834c9bfd9e5bf960
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix static analysis issue 02/156002/1
Junghyun Yeon [Tue, 17 Oct 2017 02:40:02 +0000 (11:40 +0900)]
Fix static analysis issue

- Check if new operator has failed.

Change-Id: I840874abdac89bb91f6e5aca26df2ac265a541ac
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.7.3 60/154960/1 accepted/tizen/4.0/unified/20171012.074547 accepted/tizen/unified/20171012.075131 submit/tizen/20171011.123741 submit/tizen_4.0/20171011.124331 tizen_4.0.IoT.p1_release
Sangyoon Jang [Wed, 11 Oct 2017 12:34:21 +0000 (21:34 +0900)]
Release version 0.7.3

Changes:
 - Fix appdefined privilege parsing
 - Fix smoke test

Change-Id: Iebcf9a186cdd05a5955cce40cf76ffe20776a5af
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix smoke test 90/154590/1
Sangyoon Jang [Tue, 10 Oct 2017 14:00:13 +0000 (23:00 +0900)]
Fix smoke test

We don't need to validate pkgid of appdefined-privilege for client.

Change-Id: I5ee7f12398e682a1071d92c37091025573c12f2d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix appdefined privilege parsing 63/154563/2
Sangyoon Jang [Tue, 10 Oct 2017 12:22:21 +0000 (21:22 +0900)]
Fix appdefined privilege parsing

Requires:
 - https://review.tizen.org/gerrit/154530

Change-Id: If9add359f17bc952b86498c06f5dd3525d3130a5
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.7.2 68/153168/1 accepted/tizen/4.0/unified/20170929.080010 accepted/tizen/unified/20170929.081456 submit/tizen/20170928.055049 submit/tizen_4.0/20170928.055126 submit/tizen_4.0/20170928.143447
Seungha Son [Thu, 28 Sep 2017 04:46:37 +0000 (13:46 +0900)]
Release version 0.7.2

Changes:
 - Add step for privacy privilege

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I1967ce52af6a2951f6a8aa728eb101bd4ed336be

6 years agoAdd step for privacy privilege 38/147038/6
Seungha Son [Fri, 1 Sep 2017 00:29:54 +0000 (09:29 +0900)]
Add step for privacy privilege

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I699da12a566354021361202c68b6567a162f78ec

6 years agoRelease version 0.7.1 37/152437/1 accepted/tizen/4.0/unified/20170927.181741 accepted/tizen/unified/20170927.063512 submit/tizen/20170926.073829 submit/tizen_4.0/20170926.120510
Junghyun Yeon [Tue, 26 Sep 2017 06:52:18 +0000 (15:52 +0900)]
Release version 0.7.1

Changes:
 - Fix codes for ManifestDirectInstall in Hybrid pkg

Change-Id: Id90a2cf250611c181d66cc5c6ab195807c731258
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix build fail 98/150998/1
Seungha Son [Tue, 19 Sep 2017 09:39:34 +0000 (18:39 +0900)]
Fix build fail

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Ia0aaccb503d49a56d7af6598276853bc1b770acb

6 years agoFix codes for ManifestDirectInstall in Hybrid pkg 02/147402/2
Junghyun Yeon [Mon, 4 Sep 2017 08:09:17 +0000 (17:09 +0900)]
Fix codes for ManifestDirectInstall in Hybrid pkg

- Backend couldn't detect hybrid pkg if pkginfo doesn't exist in db.
- ManifestDirectInstall cannot be performed because of reason above.
- So change if statement to check designated directory even if
  there are no information in db.
- RO path will be checked only if given uid is privileged one.

Change-Id: Ic4855cfa1090b1e5bac1b98d6ca69507657de357
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.7.0 78/146478/1 accepted/tizen/4.0/unified/20170904.234816 accepted/tizen/unified/20170830.161038 submit/tizen/20170829.115218 submit/tizen_4.0/20170901.004643
Sangyoon Jang [Tue, 29 Aug 2017 04:53:56 +0000 (13:53 +0900)]
Release version 0.7.0

Changes:
 - Perform code style checking fixes
 - Merge "Perform code style checking fixes" into tizen
 - AppQueryInterface logic export
 - Adapter interface for external PkgMgr module

Change-Id: I11e9458090277484b8176e5dbabd7a7328c3b291
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdapter interface for external PkgMgr module 47/139347/8
Damian Pietruchowski [Tue, 18 Jul 2017 11:37:28 +0000 (13:37 +0200)]
Adapter interface for external PkgMgr module

Submit together:
- https://review.tizen.org/gerrit/#/c/138998/
- https://review.tizen.org/gerrit/#/c/139346/

Change-Id: Ia27cf4fa824258cb1df1a8a48b8601ddacc66f89
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
6 years agoAppQueryInterface logic export 19/133519/8
Damian Pietruchowski [Mon, 12 Jun 2017 14:01:32 +0000 (16:01 +0200)]
AppQueryInterface logic export

IsPkgInstalled() and GetPkgId() have the same implementation for
wgt-backend and tpk-backend, so only GetPkgIdFromPath() should
be overrided in each backend.

Submit together:
- https://review.tizen.org/gerrit/#/c/133520/
- https://review.tizen.org/gerrit/#/c/133518/

Change-Id: I40b61fbea37838ccd372b964fe3cf54eb5f5f5a6
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
6 years agoMerge "Perform code style checking fixes" into tizen
Semun Lee [Sun, 20 Aug 2017 23:39:51 +0000 (23:39 +0000)]
Merge "Perform code style checking fixes" into tizen

6 years agoRelease version 0.6.2 73/144873/1 accepted/tizen/4.0/unified/20170828.223934 accepted/tizen/unified/20170821.051158 submit/tizen/20170818.073144 submit/tizen_4.0/20170828.100002
Seungha Son [Fri, 18 Aug 2017 07:35:02 +0000 (16:35 +0900)]
Release version 0.6.2

Changes:
 - Fix memory leak

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Iaed04b854ee70dc556f28602ec8c3794521977fb

6 years agoFix memory leak 12/144812/2
Seungha Son [Fri, 18 Aug 2017 04:47:30 +0000 (13:47 +0900)]
Fix memory leak

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Ic777cdeb6517bc87e56d1671cd810edf8babbf5c

6 years agoPerform code style checking fixes 88/143788/1
Bartlomiej Kunikowski [Fri, 11 Aug 2017 08:44:34 +0000 (10:44 +0200)]
Perform code style checking fixes

Change-Id: If802ce932ed42bf53e11a1f7d5213e48f9794a8c

6 years agoRelease version 0.6.1 47/143747/1 accepted/tizen/unified/20170816.160020 submit/tizen/20170811.063725
Seungha Son [Fri, 11 Aug 2017 06:32:21 +0000 (15:32 +0900)]
Release version 0.6.1

Changes:
 - Fix pkg regex for uninstalling apps
 - Fix the access issue to shared/res of web app
 - Fix ManifestDirectUpdate mode for hybrid package
 - Fix MountUpdateMode_Rollback packages
 - Fix uninstalling package installed at extended storage
 - Add new smoke tests
 - Add OOM exception handler

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Iff0ea5366bc04c00f359eb2ffd23d664a2e21b0a

6 years agoAdd OOM exception handler 59/142959/6
Seungha Son [Tue, 8 Aug 2017 04:50:26 +0000 (13:50 +0900)]
Add OOM exception handler

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Ic86db1a8e8e713effe6af78bf1979e382e3c9071

6 years agoAdd new smoke tests 63/135763/11
Bartlomiej Kunikowski [Mon, 26 Jun 2017 08:43:13 +0000 (10:43 +0200)]
Add new smoke tests

- SmokeTest.ManifestDirectInstallMode
- SmokeTest.ManifestDirectUpdateMode
- SmokeTest.ReadonlyUpdateInstallMode
- SmokeTest.ReadonlyUpdateUninstallMode
- SmokeTest.ManifestDirectInstallMode_Hybrid
- SmokeTest.ManifestDirectUpdateMode_Hybrid

Change-Id: I1da497ad98a582f28769a9347f163639cbc87c2a
Signed-off-by: Bartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
6 years agoFix uninstalling package installed at extended storage 46/142346/3
Sangyoon Jang [Thu, 3 Aug 2017 12:05:00 +0000 (21:05 +0900)]
Fix uninstalling package installed at extended storage

Requires:
 - https://review.tizen.org/gerrit/142345

Change-Id: Ic48e5d6ba691d1209ecb917910fe75da1eb2c98d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix MountUpdateMode_Rollback packages 52/142552/5
Bartlomiej Kunikowski [Fri, 4 Aug 2017 07:55:59 +0000 (09:55 +0200)]
Fix MountUpdateMode_Rollback packages

There was problem with signatures in packages

Change-Id: If5708cfac610dd8db07b3bc10ba006ecc1ec4549

6 years agoFix ManifestDirectUpdate mode for hybrid package 44/142244/2
Bartlomiej Kunikowski [Thu, 3 Aug 2017 06:46:44 +0000 (08:46 +0200)]
Fix ManifestDirectUpdate mode for hybrid package

We should parse manifest directly from package installation
directory, not this one generated while application was installed

Change-Id: I112fabd42b27f3a7fe307599fca121a42478a33b
Signed-off-by: Bartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
6 years agoFix the access issue to shared/res of web app 72/138972/12
jongmyeongko [Fri, 14 Jul 2017 12:06:58 +0000 (21:06 +0900)]
Fix the access issue to shared/res of web app

Other applications can't access the contents of ${pkg_path}/res/wgt/shared/res
because of SMACK denial.
So, the all contents of ${pkg_path}/res/wgt/shared/res should be in shared/res
to avoid SMACK error.

Also, we should consider delta update issue.
The issue is the signature validation check failure because of unsigned file.
In ${pkg_path}/shared/res, there can be generated files such as apps icon.
and there can be other application's data of shared/res in case of Hybrid package.
These files are unsigend one.
To fix the issue,
unlink and move back all original contents for ${pkg_path}/res/wgt/shared/res
before delta update.

Submit with :
https://review.tizen.org/gerrit/#/c/139133/

Change-Id: I83718f109fbe4614c41977f4d680e65f007dad86
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
(cherry picked from commit 1e4547168e14eb59fc18c6f586d9a67126587b04)