platform/core/appfw/tpk-backend.git
7 years agoFix build warning 83/133783/2
Junghyun Yeon [Tue, 13 Jun 2017 10:06:02 +0000 (19:06 +0900)]
Fix build warning

Change-Id: I79f7ce319253fb5a9f46933585d5f7e92bbdde7f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd condition for external installed pkgs 81/133781/2
Junghyun Yeon [Tue, 13 Jun 2017 09:35:49 +0000 (18:35 +0900)]
Add condition for external installed pkgs

- Skip making bin directories when dest directory is symlink

Change-Id: Iebb3df57b62d5239ec43b5db7c365dfa815de1f2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 1.1.5 04/133104/1 accepted/tizen/unified/20170609.204207 submit/tizen/20170609.050739 submit/tizen/20170609.051007
Sangyoon Jang [Fri, 9 Jun 2017 02:28:36 +0000 (11:28 +0900)]
Release version 1.1.5

Changes:
 - Fix smoke tests
 - Supress build warnings

Change-Id: I136b83ae67eb3135aef831812e8c48c864625fc4
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoSupress build warning 07/132107/2
Junghyun Yeon [Thu, 1 Jun 2017 06:08:39 +0000 (15:08 +0900)]
Supress build warning

- Supress "unused parameter" build warning

