platform/core/appfw/app-installers.git
6 years agoRelease version 1.19.0 81/137381/1 submit/tizen/20170705.114632
jongmyeongko [Wed, 5 Jul 2017 11:31:44 +0000 (20:31 +0900)]
Release version 1.19.0

Changes:
 - Linker optimization for release build
 - Binary size reduction
 - Fix setting update attribute
 - Add new status for recovery process done
 - Do clean operation in opposite direction

Change-Id: I79b84b2f101769edb1970b49da02c2210f71d5dc
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
6 years agoLinker optimization for release build 45/135645/5
Piotr Ganicz [Wed, 21 Jun 2017 08:25:54 +0000 (10:25 +0200)]
Linker optimization for release build

Change-Id: Ia784025aec012117f0222c9f6d993f91d5bc23ce

6 years agoBinary size reduction 97/135797/4
Piotr Ganicz [Thu, 22 Jun 2017 09:03:39 +0000 (11:03 +0200)]
Binary size reduction

This commit reduces binary size by removing usage
of boost str and boost format functions (about 20kB less).

Change-Id: I62be9b8fa6dd3db8ad3abe128e2cff8f42cefd0d

6 years agoFix setting update attribute 23/136423/2
Sangyoon Jang [Thu, 29 Jun 2017 10:43:39 +0000 (19:43 +0900)]
Fix setting update attribute

When ReadonlyUpdateUninstall, update should be false.

Change-Id: Ieda308e85724a3d6c1bfd4e452e8dc82ac2a5cc3
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd new status for recovery process done 45/118845/15
Damian Pietruchowski [Tue, 14 Mar 2017 08:33:23 +0000 (09:33 +0100)]
Add new status for recovery process done

Create new status for early terminated of recovery request
without errors.

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

Change-Id: Idc646db6921cd646d3503bac5aaed4e699b55906
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
6 years agoDo clean operation in opposite direction 28/128628/5
Damian Pietruchowski [Wed, 10 May 2017 14:44:37 +0000 (16:44 +0200)]
Do clean operation in opposite direction

Change-Id: I6a18f2583a382b102fd5ac17971d160e19eaa7fd
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
6 years agoRelease version 1.18.2 05/134805/1 accepted/tizen/unified/20170620.174309 submit/tizen/20170620.102002
Sangyoon Jang [Tue, 20 Jun 2017 05:40:23 +0000 (14:40 +0900)]
Release version 1.18.2

Changes:
 - Add another condition for external pkgs
 - Fix metadata plugin parser matching logic

Change-Id: I670d942fdf8c238ca6b91d609785131417d24dbf
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix metadata plugin parser matching logic 04/134804/1
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>
6 years agoAdd another condition for external pkgs 78/133778/3
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>
6 years agoRelease version 1.18.1 27/134327/1 accepted/tizen/unified/20170616.154247 submit/tizen/20170616.043323
Sangyoon Jang [Fri, 16 Jun 2017 04:29:19 +0000 (13:29 +0900)]
Release version 1.18.1

Changes:
 - Fix memory leaks
 - Call plugin parser when the name matched exactly

Change-Id: Idc2cd4af63deb9590113fa4872c58c25e6142724
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix to unref DBusConnection properly 22/134222/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>
6 years agoCall plugin parser when the name matched exactly 37/134137/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>
6 years agoFix a wrong unref 14/133814/1
Sangyoon Jang [Tue, 13 Jun 2017 10:53:34 +0000 (19:53 +0900)]
Fix a wrong unref

service object has been unrefed twice when the retry count overred max.

Change-Id: I526fc679c96f74d4baa1dc6f1a645e640c306a18
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 1.18.0 70/132570/3 accepted/tizen/unified/20170609.204213 submit/tizen/20170609.050739
Inkyun Kil [Wed, 7 Jun 2017 03:26:40 +0000 (12:26 +0900)]
Release version 1.18.0

Changes :
 - Fix signaling for appid
 - Fix coding style violations
 - Add parsing logic for datacontrol privileges
 - Fix logic of 'update' and 'removable' attibutes
 - New FSFlag for preserve ownership and permissions
 - Fix for StepCopyStorageDirectories
 - ConfigurationStep performance improvement

Change-Id: Ib03c559a7f2ada182b5084cc89dcf8ac5da18f69
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoConfigurationStep performance improvement 87/132287/2
Piotr Ganicz [Fri, 2 Jun 2017 06:02:26 +0000 (08:02 +0200)]
ConfigurationStep performance improvement

