platform/core/appfw/app-installers.git
2 years agoFix Recovery of ReadonlyUpdateInstall package's update 77/282777/2 tizen_3.0
Ilho Kim [Wed, 21 Sep 2022 10:35:03 +0000 (19:35 +0900)]
Fix Recovery of ReadonlyUpdateInstall package's update

Fix that the package system attribute is changed
when recovery is performed becuase the installer is terminated during
the update of the ReadonlyUpdateInstalled package

Change-Id: I23d2afb9a73864f0da286bdb430cd792f583b833
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
(cherry picked from commit 68bf3d4069fb9bd6f139e2e0e993264541076636)

2 years agoFix a bug when recover preload-rw update 76/282776/2
Sangyoon Jang [Mon, 18 Mar 2019 06:08:53 +0000 (15:08 +0900)]
Fix a bug when recover preload-rw update

The preload-rw package should not be a system package.

Change-Id: Iba5d917105fbdbfc699cd9a55403097638446aa3
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit 2dc179fa36bdef817cd30a5c60ab2fc7d5ad5cf1)

2 years agoFix StepRecoverApplication 75/282775/2
Sangyoon Jang [Wed, 17 Jan 2018 05:38:59 +0000 (14:38 +0900)]
Fix StepRecoverApplication

When recover updated preloaded package, some attributes should be set
properly.

Change-Id: Id189bb3a238036cae812d8ba9cc933cbb8a021af
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit 7505e662bc7dae7d1789db339fe82938066b0cfe)

2 years agoCreate recovery file for ReadonlyUpdateInstall mode 80/282780/1
Sangyoon Jang [Wed, 17 Jan 2018 12:02:48 +0000 (21:02 +0900)]
Create recovery file for ReadonlyUpdateInstall mode

Change-Id: If8ba050f8ece5c3558eed6fcf94033a5e8e75a3b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit e51b37ac8b0c3d260cee47387e78a10101aed053)

2 years agoAdd recovery mode for ReadonlyUpdateInstall 74/282774/2
Sangyoon Jang [Fri, 3 Nov 2017 10:11:10 +0000 (19:11 +0900)]
Add recovery mode for ReadonlyUpdateInstall

Change-Id: I0d672be7831354a5e76d63e67b9220cfd40763ce
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit deaf56fb31def6633e172ef9b83b5303468edaad)

2 years agoAdd parameter to StepRemovePerUserStorageDirectories 46/277546/1
Ilho Kim [Tue, 5 Jul 2022 12:24:03 +0000 (21:24 +0900)]
Add parameter to StepRemovePerUserStorageDirectories

This step's undo operation use StepCreateStorageDirectories
and StepCreateStorageDirectories can be execute with additional parameter

Change-Id: I86d80ede3df46985342daaa8e8c8bcbcdaf68083
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoImplement undo of RemovePerUserStorageDirectories 67/277167/1
Ilho Kim [Thu, 30 Jun 2022 06:16:28 +0000 (15:16 +0900)]
Implement undo of RemovePerUserStorageDirectories

If the uninstallation is failed after this step,
there is a problem that the user directory remains erased
so recreate the user directories removed by this step

Change-Id: Ic346217ab1cb971645bff44653027e545a430923
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoKeep removable attribute when package update 36/219736/1
Sangyoon Jang [Mon, 9 Dec 2019 12:04:58 +0000 (21:04 +0900)]
Keep removable attribute when package update

Change-Id: I3e6bcd8103d2d5bf9a8b2c79fa36242437b86bfc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoChange security code routine for performance 44/154944/4
Junghyun Yeon [Wed, 11 Oct 2017 08:41:42 +0000 (17:41 +0900)]
Change security code routine for performance

- Security-manager APIs for Security registration/unregistration logic
  has changed to send all appid at once for performance.
- So, change app-installer logic for it.

Change-Id: Ic8a9d2b98426652fec657497391458ba760d1729
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix for migrate legacy image 44/153644/3
Sangyoon Jang [Fri, 29 Sep 2017 04:27:08 +0000 (13:27 +0900)]
Fix for migrate legacy image

When migrate wgt legacy image, security context should be installed
first for path labeling.

Change-Id: I684c206b45c447c45ac398c44cc06da94e60de7a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoRemove checking existance of shared/data directory 76/160376/1
Junghyun Yeon [Wed, 15 Nov 2017 09:07:11 +0000 (18:07 +0900)]
Remove checking existance of shared/data directory

- Security context should be updated even if shared/data is existed.

Change-Id: I3e18ff55fa72523063b7283fb611c8fe7ce0665f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoCheck author signature using public key 39/157539/5
Sangyoon Jang [Wed, 25 Oct 2017 03:44:45 +0000 (12:44 +0900)]
Check author signature using public key

The certificate string value(in base64 format) will be changed when the
certificate is renewed. To verify whether two author of certificate
is same, using public key of certificate is correct instead of
entire certificate string value.

Change-Id: I99bcfce48a77b4dbf65df9d3274945db9ef27635
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoSet installed storage and external image path when ManifestDirectInstall 54/147354/1
Sangyoon Jang [Fri, 1 Sep 2017 10:40:23 +0000 (19:40 +0900)]
Set installed storage and external image path when ManifestDirectInstall

Change-Id: I3bdeb3c825ef6a0fcb3cc8eb967871dbbd0dc364
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoAdd method to get privilege level from file 54/146754/1
Junghyun Yeon [Mon, 28 Aug 2017 10:56:42 +0000 (19:56 +0900)]
Add method to get privilege level from file

- Signature1 of package has been erased after installation in earlier tizen.
- But signature is needed during migration to latest platform version
  to determine privilege level and to be stored at cert db for trusted operations.
- So, add some codes to get dist root cert value from file which is made by
  migration script.

Change-Id: Idf2fa96fb6c4fbf3e598df48e7d93bf367228628
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoSkip security path register when ReadonlyUpdateUninstall 53/145053/1
Sangyoon Jang [Fri, 18 Aug 2017 07:38:11 +0000 (16:38 +0900)]
Skip security path register when ReadonlyUpdateUninstall