Change-Id: I9329088fffc01483ed1055f39b1f4354495bd37a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years ago[SmokeTest] Regex match for uninstall in tear down 96/120096/6
Damian Pietruchowski [Tue, 21 Mar 2017 10:15:39 +0000 (11:15 +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: Iebf0f903c62c250e09ea282ec085a14126a35302
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years ago[SmokeTest] Skip tests for preload request 01/119901/7
Damian Pietruchowski [Mon, 20 Mar 2017 11:56:30 +0000 (12:56 +0100)]
[SmokeTest] Skip tests for preload request

Change-Id: I78231a9bb8edf43db8ae71f7828aa7d82fa0d5ee
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years ago[SmokeTest] Add request mode choice 98/119898/7
Damian Pietruchowski [Mon, 20 Mar 2017 10:05:33 +0000 (11:05 +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: I776e26e27ffe670328293fb01bd0dd35549cfe11
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years ago[SmokeTest] Fix rw filesystem validation 97/119897/5
Damian Pietruchowski [Mon, 20 Mar 2017 11:35:03 +0000 (12:35 +0100)]
[SmokeTest] Fix rw filesystem validation

Requires:
https://review.tizen.org/gerrit/#/c/119323/

Change-Id: I623fb15084b8b25fdad9e923b53cf2f3badb6221
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoRelease version 1.1.4 73/130073/1 accepted/tizen/unified/20170519.200038 submit/tizen/20170519.052610 tizen_4.0.m1_release
Junghyun Yeon [Fri, 19 May 2017 04:55:03 +0000 (13:55 +0900)]
Release version 1.1.4

Changes:
 - Add update step of directories
 - Change order of some steps
 - Export Smoke Utils

Change-Id: Idad13368d6976e524774f34a543fdb87f79ec33d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd update step of directories 01/128001/4
Junghyun Yeon [Thu, 4 May 2017 00:31:15 +0000 (09:31 +0900)]
Add update step of directories

Related changes:
[app-installers] : https://review.tizen.org/gerrit/#/c/126628/
Change-Id: Id2c2ec97d33a213fcd3b0643588b28cf4fe047f5
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoChange order of some steps 53/119053/3
Bartlomiej [Wed, 15 Mar 2017 08:47:06 +0000 (09:47 +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: I801edb4a6d40be8ae1e4d619409b1580a29795ec

7 years agoExport Smoke Utils 23/119323/6
Piotr Ganicz [Fri, 17 Feb 2017 13:11:30 +0000 (14:11 +0100)]
Export Smoke Utils

This change exports utility functions to smoke_utils.h

Change-Id: I5035f0775af2749dbd07fe3d2970446f877d522d

7 years agoRelease version 1.1.3 06/126306/1 accepted/tizen/unified/20170421.114142 submit/tizen/20170421.005321
Junghyun Yeon [Fri, 21 Apr 2017 01:56:15 +0000 (10:56 +0900)]
Release version 1.1.3

- Fix crash issue when getting locale has failed

Change-Id: I310dbe709c9af9fc0d3a98aa3038611b77c413fa
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix crash issue when getting the locale was failed 57/125957/2
jongmyeongko [Wed, 19 Apr 2017 11:20:24 +0000 (20:20 +0900)]
Fix crash issue when getting the locale was failed

Change-Id: Ic115f69df765d454288ad8259d959992297387fe
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoRelease version 1.1.2 05/125705/1 submit/tizen/20170419.014756
Junghyun Yeon [Tue, 18 Apr 2017 11:58:08 +0000 (20:58 +0900)]
Release version 1.1.2

Changes :
- Fix mount installation failure

Change-Id: Id4c9449c57f5b931af92f9a9d7d36697812bb624
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix Mount Installation Failure 42/124242/1
jongmyeongko [Sat, 8 Apr 2017 06:50:14 +0000 (15:50 +0900)]
Fix Mount Installation Failure

Requires :
https://review.tizen.org/gerrit/#/c/123947/

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

7 years agoRelease version 1.1.1 97/123797/1 accepted/tizen/unified/20170407.190437 submit/tizen/20170407.042402
Sangyoon Jang [Fri, 7 Apr 2017 04:53:53 +0000 (13:53 +0900)]
Release version 1.1.1

Changes:
 - Fix compile flag for debug build
 - Add removing xml for installation rollback
 - Add missing step for delta update
 - Fix a static analyzer issue

Change-Id: I11e04e448241ecf275671dc4698785258de19dba
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix a static analyzer issue 74/122474/2
Sangyoon Jang [Fri, 31 Mar 2017 12:09:04 +0000 (21:09 +0900)]
Fix a static analyzer issue

Change-Id: I60d506a3f952577ab96cb2d857b6548faed48a4c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd missing step for delta update 21/122521/2
jongmyeongko [Mon, 3 Apr 2017 02:12:58 +0000 (11:12 +0900)]
Add missing step for delta update

Adjusting step is necessary also for delta update.
Because the manifest file is converted newly from the tizen-manifest.xml
of delta package.

Change-Id: I4d2cb6de6a7d992ef281c0873534bda63fde6e02
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdd removing xml for installation rollback 42/119342/2
Damian Pietruchowski [Thu, 16 Mar 2017 10:45:19 +0000 (11:45 +0100)]
Add removing xml for installation rollback

For installation request, backup_path_ do not exist
in StepConvertXml, but xml file should be removed
in rollback.

Change-Id: I984b9a44af0e0e6c4f51b0769f0f877a197b99ed
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoRemove optimization flag for debug build 28/119328/1
Bartlomiej Kunikowski [Thu, 16 Mar 2017 10:24:32 +0000 (11:24 +0100)]
Remove optimization flag for debug build

Change-Id: Id22f4ee1775367bdad1e73cf83a36529ca46fab7

7 years agoRelease version 1.1.0 05/118005/3 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170309.175251 accepted/tizen/ivi/20170308.121745 accepted/tizen/mobile/20170308.121654 accepted/tizen/tv/20170308.121716 accepted/tizen/unified/20170310.075632 accepted/tizen/wearable/20170308.121733 submit/tizen/20170308.095023 submit/tizen_unified/20170310.011401
jongmyeongko [Wed, 8 Mar 2017 08:38:52 +0000 (17:38 +0900)]
Release version 1.1.0

Changes:
 - Fix build error
 - Add some missing error checking

Change-Id: I577390952870bafc06706a41263e628f4ef945fc
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix build error 10/118010/3
jongmyeongko [Wed, 8 Mar 2017 08:57:37 +0000 (17:57 +0900)]
Fix build error

Change-Id: I0ffa906cd4bffe40816ca5dc2fd74f7744413bb5
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdd some missing error checking 18/114618/5
Bartlomiej Kunikowski [Tue, 14 Feb 2017 08:05:22 +0000 (09:05 +0100)]
Add some missing error checking

Requires:
 - https://review.tizen.org/gerrit/#/c/114612/

Change-Id: Ia78c272c9f3a2ec8f69993bf6ac2484e28855fb1

7 years agoRelease version 0.4.0 40/117340/3 accepted/tizen/common/20170306.165133 accepted/tizen/ivi/20170307.050434 accepted/tizen/mobile/20170307.050155 accepted/tizen/tv/20170307.050340 accepted/tizen/unified/20170309.032427 accepted/tizen/wearable/20170307.050407 submit/tizen/20170306.070018 submit/tizen_unified/20170308.100406
jongmyeongko [Sat, 4 Mar 2017 09:01:24 +0000 (18:01 +0900)]
Release version 0.4.0

Changes:
 - Export API of StepManifestAdjustment
 - Fix smoke test
 - Add signature check step in RW partial request
 - Add KillApp step in RW partial update
 - Fix StepConvertXml

Change-Id: I0402833622cb1d261501e84e63dcff9d458e112c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoExport API of StepManifestAdjustment 22/116622/4
Bartlomiej Kunikowski [Mon, 27 Feb 2017 08:52:59 +0000 (09:52 +0100)]
Export API of StepManifestAdjustment

It is needed for coming hybrid installer changes

Change-Id: I262732fc65b25558fbcaca57a33e4cdadf6be828

7 years agoFix smoke test 32/117132/1
Sangyoon Jang [Fri, 3 Mar 2017 02:30:57 +0000 (11:30 +0900)]
Fix smoke test

Recovery file format was changed.

Change-Id: I378f6c70535342b24328303401a14208d7d2c7ba
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd signature check step in RW partial request 13/117113/1
jongmyeongko [Thu, 2 Mar 2017 13:59:34 +0000 (22:59 +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: I58fe5e96492369ec34af9dd1a2c7c059e7dee459
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdd KillApp step in RW partial update 57/114557/4
jongmyeongko [Tue, 14 Feb 2017 04:39:23 +0000 (13:39 +0900)]
Add KillApp step in RW partial update

A step for killing app was missed.

Change-Id: I48481e3fe7443a6d1410e3cb97d9f1990d78ea19
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix StepConvertXml 00/114700/1
Sangyoon Jang [Tue, 14 Feb 2017 12:05:07 +0000 (21:05 +0900)]
Fix StepConvertXml

Backup and restore original manifest file if needed.

Change-Id: Ib5aba7f85c624242ec4ee9320b907322eb73a700
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRemove TODO 76/114476/2
Piotr Ganicz [Mon, 13 Feb 2017 11:10:57 +0000 (12:10 +0100)]
Remove TODO

There are no privilege duplications because they are stored in set.
And set can contain only unique keys.

Change-Id: I0e3c066cdc5f2de3ab3ca46af92e7e13f8eddc53

7 years agoRelease version 0.3.1 82/114482/1 accepted/tizen/common/20170214.173609 accepted/tizen/ivi/20170214.225656 accepted/tizen/mobile/20170214.225558 accepted/tizen/tv/20170214.225618 accepted/tizen/wearable/20170214.225638 submit/tizen/20170213.123058
Sangyoon Jang [Mon, 13 Feb 2017 11:24:51 +0000 (20:24 +0900)]
Release version 0.3.1

Changes:
 - Fix recovery mode
 - Fix a bug in ManifestDirectInstall
 - Fix smoke tests

Change-Id: Ic7010879017814dc4703ffdf771771905d24c2f4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoMerge "Perform check-signature before manifest-adjust" into tizen
jongmyeong ko [Fri, 10 Feb 2017 08:40:03 +0000 (00:40 -0800)]
Merge "Perform check-signature before manifest-adjust" into tizen

7 years agoSmoke tests - check if package dont exist in user's directories 07/114007/3
Damian Pietruchowski [Thu, 9 Feb 2017 13:02:40 +0000 (14:02 +0100)]
Smoke tests - check if package dont exist in user's directories

This is required by:
DeinstallationMode
RecoveryMode_Tpk_Installation
RecoveryMode_ForMountInstall
InstallationMode_Rollback

Change-Id: Id7f08d4d95da03c869f40575f0f29fd16892ffff
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoUninstalling smoke packages to clear security context 35/111835/4
Bartlomiej Kunikowski [Tue, 24 Jan 2017 08:44:00 +0000 (09:44 +0100)]
Uninstalling smoke packages to clear security context

For properly work, every smoke package need to has
pkgid beginning with 'smoke', ex. 'smoketpk01'

Requires:
 - https://review.tizen.org/gerrit/#/c/111709/

Verification:
 - please use 'find / -name "*smoke*" | grep rules' commend
   to see if there are no smoke tests entries in security rules

 - for now there is some bug in recovery mode for installation
   and there are some rules in security-mnager after this mode,
   but for other uninstallation works properly

Change-Id: I9cbfaead2dfca6dc1a8e851da932b1f6dd3e958a

7 years agoMerge "Step Recover Per User Directories for Recovery Mode added" into tizen
jongmyeong ko [Fri, 10 Feb 2017 08:37:33 +0000 (00:37 -0800)]
Merge "Step Recover Per User Directories for Recovery Mode added" into tizen

7 years agoSmoke tests for preload installation, update and deinstallation 09/111709/9
Damian Pietruchowski [Mon, 23 Jan 2017 13:12:01 +0000 (14:12 +0100)]
Smoke tests for preload installation, update and deinstallation

Verification: Run new smoke tests as superuser (root)

Change-Id: Ie5cc65e111fc7f4ff161305630c79b252c5b32cc
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoPerform check-signature before manifest-adjust 59/114059/1
Jaganmohan K [Wed, 8 Feb 2017 09:34:23 +0000 (15:04 +0530)]
Perform check-signature before manifest-adjust

- Incase of Manifest installation, manifest-adjust step is
  performed before security step

Change-Id: I6a93f58d7bc47046d9a90e8aadfbf68c204456aa
Signed-off-by: Jaganmohan K <j.kanakala@samsung.com>
7 years agoStep Recover Per User Directories for Recovery Mode added 13/114013/1
Damian Pietruchowski [Thu, 9 Feb 2017 13:39:59 +0000 (14:39 +0100)]
Step Recover Per User Directories for Recovery Mode added

Requires:
- https://review.tizen.org/gerrit/#/c/114007/
- https://review.tizen.org/gerrit/#/c/112049/

Verification: Run SmokeTest.RecoveryMode_Tpk_Installation

Change-Id: I7e2103c14a19a6335e61778467e30ef2cfd3fac0
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoRelease version 0.3.0 57/113957/1 accepted/tizen/common/20170209.122459 accepted/tizen/ivi/20170210.004210 accepted/tizen/mobile/20170210.003837 accepted/tizen/tv/20170210.004014 accepted/tizen/wearable/20170210.004109 submit/tizen/20170209.083108
Sangyoon Jang [Thu, 9 Feb 2017 10:49:36 +0000 (19:49 +0900)]
Release version 0.3.0

Changes:
 - Add ttrace logs
 - Fix & Add some smoke tests
 - Change tizen version string for standard
 - Fix build warning
 - Fix code style

Change-Id: I3a2f717386e711df86dd0a49689d10efee0783eb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoMissing smoke tests for tpk-backend 74/112774/5
Damian Pietruchowski [Thu, 2 Feb 2017 14:38:28 +0000 (15:38 +0100)]
Missing smoke tests for tpk-backend

RecoveryMode_ForMountInstall
RecoveryMode_ForMountUpdate
MountInstallationMode_Rollback
MountUpdateMode_Rollback.

Requires: https://review.tizen.org/gerrit/#/c/112744/

Change-Id: I487474d8c0d36153ed0bb0e0e4a4080b544feb7d
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoMissing smoke tests for tpk-backend 44/112744/4
Damian Pietruchowski [Thu, 2 Feb 2017 11:32:20 +0000 (12:32 +0100)]
Missing smoke tests for tpk-backend

InstallationMode_Rollback
InstallationMode_GoodSignature
InstallationMode_WrongSignature
RecoveryMode_ForDelta
UpdateMode_Rollback

Change-Id: I9b72ee220068e41c095b3bb22063ca630b6ac23d
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoSmoke test DeltaMode_Tpk_Rollback 81/111681/3
Bartlomiej Kunikowski [Mon, 23 Jan 2017 10:23:52 +0000 (11:23 +0100)]
Smoke test DeltaMode_Tpk_Rollback

Verification:
 $ /usr/bin/tpk-backend-ut/smoke-tests
        --gtest_filter=SmokeTest.DeltaMode_Tpk_Rollback

Change-Id: Ie8d4dd72a857304c06178380c03199ab8ac65948

7 years agoStyle check 19/112519/1
Piotr Ganicz [Wed, 1 Feb 2017 08:04:57 +0000 (09:04 +0100)]
Style check

Change-Id: I5a42fc44148b91f076b2ce3d43527afb27b054d2

7 years agoFix build warning, coding rule 46/112446/1
Junghyun Yeon [Wed, 1 Feb 2017 05:02:41 +0000 (14:02 +0900)]
Fix build warning, coding rule

- Fix build warning and coding rule

Change-Id: Ia66bec86eb7b415cbf844ce60abe12a5ea5f68b0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoChange version string 06/112306/2
Junghyun Yeon [Tue, 31 Jan 2017 05:39:15 +0000 (14:39 +0900)]
Change version string

- Change version string from 2.4.0 to 2.4 for versioning standard.
(Currently Tizen does not display patch version if it is 0)

Change-Id: I56439cf6f11de20fc17714b98fd5f9694c7128e4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix for smoke tests 51/111651/2
Bartlomiej Kunikowski [Mon, 23 Jan 2017 08:21:18 +0000 (09:21 +0100)]
Fix for smoke tests

 - SmokeTest.InstallExternal_Tpk
 - SmokeTest.MigrateLegacyExternalImage_Tpk

Above test throws an exception when in device there
is no SD Card. This patch repairs it.

Change-Id: Ia535ac072231e69bf131c76e12dde28cc988e6f8

7 years agoAdd ttrace logs 29/111029/2
Junghyun Yeon [Thu, 19 Jan 2017 07:49:58 +0000 (16:49 +0900)]
Add ttrace logs

Change-Id: Ia13ea3e061d4f08e122786e0e17a2b763d176c3c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease Version 0.2.0 45/111045/1 accepted/tizen/common/20170125.112736 accepted/tizen/ivi/20170119.222122 accepted/tizen/mobile/20170119.221602 accepted/tizen/tv/20170119.221838 accepted/tizen/wearable/20170119.222011 submit/tizen/20170119.070147
jongmyeongko [Thu, 19 Jan 2017 08:24:46 +0000 (17:24 +0900)]
Release Version 0.2.0

Changes:
- Adjust some values in xml

the changes are not signicant but let's start new minor version
as the first relase version.

Change-Id: I92ca360820864b13c3912a49a9e2dfb5d2643bf8
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoMake the library version to be same as the pakcage version 44/111044/1
jongmyeongko [Thu, 19 Jan 2017 08:22:59 +0000 (17:22 +0900)]
Make the library version to be same as the pakcage version

Change-Id: I2ca3c0a1f0d34f29c6c910bd3ff24dcd7a3fb243
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdjust some values in xml 53/109553/12 accepted/tizen/3.0/common/20170120.102132 accepted/tizen/3.0/ivi/20170119.225313 accepted/tizen/3.0/mobile/20170119.225224 accepted/tizen/3.0/tv/20170119.225241 accepted/tizen/3.0/wearable/20170119.225255 submit/tizen_3.0/20170118.065338
Junghyun Yeon [Tue, 10 Jan 2017 11:04:04 +0000 (20:04 +0900)]
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

Change-Id: I1bc03b72b1b0133da88f36d0b28696397e25ab62
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoMerge "Remove tmpdir when failed to getting icon info" into tizen_3.0 accepted/tizen/3.0/common/20170109.195833 accepted/tizen/3.0/ivi/20170109.073411 accepted/tizen/3.0/tv/20170110.055239 accepted/tizen/common/20170112.174432 accepted/tizen/ivi/20170112.222530 accepted/tizen/mobile/20170112.222419 accepted/tizen/tv/20170112.222445 accepted/tizen/wearable/20170112.222509 submit/tizen/20170112.013301 submit/tizen_3.0/20170106.072144 submit/tizen_3.0/20170106.102334
jongmyeong ko [Fri, 6 Jan 2017 06:10:00 +0000 (22:10 -0800)]
Merge "Remove tmpdir when failed to getting icon info" into tizen_3.0

7 years agoRemove tmpdir when failed to getting icon info 48/108848/1
Sangyoon Jang [Fri, 6 Jan 2017 04:58:19 +0000 (13:58 +0900)]
Remove tmpdir when failed to getting icon info

Change-Id: I809ef4c74ef15e2f87361b0020686b327e79519f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoSupport legacy image for backward-compatibility 25/107125/15
jongmyeongko [Mon, 26 Dec 2016 16:10:26 +0000 (01:10 +0900)]
Support legacy image for backward-compatibility

Refer to:
https://review.tizen.org/gerrit/#/c/104823/

Change-Id: Iecd555fc211e9b5f85df51d4effdeea525af43d3
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix smoke test 80/108480/1 accepted/tizen/3.0/common/20170109.083923 accepted/tizen/3.0/ivi/20170106.094959 accepted/tizen/3.0/mobile/20170106.094801 accepted/tizen/3.0/tv/20170106.094902 accepted/tizen/3.0/wearable/20170106.094930 accepted/tizen/common/20170110.085236 accepted/tizen/ivi/20170106.103655 accepted/tizen/mobile/20170106.103457 accepted/tizen/tv/20170106.103542 accepted/tizen/wearable/20170106.103619 submit/tizen/20170105.051706 submit/tizen_3.0/20170105.051635
Sangyoon Jang [Wed, 4 Jan 2017 11:56:58 +0000 (20:56 +0900)]
Fix smoke test

Check gid of cache dir is system_share.

Change-Id: Ia09306b6bd71ea83a2f8744f7ab44bbe00424d4a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix tpk lib to extract manifest and icon only 74/108474/2
Sangyoon Jang [Wed, 4 Jan 2017 11:23:25 +0000 (20:23 +0900)]
Fix tpk lib to extract manifest and icon only

Extracting shared/res dir can cause memory issue.
Instead of extracting shared/res dir, tpk lib will find icon file from
manifest and extract icon file only.

Change-Id: I18750638a18a4451d02bd3bdbfda859f49d4c5d5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRemove codes which refers deleted attribute 34/107034/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.121827 accepted/tizen/3.0.m2/tv/20170104.122604 accepted/tizen/3.0.m2/wearable/20170104.122919 accepted/tizen/3.0/common/20161227.181335 accepted/tizen/3.0/ivi/20161227.141650 accepted/tizen/3.0/mobile/20161227.141455 accepted/tizen/3.0/tv/20161227.141529 accepted/tizen/3.0/wearable/20161227.141628 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161226.101740
Junghyun Yeon [Mon, 26 Dec 2016 07:32:30 +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
[wgt-backend] : https://review.tizen.org/gerrit/107035

Change-Id: Ie39dd87bbf51d3c9a07706b2a7f0110f32e69c76
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRemove creating symlink of executable file 30/106830/2
Sangyoon Jang [Fri, 23 Dec 2016 07:27:08 +0000 (16:27 +0900)]
Remove creating symlink of executable file

Tpk package doesn't need symlink of executable file.

Change-Id: I2b10b31440add2f8ab00e743da8b7502130981b5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix smoketest 19/106819/3
Sangyoon Jang [Fri, 23 Dec 2016 07:03:05 +0000 (16:03 +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: I160009196d8f7997fe91ebd2d8ab0d653b2da347
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRemove cleardata feature from backend 03/106603/4 accepted/tizen/3.0/common/20161228.071514 accepted/tizen/3.0/ivi/20161226.030249 accepted/tizen/3.0/mobile/20161226.030107 accepted/tizen/3.0/tv/20161226.030157 accepted/tizen/3.0/wearable/20161226.030224 submit/tizen_3.0/20161223.043050
Junghyun Yeon [Thu, 22 Dec 2016 07:15:54 +0000 (16:15 +0900)]
Remove cleardata feature from backend

- Cleardata will be handled by pkg_cleardata
so remove features reated with it

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
[wgt-backend] : https://review.tizen.org/gerrit/106601

Change-Id: Iaa0ebe8786a4910ff76422f0935089e55574ff82
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agomove the behavior of StepGrantPermission step to StepChangeOwnershipAndPermission 61/103361/3 accepted/tizen/3.0/common/20161212.060241 accepted/tizen/3.0/ivi/20161212.022737 accepted/tizen/3.0/mobile/20161212.022418 accepted/tizen/3.0/tv/20161212.022632 accepted/tizen/3.0/wearable/20161212.022706 submit/tizen_3.0/20161209.072525
jongmyeongko [Thu, 8 Dec 2016 06:29:24 +0000 (15:29 +0900)]
move the behavior of StepGrantPermission step to StepChangeOwnershipAndPermission

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

Change-Id: Ideb73e83f2f4c92bd5a33e06242f9c73a873eb62
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoCreation for symbolic link will not skipped 57/102257/4
Junghyun Yeon [Mon, 5 Dec 2016 08:45:51 +0000 (17:45 +0900)]
Creation for symbolic link will not skipped
even if request mode is manifestdirect-operations

Change-Id: I14362452d05c4b1d581c77460aebfd991d1b19e4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agogrant 'x' permission to app_root directory 27/103227/2 accepted/tizen/3.0/common/20161209.094815 accepted/tizen/3.0/ivi/20161209.001943 accepted/tizen/3.0/mobile/20161209.001849 accepted/tizen/3.0/tv/20161209.001920 accepted/tizen/3.0/wearable/20161209.001931 submit/tizen_3.0/20161208.065808
jongmyeongko [Wed, 7 Dec 2016 15:46:13 +0000 (00:46 +0900)]
grant 'x' permission to app_root directory

Change-Id: Id4785d68cfd12398b61110093fa308217f2875d2
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdjust to change of support ambient 64/103164/1 accepted/tizen/3.0/common/20161208.153342 accepted/tizen/3.0/ivi/20161208.062723 accepted/tizen/3.0/mobile/20161208.062401 accepted/tizen/3.0/tv/20161208.062549 accepted/tizen/3.0/wearable/20161208.062633 submit/tizen_3.0/20161207.072901
Sangyoon Jang [Wed, 7 Dec 2016 11:25:04 +0000 (20:25 +0900)]
Adjust to change of support ambient

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

Change-Id: I2417cabc6cf6af7d2097abf11e950dba2ae15902
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoCreation of external appdata will not performed 00/102300/3 accepted/tizen/3.0/common/20161207.194739 accepted/tizen/3.0/ivi/20161207.012953 accepted/tizen/3.0/mobile/20161207.012901 accepted/tizen/3.0/tv/20161207.012917 accepted/tizen/3.0/wearable/20161207.012934 submit/tizen_3.0/20161206.101358
Junghyun Yeon [Mon, 5 Dec 2016 09:55:03 +0000 (18:55 +0900)]
Creation of external appdata will not performed
when there are no external path available

Change-Id: I0e8e162bd3f80be36b434adc8cb113e067fea799
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoadd missing steps in partial case. 96/102396/1
jongmyeongko [Mon, 5 Dec 2016 13:34:32 +0000 (22:34 +0900)]
add missing steps in partial case.

Change-Id: If8b2ef978475234724590cfe1bc7ff73ebfad2cc
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix smoke test 17/101417/1 accepted/tizen/3.0/common/20161206.125810 accepted/tizen/3.0/ivi/20161206.000409 accepted/tizen/3.0/mobile/20161206.000224 accepted/tizen/3.0/tv/20161206.000332 accepted/tizen/3.0/wearable/20161206.000351 submit/tizen_3.0/20161205.120256
Sangyoon Jang [Thu, 1 Dec 2016 06:26:50 +0000 (15:26 +0900)]
Fix smoke test

Now gid of data, shared/data dir is system_share.

Change-Id: I85a3d4f71571b00972763d40dc0cce44821ee9c3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd new steps: ReadonlyUpdateInstall, ReadonlyUpdateUninstall 80/97080/8 accepted/tizen/3.0/common/20161203.012111 accepted/tizen/3.0/ivi/20161201.075317 accepted/tizen/3.0/mobile/20161201.075032 accepted/tizen/3.0/tv/20161201.075159 accepted/tizen/3.0/wearable/20161201.075235 submit/tizen_3.0/20161130.132739 submit/tizen_3.0/20161201.024602
Sangyoon Jang [Fri, 11 Nov 2016 06:16:12 +0000 (15:16 +0900)]
Add new steps: ReadonlyUpdateInstall, ReadonlyUpdateUninstall

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

Change-Id: I36c1fb3e4a22fc9fc0e3d53f73a678c591b923c1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoapply new features 08/100908/3
jongmyeongko [Mon, 28 Nov 2016 16:57:03 +0000 (01:57 +0900)]
apply new features

- force-clean
- partial install/update

Requires :
https://review.tizen.org/gerrit/#/c/100625/
https://review.tizen.org/gerrit/#/c/100323/
https://review.tizen.org/gerrit/#/c/100891/

Change-Id: Ia5961f7f8704e1cf45181a8848a0cbb0900093c7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoimplement partial install/upgrade feature on writable space (such as /opt) 24/100324/3
jongmyeongko [Sun, 27 Nov 2016 11:04:11 +0000 (20:04 +0900)]
implement partial install/upgrade feature on writable space (such as /opt)

Change-Id: I6c684115b7f880f97b6d663833461202fa87952e
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoStop using pkgdir-tool for directory operation 64/100364/1
Junghyun Yeon [Mon, 28 Nov 2016 02:41:38 +0000 (11:41 +0900)]
Stop using pkgdir-tool for directory operation

- Backend has cap itself so another tool dedicated to directory operation
is no more needed
- Adjust order of including header for coding style

Change-Id: Ie86d253303e1a013400ba6dcc5b5e38bae2f2c3d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix for MountUpdateMode_Rollback_Hybrid 25/98725/6 accepted/tizen/3.0/common/20161125.101733 accepted/tizen/3.0/ivi/20161125.081916 accepted/tizen/3.0/mobile/20161125.081412 accepted/tizen/3.0/tv/20161125.081721 accepted/tizen/3.0/wearable/20161125.081828 submit/tizen_3.0/20161124.130849
Bartlomiej Kunikowski [Fri, 18 Nov 2016 10:43:39 +0000 (11:43 +0100)]
Fix for MountUpdateMode_Rollback_Hybrid

The backup directory was not removed in undo for StepTpkPreparePackageDirectory.

Verify:
 # su - app_fw
 $ /usr/bin/wgt-backend-ut/smoke-test

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

Requires:
 - https://review.tizen.org/gerrit/#/c/97898/

Change-Id: Ief869db12206cc7c05424ab56848aa2089b86788
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix for MountInstallationMode_Rollback_Hybrid 98/97898/5
Bartlomiej Kunikowski [Thu, 20 Oct 2016 08:31:04 +0000 (10:31 +0200)]
Fix for MountInstallationMode_Rollback_Hybrid

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

To verify run wgt-backend smoke test

Change-Id: Ifb5412896b5e898547f05101f54021b186c11408

7 years agoapply extended concept of package's attribute. 16/99116/5
jongmyeongko [Tue, 22 Nov 2016 02:40:52 +0000 (11:40 +0900)]
apply extended concept of package's attribute.

Requires :
https://review.tizen.org/gerrit/#/c/99039/

Change-Id: I56153446d3a277b5342cebb24422800247cbfd10
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoImplement tpk backend library 43/97443/12 accepted/tizen/3.0/common/20161124.181943 accepted/tizen/3.0/ivi/20161124.030511 accepted/tizen/3.0/mobile/20161124.030352 accepted/tizen/3.0/tv/20161124.030425 accepted/tizen/3.0/wearable/20161124.030449 accepted/tizen/common/20161125.095050 accepted/tizen/ivi/20161125.004128 accepted/tizen/mobile/20161125.003522 accepted/tizen/tv/20161125.003855 accepted/tizen/wearable/20161125.004007 submit/tizen/20161124.000829 submit/tizen_3.0/20161123.114701
Sangyoon Jang [Tue, 7 Jun 2016 11:12:53 +0000 (20:12 +0900)]
Implement tpk 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: I81d302854c73d1975bc3ce3e3bc5d13b2089812b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd StepCheckInstallable 77/98477/1 accepted/tizen/3.0/common/20161118.192956 accepted/tizen/3.0/ivi/20161118.004148 accepted/tizen/3.0/mobile/20161118.004011 accepted/tizen/3.0/tv/20161118.004104 accepted/tizen/3.0/wearable/20161118.004127 submit/tizen_3.0/20161117.054138
Sangyoon Jang [Thu, 17 Nov 2016 10:26:55 +0000 (19:26 +0900)]
Add StepCheckInstallable

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

Change-Id: Ic7e4a155528575ef16d4d057fc208c5c84fdd1d6
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix CMakeLists.txt 73/98173/2
Sangyoon Jang [Wed, 16 Nov 2016 10:30:52 +0000 (19:30 +0900)]
Fix CMakeLists.txt

To make extendible for adding source & header files.

Change-Id: Ibfcc5a8671854391cdc64c496cfde93d6ca130c0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix memory leak 32/96032/2 accepted/tizen/3.0/common/20161114.081549 accepted/tizen/3.0/ivi/20161110.015555 accepted/tizen/3.0/mobile/20161110.015326 accepted/tizen/3.0/tv/20161110.015434 accepted/tizen/3.0/wearable/20161110.015526 submit/tizen_3.0/20161107.133644 submit/tizen_3.0_common/20161110.084657
Hwankyu Jhun [Mon, 7 Nov 2016 11:06:39 +0000 (20:06 +0900)]
Fix memory leak

Change-Id: I24df29fa7e14840d678af2d8da3d1f1488c28f07
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoReworking handling privileges for hybrid application 46/90546/5
Tomasz Iwanek [Fri, 30 Sep 2016 08:09:14 +0000 (10:09 +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: I3cee36962fc3763636e430353cf4ebd362cbe37a

7 years agoPatch reinstall/RDS according to SDK behaviour 30/91430/3 accepted/tizen/3.0/ivi/20161028.123107 accepted/tizen/3.0/mobile/20161028.122418 accepted/tizen/3.0/tv/20161028.122639 accepted/tizen/3.0/wearable/20161028.122904 accepted/tizen/common/20161013.155647 accepted/tizen/ivi/20161014.074156 accepted/tizen/mobile/20161014.074052 accepted/tizen/tv/20161014.074117 accepted/tizen/wearable/20161014.074135 submit/tizen/20161012.122424 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082323 submit/tizen_3.0_common/20161104.104000
Tomasz Iwanek [Fri, 7 Oct 2016 08:04:20 +0000 (10:04 +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: I20bf9195dfa17dc449a9ba790308eef47bc126b5

7 years agoFix TpkAppQueryInterface 65/90065/6
Sangyoon Jang [Fri, 30 Sep 2016 08:07:00 +0000 (17:07 +0900)]
Fix TpkAppQueryInterface

Don't parse again argv, argc.
They are already parsed by PkgMgrInterface.

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

Change-Id: Ieb8b9468eb60d21561f6f3e54b79dbc1bd1c81a3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix ValidatePackageFS in smoke tests 23/88123/2
Tomasz Iwanek [Tue, 13 Sep 2016 12:11:24 +0000 (14:11 +0200)]
Fix ValidatePackageFS in smoke tests

Run smoke tests to verify.

Change-Id: I864e76843a9272a69d4d90a13113f3a50c7d10fc

7 years agoremove the profile macro in the spec file. it's not used. 57/88457/1 accepted/tizen/3.0/ivi/20161011.065040 accepted/tizen/3.0/mobile/20161015.034254 accepted/tizen/3.0/tv/20161016.005856 accepted/tizen/3.0/wearable/20161015.084321 accepted/tizen/common/20160920.131840 accepted/tizen/ivi/20160920.231600 accepted/tizen/mobile/20160920.231502 accepted/tizen/tv/20160920.231525 accepted/tizen/wearable/20160920.231542 submit/tizen/20160920.011443 submit/tizen_3.0_ivi/20161010.000007 submit/tizen_3.0_mobile/20161015.000007 submit/tizen_3.0_tv/20161015.000006 submit/tizen_3.0_wearable/20161015.000006
jongmyeongko [Mon, 19 Sep 2016 07:48:02 +0000 (16:48 +0900)]
remove the profile macro in the spec file. it's not used.

Change-Id: I6312e20baddc46150f4c902cb1ec6b305c090f9f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix change owner for recovery mode 96/87796/3
Bartlomiej Kunikowski [Fri, 9 Sep 2016 09:35:20 +0000 (11:35 +0200)]
Fix change owner for recovery mode

Requires:
 - https://review.tizen.org/gerrit/#/c/87795/

Change-Id: If9b3eacd5fbbcdb8232df8d93ff5e16f20eb8d0c

7 years agoAdd package file ownership checking to smoke tests 58/87758/3
Bartlomiej Kunikowski [Fri, 9 Sep 2016 09:18:05 +0000 (11:18 +0200)]
Add package file ownership checking to smoke tests

All tests passed after making fixes:
 - https://review.tizen.org/gerrit/#/c/87795/
 - https://review.tizen.org/gerrit/#/c/87796/

Change-Id: Id4485dadbec220ed8dcb7e5beedefb48ca5f2be6

7 years agoSmoke tests for TEP 94/87494/3
Tomasz Iwanek [Wed, 7 Sep 2016 14:11:44 +0000 (16:11 +0200)]
Smoke tests for TEP

Run new tests to verify.

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

Change-Id: Ie6a24c2e90b8a762d3d71356f4ba3cacecc11cbb

7 years agoadd StepConvertXml for manifestdirectinstall 46/86846/6 accepted/tizen/common/20160909.115039 accepted/tizen/ivi/20160909.122422 accepted/tizen/mobile/20160909.122328 accepted/tizen/tv/20160909.122345 accepted/tizen/wearable/20160909.122404 submit/tizen/20160909.054902 submit/tizen/20160909.060412
Junghyun Yeon [Mon, 5 Sep 2016 07:11:47 +0000 (16:11 +0900)]
add StepConvertXml for manifestdirectinstall

-add StepConvertXml for manifest direct install/update
to support FOTA update
-add pkg type checking routine to not to convert xml
for rpm pkgs

Related changes
[pkgmgr-tool] : https://review.tizen.org/gerrit/#/c/83327/
[app-installers] : https://review.tizen.org/gerrit/#/c/86789/
[wgt-backend] : https://review.tizen.org/gerrit/#/c/87472/

Change-Id: Icd114c20673c65285287957ef73cf607b629a67d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRecovery mode for mount install and mount update 40/86740/1
Tomasz Iwanek [Fri, 2 Sep 2016 11:41:02 +0000 (13:41 +0200)]
Recovery mode for mount install and mount update

Recovery mode requires mounting zip package.
Signature files  which needs to be read in next
step are within zip package.

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

Change-Id: Ifeb808d5e23a2b607a88dde01d5d252d5bb64425

7 years agoSet correct exec label for smoke tests 07/86307/1
Tomasz Iwanek [Wed, 31 Aug 2016 09:46:28 +0000 (11:46 +0200)]
Set correct exec label for smoke tests

Otherwise, running from shell gives
"System::Privileged" instead of "System".

To verify run:
 $ usermod -s /bin/bash app_fw
 $ chsmack -a _ /etc/passwd
 $ su - app_fw
 $ /usr/bin/tpk-backend-ut/smoke_test

Change-Id: I9d099c94f5b2d77d55d64063118a3f64a7c80c37

7 years agoForce uninstall for external storage packages 79/86079/2
Bartlomiej Kunikowski [Tue, 30 Aug 2016 11:14:17 +0000 (13:14 +0200)]
Force uninstall for external storage packages

Now errors from StepAcquireExternalStorage are ignored in uninstall mode
by using StepOptionalAcquireExternalStorage instead of old step.

Requires:
 - https://review.tizen.org/gerrit/#/c/86078/

Change-Id: I1c6d7e010077e2f1dfdad0a73696fe0e8f77e16c

7 years agoFix tpk reinstall mode signature checking 93/85693/2
Tomasz Iwanek [Fri, 26 Aug 2016 09:32:56 +0000 (11:32 +0200)]
Fix tpk reinstall mode signature checking

Submit together:
 - https://review.tizen.org/gerrit/#/c/85692/
 - https://review.tizen.org/gerrit/#/c/85693/

Change-Id: I93d81e0f9e936c094e38181e09e0d196acd23b41

7 years agoStepTpkRecoverSignature 98/84598/2 accepted/tizen/common/20160829.135942 accepted/tizen/common/20160830.150151 accepted/tizen/ivi/20160830.061219 accepted/tizen/mobile/20160830.060943 accepted/tizen/tv/20160830.061048 accepted/tizen/wearable/20160830.061133 submit/tizen/20160829.010716 submit/tizen/20160830.010724
Tomasz Iwanek [Fri, 19 Aug 2016 10:28:17 +0000 (12:28 +0200)]
StepTpkRecoverSignature

To verify, run test:
 app_fw$ /usr/bin/tpk-backend-ut/smoke-test --gtest_filter=SmokeTest.RecoveryMode_Tpk_Update

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

Change-Id: Ia6190c712fd89ef63d89d6d32f4b67b8f83813d2

7 years agoUser 'app_fw' for smoke tests 64/84564/3
Tomasz Iwanek [Wed, 17 Aug 2016 13:31:04 +0000 (15:31 +0200)]
User 'app_fw' for smoke tests

To verify, run:
 app_fw@localhost:~$ /usr/bin/tpk-backend-ut/smoke-test

One fail expected: 'SmokeTest.RecoveryMode_Tpk_Update' (on second run)
This will be fixed separately.

Requires: https://review.tizen.org/gerrit/#/c/84457/

Change-Id: I346825789d0f00279f3157bb8098beaae8818d41

7 years agoRemove TODO 98/84198/1
Tomasz Iwanek [Wed, 17 Aug 2016 08:36:13 +0000 (10:36 +0200)]
Remove TODO

These tests will not be added.

Change-Id: I801c625b2328763ac2538a754e11977b37cfaf79

7 years agosymlink control for read-only files of global app. 03/81503/11 accepted/tizen/common/20160817.133226 accepted/tizen/common/20160818.144506 accepted/tizen/ivi/20160819.063348 accepted/tizen/mobile/20160819.063206 accepted/tizen/tv/20160819.063330 accepted/tizen/wearable/20160819.063313 submit/tizen/20160817.084623 submit/tizen/20160818.060816
jongmyeongko [Tue, 26 Jul 2016 12:20:52 +0000 (21:20 +0900)]
symlink control for read-only files of global app.

this is for new concept to support legacy app_path
for backward compatibility.

Requires:
https://review.tizen.org/gerrit/#/c/81493/

Change-Id: Iaa67c73e07dc49351866efbf89da864d31586905
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agotpk/wgt backend will run as system session 87/80787/15 accepted/tizen/common/20160812.140734 accepted/tizen/ivi/20160815.233243 accepted/tizen/mobile/20160815.233110 accepted/tizen/tv/20160815.233201 accepted/tizen/wearable/20160815.233221 submit/tizen/20160811.013634 submit/tizen/20160811.062803 submit/tizen/20160812.053402
Junghyun Yeon [Wed, 20 Jul 2016 07:49:32 +0000 (16:49 +0900)]
tpk/wgt backend will run as system session

Related changes
[slp-pkgmgr] https://review.tizen.org/gerrit/#/c/80764/
[pkgmgr-server] https://review.tizen.org/gerrit/#/c/78205/
[app-installers] https://review.tizen.org/gerrit/#/c/78206/
[wgt-backend] https://review.tizen.org/gerrit/#/c/81099/

Change-Id: I8170e2058b97357756847d6dc2cf1e7346345d4b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd StepAdjustInstallLocation 47/83447/2
Sangyoon Jang [Thu, 11 Aug 2016 03:19:17 +0000 (12:19 +0900)]
Add StepAdjustInstallLocation

This step adjusts install location for 3rd party(Public privilege level)
package. 3rd party packages cannot set install location by itself, so
installer set it as 'auto' by force.

Change-Id: I2608741c0714c336b72489bc453224c46aa70f90
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdjust to change in StepAcquireExternalStorage 99/83299/1
Sangyoon Jang [Wed, 10 Aug 2016 05:12:49 +0000 (14:12 +0900)]
Adjust to change in StepAcquireExternalStorage

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

Change-Id: Ied21bce58708d558c0b1cce52f4cca230cf19821
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agomodify smoke-test setup for consideration of user-db change. 00/83000/1 accepted/tizen/common/20160809.183911 accepted/tizen/ivi/20160809.232605 accepted/tizen/mobile/20160809.232335 accepted/tizen/tv/20160809.232454 accepted/tizen/wearable/20160809.232700 submit/tizen/20160809.011327 submit/tizen/20160809.051427
jongmyeongko [Mon, 8 Aug 2016 13:50:00 +0000 (22:50 +0900)]
modify smoke-test setup for consideration of user-db change.

Change-Id: I4d5d92ecdfc93b079dd7ce6f1a2b16c5b316f343
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agocheck null value of extra icon path and, 53/82853/1
jongmyeongko [Mon, 8 Aug 2016 07:20:48 +0000 (16:20 +0900)]
check null value of extra icon path and,

remove unit-test code for extra icon path.

Change-Id: I3b164d3348bf3b695ad73a4b556209cc7df42f8b
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>