Process function unnnecessarily calls PkgMgrInteface ->GetRequestType()
more than once without storing the received value. That results in
queriying the database for the same results many times which is slow.

Change-Id: I80f5381c6574e992260be44bd40fcafdf5df379a

6 years agoFix for StepCopyStorageDirectories 00/123100/5
Damian Pietruchowski [Tue, 4 Apr 2017 11:12:04 +0000 (13:12 +0200)]
Fix for StepCopyStorageDirectories

Files in storage directories should not be removed from
backup, so this files should be copied, not moved.

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

Change-Id: I6dce45886a6cff6113bf42c3aad497fa41d45a2e
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
6 years agoNew FSFlag for preserve ownership and permissions 84/123084/4
Damian Pietruchowski [Tue, 4 Apr 2017 10:24:20 +0000 (12:24 +0200)]
New FSFlag for preserve ownership and permissions

Change-Id: I35124a78ea4564ae1a4b70132fbe5b94a764b53c
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
6 years agoFix logic of 'update' and 'removable' attibutes 48/130948/5
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>
6 years agoAdd parsing logic for datacontrol privileges 12/129212/12
Inkyun Kil [Mon, 15 May 2017 11:21:31 +0000 (20:21 +0900)]
Add parsing logic for datacontrol privileges

- Related patches
  [pkgmgr-info] https://review.tizen.org/gerrit/#/c/129210/
  [tpk-manifest-handler] https://review.tizen.org/gerrit/#/c/129211/
  [data-control] https://review.tizen.org/gerrit/#/c/129882/
  [amd] https://review.tizen.org/gerrit/#/c/129881/
  [aul-1] https://review.tizen.org/gerrit/#/c/129880/

Change-Id: I4fd53cf493cc1baf5892f77a2b0a3f99512d1637
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoFix coding style violations 69/131069/4
jongmyeongko [Thu, 25 May 2017 08:37:01 +0000 (17:37 +0900)]
Fix coding style violations

Change-Id: Id758dba5373f58a59cc9965a87400f6dadf62e8b
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
6 years agoFix signaling for appid 55/130955/4
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>
6 years agoRelease version 1.17.10 19/132019/1 accepted/tizen/unified/20170607.063242 submit/tizen/20170531.235759
Junghyun Yeon [Thu, 1 Jun 2017 00:18:53 +0000 (09:18 +0900)]
Release version 1.17.10

Changes:
 - Set privilege_level to pkgmgr_installer_info
 - Continue recovery process when exception occured instead of exit
 - Remove using deprecated security-manager API
 - Move unversioned so file to devel package

Change-Id: I1b2869e83162dc1d82fe43ceaf7fea0038f76ed3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoMove unversioned so file to devel package 87/131187/2
Semun Lee [Fri, 26 May 2017 00:59:34 +0000 (09:59 +0900)]
Move unversioned so file to devel package

- Unversioned so file is not needed at runtime. It is only used at build time.

Change-Id: Ibd764c5a07e4e2674338171616c5ad17c8918845
Signed-off-by: Semun Lee <semun.lee@samsung.com>
6 years agoRemove using deprecated API 89/131189/2
Junghyun Yeon [Fri, 26 May 2017 01:14:25 +0000 (10:14 +0900)]
Remove using deprecated API

Change-Id: I47596dc1c14f0d60ac76d1c366c17aa361b51e91
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoContinue recovery process when exception occured instead of exit 08/131008/6
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>
7 years agoSet privilege_level to pkgmgr_installer_info 62/130062/3
jongmyeongko [Fri, 19 May 2017 04:05:55 +0000 (13:05 +0900)]
Set privilege_level to pkgmgr_installer_info

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

Change-Id: I7bce20e7dac855f8d29bdecd64779d4f29779138
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoRelease version 1.17.9 70/130070/1 accepted/tizen/unified/20170519.200035 submit/tizen/20170519.052610 tizen_4.0.m1_release
Junghyun Yeon [Fri, 19 May 2017 04:52:51 +0000 (13:52 +0900)]
Release version 1.17.9

Changes:
 - Add/delete certain directory when updating pkg
 - Unregister package from security manager/pkgmgr by pkgid
 - New functions for creating and deleting storage dirs