Change-Id: I14ec76de118c53005b32d4e4c1aaf8b2dbfa9def
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoAdd OOM exception handler 38/143738/1 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen/3.0/common/20170816.145131 accepted/tizen/3.0/ivi/20170816.131212 accepted/tizen/3.0/mobile/20170816.131119 accepted/tizen/3.0/tv/20170816.131036 accepted/tizen/3.0/wearable/20170816.131058 submit/tizen_3.0/20170811.063413 submit/tizen_3.0/20170815.233247
Seungha Son [Fri, 4 Aug 2017 01:16:49 +0000 (10:16 +0900)]
Add OOM exception handler

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

7 years agoAdd exception handler 88/143688/1
Seungha Son [Thu, 10 Aug 2017 09:53:36 +0000 (18:53 +0900)]
Add exception handler

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

7 years agoHandle skip-check-reference option 91/142991/1
Sangyoon Jang [Tue, 25 Jul 2017 06:11:10 +0000 (15:11 +0900)]
Handle skip-check-reference option

A new installer option is introduced. When skip-check-reference flag is
set, installer will skip checking reference at signature validation step.

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

Change-Id: If1a14a199456fb2a5aa200485626d75aa7f2222d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit 3568846440055489be70eee089613aec59354ecd)

7 years agoFix build error 06/142306/1
Junghyun Yeon [Thu, 3 Aug 2017 10:03:59 +0000 (19:03 +0900)]
Fix build error

Change-Id: I861433c02a0ed30694edaab80e501e23639cd972
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix setting distributor2 certificate 25/140825/1
Sangyoon Jang [Wed, 26 Jul 2017 11:52:07 +0000 (20:52 +0900)]
Fix setting distributor2 certificate

The intermediate certificate is not mendatory for distributor2
certificates.

Change-Id: Ie97eee599aed89b3bce8c83f7e7b169212825fbb
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoStore dist2 cert info when E_SIG_REGARDED returned 60/140660/2
Sangyoon Jang [Tue, 25 Jul 2017 10:21:41 +0000 (19:21 +0900)]
Store dist2 cert info when E_SIG_REGARDED returned

Change-Id: I41a5f7eedb993234cbaee662e0e44b4ad7fd3cdc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoUpdate app root path when switching readonly mode 53/139753/1
Sangyoon Jang [Tue, 11 Jul 2017 10:23:01 +0000 (19:23 +0900)]
Update app root path when switching readonly mode

Change-Id: I8d83e12fa1c511d0061a279235ca80a5a6b83751
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoSet system_share group on data dirs when new user added 28/139428/1
Sangyoon Jang [Tue, 4 Jul 2017 02:29:04 +0000 (11:29 +0900)]
Set system_share group on data dirs when new user added

Change-Id: I81298911df07f74f5fa91d2b4b34b8ead834874c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit 04570704f6093aaf3ae7581a4f968e26d16c900a)

7 years agoMerge "Remove backup dir for shared/res feature of web app" into tizen_3.0
jongmyeongko [Mon, 17 Jul 2017 11:33:17 +0000 (11:33 +0000)]
Merge "Remove backup dir for shared/res feature of web app" into tizen_3.0

7 years agoRemove backup dir for shared/res feature of web app 40/139040/1
jongmyeongko [Mon, 17 Jul 2017 04:56:42 +0000 (13:56 +0900)]
Remove backup dir for shared/res feature of web app

This step is called at the recovery request.

Change-Id: I211d17f59d92f989862ef1affd090197aa72d03e
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoRevert "Set User::Home label to shared/res of wgt package" 74/138974/1
jongmyeong ko [Fri, 14 Jul 2017 12:21:08 +0000 (12:21 +0000)]
Revert "Set User::Home label to shared/res of wgt package"

This reverts commit c0b81d7d4896bfcc0c0c5ffb325a89aead895af1.

Change-Id: I2fdb1cb895f718794730df80074cf1c0952b0045

7 years agoSet User::Home label to shared/res of wgt package 13/138013/1
jongmyeongko [Mon, 10 Jul 2017 12:47:02 +0000 (21:47 +0900)]
Set User::Home label to shared/res of wgt package

The 'shared/res' feature is new one in tizen 3.0 for wgt package.
It has the purpose of sharing resoures with other packages.
For this, the proper lable is necessary.

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

7 years agoFix a bug on processing system packages 07/137807/1 submit/tizen_3.0/20170710.080240
Sangyoon Jang [Thu, 29 Jun 2017 10:15:06 +0000 (19:15 +0900)]
Fix a bug on processing system packages

- ReadonlyUpdateUninstall will be triggered when the package is 'system'
  and 'update' package.
- Non-removable preload package will be a non-system package after updated.

Change-Id: I6266cc8894a85bedd4e870e02357d55ad4428150
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoFix metadata plugin parser matching logic 07/134807/1 accepted/tizen/3.0/common/20170620.123133 accepted/tizen/3.0/ivi/20170620.101928 accepted/tizen/3.0/mobile/20170620.101923 accepted/tizen/3.0/tv/20170620.101935 accepted/tizen/3.0/wearable/20170620.101937 submit/tizen_3.0/20170620.081913
Sangyoon Jang [Tue, 20 Jun 2017 05:33:09 +0000 (14:33 +0900)]
Fix metadata plugin parser matching logic

Change-Id: I0cc3fc2b0cba9afc5438d80731dfcf278b5a8506
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit 95c5b8a89086acc745cdb1a4d5e568fb22beee45)

8 years agoAdd another condition for external pkgs 59/134359/1 accepted/tizen/3.0/common/20170619.133412 accepted/tizen/3.0/ivi/20170619.075729 accepted/tizen/3.0/mobile/20170619.075639 accepted/tizen/3.0/tv/20170619.075656 accepted/tizen/3.0/wearable/20170619.075713 submit/tizen_3.0/20170616.060706
Junghyun Yeon [Tue, 13 Jun 2017 09:57:36 +0000 (18:57 +0900)]
Add another condition for external pkgs

- Skip if destination file/folder is symlink
to enable manifestdirectinstall on externally installed pkgs

Change-Id: Ia10cf4bc6e080c9e31f36fe0ae46c0a3a240b498
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
(cherry picked from commit 8dc5812779199138c796d5a10ab1158a8648a4f6)

