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.
Bartlomiej Kunikowski [Mon, 6 Mar 2017 10:01:33 +0000 (11:01 +0100)]
[SmokeTest] Fix smoke test
Fix related to changes in recovery file name convention.
It repairs:
SmokeTest.RecoveryMode_ForInstallation
SmokeTest.RecoveryMode_ForMountInstall
And partially repairs:
SmokeTest.RecoveryMode_ForUpdate;
SmokeTest.RecoveryMode_ForDelta
SmokeTest.RecoveryMode_ForMountUpdate
Change-Id: I836618dcca2a12f83a3b8d41ee3ce61998312880
Bartlomiej [Mon, 13 Mar 2017 09:47:07 +0000 (10:47 +0100)]
Change order of StepRecoverApplication
At this moment, in some situation StepRecoverSecurity needs
data from pkgmgr database, so unregister application
step should be done after StepRecoverSecurity.
Change-Id: I06558231cd65cdd214eb930937f344c0b2827e4c
Damian Pietruchowski [Mon, 6 Mar 2017 12:13:36 +0000 (13:13 +0100)]
[SmokeTest] Add valid packages
Fix for this commit: https://review.tizen.org/gerrit/#/c/114671/
Change-Id: I4360fa127ce62703d611817f5388ec90db7ef5b5
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Piotr Dabrowski [Mon, 19 Sep 2016 13:43:16 +0000 (15:43 +0200)]
Reworked sharing of widget's shared/res directory.
./res/wgt/shared/res directory content was moved to ./shared/res
and then ./res/wgt/shared/res was symlinked to ./shared/res
This broke signatures check for delta update.
Now all items (files and directories) under ./res/wgt/shared/res
are symlinked into ./shared/res, and vice versa.
During delta update these symlinks are removed, so that the
signatures check can complete successfully, and later the symlinks
are recreated again.
Added smoke tests for symlinking shared/res contents in Tizen 3.0
To added tests pass requires:
- https://review.tizen.org/gerrit/#/c/117264/
Change-Id: I9423d78aba5cb338b14a9f8853754e0fa8980e0c
Damian Pietruchowski [Thu, 9 Mar 2017 14:07:45 +0000 (15:07 +0100)]
[SmokeTest] Regex match for uninstall in tear down
After all tests, apps are uninstalled based on names of directories
in globalapps or apps_rw directory. It should avoid trying to uninstall
apps like "tmp" or "pkgdid.bck".
Change-Id: If64970a49aa657df759de1173e1f1c96fe7e87ea
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Damian Pietruchowski [Tue, 7 Mar 2017 11:45:28 +0000 (12:45 +0100)]
[SmokeTest] Fix rw filesystem validation
Remove validation for files in rw directories
Change-Id: I25c22040609664d5f707f42f67ff53e813b05ca0
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
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
Requires:
- https://review.tizen.org/gerrit/#/c/116229/
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Change-Id: If59225a8fac3f4ed25277f31466549c0cc636c50
jongmyeongko [Sat, 4 Mar 2017 09:05:39 +0000 (18:05 +0900)]
Release version 0.4.0
Changes:
- Smoke tests- check if package dont exist in skel directory
- Fix rw filesystem validation
- Rename smoke test to new convention
- Add some missing error checking
- Add signature check step in RW partial request
- Add KillApp step in RW partial update
- Adjust some values in xml
Change-Id: I3f673fe1df183ba4bee8a140321c19c0c6417829
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeong ko [Fri, 3 Mar 2017 09:14:18 +0000 (01:14 -0800)]
Revert "[Refactor] AppInstaller logic export"
This reverts commit
90f7070f171e8abe145d30150b976f0a4e13bd86.
Change-Id: Iaaa68f8f60076803c49a5231b1be35478768846e
Piotr Ganicz [Fri, 21 Oct 2016 14:30:51 +0000 (16:30 +0200)]
[Refactor] AppInstaller logic export
This commit gather the logic of choosing proper steps sequence
to app-installer repository. All backends have to prepare their
own sequences for each pkgmgr request. The default implementation
of such methods is provided and there is no need for overriding
each function in backends.
Submit together:
- https://review.tizen.org/gerrit/#/c/93999/
- https://review.tizen.org/gerrit/#/c/93998/
Change-Id: I1f049c28908408a20db057bd36e246ba789c999b
Damian Pietruchowski [Mon, 20 Feb 2017 11:56:35 +0000 (12:56 +0100)]
Smoke tests- check if package dont exist in skel directory
This is required by:
DeinstallationMode
RecoveryMode_Tpk_Installation
RecoveryMode_ForMountInstall
InstallationMode_Rollback
Change-Id: Idd0a701702558a463ef86651886c66567e5670d0
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Damian Pietruchowski [Thu, 23 Feb 2017 14:50:02 +0000 (15:50 +0100)]
Fix rw filesystem validation
Change-Id: I666994cd9fe8f57e9d98b319188e6b86a76eb3db
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Piotr Ganicz [Mon, 13 Feb 2017 16:19:03 +0000 (17:19 +0100)]
Rename smoke test to new convention
This patch renames all smoke test packages to use new convention
('smokewgt' / 'smokehyb') because that is needed by the TearDown
process to work properly.
Change-Id: Ib996921bb88e7f5b1db6f0643774b17e909cfbf1
jaekuk lee [Fri, 3 Mar 2017 01:13:19 +0000 (17:13 -0800)]
Merge "Add some missing error checking" into tizen
jongmyeongko [Thu, 2 Mar 2017 14:02:04 +0000 (23:02 +0900)]
Add signature check step in RW partial request
The certificate info was not stored properly in cert db.
Require :
https://review.tizen.org/gerrit/#/c/117077/
Change-Id: I71f8d0c5704275d8e167ff7303bc73d66b1efa4a
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Thu, 2 Mar 2017 14:06:58 +0000 (23:06 +0900)]
Add KillApp step in RW partial update
Change-Id: I3e5f903d11624eb8deb153dac04872edfb5c608b
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Bartlomiej Kunikowski [Mon, 13 Feb 2017 11:55:25 +0000 (12:55 +0100)]
Add some missing error checking
Requires:
- https://review.tizen.org/gerrit/#/c/114612/
Change-Id: I361068110fea571af6af6103a22dcf5b4d433d16
Bartlomiej Kunikowski [Mon, 27 Feb 2017 08:49:43 +0000 (09:49 +0100)]
Adjust some values in xml
- Onboot and autorestart features of service application
has removed since 2.3.1 in wearable, 2.4 in all other profiles
- So change modified xml files if needed (hybrid)
- Change modified this options in context before generate
manifest (wgt)
Requires:
- https://review.tizen.org/gerrit/#/c/116622/
Change-Id: Ie539cc25b5f1628adcc9e816f3436b7e7fdc245b
Sangyoon Jang [Mon, 13 Feb 2017 11:21:48 +0000 (20:21 +0900)]
Release version 0.3.1
Changes:
- Fix recovery mode
- Fix smoke tests
Change-Id: Ib07fab46048673dd7dfcbbbeba1398261bbad582
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeong ko [Fri, 10 Feb 2017 08:38:03 +0000 (00:38 -0800)]
Merge "Step Recover Per User Directories for Recovery Mode added" into tizen
Bartlomiej Kunikowski [Thu, 9 Feb 2017 10:49:25 +0000 (11:49 +0100)]
Fix for wgt smoke tests
There is a one conflict in pkgid and one pkgid which
is not compatible with pkgid name convention
Change-Id: I0b1b1ac66ec1bee0ab0bc888d55329d1bd096390
Bartlomiej Kunikowski [Fri, 20 Jan 2017 10:36:45 +0000 (11:36 +0100)]
Uninstalling smoke packages to clear security context
For properly work, every smoke package need to has
pkgid beginning with 'smoke', ex. 'smokeapp01', 'smokehyb01'
Requires:
- https://review.tizen.org/gerrit/#/c/110900/
Verification:
- please use 'find / -name "*smoke*" | grep rules' commend
to see if there are no smoke tests entries in security rules
- for now there are some bug in recovery mode for installation
and there are some artifacts after this mode, but for other
uninstallation works properly
Change-Id: Ib2d963a5323d41c2d4aaa2ba18b1d6483cd04bd9
Damian Pietruchowski [Thu, 9 Feb 2017 11:16:34 +0000 (12:16 +0100)]
Step Recover Per User Directories for Recovery Mode added
Requires: https://review.tizen.org/gerrit/#/c/112049/
Verification: Run SmokeTest.RecoveryMode_ForInstallation
Change-Id: I6e19567b19d4057c7b51bec3e77239a07f631ed9
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Sangyoon Jang [Thu, 9 Feb 2017 10:55:58 +0000 (19:55 +0900)]
Release version 0.3.0
Changes:
- Fix a bug in StepWgtPatchStorageDirectory
- Fix code style
- Fix for a rollback of some update modes
- Fix smoke tests
Change-Id: I3a2d0f33195f736c3ae62d2aa788e6e011cad5c7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeong ko [Thu, 9 Feb 2017 01:31:09 +0000 (17:31 -0800)]
Merge "Smoke tests for preload installation, update and deinstallation" into tizen
Damian Pietruchowski [Thu, 26 Jan 2017 10:05:26 +0000 (11:05 +0100)]
Refactoring - smoke tests
Change-Id: I2097bc121d475b096884724ac184d6138bed4236
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Damian Pietruchowski [Wed, 18 Jan 2017 12:31:29 +0000 (13:31 +0100)]
Smoke tests for preload installation, update and deinstallation
Verification: Run new smoke tests as superuser (root)
Change-Id: Ie63acb84ab811f14621180f0fbd40881996e1586
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Bartlomiej Kunikowski [Mon, 16 Jan 2017 13:53:08 +0000 (14:53 +0100)]
Smoke tests for DeltaMode_Rollback and DeltaMode_Rollback_Hybrid
Requires:
- https://review.tizen.org/gerrit/#/c/110703/
Verification:
$ /usr/bin/wgt-backend-ut/smoke-tests
--gtest_filter=SmokeTest.DeltaMode_Rollback*
Change-Id: I7fd3eabdabab3ea9fac476a8840e603526d80320
Bartlomiej Kunikowski [Tue, 17 Jan 2017 12:35:18 +0000 (13:35 +0100)]
Fix for rollback of some update modes
This patch solves problem with rollback modes of
delta mode and manifest direct update mode for
hybrid packages
Change-Id: I1ece447536fa9ad6dd7a36d54b7340663188bc7c
Piotr Ganicz [Fri, 13 Jan 2017 12:12:32 +0000 (13:12 +0100)]
Styel check
Change-Id: I102408c0f7ff520be398dbf102f5711954c283c5
Bartlomiej Kunikowski [Mon, 2 Jan 2017 13:33:54 +0000 (14:33 +0100)]
Fix in StepWgtPatchStorageDirectory
There is one bug in checking if directory is created, and
second one in comment to this step
Change-Id: I02331ed4b40d3be9be4f217eb842a89f8b9bdfcb
jongmyeongko [Thu, 19 Jan 2017 08:26:12 +0000 (17:26 +0900)]
Release Version 0.2.0
Changes:
- Remove Profile Build Dependency
- Fix for smoke tests
Change-Id: Ic9ecaec3bc37890c1eaff6dd015b9f5d355c34d6
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Thu, 19 Jan 2017 08:20:00 +0000 (17:20 +0900)]
Remove unused versioning macro
Change-Id: I945ac04615c8f9253ff4fdf3019c0ffa6812d237
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
MyungJoo Ham [Fri, 4 Nov 2016 08:18:34 +0000 (17:18 +0900)]
Remove Profile Build Dependency
xwalk-launcher does not used any more.
Change-Id: I503804bb16c2f974e90f312391e3dd60fa317d49
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Bartlomiej Kunikowski [Thu, 12 Jan 2017 15:10:38 +0000 (16:10 +0100)]
Fix for smoke tests
- SmokeTest.InstallExternalMode
- SmokeTest.MigrateLegacyExternalImageMode
Above test throws an exception when in device there
is no SD Card. This patch repairs it.
Change-Id: Id7e9e6da3b79193005818b5c84c20bc5f886bc8f
Sangyoon Jang [Wed, 11 Jan 2017 02:23:31 +0000 (11:23 +0900)]
Fix StepWgtPatchIcons
Set package's icon as same as app's icon.
We don't need icon file named as pkgid.
Change-Id: I11ed3246c7b1db29b29f357491beb4a67ebfb585
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 10 Jan 2017 05:45:35 +0000 (14:45 +0900)]
Rollback xml keep blanks support after parsing hybrid manifest
Hybrid installer set default blanks text node support off for
generating/merging manifest. However, this may cause unexpected result
at other library which is using libxml2. So hybrid installer should
rollback this support.
This patch fixes smoke test failures.
Change-Id: I89aa9b99a30e5068e93f44415829f94abca0ff40
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 6 Jan 2017 04:55:10 +0000 (13:55 +0900)]
Make wgt lib support hybrid package
Change-Id: Id0fe7f2ed6a736104f1683547fe80a0010662b6a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 6 Jan 2017 04:51:29 +0000 (13:51 +0900)]
Remove tmpdir when failed to getting icon info
Change-Id: I8b26603ac401f3eaae276da8dfe7dc4e4838aca1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeongko [Wed, 4 Jan 2017 12:42:59 +0000 (21:42 +0900)]
Support legacy image for backward-compatibility
Refer to:
https://review.tizen.org/gerrit/#/c/104823/
Change-Id: I2e48c94def90181b6522fd8f3d9508ea636d693e
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Wed, 4 Jan 2017 12:01:11 +0000 (21:01 +0900)]
Fix smoke test
Check gid of cache dir is system_share.
Change-Id: I27ed49347fe4e46dd1331da0cd60d47eddda831c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 4 Jan 2017 11:50:04 +0000 (20:50 +0900)]
Fix wgt lib to extract manifest and icon only
Extracting whole files can cause memory issue.
Instead of extracting whole files, wgt lib will extract manifest first
and find icon file from manifest, and then extract icon file.
Change-Id: I2b7a5c1039dc94411e68c7bdffb61d139aa43ef9
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 27 Dec 2016 07:58:24 +0000 (16:58 +0900)]
Revert "Temporary fix for hybrid pkg installation"
This reverts commit
8c6fc81fabd0d348c8ab57af6ac6f7fd376e8cd1.
Conflicts:
src/wgt/step/pkgmgr/step_generate_xml.cc
Now hybrid installer can merge manifest completely.
Submit with:
- https://review.tizen.org/gerrit/107236
- https://review.tizen.org/gerrit/107237
- https://review.tizen.org/gerrit/107238
- https://review.tizen.org/gerrit/107239
Change-Id: Id054359ba9fb3a04cfee67ba1dbd8afd83ca8082
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 27 Dec 2016 07:48:27 +0000 (16:48 +0900)]
Fix code style
Remove errors/warnings from tools/check-coding-styles.
Change-Id: Idd2a1faca15b8ac48049c20ebfe758a4917f152f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 27 Dec 2016 07:26:24 +0000 (16:26 +0900)]
Fix privilege handling on hybrid installation
To handle privileges properly, it should merge privileges first before
StepPrivilegeCompatibility.
Change-Id: I5e40ebb3374939652d89e258a23051b91cb1781a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 27 Dec 2016 07:29:09 +0000 (16:29 +0900)]
Remove unused string constant variable
Change-Id: I1d78321f4d144fb2aff76057036b7cb02792b85d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Mon, 26 Dec 2016 07:32:44 +0000 (16:32 +0900)]
Remove codes which refers deleted attribute
Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/107032
[app-installers] : https://review.tizen.org/gerrit/107033
[tpk-backend] : https://review.tizen.org/gerrit/107034
Change-Id: I54b8508488321a67ef35733a1063496544f31b22
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Fri, 23 Dec 2016 07:28:28 +0000 (16:28 +0900)]
Adjust step order of hybrid installer
Step for creating symlink should be called after merging manifest.
Change-Id: Ifdf323c5c0424c59cdbc99a0526f771050d5120d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 23 Dec 2016 05:28:03 +0000 (14:28 +0900)]
Fix smoketest
Smoketest should test both global/local case.
This patch make smoketest can test global/local test, but test only
global case because of current platform policy.
It should be test local case also later.
Change-Id: Ib9cb9754058a34a6fc18ba845c872ed819cd3050
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Thu, 22 Dec 2016 07:17:17 +0000 (16:17 +0900)]
Remove cleardata feature
- Cleardata will be handled by pkg_cleardata
so remove features related with it from backend
Related changes:
[pkgmgr-server] : https://review.tizen.org/gerrit/106486
[pkgmgr-tool] : https://review.tizen.org/gerrit/106485
[app-installers] : https://review.tizen.org/gerrit/105691
[tpk-backend] : https://review.tizen.org/gerrit/106603
Change-Id: I5df69fbe6416fae0188156b0af7d9657951ec32b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 22 Dec 2016 05:54:25 +0000 (14:54 +0900)]
Fix mount install failure on global installation
Security registration should be done before creating per user storage
directories because StepCreatePerUserStorage calls
security_manager_paths_register() and it needs security context.
Change-Id: I90c846f55c5ba2cdc294c1a762edb9d97cc76b50
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 16 Dec 2016 09:54:40 +0000 (18:54 +0900)]
Fix generating manifest when install hybrid package
Currently, wgt-backend generate manifest file using manifest_x which is
parsed by manifest parser. This data contains only the parser knows.
However, the manifest file for native packages have many element which
are not parsed manifest parser but parsed by plugin parsers.
So the manifest generated by wgt-backend loses some elements.
This patch will make the manifest have elements as it was before.
StepGenerateXml from hybrid installer will merge original native
manifest into generated widget manifest(config.xml).
Change-Id: Iea0a68c3b695243248469f0794f62f7bec4fa757
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Piotr Dabrowski [Fri, 16 Dec 2016 14:16:37 +0000 (15:16 +0100)]
Create private tmp directory in skel
Submit together:
https://review.tizen.org/gerrit/#/c/105467/
https://review.tizen.org/gerrit/#/c/105468/
Change-Id: I7454b05b3d83bac2939594f0d82e8d22d457789c
Junghyun Yeon [Tue, 13 Dec 2016 06:15:21 +0000 (15:15 +0900)]
Add missed 'break'
Change-Id: Iea19cafbf53d996c1b0123bb9bafd230a105a006
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
jongmyeongko [Fri, 9 Dec 2016 08:21:11 +0000 (17:21 +0900)]
fix missing brace
Change-Id: I1d2d6137481f9a2a53fbfd2823fa5398a2375387
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Sun, 4 Dec 2016 09:26:07 +0000 (18:26 +0900)]
apply new features : partial install/update/uninstall, force-clean
Submit with:
https://review.tizen.org/gerrit/#/c/103359/
https://review.tizen.org/gerrit/#/c/103361/
Change-Id: I63a24f916d1e8b8a379d579962513ba1551904dc
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Thu, 8 Dec 2016 12:42:38 +0000 (21:42 +0900)]
change the name of StepChageOwner to StepChangeOwnershipAndPermission
Change-Id: I6d6dc6bcf83b5be91b1bc4cb50aaf88a3a4e7742
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Thu, 8 Dec 2016 06:29:31 +0000 (15:29 +0900)]
Fix package icon path
It should be under at shared/res for access by other applications.
Change-Id: I1cdb835db681a98ea05987a52b9e55b23d5c8f17
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 7 Dec 2016 06:42:00 +0000 (15:42 +0900)]
Adjust to change of support ambient
Requires:
- https://review.tizen.org/gerrit/102774
Change-Id: I0f64c7eeb825fd82f25940c0829c4725356c2c9b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 2 Dec 2016 08:42:37 +0000 (17:42 +0900)]
Fix CMakeLists.txt
To make extendible for adding source & header files.
Change-Id: I54198360f67882b6c644d13f027f155855e57d12
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 15 Nov 2016 05:30:45 +0000 (14:30 +0900)]
Add new steps for readonly update
Change-Id: Iff1ffcd4cecea510b4a91ab3d0730e9f09c30db5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Piotr Ganicz [Wed, 30 Nov 2016 12:48:52 +0000 (13:48 +0100)]
Addition of main attribute for widget-application
This commit repairs the issue with generating proper main attribute
for widget-application element in manifest. Only one attribute can
be set to "true" for list of apps (widget-application).
Submit together:
- https://review.tizen.org/gerrit/#/c/101269/
- https://review.tizen.org/gerrit/#/c/101267/
- https://review.tizen.org/gerrit/#/c/101266/
Change-Id: Icdc622d05b0d2b5787db8e099f1db978f130af97
Sangyoon Jang [Thu, 1 Dec 2016 06:44:15 +0000 (15:44 +0900)]
Fix smoke test
Now gid of data, shared/data dir is system_share.
Change-Id: Id69017b75af1f12cb61d6aa2fd24c1d528a43963
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 2 Dec 2016 08:05:01 +0000 (17:05 +0900)]
Set missing manifest attribute: readonly, preload
Change-Id: I4a9395a7f646dae6f67723c95b7e1d5cb2496e91
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeongko [Wed, 30 Nov 2016 16:53:01 +0000 (01:53 +0900)]
change disable_pkg test
Change-Id: Ie821fea7e3697e1f0381b1d76778f7b31fe29c40
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Wed, 30 Nov 2016 15:01:47 +0000 (00:01 +0900)]
fix build error
- this override function will be used.
Change-Id: I7d28e1e8b0dbf98dda4482eb8bbbe62390f50eab
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Piotr Dabrowski [Mon, 28 Nov 2016 16:06:05 +0000 (17:06 +0100)]
Change order of steps in wgt as in tpk
StepRegisterSecurity
StepRegisterApplication
StepRunParserPlugin
StepUpdateSecurity
StepUpdateApplication
StepRunParserPlugin
Change-Id: I92c30d65c7af2b50c2ae2f32b8343ef522db2249
Bartlomiej Kunikowski [Fri, 18 Nov 2016 10:48:41 +0000 (11:48 +0100)]
Fix for UpdateMode_Rollback_Hybrid and MountUpdateMode_Rollback_Hybrid
There are unneeded step that remove all smack rules. There should
be all smack rules as before an update.
Verify:
- # su - app_fw
- $ /usr/bin/wgt-backend-ut/smoke-test
Submit together:
- https://review.tizen.org/gerrit/#/c/98725/
Requires:
- https://review.tizen.org/gerrit/#/c/97903/
Change-Id: I5a0f4c929c9f90f06f67a68c3a1bcfc4939f9cc8
Bartlomiej Kunikowski [Thu, 20 Oct 2016 08:34:21 +0000 (10:34 +0200)]
Fix for MountUpdateMode_Rollback
Requires:
- https://review.tizen.org/gerrit/#/c/97897/
To verify run wgt-backend smoke test
Change-Id: I08198a4003acd457f2a8282d143a8272df53feb2
Bartlomiej Kunikowski [Mon, 17 Oct 2016 10:53:12 +0000 (12:53 +0200)]
Fix smoke tests for hybrid packages
Change-Id: I0d475b40ad6251184fcbef992e1cf5008c7fe2b6
jongmyeongko [Tue, 22 Nov 2016 07:43:12 +0000 (16:43 +0900)]
apply extended concept of package's attribute.
Requires :
https://review.tizen.org/gerrit/#/c/99039/
Change-Id: I3da722ec30cd00554b9fe9e00b001bb6922a8cbf
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Mon, 21 Nov 2016 07:00:25 +0000 (16:00 +0900)]
Implement wgt backend library
This backend library is for getting package information from file.
The functions are called by dlsym from pkgmgr_client api.
(Refer to: https://review.tizen.org/gerrit/73286)
Change-Id: I547fae4bf0a431a28826ef8c4f6e83768c4acc18
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 17 Nov 2016 10:34:46 +0000 (19:34 +0900)]
Adjust to privilege verification API change
Requires:
- https://review.tizen.org/gerrit/98384
- https://review.tizen.org/gerrit/98161
Change-Id: Idf6d33b3216466f23efbcb0ad2d1c25ea131936a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeong ko [Thu, 17 Nov 2016 14:21:50 +0000 (06:21 -0800)]
Merge "Fix StepCreateStorageDirectores" into tizen_3.0
Piotr Ganicz [Tue, 15 Nov 2016 09:35:47 +0000 (10:35 +0100)]
[Coding style] Wgt step reorder as tpk
This commit reoders step RegisterApplication with RegisterSecurity as
it is done in Tpk installer. It could be done because that steps
do not depend of each other.
Change-Id: Ia30152f749f0b5a360bdabcfad032142e84cdd5f
Piotr Ganicz [Tue, 15 Nov 2016 08:02:01 +0000 (09:02 +0100)]
Fix StepCreateStorageDirectores
This patch provides proper handling for following test case:
1. Crash installation before StepGenerateXML
2. Install again
3. The installation should be successful
Change-Id: Ic55d86d5164ecb1f596f7ddc7d51cf16a0f6268e
Sangyoon Jang [Thu, 17 Nov 2016 10:36:31 +0000 (19:36 +0900)]
Add StepCheckInstallable
Requires:
- https://review.tizen.org/gerrit/98476
Change-Id: I13c733301b6b57f92533a7a451ccb920b1c86635
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Piotr Ganicz [Wed, 16 Nov 2016 15:37:34 +0000 (16:37 +0100)]
Fix manifest preload location
This patch sets manifest location for preload request to TZ_SYS_RO_PACKAGES.
Change-Id: I678e78981fdcb8698d1cda8f1b5eba7bf6173e49
Tomasz Iwanek [Thu, 15 Sep 2016 10:25:48 +0000 (12:25 +0200)]
Fixing rollback
This patch should fix:
1) Situation when backup files are not fully restored when
file that has been backed up wasn't removed yet -> file
is not restored (new flag: FS_MERGE_OVERWRITE)
2) Situation when backup file was not fully copied and we
restore broken copy (new flag: FS_COMMIT_COPY_FILE)
Submit together:
- https://review.tizen.org/gerrit/88235
- https://review.tizen.org/gerrit/88236
Change-Id: I49baa0c194b6247d33f40cc804610eb32aafe490
Tomasz Iwanek [Fri, 30 Sep 2016 08:07:13 +0000 (10:07 +0200)]
Reworking handling privileges for hybrid application
This patch keeps single list of privileges (stored in
manifest_x) and filters privileges when registring
security rules of applications. Following changed:
- generated platform manifest xml contains <privilege>
tags with 'type' atttibute set to 'tpk' or 'wgt',
- in case of absence of attribute, its default value
is 'tpk',
- manifest_x changes privilege type from GList of char*
to GList of privilege_x. Structure named 'privilege_x'
contain parsed privilege type,
- although there is one privilege list, given the fact
that privilege now have type, native and web privileges
should be registered in native or web apps only.
Verification:
- no regression in tpk/wgt smoke tests,
- install hybrid app with native and web privileges
and check generated manifest file for privileges,
- install web app with privileges and check generated
manifest file,
- install web app without privileges and check generated
manifest file -> default privileges should be added.
Submit together:
- https://review.tizen.org/gerrit/#/c/90540/
- https://review.tizen.org/gerrit/#/c/90543/
- https://review.tizen.org/gerrit/#/c/90544/
- https://review.tizen.org/gerrit/#/c/90546/
- https://review.tizen.org/gerrit/#/c/90561/
Change-Id: I4ec7c8714a55917dbda665bf2a1c08ca30ce3f97
Tomasz Iwanek [Fri, 30 Sep 2016 08:48:38 +0000 (10:48 +0200)]
Revert "Fix checking privilege level for hybrid apps"
Following commit will reimplement this bug fix.
This reverts commit
3002913a84371529abcb09bc7f51857bd3a3899a.
Change-Id: I6334d50351fe49daedf543322738b102de2444f5
Sangyoon Jang [Mon, 17 Oct 2016 11:02:15 +0000 (20:02 +0900)]
Temporary fix for hybrid pkg installation
Submit together:
- https://review.tizen.org/gerrit/92583
- https://review.tizen.org/gerrit/92584
- https://review.tizen.org/gerrit/92585
Change-Id: If9ab9d27126568e12efadcaea50988ab57cd4c5f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 17 Oct 2016 11:00:32 +0000 (20:00 +0900)]
Fix step order of hybrid installer
Parser plugins should be run after pakcage registration.
Change-Id: I0635000604e28c28e88a7e3d56b69a972fec533a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Tomasz Iwanek [Fri, 7 Oct 2016 08:56:10 +0000 (10:56 +0200)]
Patch reinstall/RDS according to SDK behaviour
Commit changes reinstall request argument. Now pkgid
is expected instead of path to directory. What is more,
if package manifest is not in the directory supplied by
reinstall/RDS then it will be copied from install location.
Application installer expects that SDK will put files into:
- local installation:
/home/$USERNAME/apps_rw/tmp/$PKGID/
- global installation:
/opt/apps/tmp/$PKGID/
Requires:
- https://review.tizen.org/gerrit/91412
Submit together:
- https://review.tizen.org/gerrit/91430
- https://review.tizen.org/gerrit/91431
- https://review.tizen.org/gerrit/91432
Verification:
- run smoke tests,
- run reinstall from SDK,
- run RDS from SDK.
Change-Id: I7a5008c6a5d9d28f4181a0be92d42dc9c8e57e28