Change-Id: I61d42e500040fefdd223ff0f64c8e882d720d56e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd/delete certain directory when updating pkg 28/126628/11
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/#/c/128001/
Change-Id: I6d12620963b31ded9716f318259a82a238a87fd4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoMerge "Unregister package from security manager by pkgid" into tizen
jongmyeong ko [Tue, 16 May 2017 03:46:10 +0000 (03:46 +0000)]
Merge "Unregister package from security manager by pkgid" into tizen

7 years agoUnregister package from security manager by pkgid 79/118579/7
Bartlomiej [Mon, 13 Mar 2017 07:37:33 +0000 (08:37 +0100)]
Unregister package from security manager by pkgid

We need to unregister package from security-manager when
manifest file is invalid, this is necessary in recovery
process of installation.

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

Change-Id: I27ee009e8bdacf2b355f0bf42d94d52e39fd6115

7 years agoUnregister package from pkgmgr by pkgid 14/118614/8
Bartlomiej [Mon, 13 Mar 2017 09:02:12 +0000 (10:02 +0100)]
Unregister package from pkgmgr by pkgid

We need to unregister package from pkgmgr when
manifest file is invalid, this is necessary in recovery
process of installation.

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

Change-Id: I3da7b017cbc1b78f7650860fd1e75d1742d016a7

7 years agoNew functions for creating and deleting storage dirs 67/123467/3
Damian Pietruchowski [Wed, 5 Apr 2017 15:54:41 +0000 (17:54 +0200)]
New functions for creating and deleting storage dirs

Change-Id: Iceeaa4ac831ee01de3aaeb122e73fbafbae3e0fb
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoRelease version 1.17.8 22/128922/1 accepted/tizen/unified/20170512.165909 submit/tizen/20170512.073248
Sangyoon Jang [Fri, 12 May 2017 05:31:27 +0000 (14:31 +0900)]
Release version 1.17.8

Changes:
 - Remove rw directories when request mode is global
 - Add waiting for unmounted condition
 - Remove build warnings

Change-Id: I9d51f74f00e7c460ab9710b0165aededdce87e34
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRemove build warnings 44/128644/1
Junghyun Yeon [Thu, 11 May 2017 00:57:46 +0000 (09:57 +0900)]
Remove build warnings

Change-Id: Ie231b44cba0940e7961ff0d263e6a426497191ea
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd waiting for unmounted condition 17/117817/6
Damian Pietruchowski [Tue, 7 Mar 2017 12:43:04 +0000 (13:43 +0100)]
Add waiting for unmounted condition

Add waiting until file will be unmounted at the
end of UnmountZip() method.

Change-Id: Ic159b6b235600e81b9d22a016daac9089d98df0f
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoRemove rw directories when request mode is global 81/115581/5
Damian Pietruchowski [Mon, 20 Feb 2017 11:32:44 +0000 (12:32 +0100)]
Remove rw directories when request mode is global

Runtime rw directories should be removed in update for
global request mode.

Change-Id: If9d6c095a91284937b461ae9b60446dbfdcad720
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoRelease version 1.17.7 95/127595/1 accepted/tizen/unified/20170429.023556 submit/tizen/20170427.133942
Sangyoon Jang [Fri, 28 Apr 2017 04:53:30 +0000 (13:53 +0900)]
Release version 1.17.7

Changes:
 - Set default value of datacontrol trusted attribute
 - Keep 'preload' attribute in update case

Change-Id: Icf90a0df72f0624e78ff3ccc950873f510e4f4e3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoKeep 'preload' attribute in update case 38/125838/9
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>
7 years agoSet default value of datacontrol trusted attribute 72/127572/1
Sangyoon Jang [Fri, 28 Apr 2017 02:02:49 +0000 (11:02 +0900)]
Set default value of datacontrol trusted attribute

Change-Id: I87b95ed496ea0a8721644c90ed2a721ff9873925
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix a wrong log message 82/127282/1
Sangyoon Jang [Thu, 27 Apr 2017 02:50:01 +0000 (11:50 +0900)]
Fix a wrong log message

Change-Id: Ia6f5ef9ddc7eafe7b1ce943a9344f03fb64f8b57
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRelease version 1.17.6 01/126301/2 accepted/tizen/unified/20170421.113955 submit/tizen/20170421.005321
Junghyun Yeon [Fri, 21 Apr 2017 01:52:12 +0000 (10:52 +0900)]
Release version 1.17.6