8 years agoContinue recovery process when exception occured instead of exit 44/134344/1
Sangyoon Jang [Thu, 25 May 2017 04:51:03 +0000 (13:51 +0900)]
Continue recovery process when exception occured instead of exit

Change-Id: Id45e31e2c8d252db09314d4eb898ae7b968bacb2
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit f13b06a056e4ff73232f5876907a53869c407421)

8 years agoInclude missing header 43/134343/2
Sangyoon Jang [Wed, 19 Apr 2017 05:50:56 +0000 (14:50 +0900)]
Include missing header

- Include diagnostic_information.hpp
- Remove unused headers

Change-Id: I0797138f1c8d71f5d3c2e598575627434643e3e9
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 2402a9dd5f1c329815768a177a8df1442031d814)

8 years agoUse current_exception to catch all exceptions 42/134342/1
Sangyoon Jang [Tue, 18 Apr 2017 12:22:47 +0000 (21:22 +0900)]
Use current_exception to catch all exceptions

Change-Id: I0a9a165a82367d911706702eaba162d60717c4f2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit d48441cb0d4c8b670224ccd9eb2134458e1b6c5d)

8 years agoFix crash issue of pkg_recovery_helper 38/134338/1
Sangyoon Jang [Tue, 4 Apr 2017 04:17:04 +0000 (13:17 +0900)]
Fix crash issue of pkg_recovery_helper

Change-Id: I719b270557fd5bc1dd801348ef33a554f4702258
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit a77141eb55705344519429b97ff03f25c9d3eae9)

8 years agoFix to unref DBusConnection properly 98/134298/1
Sangyoon Jang [Thu, 15 Jun 2017 09:16:46 +0000 (18:16 +0900)]
Fix to unref DBusConnection properly

Change-Id: I358a9f84efdcb27d7f03aa20c89d902e3e5c7b1d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit e13c584092a830a8f3f99e7979f3d2168e867112)

8 years agoCall plugin parser when the name matched exactly 39/134139/1
Sangyoon Jang [Thu, 15 Jun 2017 02:18:31 +0000 (11:18 +0900)]
Call plugin parser when the name matched exactly

Change-Id: I3cacaa20694b14403830f243184e81bcd284fba6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit 836edb1830675fdc9392947051a9cc8e1aac42c6)

8 years agoFix logic of 'update' and 'removable' attibutes 57/133657/1
jongmyeongko [Wed, 24 May 2017 11:59:50 +0000 (20:59 +0900)]
Fix logic of 'update' and 'removable' attibutes

'update=true' means that updated 'preload=true' package by downloadable update.

RW global app can be 'preload=true'.
And, RW global app can be 'removalbe=false'.
Also, RW global app can be upgraded using downloaded package file.
After upgrade, the app should have 'update=true' and 'removable=true'.

About the logic to keep 'preload' attribute when 'preload' package is updated
by downloadble upate in StepParsePreload, we don't need to consider direct-update case
(includes partial-update)
Because, we should explicitly give the option to present 'preload' or not,
in direct-install/update request (--preload, --preload-rw or none).

Test:
1. Install as RW global app as not-removable package:
2. Update as download package

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

8 years agoAdd/delete certain directory when updating pkg 76/131076/5
Junghyun Yeon [Mon, 24 Apr 2017 03:57:31 +0000 (12:57 +0900)]
Add/delete certain directory when updating pkg

- Shared/data should be added/removed depends on api version and privilege
of updated package.
- Installer will check these and update folder by adding/deleteing it.

Related changes:
[tpk-backend] : https://review.tizen.org/gerrit/131077
[wgt-backend] : https://review.tizen.org/gerrit/131078
Change-Id: I6d12620963b31ded9716f318259a82a238a87fd4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoImplement remove functions 84/132084/2
Junghyun Yeon [Thu, 1 Jun 2017 04:57:02 +0000 (13:57 +0900)]
Implement remove functions

- Implement Remove, RemoveAll functions for further usage.
- Partially picked from tizen

Change-Id: Iea071cae9bb5b8a3187a0668d71f7cc024dfa2d7
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix signaling for appid 41/132041/1 accepted/tizen/3.0/common/20170605.123905 accepted/tizen/3.0/ivi/20170605.014951 accepted/tizen/3.0/mobile/20170605.014902 accepted/tizen/3.0/tv/20170605.014919 accepted/tizen/3.0/wearable/20170605.014935 submit/tizen_3.0/20170601.102336
jongmyeongko [Wed, 24 May 2017 13:20:57 +0000 (22:20 +0900)]
Fix signaling for appid

Only uninstall case requres this signal.

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

8 years agoKeep 'preload' attribute in update case 11/128411/1
Sangyoon Jang [Thu, 27 Apr 2017 02:47:10 +0000 (11:47 +0900)]
Keep 'preload' attribute in update case

In case of ReadonlyUpdateInstall, ReadonlyUpdateUninstall and
Update preload-rw should keep preload value.

Change-Id: I7f307db3c3dbaf792c9d0806512c11b9dbfc5db7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 454386d93c727e873077c05e7c1a7c3975c9305c)

8 years agoAdd error handling in the step of StepRemoveFiles 46/123346/5
jongmyeongko [Wed, 5 Apr 2017 08:02:31 +0000 (17:02 +0900)]
Add error handling in the step of StepRemoveFiles

For now, if there is any remaining file which wasn't removed because of an error, then this file can cause the the permission error at the next any request.
because, the smack rules for this package was removed in the security revoke step at the previous unistallation request.

So, we need to handle the errors in order to make the request be failed.

Change-Id: Ic65722e6cc0ce54807a37663e84b090a10f4c3d5
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoFix wrong behavior related to keep_rwdata 33/123333/3
jongmyeongko [Wed, 5 Apr 2017 07:59:19 +0000 (16:59 +0900)]
Fix wrong behavior related to keep_rwdata

if the request is for user app and keep_rwdata is on,
then we should not remove all contents of app.

Change-Id: I8eef5eb4acd48c2d44c9954fef41c7b373d07e7c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoFix Mount Installation Failure 47/123947/2
jongmyeongko [Sat, 8 Apr 2017 06:40:16 +0000 (15:40 +0900)]
Fix Mount Installation Failure

