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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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
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>
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>
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>
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>
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>
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>
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>
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
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
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>
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
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>
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>
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>
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>
Semun Lee [Sun, 20 Aug 2017 23:39:51 +0000 (23:39 +0000)]
Merge "Perform code style checking fixes" into tizen
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
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
Bartlomiej Kunikowski [Fri, 11 Aug 2017 08:44:34 +0000 (10:44 +0200)]
Perform code style checking fixes
Change-Id: If802ce932ed42bf53e11a1f7d5213e48f9794a8c
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
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
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>
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>
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
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>
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)
Damian Pietruchowski [Fri, 21 Jul 2017 11:35:34 +0000 (13:35 +0200)]
Fix pkg regex for uninstalling apps
Change-Id: I404ca74041e962127d0330837c5771c6a6462379
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Junghyun Yeon [Fri, 4 Aug 2017 05:54:07 +0000 (14:54 +0900)]
Release version 0.6.0
Changes:
- Fix wrong condition for checking shortcut info
- Add new steps for trust anchor
Change-Id: I289fa8578509e323de1b74951e39a47525ee941f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 3 Jul 2017 07:58:48 +0000 (16:58 +0900)]
Add new steps for trust anchor
- Add StepRegisterTrustAnchor to install requests
- Add StepUnregisterTrustAnchor to uninstall requests
- Add StepUpdateTrustAnchor to update requests
Related changes:
[tpk-manifest-handlers] : https://review.tizen.org/gerrit/136315
[app-installers] : https://review.tizen.org/gerrit/136316
[pkgmgr-info] : https://review.tizen.org/gerrit/136317
[wgt-manifest-handlers] : https://review.tizen.org/gerrit/136866
[tpk-backend] : https://review.tizen.org/gerrit/137370
Change-Id: I3ff3dd724d444a7036746377b7c43da2788df2ac
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Semun Lee [Wed, 2 Aug 2017 09:11:49 +0000 (09:11 +0000)]
Merge "Fix wrong condition for checking shortcut info" into tizen
Sangyoon Jang [Tue, 1 Aug 2017 05:34:34 +0000 (14:34 +0900)]
Release version 0.5.0
Changes:
- Unnecessary queries if pkg_id is empty
- Add appdefined privilege feature
Change-Id: Iaef75ed201e0e649149152aac879506fe4230aca
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Semun Lee [Tue, 1 Aug 2017 02:46:02 +0000 (11:46 +0900)]
Fix wrong condition for checking shortcut info
Change-Id: I06467d12a59e8f2bdd452744f8a72575fb656d36
Signed-off-by: Semun Lee <semun.lee@samsung.com>
jongmyeongko [Tue, 18 Jul 2017 14:23:43 +0000 (23:23 +0900)]
Add appdefined privilege feature
Requires:
https://review.tizen.org/gerrit/#/c/136932/
https://review.tizen.org/gerrit/#/c/139373/
Change-Id: I185d5fe866b686152616cc20df79e80d8dbb7ea6
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Damian Pietruchowski [Tue, 4 Apr 2017 09:55:59 +0000 (11:55 +0200)]
Unnecessary queries if pkg_id is empty
Change-Id: I825867e85142e704a50ecde510c4a8b72d97ae84
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Junghyun Yeon [Tue, 18 Jul 2017 02:30:15 +0000 (11:30 +0900)]
Release version 0.4.6
Changes:
- Skip reading icon in case there is no icon file actually
- Invoke StepParsePreload when ReadonlyUpdateUninstall
- Fix ReadonlyUpdateUninstall
Change-Id: I869d1f74712431ad22d298d965e11888bb5b699e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 17 Jul 2017 07:25:12 +0000 (16:25 +0900)]
Fix ReadonlyUpdateUninstall
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>
Sangyoon Jang [Tue, 11 Jul 2017 10:26:03 +0000 (19:26 +0900)]
Invoke StepParsePreload when ReadonlyUpdateUninstall
StepParsePreload should be invoked for setting system attributes
properly.
Change-Id: I9d40710a2a6a056031d77eeca52de7f7e91bba21
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
jongmyeongko [Wed, 12 Jul 2017 06:42:29 +0000 (15:42 +0900)]
Skip reading icon in case there is no icon file actually
Change-Id: I653a8ac1d6fa1d496060adfd68ad8b1757814144
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Wed, 5 Jul 2017 11:35:53 +0000 (20:35 +0900)]
Release version 0.4.5
Changes:
- [SmokeTest] Fixes for smoke tests
Change-Id: Ic7c6e0fa3d64b9ffa0446c4b10f7e7e8355d8ce6
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Bartlomiej Kunikowski [Wed, 24 May 2017 10:13:30 +0000 (12:13 +0200)]
[SmokeTest] Fixes for smoke tests
Add "System" exec label to extensive smoke test.
Small fixes for RecoveryMode_ForDelta and MigrateLegacyExternalImageMode.
Change-Id: I5e342a9e397e5c0ce72680037b1dcb667828c1e3
Sangyoon Jang [Fri, 9 Jun 2017 02:30:29 +0000 (11:30 +0900)]
Release version 0.4.4
Changes:
- Supress build warnings
- Fix logic of 'update' attribute
- Fix for ManifestTests
Change-Id: Ief985c4e3f6e3320e88475697d2db506d55ffe86
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Piotr Ganicz [Fri, 2 Jun 2017 15:05:13 +0000 (17:05 +0200)]
Fix for ManifestTests
Both properties in config are mandatory, regarding the documentation.
So it is intuitive that te parsing process will fail in case
of lack of such properies.
Change-Id: I2f89a3aaa2098f942fb53002fb64fab54cb8c936
jongmyeongko [Wed, 24 May 2017 12:35:05 +0000 (21:35 +0900)]
Fix logic of 'update' attribute
Requires and Refer to:
https://review.tizen.org/gerrit/#/c/130948/
Change-Id: I408ec32d9cabd161217e4a462188c27e6366d712
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Thu, 1 Jun 2017 06:18:01 +0000 (15:18 +0900)]
Supress build warnings
- Supress "unused parameter" build warnings
Change-Id: Ic27d2298556ccbce75fc6a6fe4f06c1f3a544a8d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 1 Jun 2017 00:47:27 +0000 (09:47 +0900)]
Release version 0.4.3
Changes:
- Fix crash when parsing icon info from wgt archive
- Add update step of directories
Change-Id: Id00bf427ae551510d7176b1c75f3ba8cf1f46019
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 22 May 2017 01:43:28 +0000 (10:43 +0900)]
Add update step of directories
- shared/data directory of package should be created/removed
when updating hybrid pkg
Change-Id: Ib3f7bd0091f79d42472cc505c5bcf7ad96f69875
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Wed, 24 May 2017 05:38:17 +0000 (14:38 +0900)]
Fix crash when parsing icon info from wgt archive
Change-Id: Ifa4866a495af0764be72eb4e5d68d016642b931f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
jongmyeongko [Wed, 19 Apr 2017 09:15:56 +0000 (18:15 +0900)]
Fix crash issue when getting the locale was failed
Change-Id: Id4c860204b942a636bbd6f01b00ae99551cbddc7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Damian Pietruchowski [Fri, 7 Apr 2017 11:02:40 +0000 (13:02 +0200)]
[SmokeTest] Fix restore backup
When something goes wrong (for example unmount failed)
then backup is not restored.
After that fix, directory, which could not be removed,
will be renamed to path with "trash" extension. User
have to remove this directory manually..
Change-Id: Ie616f27f1bccbe2d5efbc31316f7b99cf6fec87b
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
jongmyeongko [Sat, 8 Apr 2017 06:51:26 +0000 (15:51 +0900)]
Fix Mount Installation Failure
Requires :
https://review.tizen.org/gerrit/#/c/123947/
Change-Id: Icd0342eab4266467288d06cbe88f573e1a16ee63
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
(cherry picked from commit
77476e84f50dd9b72a7e1cf2341c50dedd4d10cc)
Damian Pietruchowski [Thu, 6 Apr 2017 14:13:09 +0000 (16:13 +0200)]
[SmokeTest] Add SIGINT and SIGSEGV handling
Change-Id: I497435a6d89a7df26bbfe19e4fd308be2dd9b55d
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Damian Pietruchowski [Mon, 27 Mar 2017 12:21:35 +0000 (14:21 +0200)]
[SmokeTest] Fix for recovery smoke tests
Change-Id: I464fd123c34ddd4dac14a319e586a6e1c45c4dea
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Damian Pietruchowski [Thu, 23 Mar 2017 14:11:17 +0000 (15:11 +0100)]
[SmokeTest] Fixes for ParseRequestMode() function
- Allow to parse unknown options.
- Return global request mode for unknown options.
Change-Id: I2f2c71820a6f5e8552842f4c3ee0378617176aa8
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Piotr Ganicz [Mon, 20 Mar 2017 14:41:46 +0000 (15:41 +0100)]
Extensive tests for Recovery and Rollback
This commit creates new executable (extensive-smoke-test) for new type of tests
which will be testing recovery and rollback modes after each step in each
installation mode.
Requires:
- https://review.tizen.org/gerrit/#/c/116059/
- https://review.tizen.org/gerrit/#/c/119925/
Change-Id: Ib39dfd3df2f42ff33644904f682775a6a9b113f7
Piotr Ganicz [Mon, 20 Mar 2017 12:28:21 +0000 (13:28 +0100)]
Export Smoke Utils
This change exports utility functions to smoke_utils.h
Change-Id: I080275d4add34c417710f6c792fe0108780d284f
Damian Pietruchowski [Fri, 3 Mar 2017 13:40:57 +0000 (14:40 +0100)]
[SmokeTest] Skip tests for preload request
Tests for preload request should be skipped
when request mode is not global and when tests
are called by user different than root.
Change-Id: I9acd0ed5730162c30ab9a98fe02c8cdd92b8e507
Damian Pietruchowski [Wed, 22 Feb 2017 16:12:39 +0000 (17:12 +0100)]
[SmokeTest] Add request mode choice
Smoke tests can be run with normal or global user.
Normal user is created in environment SetUp() and
is deleted in TearDown() method. Normal user name
is "smokeuser".
You can run tests by normal user with flags:
-u or --request_mode=user
You can run tests by global user with flags:
-g or --request_mode=global
Without above flags tests are run with global user
by default
Change-Id: Ibf6e195dd21c78f1c7d19c45c4fa0753ec1baf7f
Damian Pietruchowski [Tue, 14 Mar 2017 14:52:23 +0000 (15:52 +0100)]
Change order of StepRemoveTemporaryDirectory
This step should be executed before parse manifest.
Package id is written to recovery file in StepParse
after StepUnzip. For example if installation is
terminated after StepUnzip and package id is not
written to recovery file then in StepParseManifest
recovery is terminated with status RECOVERY_DONE.
In this case unzipped directory is not removed
without this commit.
Commit, which adds recovery termination with status
RECOVERY_DONE:
- https://review.tizen.org/gerrit/#/c/118845/
Change-Id: Ieaf8bf3a9b7d1f1594afb876f14b479bf00e6b50
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Bartlomiej [Wed, 15 Mar 2017 08:43:27 +0000 (09:43 +0100)]
Change order of some steps
There is a case in recovery, when security manager need
information from pkgmgr database, so we need to ensure that
information about package are stored in pkgmgr database
before the security registration/update step.
Change-Id: Ic8c937d7cde3b06d492b16f982e73ad7e241d7c5
jongmyeongko [Fri, 17 Mar 2017 11:03:41 +0000 (20:03 +0900)]
Release version 0.4.2
Fix build break in release version 0.4.1
All changes in the version 0.4.1 will be released as version 0.4.2 also.
Change-Id: I8762c6a63d6c64d0202daea941480a9f05b10778
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeong ko [Fri, 17 Mar 2017 10:30:30 +0000 (03:30 -0700)]
Revert "[SmokeTest] Add request mode choice"
This reverts commit
e2687ca7eb39fc8aa1ba278199a2b641e376f4ab.
Change-Id: I830fd406565a3d43adc0fba3f752ba6348671bcd
jongmyeong ko [Fri, 17 Mar 2017 10:36:49 +0000 (03:36 -0700)]
Revert "[SmokeTest] Skip tests for preload request"
This reverts commit
ca83749c7b1f7e26f90e86f2145155a75033913a.
Change-Id: I7de10af58e13c46a7dc48916b3ade5dac316b029
Junghyun Yeon [Fri, 17 Mar 2017 06:49:40 +0000 (15:49 +0900)]
Release version 0.4.1
- Fix smoke tests
- Rework widget's shared directory
- Change step order of StepRecoverApplication
Change-Id: If0c4113f6f43344833a34be9711f3b9506f17a69
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Damian Pietruchowski [Tue, 14 Mar 2017 08:22:34 +0000 (09:22 +0100)]
Fix query IsHybridApplication()
Recovery file naming rule is changed to: wgt-recovery-<tmpstr>,
so argument of find() function should be changed to "wgt-recovery-"
for query is recovery request type.
If #is_recovery is true it should not trying to unpack recovery file
Change-Id: I37f9f31df602bab1a39702e6306082d8b10e2a03
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Bartlomiej [Tue, 14 Mar 2017 08:34:06 +0000 (09:34 +0100)]
[Smoke Test] Fix smoke test packages and other files
This is fix for MigrateLegacyExternalImageMode and
MountUpdateMode_Rollback smoke tests.
Change-Id: I0eca0a6ae167edd63f16dfef3eb4b0a7e6bc40bc
Damian Pietruchowski [Fri, 3 Mar 2017 13:40:57 +0000 (14:40 +0100)]
[SmokeTest] Skip tests for preload request
Tests for preload request should be skipped
when request mode is not global and when tests
are called by user different than root.
Change-Id: I249c07794e713023fad6f21d1f621bcac3080621
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
jaekuk lee [Tue, 14 Mar 2017 01:12:03 +0000 (18:12 -0700)]
Merge changes I06558231,I9423d78a into tizen
* changes:
Change order of StepRecoverApplication
Reworked sharing of widget's shared/res directory.