Changes:
- Add datacontrol trusted flag parsing logic
- Use current_exception to catch all exception
- Include missing header
- Adding useful method
- Add missing initialization of ExternalStorage class
- Remove unnecessary checking for deletion of skel dirs

Change-Id: I370f32397cd504ad2ff997ccd4013c418516ebef
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRemove unnecessary checking for deletion of skel dirs 47/125947/3
jongmyeongko [Wed, 19 Apr 2017 09:53:59 +0000 (18:53 +0900)]
Remove unnecessary checking for deletion of skel dirs

skel dir was already moved from /etc/skel to /opt/etc/skel (RW)

Change-Id: I0649a6de654dea6348784befd7962da7b7a27129
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdd missing initialization of ExternalStorage class 60/126060/1
Sangyoon Jang [Thu, 20 Apr 2017 02:39:56 +0000 (11:39 +0900)]
Add missing initialization of ExternalStorage class

Change-Id: I6d976954067dd9d6df438dc2b8680fae6b033c18
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdding useful methods to app-installer 59/116059/12
Piotr Ganicz [Thu, 16 Feb 2017 12:52:24 +0000 (13:52 +0100)]
Adding useful methods to app-installer

This patch adds useful methods for testing without
changing the enacapsulation of the class.

Change-Id: I370ed71678961019cef902f47283d6667611fc1c

7 years agoInclude missing header 47/125847/1
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>
7 years agoUse current_exception to catch all exceptions 28/125728/5
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>
7 years agoAdd datacontrol trusted flag parsing logic 02/124102/5
Jiwoong Im [Mon, 10 Apr 2017 06:52:53 +0000 (15:52 +0900)]
Add datacontrol trusted flag parsing logic

- Related patches
  [data-control] https://review.tizen.org/gerrit/#/c/124099/
  [pkgmgr-info] https://review.tizen.org/gerrit/#/c/124100/
  [tpk-manifest-handler] https://review.tizen.org/gerrit/#/c/124101/

Change-Id: I9574a7cb116ffcaa9e409cf4c84bc6750556ce99
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 1.17.5 04/125704/2 accepted/tizen/unified/20170419.164123 submit/tizen/20170419.014756
Junghyun Yeon [Tue, 18 Apr 2017 11:57:25 +0000 (20:57 +0900)]
Release version 1.17.5

Changes :
- Fix mount installation failure

Change-Id: If1d145e0c2fcd9102f6f255e21580d88641856f5
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoApply some changes of tizen 3.0 46/125546/1
jongmyeongko [Tue, 18 Apr 2017 03:24:11 +0000 (12:24 +0900)]
Apply some changes of tizen 3.0

Add error handling in the step of StepRemoveFiles
- https://review.tizen.org/gerrit/#/c/123346/
Fix wrong behavior related to keep_rwdata
- https://review.tizen.org/gerrit/#/c/123333/

Change-Id: I0537e4097cad7cd287ec27d57e7bd168d31b8add
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix Mount Installation Failure 40/124240/1
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>
(cherry picked from commit 0405750ddb8837f86c5cce017af0e463b2c6592f)

7 years agoRelease version 1.17.4 95/123795/1 accepted/tizen/unified/20170407.190522 submit/tizen/20170407.042402
Sangyoon Jang [Fri, 7 Apr 2017 04:50:14 +0000 (13:50 +0900)]
Release version 1.17.4

Changes:
 - Fix logic of checking delta package
 - Skip privilege registration in case of Move
 - Fix static analyzer issues
 - Set file permission to contents of external image
 - Fix crash issue of pkg_recovery_helper

Change-Id: I34e451d290ebe915574a9591a8f2f352f77dbb7a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix crash issue of pkg_recovery_helper 32/122932/2
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>
7 years agoSet file permission to contents of external image 18/123118/1
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>
(cherry picked from commit c1a6b473ab31153ca124ce5864e1b021875b289b)

7 years agoFix static analyzer issues 50/122550/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>
7 years agoSkip privilege registration in case of Move 98/122498/2
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>
7 years agoDouble check for delta package 48/121448/5
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>
7 years agoRelease version 1.17.3 40/122140/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170330.152010 accepted/tizen/ivi/20170330.224302 accepted/tizen/mobile/20170330.224006 accepted/tizen/tv/20170330.224134 accepted/tizen/unified/20170330.224346 accepted/tizen/wearable/20170330.224225 submit/tizen/20170330.090650
Hyunho Kang [Thu, 30 Mar 2017 08:41:44 +0000 (17:41 +0900)]
Release version 1.17.3