Fix side-effect from previous change related to symlink files

Submit with :
[tpk-backend] https://review.tizen.org/gerrit/#/c/123948/
[wgt-backend] https://review.tizen.org/gerrit/#/c/123949/

Change-Id: I7e39ac91c7fd17f1fcad9b4c134e19d636146f8b
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoSet file permission to contents of external image 05/123105/2
jongmyeongko [Tue, 4 Apr 2017 11:41:38 +0000 (20:41 +0900)]
Set file permission to contents of external image

Change-Id: Ie674967f2dfc7b692fad942088876c2af262c34f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoFix static analyzer issues 17/122617/1
Sangyoon Jang [Mon, 3 Apr 2017 03:48:54 +0000 (12:48 +0900)]
Fix static analyzer issues

Change-Id: I0c3cfacfd7e1a2a922b6f80ba5738e7e5f9cdc2b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit b0815d86cd2a890489707846abdf0fba2c2bfdf7)

8 years agoSkip privilege registration in case of Move 99/122499/1
Semun Lee [Sun, 2 Apr 2017 02:22:07 +0000 (11:22 +0900)]
Skip privilege registration in case of Move

We don't need to update app privileges in case of Move operation.
It may drop some internal privileges because we skipped
StepPrivilegeCompatibility and StepCheckSignature steps.

Change-Id: I067df74664a83736700cbb56ca78eb5d0b4232ee
Signed-off-by: Semun Lee <semun.lee@samsung.com>
8 years agoDouble check for delta package 52/122152/1
Sangyoon Jang [Tue, 28 Mar 2017 04:48:13 +0000 (13:48 +0900)]
Double check for delta package

If the given package has 'delta_info.xml' or the extension is '.delta',
treat as delta package.

Change-Id: I55589598e81a98202665bb30d800897bdb951f6e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoAdd sync() command after recovery file content change 34/121234/1 accepted/tizen/3.0/common/20170331.151916 accepted/tizen/3.0/ivi/20170331.044258 accepted/tizen/3.0/mobile/20170331.044021 accepted/tizen/3.0/tv/20170331.044151 accepted/tizen/3.0/wearable/20170331.044226 submit/tizen_3.0/20170329.045543
Bartlomiej Kunikowski [Fri, 24 Feb 2017 07:04:11 +0000 (08:04 +0100)]
Add sync() command after recovery file content change

There is no synchronization between cached memory and
filesystem, and when we stop eg. installation process by
remove battery from device, and after device is launched
again there is no recovery file of this operation, but we need
it to properly recovery of installation process.

Change-Id: Ie9dfe8a3a71cc36d8b95b39ed62bc17b61120b61

8 years agoFix for StepParseManifest for recovery 33/121233/1
Bartlomiej Kunikowski [Fri, 24 Feb 2017 08:06:57 +0000 (09:06 +0100)]
Fix for StepParseManifest for recovery

When some installation process failing, there may
exists invalid manifest file, so recovery process
should check this situation.

Change-Id: Iab06f8748731def99703be5cc6030b4828c72053

8 years agoFix static analyzer issue 54/119754/1 accepted/tizen/3.0/common/20170324.141619 accepted/tizen/3.0/ivi/20170324.053032 accepted/tizen/3.0/mobile/20170324.052917 accepted/tizen/3.0/tv/20170324.052959 accepted/tizen/3.0/wearable/20170324.053022 submit/tizen_3.0/20170320.132949
Sangyoon Jang [Mon, 20 Mar 2017 04:16:48 +0000 (13:16 +0900)]
Fix static analyzer issue

Change-Id: Id75dac30a64d63fbef55d26bd742db4f77ee88dc
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit d2b3eac26867ff24fc0eed3d3ede92617c0106f1)

8 years agoFix installer backend crash issue 02/119602/1
Junghyun Yeon [Tue, 14 Mar 2017 05:00:23 +0000 (14:00 +0900)]
Fix installer backend crash issue

- Backend has crashed with some install cases while
undo StepUpdateApplication after failed to update app.
- It caused because old manifest data doesn't set properly.
- Fix it by checking manifest before use and
not performing undo() in some update cases

Change-Id: Ib0f10f151ef8ea87ada839bb897e081f2f8ecb33
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix memory leak 44/118744/2 accepted/tizen/3.0/common/20170315.122632 accepted/tizen/3.0/ivi/20170314.221556 accepted/tizen/3.0/mobile/20170314.221447 accepted/tizen/3.0/tv/20170314.221526 accepted/tizen/3.0/wearable/20170314.221543 submit/tizen_3.0/20170314.022936
Sangyoon Jang [Tue, 14 Mar 2017 01:41:06 +0000 (10:41 +0900)]
Fix memory leak

Change-Id: I4a6e48bec42f1fa2a8908c028bf1e8e808adead3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 3c6a7f21bc7ec21db316048134bc3e32018c43b3)

8 years agoFix static analyzer issues 43/118743/1
Sangyoon Jang [Thu, 9 Mar 2017 08:51:36 +0000 (17:51 +0900)]
Fix static analyzer issues

Change-Id: I6c8c5dcda1ca9b71d8476807802dfc50cdd6f873
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 7457e82c6eb7e8f4439105cc354977a2b8192572)

8 years agoFix crash issue on PartialUninstall 86/117686/1 accepted/tizen/3.0/common/20170309.110520 accepted/tizen/3.0/ivi/20170309.085818 accepted/tizen/3.0/mobile/20170309.085604 accepted/tizen/3.0/tv/20170309.085703 accepted/tizen/3.0/wearable/20170309.085751 submit/tizen_3.0/20170309.043057
Sangyoon Jang [Tue, 7 Mar 2017 05:58:00 +0000 (14:58 +0900)]
Fix crash issue on PartialUninstall

PkgmgrGenerateManifestInfoFromDB generates manifest_x structure not
completely when manifest file not found.

Change-Id: I8e0a0c2a3839e45a088b360085376fae1d1c1f91
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit d08418bc67511fb04a017d0d75b3a8eadc1336b7)

