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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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)
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>
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>
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)
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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
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>
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>
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>
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)
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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
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>
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>
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>
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>
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>
Piotr Ganicz [Fri, 13 Jan 2017 11:20:18 +0000 (12:20 +0100)]
Style check
Change-Id: Idb6c4bdcf74482563f9565e633d48eac02bd5118
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)
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>
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>
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>
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>
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>
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>
jongmyeongko [Wed, 18 Jan 2017 02:03:57 +0000 (11:03 +0900)]
Fix coding style
Change-Id: I4f22fac2dc64feb9c768bab80e37abd0d37ee9fc
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Mon, 16 Jan 2017 07:07:50 +0000 (16:07 +0900)]
Remove ADMIN_USER_GLOBAL_INSTALLATION_ONLY definition
For tizen 4.0, let's start with the single policy for
global/local installation in the platform.
Change-Id: Ifdfa36c52263f3f35bbdf4f410abf1c83a91d61b
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
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>
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>
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
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
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
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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
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>
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>
Junghyun Yeon [Wed, 14 Dec 2016 07:24:11 +0000 (23:24 -0800)]
Merge "Add default permission of directory for global pkg to 755" into tizen_3.0
Sangyoon Jang [Wed, 9 Nov 2016 07:07:21 +0000 (16:07 +0900)]
Handle request from admin user as global request
Change-Id: I1de150ffc7bc13cd3615e77a168c5c0493a26d39
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Wed, 14 Dec 2016 02:29:19 +0000 (11:29 +0900)]
Add default permission of directory for global pkg to 755
Change-Id: I3c37fbe5c5b97a48a606e041ce30d48dfcd05693
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 13 Dec 2016 08:10:30 +0000 (17:10 +0900)]
Let force_clean work when partialuninstall scenario
Change-Id: I1c3af379914298a1ede19ce9f4ce6dbf69884c4c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 12 Dec 2016 11:21:09 +0000 (20:21 +0900)]
Fix setting mainapp attribute
When installing hybrid application, webapp should be main application.
Native application should not be main application.
Change-Id: I1e210ad22e7b3f5e5bdcde0ea88f9c58e177bc3d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>