Changes:
 - Add watch setup-appid parsing logic

Change-Id: Iacaf96171f552dc79f1964866846a8bca379d78e
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoAdd watch setup-appid parsing logic 27/121427/8
Hyunho Kang [Tue, 28 Mar 2017 04:21:25 +0000 (13:21 +0900)]
Add watch setup-appid parsing logic

Change-Id: I991be228509cf4b35858e9cfded2dbbac315d811
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoRelease version 1.17.2 32/121532/1 accepted/tizen/common/20170329.171708 accepted/tizen/ivi/20170329.033340 accepted/tizen/mobile/20170329.033202 accepted/tizen/tv/20170329.033305 accepted/tizen/unified/20170329.033356 accepted/tizen/wearable/20170329.033322 submit/tizen/20170328.062157
Sangyoon Jang [Tue, 28 Mar 2017 06:57:22 +0000 (15:57 +0900)]
Release version 1.17.2

Changes:
 - Fix installer backend crash issue
 - Fix static analyzer issue
 - Fix version compare logic

Change-Id: I542e6a038793535c37c4946981f88c1e0961fd3a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoChange compare function 85/119485/4
Junghyun Yeon [Fri, 17 Mar 2017 06:13:08 +0000 (15:13 +0900)]
Change compare function

- Now manifest-parser resizes given version itself so
other module uses it doesn't have to trim version values

Change-Id: Icac92455ef21ae64161118431d16a1c6025dcb33
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix static analyzer issue 45/119745/1
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>
7 years agoFix installer backend crash issue 79/118779/2
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>
7 years agoRelease version 1.17.1 94/119494/2 accepted/tizen/common/20170322.154021 accepted/tizen/ivi/20170323.000746 accepted/tizen/mobile/20170323.000306 accepted/tizen/tv/20170323.000530 accepted/tizen/unified/20170323.000824 accepted/tizen/wearable/20170323.000651 submit/tizen/20170317.070714 submit/tizen/20170320.224022 submit/tizen/20170322.050206 submit/tizen/20170322.091134
Junghyun Yeon [Fri, 17 Mar 2017 06:31:42 +0000 (15:31 +0900)]
Release version 1.17.1

- Fix memory leak and static analysis issue
- Change implementation of MakeRelativePath

Change-Id: Ia58f5e800bd19fc751d56545c950501162a4f2aa
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoChange RecoverFiles step name 01/118701/2
Damian Pietruchowski [Mon, 13 Mar 2017 16:05:29 +0000 (17:05 +0100)]
Change RecoverFiles step name

Change-Id: I493272f4d32da680ac274b844daf4a9635a7e845
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoFix memory leak 36/118736/1
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>
7 years agoChange MakeRelativePath() implementation 64/117264/3
Damian Pietruchowski [Fri, 3 Mar 2017 12:10:57 +0000 (13:10 +0100)]
Change MakeRelativePath() implementation

Sometimes current_path(), which is default argument of absolute,
throws exception, that directory doesn't exist.
This implementation don't require the existence of directories.

Change-Id: I0eea7febb6c8acc263f639cda2bcd2b58e0a9f67
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoFix static analyzer issues 34/118234/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>
7 years agoRelease version 1.17.0 84/117984/1 accepted/tizen/common/20170309.175223 accepted/tizen/ivi/20170308.121738 accepted/tizen/mobile/20170308.121622 accepted/tizen/tv/20170308.121709 accepted/tizen/unified/20170310.075736 accepted/tizen/wearable/20170308.121723 submit/tizen/20170308.095023 submit/tizen_unified/20170310.011401
jongmyeongko [Wed, 8 Mar 2017 08:04:55 +0000 (17:04 +0900)]
Release version 1.17.0

Changes:
 - Add missing error checking
 - Fix for StepParseManifest for recovery
 - Fix crash issue on PartialUninstall

Change-Id: I087b94f277a07509d367444ba1d6dd32195f52ee
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdd missing error checking 12/114612/4
Bartlomiej Kunikowski [Tue, 14 Feb 2017 07:50:23 +0000 (08:50 +0100)]
Add missing error checking