8 years agoSet proper splash screen image for landscape 71/117171/1 accepted/tizen/3.0/common/20170307.113429 accepted/tizen/3.0/ivi/20170307.090629 accepted/tizen/3.0/mobile/20170307.090302 accepted/tizen/3.0/tv/20170307.090457 accepted/tizen/3.0/wearable/20170307.090542 submit/tizen_3.0/20170306.070943 submit/tizen_3.0/20170307.014135
Semun Lee [Fri, 3 Mar 2017 04:31:47 +0000 (13:31 +0900)]
Set proper splash screen image for landscape

Change-Id: Ie1fa1165da087dc53b86754195b21519a732a504
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
(cherry picked from commit f253aeaa46ca697b6e480c6feea4a5fe46ed7e61)

8 years agoAdd pkg_recovery tools 28/117128/1
Sangyoon Jang [Fri, 10 Jun 2016 04:34:21 +0000 (13:34 +0900)]
Add pkg_recovery tools

Two new binary will be introduced:
 1. pkg_recovery
  This tool activated with dbus call and launch backend for recovery process.
 2. pkg_recovery_helper
  This tool will be launched when the user session is started.
  Search recovery files at $HOME/apps_rw and launch pkg_recovery tool by
  dbus for actual recovery process.

For working above new tools, recovry file naming rule is changed to:
<type>-recovery-<tmpstr>

Change-Id: Iec84e4163ae0addd87443bac3d2154b872017d4e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoSkip reference check in case of RW partial request 77/117077/2
jongmyeongko [Thu, 2 Mar 2017 13:50:47 +0000 (22:50 +0900)]
Skip reference check in case of RW partial request

The reference check is not necessary.

Change-Id: Ibd369435bc41a4b5f24e9215e6a4928021cdae95
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoModify the logic of checking metadata privilege 60/115760/1 accepted/tizen/3.0/common/20170224.125754 accepted/tizen/3.0/ivi/20170224.041441 accepted/tizen/3.0/mobile/20170224.040710 accepted/tizen/3.0/tv/20170224.041053 accepted/tizen/3.0/wearable/20170224.041221 submit/tizen_3.0/20170223.013552
jongmyeongko [Tue, 21 Feb 2017 06:57:07 +0000 (15:57 +0900)]
Modify the logic of checking metadata privilege

Only key list should be passed to privilege-manager api.

Change-Id: Ia874a40d34c6d3b57edfbecc9695c05ed3ff28bd
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoChange path of rds delta file 99/114699/2 accepted/tizen/3.0/common/20170222.125351 accepted/tizen/3.0/ivi/20170222.081611 accepted/tizen/3.0/mobile/20170222.081237 accepted/tizen/3.0/tv/20170222.081356 accepted/tizen/3.0/wearable/20170222.081437 submit/tizen_3.0/20170221.004258
Junghyun Yeon [Tue, 14 Feb 2017 11:45:12 +0000 (20:45 +0900)]
Change path of rds delta file

- IDE cannot access previous path used in 2.4 so
path of rds delta file has changed.
- So change unpacked dir when reinstall

Change-Id: Iff0ea23c54b6ca8a53e0da9e37caca696f142eff
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoMerge "Add timezone plugin category" into tizen_3.0 accepted/tizen/3.0/common/20170217.122038 accepted/tizen/3.0/ivi/20170217.021816 accepted/tizen/3.0/mobile/20170217.021514 accepted/tizen/3.0/tv/20170217.021613 accepted/tizen/3.0/wearable/20170217.021736 submit/tizen_3.0/20170216.102709
Junghyun Yeon [Thu, 16 Feb 2017 09:45:27 +0000 (01:45 -0800)]
Merge "Add timezone plugin category" into tizen_3.0

8 years agoFix static analysis issue 74/115074/1
Junghyun Yeon [Thu, 16 Feb 2017 08:00:13 +0000 (17:00 +0900)]
Fix static analysis issue

Change-Id: I64a069b552e49149e261eb0f49495e82f970d44e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoAdd timezone plugin category 51/114951/2
Junghyun Yeon [Thu, 16 Feb 2017 01:28:13 +0000 (10:28 +0900)]
Add timezone plugin category

Change-Id: I02cba935b1fd54d548d9b744e22d52f1269651f7
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoSkip copying rw directories if request mode is global 27/114327/3
Damian Pietruchowski [Fri, 10 Feb 2017 15:58:41 +0000 (16:58 +0100)]
Skip copying rw directories if request mode is global

When request mode is global rw directories should not exist
in /opt/usr/globalapps/pkg_id, so we should not copying
this directories to backup.

Change-Id: I4b0807fa1a65e1da7a2b7c2ff4cc422513653d43
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
8 years agoFix unregister security context for recovery 28/114328/2
Damian Pietruchowski [Tue, 24 Jan 2017 15:18:28 +0000 (16:18 +0100)]
Fix unregister security context for recovery

For recovery of installation, in step StepRecoverSecurity app's
directory did not exist and Check() method returns false.
So in RecoveryNew() method UnregisterSecurityContextForManifest()
was not executed.

Change-Id: I73aa7db8eccfa1d6b74f941cf5db80ef487b3a11
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
(cherry picked from commit 75f8f0deff90239be0492a0674482ce305891c5b)

8 years agoFix static analyzer issues 14/114314/1 accepted/tizen/3.0/common/20170214.180722 accepted/tizen/3.0/ivi/20170214.092327 accepted/tizen/3.0/mobile/20170214.092110 accepted/tizen/3.0/tv/20170214.092225 accepted/tizen/3.0/wearable/20170214.092300 submit/tizen_3.0/20170213.113017
Sangyoon Jang [Mon, 13 Feb 2017 02:00:37 +0000 (11:00 +0900)]
Fix static analyzer issues

Change-Id: I3eab39f1c84b0b96d91834f0da8b5bf75394321f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 57aa1da804676bb787363e8f0c0b0005fc01ef26)

8 years agoChange return type of GetRequestInfo 88/114188/1
Sangyoon Jang [Fri, 10 Feb 2017 07:19:53 +0000 (16:19 +0900)]
Change return type of GetRequestInfo

