Sangyoon Jang [Mon, 21 Feb 2022 04:50:09 +0000 (13:50 +0900)]
Fix a variable name
The variable name for PkgmgrSignal 'ps' seems more proper than 'pi'.
Change-Id: I58d2e64e1ddc1adc614fcd25a095f60b270d5801
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Wed, 26 Jan 2022 10:24:52 +0000 (19:24 +0900)]
Add shared directory creation logic
- Sometimes exception occured at current_path() due to absence of skel/pkgid/shared.
Change-Id: I695abe33fcf790a6dfdd9af6e114dfff3ea5b5e3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Tue, 25 Jan 2022 05:56:34 +0000 (14:56 +0900)]
Fix typo in update plugin info error message
Change-Id: I64826a53a939ba416e5227d48001f9585bd0b979
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Thu, 13 Jan 2022 08:25:34 +0000 (17:25 +0900)]
Change package version comparsion behavior
Dotnet version will not be compared anymore
Change-Id: I01b3834139f67fee0e379ff3ababbadbd09c87fd
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 11 Jan 2022 09:20:51 +0000 (18:20 +0900)]
Release version 1.34.1
Changes:
- Add boost_filesystem namespace at exists()
Change-Id: Id4f0f5f0285fee8c958c1caa0e705dd4eb770e3e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 27 Dec 2021 05:51:57 +0000 (14:51 +0900)]
Add boost_filesystem namespace at exists()
Change-Id: I9c2c00e39efd01e09d827170c41d230fa88135c5
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Fri, 31 Dec 2021 04:41:49 +0000 (13:41 +0900)]
Release version 1.34.0
Changes:
- Fix build error
Change-Id: I15092396d575bc227daa1c82e2d7237f80494a86
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 31 Dec 2021 01:53:41 +0000 (10:53 +0900)]
Fix build error
Fix build error caused by boost library upgrade.
Change-Id: If9f8f4ac384b12d39dfd14acb3fc62f17f0ac573
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Thu, 16 Dec 2021 06:54:07 +0000 (15:54 +0900)]
Release version 1.33.13
Changes:
- Add return value checking routine
- Fix remove user package in StepRemovePrivSharedres
Change-Id: I78ae79c3ae4084d1ac012d235947bc99506abb44
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 16 Dec 2021 05:42:09 +0000 (14:42 +0900)]
Fix remove user package in StepRemovePrivSharedres
SendUninstallRequest return PMINFO_R_OK when operation success
this patch correct the wrong conditional check when uninstall of user package
Change-Id: Ic5f4059771927c357c9cc659339f1e38b9be96a3
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Tue, 30 Nov 2021 01:38:28 +0000 (10:38 +0900)]
Add return value checking routine
Change-Id: I69ad2e55a54b2750155852f20404f2b716df2c24
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Thu, 2 Dec 2021 05:23:40 +0000 (14:23 +0900)]
Release version 1.33.12
Changes:
- Fix error message typo in StepRecoverParserPlugin
- Fix usage of backup manifest in recover parser plugin
Change-Id: I311d665de6533aa3ab9eea81017092d2448c56dd
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 1 Dec 2021 04:55:59 +0000 (13:55 +0900)]
Fix usage of backup manifest in recover parser plugin
When in RecoverInstall mode and ReadonlyUpdateInstall in RecoverUpgrade mode
Fix the problem of misusing the backup manifest in the recover parser plugin
Change-Id: I569b9c96c457ba39ec1bb482cd21440f52980563
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 30 Nov 2021 08:05:58 +0000 (17:05 +0900)]
Fix error message typo in StepRecoverParserPlugin
Change-Id: Iaf63915f3e523eb049f76391755acde4e79fdebf
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Tue, 9 Nov 2021 05:38:18 +0000 (14:38 +0900)]
Release version 1.33.11
Changes:
- Fix StepRemovePrivSharedres
- Fix log backup logic
- Change file log behavior
Change-Id: I564fe25914656e66390a48038ebe409b76bce14d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 2 Nov 2021 10:35:39 +0000 (19:35 +0900)]
Change file log behavior
Adjust permission and SMACK label to let
platform privileged applications could access it.
Also, create empty installer history log file to
apply proper SMACK label to it.
Change-Id: Icb85e3fbb2f0e69ae5b8e8ad6e1a94eedee576da
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 2 Nov 2021 08:26:27 +0000 (17:26 +0900)]
Fix log backup logic
Rotation logic was not working properly because
std::remove() with file which is not exists will return negative integer.
Change-Id: I2f1b1b792e306024af4545e4586fb5069a0330d9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 20 Oct 2021 08:43:38 +0000 (17:43 +0900)]
Fix StepRemovePrivSharedres
Installer will tries to remove privileged sharedres directory itself
when installer unable to send request to server such as pkg recovery.
Change-Id: If3de55eb19e5e1db18f2313f506fb42a7aee8208
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 13 Sep 2021 07:19:30 +0000 (16:19 +0900)]
Release version 1.33.10
Changes:
- Fix static analysis issue
Change-Id: I4633414e4d2f07da1965cf597d7bc194e6111b4f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 13 Sep 2021 01:27:51 +0000 (10:27 +0900)]
Fix static analysis issue
Change-Id: I62449d9b4df01b5ce14fdf24373a2989c5648819
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 6 Sep 2021 01:30:36 +0000 (10:30 +0900)]
Release version 1.33.9
Changes:
- Cleanup codes with clean code principle
- Add Steps for handling privileged shared resources
Change-Id: Ia07b2416b708915f4b5e50b11e7423212c74f6b6
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 31 Aug 2021 07:40:53 +0000 (16:40 +0900)]
Add Steps for handling privileged shared resources
Add new steps responsible for removing privileged shared resources
while uninstall and its recovery requests.
Change-Id: Iec89a431e415b6abc84c2bf6409fc30445818536
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 26 Jul 2021 11:06:50 +0000 (20:06 +0900)]
Cleanup codes with clean code principle
- Extract codes into functions to reduce function size.
- Apply early-return policy to reduce indentation depth.
- Integrate duplicate operation logic into one function.
- Remove unnecessary comments.
- Add blank lines for readability.
Change-Id: I5e9cca6e1854dbe781daf5099cc29a5103369698
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Wed, 7 Jul 2021 07:47:08 +0000 (16:47 +0900)]
Release version 1.33.8
Changes:
- Fix update failure of rpk package
- Print step name when failed at process()
- Set installer index at InstallerRunner
Change-Id: Icf2ce7bc3e30b80478b80f73a7505cb146a02033
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Wed, 16 Jun 2021 05:57:49 +0000 (14:57 +0900)]
Set installer index at InstallerRunner
InstallerFactory doesn't need to set index itself.
Change-Id: Ibe46849ec871ee356ea6e14320cacd00eee14b95
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 16 Jun 2021 05:52:21 +0000 (14:52 +0900)]
Print step name when failed at process()
Change-Id: I5da03d1ce517ddea1bd5cc9a3d07c00eb1b69796
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 18 Jun 2021 11:11:12 +0000 (20:11 +0900)]
Fix update failure of rpk package
The rpk package doesn't contain shared directory, we don't need to check
free space for backup this directory.
Change-Id: Ie9cd4b1743487b4ac240891bb6a56645f3941903
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Thu, 17 Jun 2021 06:51:01 +0000 (15:51 +0900)]
Release version 1.33.7
Changes:
- Fix StepCreateResControlDirectoires
- Add keep-rwdata check routine for ReadonlyUpdateUninstall
- Fix StepRevmoeUserData
- Implement parsing res-control
- Create directory for res control if necessary
Change-Id: I8258297fc91676ed8d016a93882accc9ca07bf12
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 3 Jun 2021 07:00:17 +0000 (16:00 +0900)]
Create directory for res control if necessary
Create directories used for res control when a application has res control
Change-Id: I9707db1705c97f0b458126fc466c696f41ce69d8
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 24 May 2021 07:25:47 +0000 (16:25 +0900)]
Implement parsing res-control
Requires:
- https://review.tizen.org/gerrit/#/c/platform/core/appfw/tpk-manifest-handlers/+/258681/
Change-Id: Ie09bd3f2a30cbc4f8d45e4992e6b0ec4a22d69ab
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Wed, 16 Jun 2021 09:09:18 +0000 (18:09 +0900)]
Fix StepRevmoeUserData
Use directory_iterator instead of recursive_directory_iterator.
recursive_directory_iterator may access files already removed, and this
causes exception.
Change-Id: Idee057b214d0b624710edda75ed33027e357918d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Wed, 16 Jun 2021 09:44:09 +0000 (18:44 +0900)]
Add keep-rwdata check routine for ReadonlyUpdateUninstall
Change-Id: I908cd718c5cabce6d86e32d00d4380a9513b0e4b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 10 Jun 2021 11:30:47 +0000 (20:30 +0900)]
Fix StepCreateResControlDirectoires
Do not create "work" directory. This directory is not necessary for
read-only overlay mount.
Change-Id: I67c89b377fa269994220e47ad08a2957468ae6b6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Thu, 10 Jun 2021 09:34:02 +0000 (18:34 +0900)]
Release version 1.33.6
Changes:
- Give inheritance attribute of Signature class
- Add virtual destructor of class Signature
- Add functions for classes inherits this class
- Fix static analysis issues
Change-Id: I9ffcdf792ec017ecb3a7922aa77a8f57f55032fd
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 10 Jun 2021 01:32:26 +0000 (10:32 +0900)]
Fix static analysis issues
- Fix memory leak
- Add try-catch statement to main
- Fix Uninitialized scalar field
Change-Id: If270567d9e33f77ca771badbf1de7f32a14d47da
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Tue, 6 Apr 2021 08:33:01 +0000 (17:33 +0900)]
Add functions for classes inherits this class
- Add ExtractPackageArchive() as virtual function.
- Define RemoveTmpDir() and implement it.
Change-Id: I9a62c629dff3434e186f9b56f618e41255f66625
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Fri, 28 May 2021 08:13:46 +0000 (17:13 +0900)]
Add virtual destructor of class Signature
Change-Id: I45b71af5bd915accae9628e425e40bdee36d5dae
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
DongHyun Song [Thu, 27 May 2021 04:02:42 +0000 (13:02 +0900)]
Give inheritance attribute of Signature class
This patch will provide inherit-ability to child class for its purpose.
Change-Id: I0cef392af11082051a97f33942c1958d175442c2
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Ilho Kim [Fri, 28 May 2021 07:05:07 +0000 (16:05 +0900)]
Release version 1.33.5
Changes:
- Add HistoryLogger class
- Print version at history log
- Add new dirs for smack labeling
- Add a new step StepCreateResControlDirectories
- Fix variable shadowing
- Merge changes I168c9485,Ia3df2821 into tizen
- Add functions to create pkg parser/cert db
Change-Id: I50f1c487b1e3f05c1097fc97cf19fddd5f4ca14f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Wed, 7 Apr 2021 07:20:42 +0000 (16:20 +0900)]
Add functions to create pkg parser/cert db
Database files will not be created automatically.
Change-Id: Ib3c0c1fd477210d8892964041b7e4328942e6cbc
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Fri, 28 May 2021 05:25:20 +0000 (05:25 +0000)]
Merge changes I168c9485,Ia3df2821 into tizen
* changes:
Add a new step StepCreateResControlDirectories
Add new dirs for smack labeling
Sangyoon Jang [Fri, 29 Jan 2021 09:22:48 +0000 (18:22 +0900)]
Fix variable shadowing
Fix build warnings of -Wshadow
Change-Id: I225a062ed264ff8475230e42321fdbbf048d4f4f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 25 May 2021 04:25:32 +0000 (13:25 +0900)]
Add a new step StepCreateResControlDirectories
This step creates directories for res-control feature.
Change-Id: I168c9485246fda09251c894859f2ee3e48a9f629
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 13 May 2021 07:11:41 +0000 (16:11 +0900)]
Add new dirs for smack labeling
res/allowed, res/global are new directories of resource packages, this
directories should be public RO(User::Home).
Change-Id: Ia3df282140d2256325af35bda6d528bafe191c69
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 14 Apr 2021 10:35:37 +0000 (19:35 +0900)]
Print version at history log
Change-Id: Ic8aba0517c79a2f2eaeb1c90637c3f22a9239467
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 7 Jan 2021 10:34:59 +0000 (19:34 +0900)]
Add HistoryLogger class
Extract functions logs history to class.
Change-Id: Ieda82e8ca44afb41eff7cec3028c8862e4d9432a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Fri, 26 Mar 2021 09:00:48 +0000 (18:00 +0900)]
Release version 1.33.4
Changes:
- Add function call to clear memory db
Change-Id: I2c33fc57e5b140bf73a6783b801433eea3c9969f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 26 Mar 2021 08:57:18 +0000 (17:57 +0900)]
Add function call to clear memory db
Change-Id: I9f73721835195241053cd32a1c39696b77b5e2ac
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Wed, 17 Mar 2021 08:21:20 +0000 (17:21 +0900)]
Release version 1.33.3
Changes:
- Update installer signal policy
- Fix tag plugin
- Change to handle logic subprocess's Wait()
- Clear memory database at the end of installation
Change-Id: Iffe27e2a0b65bb4d3ea60361387306072686ca12
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 10 Mar 2021 10:01:08 +0000 (19:01 +0900)]
Clear memory database at the end of installation
Change-Id: Iea5c43c88fd5bccf4f150b5f491b1e8dac6d3004
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 22 Feb 2021 06:16:23 +0000 (15:16 +0900)]
Change to handle logic subprocess's Wait()
Change-Id: I7d02a2c2920cd00c1608b84bbbdab8f1fa68fd3e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Tue, 16 Feb 2021 08:40:08 +0000 (17:40 +0900)]
Fix tag plugin
When certain tag has removed during package update and
plugin related with it has executed, "removed" plugin
should be executed. But there are no tag in manifest so
nullptr will be delivered into plugin.
Change-Id: I9373934d7f7a317e2e9ea59cd5ee5efc8ef7b7ea
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 3 Feb 2021 07:37:52 +0000 (16:37 +0900)]
Update installer signal policy
Tizen platform blocks install or update of user package
when same package is already installed as global.
Change-Id: I8e429c5ce5069a4ffc75ac44312ab6e98cb2c185
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Mon, 1 Feb 2021 08:01:34 +0000 (17:01 +0900)]
Release version 1.33.2
Changes:
- Fix pkg_initdb tool to check backend execution result
- Fix coding rule
- Add virtual destructor
Change-Id: I03c79a69069b8006bdd034407dcae28acc22be40
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
jh9216.park [Mon, 1 Feb 2021 00:24:13 +0000 (19:24 -0500)]
Add virtual destructor
- require : https://review.tizen.org/gerrit/#/c/platform/core/appfw/manifest-parser/+/252618/
Change-Id: I1d7eaed8371bb7c456f37f276f06194f50f3fad4
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Junghyun Yeon [Thu, 28 Jan 2021 00:35:37 +0000 (09:35 +0900)]
Fix coding rule
Change-Id: I690fb682f7853cf742c6c11d63e0bf50cad43b53
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 26 Jan 2021 09:32:29 +0000 (18:32 +0900)]
Fix pkg_initdb tool to check backend execution result
Now pkg_initdb tool will check execution result of installer backends
and create /tmp/.preload_install_error.
It may cause failure of entire mic build.
Change-Id: I6bf99350853e5585df96f567b77e0e9a1f7c42a0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 15 Jan 2021 01:05:40 +0000 (10:05 +0900)]
Release version 1.33.1
Changes:
- Change name of StepCopyTep
- Fix memory leak
Change-Id: I5933babe6fe3c4c8650865ff88a78ac4866de390
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 8 Jan 2021 08:45:48 +0000 (17:45 +0900)]
Fix memory leak
Change-Id: Ifee4762f873e5b239878988cf89541844b244394
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 13 Jan 2021 05:27:08 +0000 (14:27 +0900)]
Change name of StepCopyTep
Change it for consistency.
Change-Id: I83c9bc332f55daada9d837531ba3a12eda42bea3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 24 Dec 2020 03:26:29 +0000 (12:26 +0900)]
Release version 1.33.0
Changes:
- Fix static analysis issues
- Change log level of QueryCertificateAuthorCertificate
- Remove unused logic
- Adjust install step order
- Change backup logic of StepBackupManifest
Change-Id: Id469cf7d9431c00be45a2655afe65d1046ff47b4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 23 Dec 2020 08:51:21 +0000 (17:51 +0900)]
Change backup logic of StepBackupManifest
Change its method from copying it into move and copy
to ensure backup manifest is valid one.
(Move is atomic operation)
Change-Id: Ia65e2104d62f17be3c1c9fb28c44cf756b11977d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 2 Dec 2020 00:18:05 +0000 (09:18 +0900)]
Adjust install step order
Necessary information will be set at security context handle so
pkginfo is no longer used while security registration.
Change-Id: I0b94073122e98d37d446c04bded7d6704a6c933b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 2 Dec 2020 04:02:06 +0000 (13:02 +0900)]
Remove unused logic
According to the previous Tizen concept, same package could be
installed both global and user pkg. And when user tries to
uninstall user pkg, symlinks for global pkg should be created to
change pkg as global pkg. This concept is no longer exists so
related logic should be removed.
Change-Id: I1fdf9b39043940ef3a2ede05695100acaac22105
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Tue, 1 Dec 2020 09:46:41 +0000 (18:46 +0900)]
Change log level of QueryCertificateAuthorCertificate
Change to error from debug.
Change-Id: Id58ed1f3a08b5482808ed3f4d1db9abe6ac91e6a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Tue, 1 Dec 2020 01:52:30 +0000 (10:52 +0900)]
Fix static analysis issues
In InstallWithStorage function vconf_get and vconf_set function
can be failed so the return value need to be checked
Change-Id: I215799aa5f2e4a73474dc97c89acb8da1551f7db
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 20 Nov 2020 07:34:23 +0000 (16:34 +0900)]
Release version 1.32.24
Changes:
- Aborting installation when failed to get admin user info
Change-Id: Ia0adaef47667cfb8c930d96cb13171797bc9ec84
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Wed, 4 Nov 2020 07:19:45 +0000 (16:19 +0900)]
Aborting installation when failed to get admin user info
Change-Id: Id1317cca5055590f708b00170c2b62e6c46bc4f8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 6 Nov 2020 09:11:37 +0000 (18:11 +0900)]
Release version 1.32.23
Changes:
- Fix writing recovery file
Change-Id: I28180713b60664810942c210f2f2f3771997a294
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 6 Nov 2020 08:36:43 +0000 (17:36 +0900)]
Fix writing recovery file
If writing value of bf::path, the double quote will be appended.
To fix this, use string type instead
(This is fix of side-effect of previous commit:
https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/243942)
Change-Id: Ide470d02e725c0bfce090c87d96480af579466bd
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Tue, 27 Oct 2020 05:25:54 +0000 (14:25 +0900)]
Release version 1.32.22
Changes:
- Fix recovery file syncing logic
- Change AppQueryInterface's some function to virtual
- Fix memory leak
- Remove Unnecessary allocation
- Add missing codes for creating symlinks
- Send a finished signal after all operation is completed
Change-Id: I1988443be599ce9b85b99d3df87ff67792f3c36b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 19 Oct 2020 02:30:15 +0000 (11:30 +0900)]
Send a finished signal after all operation is completed
Since the clean type recovery has been added
If the process of all steps is successful,
the installer considers all of the installation to be successful
and sends a finished signal
If there is an operation in a clean that has not yet been completed
like database commit operation, there is a timing issue that an application
that received the finished signal can access where it is not completed
Change-Id: I3195b46ded497cc67bfc2d12e528d9a9e7961cea
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Wed, 14 Oct 2020 06:28:28 +0000 (15:28 +0900)]
Add missing codes for creating symlinks
This was deleted when refactoring
(https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/221429)
Change-Id: I22ca4c36a5ee596fc56c32d44a539d29f1d82282
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Fri, 25 Sep 2020 06:59:49 +0000 (15:59 +0900)]
Remove Unnecessary allocation
The value of process_poll will allocated with value 'false' in the next line
Change-Id: I03d28429eca7eaff309a8f6205c8bc8352849792
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 23 Sep 2020 06:43:24 +0000 (15:43 +0900)]
Fix memory leak
The memory allocated by getPublicKeyDER should be freed
Change-Id: I511d5cf0cb03c7f4656b362ceec3cebb75d4ff1a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 18 Sep 2020 05:01:41 +0000 (14:01 +0900)]
Change AppQueryInterface's some function to virtual
Child class's logic of extracting manifest can be diffrent
and add a clear function for result of extracting function
Change-Id: Ic15edf83008a7b8f7f4e6021a51b1d53e3e40ac4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Fri, 11 Sep 2020 08:47:42 +0000 (17:47 +0900)]
Fix recovery file syncing logic
- Rename() is atomic itself so it doesn't have to be synced.
- Change recovery writing logic using boost iostream and fsync()
using file descriptor
Change-Id: I3ef8fe8ba9fb649581d67c1f843c887cb4a57f3b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 14 Sep 2020 06:43:25 +0000 (15:43 +0900)]
Release version 1.32.21
Changes:
- Fix static analysis issue
- Fix removing packaged rw directories
Change-Id: I51695e6109f5e780f0b5eff73d2f95c28a432db6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 4 Sep 2020 07:56:49 +0000 (16:56 +0900)]
Fix removing packaged rw directories
Remove shared/trusted directory when update case.
Make util function to remove rw directories.
Change-Id: Ide197cbcd97a4e6faf7faf1941880a50abf711fb
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 8 Sep 2020 03:18:22 +0000 (12:18 +0900)]
Fix static analysis issue
Change-Id: I2f1c2634150246f48f8293794c117a7a1a58832e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Tue, 8 Sep 2020 02:30:15 +0000 (11:30 +0900)]
Release version 1.32.20
Changes:
- Fix static analysis issue
- Change to use gmock package instead of gtest
- Fix coding rule
- Fix ReadonlyUpdateInstall's recovery
- Fix StepRemoveUserData
Change-Id: Ia50bc83ca252091b7beb6fa0973ef85604966088
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 7 Sep 2020 05:57:47 +0000 (14:57 +0900)]
Fix StepRemoveUserData
When using boost's recursive_directory_iterator
Accessing to the iterator after remove file occur exception
Change-Id: If317b742f6eabe72bc6f14f3f38c646e5143dc53
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 3 Sep 2020 08:45:30 +0000 (17:45 +0900)]
Fix ReadonlyUpdateInstall's recovery
When performing the recovery of ReadonlyUpdateInstall
the xml of package that performed ReadonlyUpdateInstall should be removed
Change-Id: Id2b86b26a8a7b81e2b96dab441d23021c0892157
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Thu, 27 Aug 2020 01:03:00 +0000 (10:03 +0900)]
Fix coding rule
Change-Id: I56461902d982830f1bee89c1c3c009f2b8c0117f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Wed, 29 Jul 2020 04:53:03 +0000 (13:53 +0900)]
Change to use gmock package instead of gtest
Change-Id: Ib1ca4234065363a7e3116a5278ed3043dea79dfb
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Tue, 25 Aug 2020 05:03:51 +0000 (14:03 +0900)]
Fix static analysis issue
Change-Id: Iedeeb275edaa9b09e3a2ff7af88c88b5adfdbfb2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Mon, 24 Aug 2020 06:51:15 +0000 (15:51 +0900)]
Release version 1.32.19
Changes:
- Set pkg type while unregistering security context
- Move test codes
Change-Id: I25ad93031ecbbfe465c06830e7b207b177c7f958
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 24 Aug 2020 03:41:13 +0000 (12:41 +0900)]
Move test codes
Move test codes info ${src root}/test and rename it to smoke_tests
Change-Id: Ifc954d6d38c403c7cf47a565edec744574b212e5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Mon, 24 Aug 2020 02:42:32 +0000 (11:42 +0900)]
Set pkg type while unregistering security context
Change-Id: I1916775a86149481f713cb277a93cda5e6f22098
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Fri, 21 Aug 2020 07:23:57 +0000 (16:23 +0900)]
Release version 1.32.18
Changes:
- Fix the behavior that sends start signal twice
- Remove aul plugin info from plugins list configuration file
- Set pkg type and privilege level while installation
Change-Id: I62f710dcb346ac9a40905e86ded749f9a3a2bbd2
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Wed, 12 Aug 2020 04:47:56 +0000 (13:47 +0900)]
Set pkg type and privilege level while installation
Change-Id: I2df40379d48d33acf96c99c799a9338fdc2a65ea
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Hwankyu Jhun [Thu, 20 Aug 2020 23:06:11 +0000 (08:06 +0900)]
Remove aul plugin info from plugins list configuration file
libalias-appid-parser and liballowed-appid-parser are used instead of libaul-parser.
Related changes:
- https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/241277/
Change-Id: I81b4d0c256723c842d25dad551307967b3371a8e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Ilho Kim [Thu, 20 Aug 2020 02:38:26 +0000 (11:38 +0900)]
Fix the behavior that sends start signal twice
Change-Id: I440df908b97bfe5549dc780da8a4b6d81121b88e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 14 Aug 2020 07:42:53 +0000 (16:42 +0900)]
Release version 1.32.17
Changes:
- Fix coding rule
Change-Id: I8e5c94e969401b7c4c15f3822e4c0cbeff2d1632
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Fri, 14 Aug 2020 02:24:52 +0000 (11:24 +0900)]
Fix coding rule
Change-Id: Iab77a94e962dfe6c4d2b27c801dda19767009b11
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Thu, 13 Aug 2020 05:26:38 +0000 (14:26 +0900)]
Release version 1.32.16
Changes:
- Change line ending
- Fix Remove function in file_utils
- Fix Remove function in file utils
- Remove log
Change-Id: Ib87870b8acd71ba4f451efeb9ec3880fb2eb3c92
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Wed, 12 Aug 2020 08:07:12 +0000 (17:07 +0900)]
Remove log
Getting user list always failed during mic build.
Change-Id: Iaf1dd913285f71fb1ecd35e4051cb11da60d9781
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Wed, 12 Aug 2020 04:59:00 +0000 (13:59 +0900)]
Fix Remove function in file utils
If the path is not exists Remove function should return true
Change-Id: Ib05529a4131d8afaa7ea192064bbfa04d7279db9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 11 Aug 2020 02:15:41 +0000 (11:15 +0900)]
Fix Remove function in file_utils
Change-Id: I343fe3ebd842d907334a0630eb0308c3c30db60e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Tue, 11 Aug 2020 02:36:27 +0000 (11:36 +0900)]
Change line ending
Change line endings of some files from CRLF to LF
Change-Id: Ie185cf28e3075df2165d681e43d6c7ae8fb09f63
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>