There are some place where boost filesystem function
usage errors should be checked.
Add remove and remove_all function to file utils.

Change-Id: Ia73470cdb294e2cf47fb88631197d89995e69782

7 years agoFix for StepParseManifest for recovery 20/116420/4
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

7 years agoFix crash issue on PartialUninstall 81/117681/3
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>
7 years agoRelease version 1.16.0 39/117339/2 accepted/tizen/common/20170306.165145 accepted/tizen/ivi/20170307.050443 accepted/tizen/mobile/20170307.050242 accepted/tizen/tv/20170307.050351 accepted/tizen/unified/20170309.032229 accepted/tizen/wearable/20170307.050416 submit/tizen/20170306.070018 submit/tizen_unified/20170308.100405
jongmyeongko [Sat, 4 Mar 2017 08:59:04 +0000 (17:59 +0900)]
Release version 1.16.0

Changes:
 - Set proper splash screen image for landscape
 - Skip reference check in case of RW partial request
 - Add pkg_recovery tools
 - Add sync() command after recovery file content change
 - Modify the logic of checking metadata privilege
 - Set default launch mode of service, widget app
 - Fix static analysis issue
 - Add timezone plugin category

Change-Id: I208a6b54e838df829fc41f93393779dee1d565d0
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoSet proper splash screen image for landscape 47/117147/1
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>
7 years agoSkip reference check in case of RW partial request 11/117111/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>
(cherry picked from commit 54828a2137584b7e2f4f4a86d59a62257e509ee7)

7 years agoAdd pkg_recovery tools 20/111620/12
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>
7 years agoAdd sync() command after recovery file content change 03/116403/1
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

7 years agoModify the logic of checking metadata privilege 32/115732/2
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>
7 years agoSet default launch mode of service, widget app 61/114661/2
Sangyoon Jang [Tue, 14 Feb 2017 10:15:38 +0000 (19:15 +0900)]
Set default launch mode of service, widget app

Change-Id: I4b609d8cb2accdccd9762429e0934a222916be07
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix static analysis issue 14/115114/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>
7 years agoAdd timezone plugin category 48/114948/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>
7 years agoRelease version 1.15.0 84/114484/2 accepted/tizen/common/20170214.173549 accepted/tizen/ivi/20170214.225649 accepted/tizen/mobile/20170214.225552 accepted/tizen/tv/20170214.225611 accepted/tizen/wearable/20170214.225631 submit/tizen/20170213.123058
Sangyoon Jang [Mon, 13 Feb 2017 11:28:50 +0000 (20:28 +0900)]
Release version 1.15.0

Changes:
 - Change return type of GetRequestInfo
 - Check if in uninstalled app dirs are mounted files
 - Add new step for recover per user storage directories
 - Revert a change in release 1.14.0: "Skip copying data and shared..."
 - Fix static analyzer issues
 - Fix StepRecoverSecurity
 - Skip copying rw directories if request mode is global

Change-Id: I5ad880b4b9de0939c2a191a41b375b94ab204672
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoSkip copying rw directories if request mode is global 40/114240/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>
7 years agoFix unregister security context for recovery 00/111900/11
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>
7 years agoFix static analyzer issues 04/114304/2
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>
7 years agoRevert "Skip copying data and shared directories to backup if they exist" 36/114236/2
Damian Pietruchowski [Fri, 10 Feb 2017 15:46:23 +0000 (07:46 -0800)]
Revert "Skip copying data and shared directories to backup if they exist"

Fix for force backup will be provided soon. This change makes the following test SmokeTest.RecoveryMode_Tpk_Update failing.

This reverts commit 98064b08c763d3cd5aaf5f1df6268ad91b96ea47.

Change-Id: I39b124d3e35ff027cfcdde42b65f8a07dd7edf36

7 years agoNew step for recover per user storage directories 49/112049/8
Damian Pietruchowski [Wed, 25 Jan 2017 12:54:39 +0000 (13:54 +0100)]
New step for recover per user storage directories

This directories should be deleted after recover of installation and mount installation

Change-Id: I2997b5f826e550f80aed0c12df21b2d4de2c5e11
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoCheck if in uninstalled app dirs are mounted files 85/112185/8
Bartlomiej Kunikowski [Thu, 26 Jan 2017 16:59:22 +0000 (17:59 +0100)]
Check if in uninstalled app dirs are mounted files