GetRequestInfo returns const char*, but it is used as std::string.
This cause crash when the return value of GetRequestInfo is NULL.

Change-Id: I27bf835daec7eabe7c61490e38739ff0bd9079bb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 7d1126de539dfad40050ee0d6719db374805f20e)

8 years agoFix StepCheckRestriction 78/113778/1
Sangyoon Jang [Fri, 3 Feb 2017 07:10:40 +0000 (16:10 +0900)]
Fix StepCheckRestriction

Check restriction mode when MountInstall mode.
Do not check when Reinstall mode.

Change-Id: Iac52df7d8c8a9ef3b250e3197354ea663e3685e8
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 83b1ddd6942f0491f2491cde94fc8ddd9958b08d)

8 years agoDisable xdelta3 external decompression 86/110586/3
Venkatesha Sarpangala [Tue, 17 Jan 2017 06:23:39 +0000 (11:53 +0530)]
Disable xdelta3 external decompression

Tizen store doesn't use external compression.
Hence the generated delta files doesn't contain external compression.
So it's required to disable external compression to successfully
patch files that are candidate files for secondary compression such as xz, gz, so on
to avoid patching failures

Change-Id: Idce9dbba60601949a5ab2fcef0aa5e01744a1c55
Signed-off-by: Venkatesha Sarpangala <sarpangala.v@samsung.com>
8 years agoCherry-pick a change from tizen branch 65/111465/1 accepted/tizen/3.0/common/20170124.155427 accepted/tizen/3.0/ivi/20170124.121421 accepted/tizen/3.0/mobile/20170124.121330 accepted/tizen/3.0/tv/20170124.121352 accepted/tizen/3.0/wearable/20170124.121406 submit/tizen_3.0/20170124.024417
jongmyeongko [Fri, 20 Jan 2017 06:44:49 +0000 (15:44 +0900)]
Cherry-pick a change from tizen branch

Change:
 - Add handling Error and NULL result from system-info api

Change-Id: Id809e66da6124716c6c0bbf862acbeceb7799369
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoAdd profile util 52/109552/10 accepted/tizen/3.0/common/20170120.102118 accepted/tizen/3.0/ivi/20170119.225306 accepted/tizen/3.0/mobile/20170119.225218 accepted/tizen/3.0/tv/20170119.225234 accepted/tizen/3.0/wearable/20170119.225249 submit/tizen_3.0/20170118.065338
Junghyun Yeon [Tue, 10 Jan 2017 11:01:27 +0000 (20:01 +0900)]
Add profile util

- Add profile util to determine target profile at runtime

Change-Id: Ia66867a3d8516ace5277c4324f5fa15340bac6e8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoAdd additional_shared_dirs_ in CreateSkelDirectories() 47/110647/1 accepted/tizen/3.0/common/20170118.131133 accepted/tizen/3.0/ivi/20170118.043430 accepted/tizen/3.0/mobile/20170118.043307 accepted/tizen/3.0/tv/20170118.043347 accepted/tizen/3.0/wearable/20170118.043406 submit/tizen_3.0/20170117.081246
min7.choi [Tue, 17 Jan 2017 09:16:01 +0000 (18:16 +0900)]
Add additional_shared_dirs_ in CreateSkelDirectories()

Change-Id: I8939089ec26c8274ce99405d09e8d78baa8a7585
Signed-off-by: min7.choi <min7.choi@samsung.com>
8 years agoFix StepRecoverChangeOwner for MountUpdate. 53/106153/7 accepted/tizen/3.0/common/20170116.122538 accepted/tizen/3.0/ivi/20170114.000320 accepted/tizen/3.0/mobile/20170114.000209 accepted/tizen/3.0/tv/20170114.000249 accepted/tizen/3.0/wearable/20170114.000305 accepted/tizen/common/20170112.174444 accepted/tizen/ivi/20170112.222536 accepted/tizen/mobile/20170112.222427 accepted/tizen/tv/20170112.222453 accepted/tizen/wearable/20170112.222514 submit/tizen/20170112.013301 submit/tizen_3.0/20170113.111925
Bartlomiej Kunikowski [Tue, 20 Dec 2016 12:39:47 +0000 (13:39 +0100)]
Fix StepRecoverChangeOwner for MountUpdate.

There were problems with owners of some files after recovery.
These files' ownership should be changed.

Verification:
 - $ /usr/bin/wgt-backend-ut/smoke-test --gtest_filter=SmokeTest.RecoveryMode_ForMountUpdate

Change-Id: I4efbf39620a5c65e72b94067e133937f1f11802b

8 years agoForce database cleanup when app files do not exists 81/104381/8 submit/tizen_3.0/20170106.072144
Piotr Ganicz [Tue, 13 Dec 2016 07:17:22 +0000 (08:17 +0100)]
Force database cleanup when app files do not exists

This commit allows user to install app while following conditions
are accomplished:
 1. Database stores the manifest file for the same pkgid as installed app.
 2. There aren't any app files on the device.

It removes whole manifest information from that database and executes
RequestType::Install strategy.

Requires:
  [1] https://review.tizen.org/gerrit/#/c/104380/

Change-Id: I5447002ce3377b8162ecf698303a45a45c0d26f8

8 years agoManifest utils 80/104380/8
Piotr Ganicz [Mon, 12 Dec 2016 17:49:00 +0000 (18:49 +0100)]
Manifest utils

This commit exports two functions for global usage.
 - First one returns manifest_x from database.
 - Second one returns path to manifest file.

Change-Id: I707cf8de7b5acb86aa326a6d21301db9dbf7aa6f

8 years agoForce backup 69/103169/8
Piotr Ganicz [Wed, 7 Dec 2016 10:38:34 +0000 (11:38 +0100)]
Force backup

This commit deletes old backup files that can remain in system
after previous invalid installation before creating a new backup.

Change-Id: I9c983823f7af7b43151799929d5008025e2c04ed

8 years agoSupport legacy image for backward-compatibility 24/107124/17 accepted/tizen/3.0/common/20170109.195852 accepted/tizen/3.0/ivi/20170109.073426 accepted/tizen/3.0/tv/20170110.055251 accepted/tizen/3.0/wearable/20170109.073222 submit/tizen_3.0/20170106.102334
jongmyeongko [Mon, 26 Dec 2016 16:09:40 +0000 (01:09 +0900)]
Support legacy image for backward-compatibility

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

Change-Id: I1ccfb33c0fd12eb642352b9fd0a69f626087b5f8
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoApply the change of skel root path from /etc to /opt/etc 40/102740/18 accepted/tizen/3.0/common/20170109.083940 accepted/tizen/3.0/ivi/20170106.095011 accepted/tizen/3.0/mobile/20170106.094820 accepted/tizen/3.0/tv/20170106.094913 accepted/tizen/3.0/wearable/20170106.094941 accepted/tizen/common/20170110.085220 accepted/tizen/ivi/20170106.103643 accepted/tizen/mobile/20170106.103448 accepted/tizen/tv/20170106.103532 accepted/tizen/wearable/20170106.103608 submit/tizen/20170105.051706 submit/tizen_3.0/20170105.051635
jongmyeongko [Tue, 6 Dec 2016 11:00:11 +0000 (20:00 +0900)]
Apply the change of skel root path from /etc to /opt/etc

The change of skel root path is from readonly mount policy of root filesystem.
(/etc is included in root filesystem.)
Because the skel is designed as writable concept, the root path of skel should be changed in RW partition.

Change-Id: Iec87da4ee3533fb415114bc8c24e138e4cb01257
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoSet group of cache dir as system_share 01/108401/2
Sangyoon Jang [Wed, 4 Jan 2017 08:00:16 +0000 (17:00 +0900)]
Set group of cache dir as system_share

cache dir should be treated as data, shared/data.

Change-Id: I9864c0f42ff4901e206d7051605e677d82284359
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRevert "Temporary fix for hybrid pkg installation" 38/107238/4
Sangyoon Jang [Tue, 27 Dec 2016 07:54:49 +0000 (16:54 +0900)]
Revert "Temporary fix for hybrid pkg installation"

This reverts commit 01c6dc4d8426123f93e91130620bd6cd2fdfd86f.

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: Ic90a5d6e8a0e3eb419647c6433e20a48e83fd15d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoSkip to change ownership and permissions to the symlink file 57/107557/3
jongmyeongko [Wed, 28 Dec 2016 11:54:39 +0000 (20:54 +0900)]
Skip to change ownership and permissions to the symlink file

To prevent chaning to the path outside of application path.

Change-Id: Id3c5d3ca33ec7e6f484c8185d0279fc109cafa39
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoAdd new plugin parser library to the list 42/107342/1 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.121747 accepted/tizen/3.0.m2/tv/20170104.122606 accepted/tizen/3.0.m2/wearable/20170104.122920 accepted/tizen/3.0/common/20161228.162409 accepted/tizen/3.0/ivi/20161228.092328 accepted/tizen/3.0/mobile/20161228.092235 accepted/tizen/3.0/tv/20161228.092303 accepted/tizen/3.0/wearable/20161228.092318 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161228.025249
jongmyeongko [Tue, 27 Dec 2016 13:12:16 +0000 (22:12 +0900)]
Add new plugin parser library to the list

Change-Id: Ia829e470d0a7881bf356ce049134b6fd18289666
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoFix wrong if condition at CMakeLists.txt 98/107198/1 accepted/tizen/3.0/common/20161228.071616 accepted/tizen/3.0/ivi/20161228.021727 accepted/tizen/3.0/mobile/20161228.021548 accepted/tizen/3.0/tv/20161228.021640 accepted/tizen/3.0/wearable/20161228.021706 submit/tizen_3.0/20161227.023045
Sangyoon Jang [Tue, 27 Dec 2016 06:23:48 +0000 (15:23 +0900)]
Fix wrong if condition at CMakeLists.txt

Change-Id: Ia088843da1b5b24f10afa612af817681e60a3947
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRemove codes which refers deleted attribute 33/107033/3 accepted/tizen/3.0/common/20161227.181316 accepted/tizen/3.0/ivi/20161227.141643 accepted/tizen/3.0/mobile/20161227.141442 accepted/tizen/3.0/tv/20161227.141522 accepted/tizen/3.0/wearable/20161227.141622 submit/tizen_3.0/20161226.101740
Junghyun Yeon [Mon, 26 Dec 2016 07:31:08 +0000 (16:31 +0900)]
Remove codes which refers deleted attribute

Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/107032
[tpk-backend] : https://review.tizen.org/gerrit/107034
[wgt-backend] : https://review.tizen.org/gerrit/107035

Change-Id: I68669c969a484a2bd19a94f75c0cd294b2e804e2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix profile macro 07/107007/1
Sangyoon Jang [Mon, 26 Dec 2016 06:29:34 +0000 (15:29 +0900)]
Fix profile macro

Change-Id: I54594c5d334b8c217acbdeccb9e49bd730d55bdf
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRevert "Support legacy content directory path" 74/106774/2 accepted/tizen/3.0/common/20161228.071533 accepted/tizen/3.0/ivi/20161226.030257 accepted/tizen/3.0/mobile/20161226.030123 accepted/tizen/3.0/tv/20161226.030204 accepted/tizen/3.0/wearable/20161226.030230 submit/tizen_3.0/20161223.043050
Sangyoon Jang [Fri, 23 Dec 2016 02:40:28 +0000 (11:40 +0900)]
Revert "Support legacy content directory path"

This reverts commit 10d8245726f7cc1125878a3af35cb2ddf92df867.

Adjusting legacy content path will be done by pkgmgr-server.

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

Change-Id: I9eb30805c8ba9837cbe33687b3b0dfb349e552bd

8 years agoCleardata will not be handled by backend 91/105691/10
Junghyun Yeon [Mon, 19 Dec 2016 08:39:16 +0000 (17:39 +0900)]
Cleardata will not be handled by backend

- Cleardata operation will be handled by pkg_cleardata
- Remove features related with it

Related changes:
[pkgmgr-server] : https://review.tizen.org/gerrit/106486
[pkgmgr-tool] : https://review.tizen.org/gerrit/106485
[tpk-backend] : https://review.tizen.org/gerrit/106603
[wgt-backend] : https://review.tizen.org/gerrit/106601