There is a problem when we want uninstall app in which
directory are mounted some file.

This patch perform checking if in deinstalled app
directories are some mounted files. If there are some
mounted files then deinstallation is not allowed.

There are more problems when in app directories
are some files that are not removable.

Change-Id: Ic986514c10228cc7beeb100b859a36a8df6cf830

7 years agoChange return type of GetRequestInfo 37/114137/2
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>
7 years agoRelease version 1.14.0 59/113859/1 accepted/tizen/common/20170209.122514 accepted/tizen/ivi/20170210.004221 accepted/tizen/mobile/20170210.003849 accepted/tizen/tv/20170210.004023 accepted/tizen/wearable/20170210.004118 submit/tizen/20170209.083108
Sangyoon Jang [Thu, 9 Feb 2017 06:38:29 +0000 (15:38 +0900)]
Release version 1.14.0

Changes:
 - Add a new metadata plugin info for application AOT
 - Add ttrace logs
 - Disable xdelta3 external decompression
 - Fix code style
 - Fix StepCheckRestriction for MountInstall
 - Skip copying data and shared directories to backup if they exist

Change-Id: I1811264e13ac5d95d5296dd3d5bd61f0dde36888
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoSkip copying data and shared directories to backup if they exist 18/113218/2
Damian Pietruchowski [Mon, 6 Feb 2017 15:55:30 +0000 (16:55 +0100)]
Skip copying data and shared directories to backup if they exist

Change-Id: I6aa4a4025add80f74a4401e160455ed627e12f03
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoFix StepCheckRestriction 94/112894/3
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>
7 years agoRefactoring - step configure 50/111150/3
Damian Pietruchowski [Thu, 19 Jan 2017 15:12:43 +0000 (16:12 +0100)]
Refactoring - step configure

Change-Id: If18fce493339c8e68ff36b45255e88c53d5af111
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoStyle check 15/112515/2
Piotr Ganicz [Fri, 13 Jan 2017 11:20:18 +0000 (12:20 +0100)]
Style check

Change-Id: Idb6c4bdcf74482563f9565e633d48eac02bd5118

7 years agoDisable xdelta3 external decompression 67/112567/1
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>
(cherry picked from commit d4c701b47d103713042ab887e307e0f0fc391f2e)

7 years agoAdd ttrace logs 25/111025/3
Junghyun Yeon [Thu, 19 Jan 2017 07:42:35 +0000 (16:42 +0900)]
Add ttrace logs

- Add ttrace logs at each step - precheck, process, clean and undo

Change-Id: Ie317cc9ac1b0d7ece7e43a2a035f350d104b1dfa
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd a new metadata plugin info for application AOT 75/111675/2
Sangyoon Jang [Mon, 23 Jan 2017 10:07:11 +0000 (19:07 +0900)]
Add a new metadata plugin info for application AOT

Change-Id: I04268b8fe94eb420edc687d1a8d5adbdc6e9b440
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRelease Version 1.13.1 93/111393/2 accepted/tizen/common/20170123.181906 accepted/tizen/ivi/20170120.121944 accepted/tizen/mobile/20170120.121853 accepted/tizen/tv/20170120.121908 accepted/tizen/wearable/20170120.121928 submit/tizen/20170120.073846
jongmyeongko [Fri, 20 Jan 2017 07:36:40 +0000 (16:36 +0900)]
Release Version 1.13.1

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

Change-Id: Ifa2825c4dca96a2c8502fa48d97fa9530136b61e
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdd handling Error and NULL result from system-info api 31/111331/5
jongmyeongko [Fri, 20 Jan 2017 06:44:49 +0000 (15:44 +0900)]
Add handling Error and NULL result from system-info api

Change-Id: Id809e66da6124716c6c0bbf862acbeceb7799369
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoRelease Version 1.13.0 52/111052/1 accepted/tizen/common/20170125.113121 accepted/tizen/ivi/20170119.222149 accepted/tizen/mobile/20170119.221719 accepted/tizen/tv/20170119.221941 accepted/tizen/wearable/20170119.222042 submit/tizen/20170119.070147
jongmyeongko [Thu, 19 Jan 2017 08:32:35 +0000 (17:32 +0900)]
Release Version 1.13.0

Changes:
- Remove ADMIN_USER_GLOBAL_INSTALLATION_ONLY definition
- Add profile util
- Fix coding style

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

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