Change-Id: I19664fa8841467395c236af9a3a63fd206ded02e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoAdd undo operation at StepCreatePerUserStorageDirectories 00/106500/2
Sangyoon Jang [Thu, 22 Dec 2016 02:23:43 +0000 (11:23 +0900)]
Add undo operation at StepCreatePerUserStorageDirectories

Change-Id: Ifaf8786995d4fad30be39adcd52d463cda2dcbda
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFox to not print error message when certinfo is not exists 57/105957/2 accepted/tizen/3.0/common/20161227.101238 accepted/tizen/3.0/ivi/20161222.024823 accepted/tizen/3.0/mobile/20161222.024704 accepted/tizen/3.0/tv/20161222.024730 accepted/tizen/3.0/wearable/20161222.024756 submit/tizen_3.0/20161221.130430
Junghyun Yeon [Tue, 20 Dec 2016 06:12:23 +0000 (15:12 +0900)]
Fox to not print error message when certinfo is not exists

Change-Id: I4c70db626d2ad65658ab6810c250e67d44734382
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix setting mainapp attribute 80/105780/4
Sangyoon Jang [Mon, 19 Dec 2016 11:37:03 +0000 (20:37 +0900)]
Fix setting mainapp attribute

Use parsed mainapp first, but if there is no parsed mainapp, take first
app as mainapp.

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

Change-Id: I021f86bbdfae95034b542d9b9ae4a00875ed7e29
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix undo() of StepCopyStorageDirectories 43/105643/2
Sangyoon Jang [Mon, 19 Dec 2016 07:34:06 +0000 (16:34 +0900)]
Fix undo() of StepCopyStorageDirectories

Skip when global mode like as process().

Change-Id: Ic2dcf9d4782d9018b24941b7cd37471e5bcae9f0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix some log level 29/105629/2
Sangyoon Jang [Mon, 19 Dec 2016 06:46:29 +0000 (15:46 +0900)]
Fix some log level

Change-Id: I0fd06c529811bbe5bd1da8898f257240e8825cad
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoCreate private tmp directory in skel 68/105468/4 accepted/tizen/3.0/common/20161221.180529 accepted/tizen/3.0/ivi/20161221.005137 accepted/tizen/3.0/mobile/20161221.005217 accepted/tizen/3.0/tv/20161221.004941 accepted/tizen/3.0/wearable/20161221.005038 submit/tizen_3.0/20161219.021225
Piotr Dabrowski [Mon, 19 Dec 2016 07:18:23 +0000 (08:18 +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: I5556e12d01a66111b9ccfd86ee0b5c5b5d51af91

8 years agoRevert "Revert "Add missing definition at CMakeLists.txt"" 57/105457/1 accepted/tizen/3.0/common/20161219.113506 accepted/tizen/3.0/ivi/20161219.070914 accepted/tizen/3.0/tv/20161219.072653 accepted/tizen/3.0/wearable/20161219.095435 submit/tizen_3.0/20161216.082724
Sangyoon Jang [Fri, 16 Dec 2016 13:31:45 +0000 (22:31 +0900)]
Revert "Revert "Add missing definition at CMakeLists.txt""

This reverts commit 08089ea54582eb8f6f12ec83738f4712bd2e5dc4.

Change-Id: I6667edf2c606b5344653d27804d6681cd9c8871d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRevert "Add missing definition at CMakeLists.txt" 52/105452/1 accepted/tizen/3.0/common/20161219.113636 accepted/tizen/3.0/ivi/20161216.133029 accepted/tizen/3.0/mobile/20161216.132947 accepted/tizen/3.0/tv/20161216.132956 accepted/tizen/3.0/wearable/20161216.133010 submit/tizen_3.0/20161216.132215
Sangyoon Jang [Fri, 16 Dec 2016 13:19:41 +0000 (22:19 +0900)]
Revert "Add missing definition at CMakeLists.txt"

This reverts commit 17318972d51074cef7e6147109d038833e9da81b.

Temporary disable admin user global installation policy.

Change-Id: I8e4d39acdc934fa87107b84413c5580e0a322d88
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agofix on handling the request from admin user as global request 30/105430/2
jongmyeongko [Fri, 16 Dec 2016 12:13:48 +0000 (21:13 +0900)]
fix on handling the request from admin user as global request

- to support parser plugin

Change-Id: I5861c5733db1b8e6413887458586d357a64c17e1
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoFix update failure requested by admin user 46/105346/1
Sangyoon Jang [Fri, 16 Dec 2016 08:40:42 +0000 (17:40 +0900)]
Fix update failure requested by admin user

Change-Id: Ibd160635361f8d62cf546b300efe924e83173aa5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoCode style check 10/104810/2
Piotr Ganicz [Wed, 14 Dec 2016 10:10:38 +0000 (11:10 +0100)]
Code style check

This change removes all errors detected by check-coding-style script.

Change-Id: Id5bc7abcade2558295494d1b4fabe8d59815f3d5

8 years agoAdd missing definition at CMakeLists.txt 30/105030/1 accepted/tizen/3.0/ivi/20161216.084637 accepted/tizen/3.0/mobile/20161216.084607 accepted/tizen/3.0/tv/20161216.084616 accepted/tizen/3.0/wearable/20161216.084625 submit/tizen_3.0/20161215.070007 submit/tizen_3.0/20161216.015353
Sangyoon Jang [Thu, 15 Dec 2016 06:52:08 +0000 (15:52 +0900)]
Add missing definition at CMakeLists.txt

Change-Id: Iaa830f968b1b429882f8fc8d7cd79af2071a915b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoParse support-disable 48/104648/3 accepted/tizen/3.0/common/20161216.122418 accepted/tizen/3.0/ivi/20161216.013331 accepted/tizen/3.0/mobile/20161216.013126 accepted/tizen/3.0/tv/20161216.013241 accepted/tizen/3.0/wearable/20161216.013303 submit/tizen_3.0/20161214.072903
Sangyoon Jang [Wed, 14 Dec 2016 04:03:49 +0000 (13:03 +0900)]
Parse support-disable

Change-Id: I1085bef5f9b4ba60a53d439cdd9178548eb152b4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>