platform/core/appfw/pkgmgr-tool.git
19 months agoRelease version 0.9.6 37/281637/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.060942 accepted/tizen/7.0/unified/hotfix/20221116.105039 accepted/tizen/unified/20220921.091811 tizen_7.0_m2_release
Sangyoon Jang [Tue, 20 Sep 2022 06:10:22 +0000 (15:10 +0900)]
Release version 0.9.6

Changes:
 - Fix static analysis issue

Change-Id: I64926173491692eb115e768651283d2dd5672e10
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
19 months agoFix static analysis issue 23/281623/1
Sangyoon Jang [Tue, 20 Sep 2022 05:15:10 +0000 (14:15 +0900)]
Fix static analysis issue

Change-Id: Ibc6d05ba96f732dd2d62468b585d32cb28bac151
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
19 months agoRelease version 0.9.5 21/280921/1 accepted/tizen/unified/20220908.013404
Changgyu Choi [Wed, 7 Sep 2022 00:29:25 +0000 (09:29 +0900)]
Release version 0.9.5

Changes:
 - Fix worng return value
 - Add pre sending pkg event to amd

Change-Id: Ie4ae6a76a2f3fa0eccf0e58087133bb35291dbab
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
20 months agoAdd pre sending pkg event to amd 77/280377/9
Changgyu Choi [Mon, 29 Aug 2022 06:50:31 +0000 (15:50 +0900)]
Add pre sending pkg event to amd

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/aul-1/+/280292

Change-Id: I3c5c2f1b498818edfd59d6a13ad0a072bc6dcda5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
20 months agoFix worng return value 61/279961/1
Ilho Kim [Fri, 19 Aug 2022 10:08:54 +0000 (19:08 +0900)]
Fix worng return value

Change-Id: I524e1f1607168357f2edc5f629ddcdf429041213
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
23 months agoRelease version 0.9.4 15/275615/1 accepted/tizen/unified/20220530.140630 submit/tizen/20220527.073732
Ilho Kim [Fri, 27 May 2022 07:12:49 +0000 (16:12 +0900)]
Release version 0.9.4

Changes:
 - Fix spec file for coverage measurement

Change-Id: I9de3611f5bc5d1941cb1b3672544c60cf0c77f7d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
23 months agoFix spec file for coverage measurement 08/275608/1
Ilho Kim [Fri, 27 May 2022 05:39:24 +0000 (14:39 +0900)]
Fix spec file for coverage measurement

To measure code coverages automatically, a run-unittest.sh is needed

Change-Id: I0b6065e52c7318d8b2b69d78ec64001bfb15de10
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
23 months agoRelease version 0.9.3 58/275258/1 accepted/tizen/unified/20220526.143649 submit/tizen/20220525.035932
Ilho Kim [Thu, 19 May 2022 06:39:35 +0000 (15:39 +0900)]
Release version 0.9.3

Changes:
 - Modify database backup sequence

Change-Id: If523915afccfebb7b8987b9e8dfbd2cd0077cb16
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
23 months agoModify database backup sequence 11/275211/2
Ilho Kim [Wed, 18 May 2022 07:18:31 +0000 (16:18 +0900)]
Modify database backup sequence

If there is a forced termination before erasing the backup flag
and applying the smack label, there is a problem of using the backup database
which the smack label is not applied in the next upgrade
so modify the smack label setting of the backup database
before removing the backup flag

Change-Id: I5201ef7b3c24e5f79abb32f030908a5d2e026c43
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.9.2 51/274151/1 accepted/tizen/unified/20220425.055024 accepted/tizen/unified/20220426.132202 submit/tizen/20220422.070818 submit/tizen/20220423.050208 submit/tizen/20220423.124820 submit/tizen/20220425.070152
Junghyun Yeon [Fri, 22 Apr 2022 06:38:44 +0000 (15:38 +0900)]
Release version 0.9.2

Changes:
 - Add upgrade script

Change-Id: I59f42bd9f911362c7c1504d246fb1f43a73683e3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoAdd upgrade script 08/274008/1
Junghyun Yeon [Wed, 20 Apr 2022 04:32:10 +0000 (13:32 +0900)]
Add upgrade script

Upgrade script for adding lightuser column

Change-Id: Id0df89a85a71edfb6ef9b236e0418a614e047196
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.9.1 90/271590/1 accepted/tizen/unified/20220224.125744 submit/tizen/20220223.080756
Ilho Kim [Wed, 23 Feb 2022 07:36:26 +0000 (16:36 +0900)]
Release version 0.9.1

Changes:
 - Fix static analysis issue

Change-Id: I015599c20db94ef230e6a8762e2ef1b651f6f082
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoFix static analysis issue 04/271204/2
Ilho Kim [Thu, 17 Feb 2022 01:47:25 +0000 (10:47 +0900)]
Fix static analysis issue

- Remove the use of large stack

Change-Id: Ic24d7d09d3423043dd6d3dbe68657b05a0b29923
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.9.0 08/270208/1 submit/tizen/20220126.231421
Junghyun Yeon [Wed, 26 Jan 2022 10:29:40 +0000 (19:29 +0900)]
Release version 0.9.0

Changes:
 - Change preload and preload-rw package installation order

Change-Id: I5da506b3b95a57a838ac5201d0da7099735bb8b7
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoChange preload and preload-rw package installation order 09/270109/4
Junghyun Yeon [Wed, 26 Jan 2022 01:24:11 +0000 (10:24 +0900)]
Change preload and preload-rw package installation order

Change installation order to install larger package prior than samller one.
install_preload_pkg tool deletes package file when its installation has done.
So if there are not enough space left in image,
installation will be failed due to lack of storage.
So change install larger package first to prevent this.

Change-Id: Ia1cc3ced1b0213f63f84eca8634016be3f889448
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.8.8 44/269744/1 accepted/tizen/6.5/unified/20220125.123306 accepted/tizen/unified/20220124.020946 submit/tizen/20220120.064930 submit/tizen/20220120.083417 submit/tizen/20220120.231448 submit/tizen_6.5/20220120.064818 submit/tizen_6.5/20220121.000129 submit/tizen_6.5/20220123.222508
Ilho Kim [Thu, 20 Jan 2022 05:18:12 +0000 (14:18 +0900)]
Release version 0.8.8

Changes:
 - Change gcov installation path

Change-Id: I2d329053a608d7fe08c9a3490e28018e9f7111d1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoChange gcov installation path 91/269691/1
Ilho Kim [Thu, 20 Jan 2022 04:19:23 +0000 (13:19 +0900)]
Change gcov installation path

Change-Id: I1a22143365590c408d5a102a25092c7f1b01f409
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.8.7 92/268992/1 accepted/tizen/unified/20220106.124729 submit/tizen/20220106.054937
Junghyun Yeon [Thu, 6 Jan 2022 05:17:39 +0000 (14:17 +0900)]
Release version 0.8.7

Changes:
 - Fix static analysis issue
 - Remove unnecessary script

Change-Id: I0566558eb16d241ca8372fe2e1020f7ddc5da385
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRemove unnecessary script 48/268948/1
Junghyun Yeon [Wed, 5 Jan 2022 06:26:28 +0000 (15:26 +0900)]
Remove unnecessary script

Change-Id: I6b169e3dcba6a416bf2c5cc5d124d974a34365d7
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoFix static analysis issue 81/268881/2
Ilho Kim [Tue, 4 Jan 2022 06:13:15 +0000 (15:13 +0900)]
Fix static analysis issue

Change to check destination path's size of strncpy

Change-Id: Iad8a0f0fb7ca7777e663cb2f058975473fd0ee2e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.8.6 31/267131/1 accepted/tizen/6.5/unified/20211129.211907 accepted/tizen/unified/20211129.120734 submit/tizen/20211126.050722 submit/tizen_6.5/20211126.050714
Sangyoon Jang [Fri, 26 Nov 2021 05:04:31 +0000 (14:04 +0900)]
Release version 0.8.6

Changes:
 - Print error log when opt.zip not found
 - Fix Rw2RoUpgrader

Change-Id: Ie4effa699ae7df251f32d7ac8c32fc08cf2bcd11
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoFix Rw2RoUpgrader 89/267089/1
Sangyoon Jang [Thu, 25 Nov 2021 07:44:37 +0000 (16:44 +0900)]
Fix Rw2RoUpgrader

In case of RO-updated rw -> preload ro, ro package does not need to be
installed again(uninstalling RO-updated rw package installs preload ro package
again automatically), but In case of preload rw -> preload ro, ro package
should be installed by ManifestDirectInstall mode.

Change-Id: I1fcc5c4559d9c0cd7eb2da4fac92b3fb59447b54
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoPrint error log when opt.zip not found 88/267088/1
Sangyoon Jang [Thu, 25 Nov 2021 06:37:54 +0000 (15:37 +0900)]
Print error log when opt.zip not found

Change-Id: Ic51973255bdea286895ee08020784cf18a7bae7f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoRelease version 0.8.5 13/266913/1 accepted/tizen/6.5/unified/20211124.060346 accepted/tizen/unified/20211123.143758 submit/tizen/20211122.092115 submit/tizen/20211123.001718 submit/tizen_6.5/20211123.111544
Junghyun Yeon [Mon, 22 Nov 2021 09:16:06 +0000 (18:16 +0900)]
Release version 0.8.5

Changes:
 - Remove unused script

Change-Id: I6ad85bff6beb55c4c27fd9825f38628882646621
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRemove unused script 56/264856/1
Junghyun Yeon [Fri, 1 Oct 2021 08:05:03 +0000 (17:05 +0900)]
Remove unused script

Change-Id: I1e44866a443800f34080c1bc64d94a00bc74918f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.8.4 93/263893/1 accepted/tizen/6.5/unified/20211028.100243 accepted/tizen/unified/20210914.085014 submit/tizen/20210913.073852 submit/tizen_6.5/20211028.162101 tizen_6.5.m2_release
Junghyun Yeon [Mon, 13 Sep 2021 07:19:07 +0000 (16:19 +0900)]
Release version 0.8.4

Changes:
 - Adjust upgrade script

Change-Id: I96b6e9e19283ee48efdb92b66759b703b1a55a17
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoAdjust upgrade script 22/263822/1
Junghyun Yeon [Fri, 10 Sep 2021 09:43:39 +0000 (18:43 +0900)]
Adjust upgrade script

- Move contents of script 30006 to 30007.
- Add pkg db user version set script to 30007.
- Change 30006 scripts to handle priv_shared_res directory creation.

Change-Id: I28ddcd4b660ef31704902dea4a0603c4f1d71636
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.8.3 74/263674/1 accepted/tizen/unified/20210909.002403 accepted/tizen/unified/20210910.120714 submit/tizen/20210908.042905 submit/tizen/20210909.100919
Ilho Kim [Wed, 8 Sep 2021 04:13:49 +0000 (13:13 +0900)]
Release version 0.8.3

Changes:
 - Handle path state in resource event signal

Change-Id: I84fd04ed7f3a7fadb39a00fa03086962075055b9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoHandle path state in resource event signal 15/263615/4
Ilho Kim [Tue, 7 Sep 2021 04:51:33 +0000 (13:51 +0900)]
Handle path state in resource event signal

Change-Id: I9c9c8de57bdf70ec71c9ab4e85e1e89f379f8087
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.8.2 39/263639/1 accepted/tizen/unified/20210908.011418 submit/tizen/20210907.080459 submit/tizen/20210908.013707
Junghyun Yeon [Tue, 7 Sep 2021 08:01:52 +0000 (17:01 +0900)]
Release version 0.8.2

Changes:
 - Change res-copy behavior when handling uninstall request

Change-Id: I4648d5e3092b32d7255ed87012a11bc5072371f9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoChange res-copy behavior when handling uninstall request 38/263638/1
Junghyun Yeon [Tue, 7 Sep 2021 07:54:04 +0000 (16:54 +0900)]
Change res-copy behavior when handling uninstall request

Change it to proceed uninstall requests even if there are no
package information on database.

Change-Id: I494b7879d6dd66079c81cd6c387f4b952d86dbf4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.8.1 16/263516/1 submit/tizen/20210906.013143
Junghyun Yeon [Mon, 6 Sep 2021 01:25:29 +0000 (10:25 +0900)]
Release version 0.8.1

Changes:
 - Fix coding rule
 - Change permission of directories being created or copied
 - Send event signal for user
 - Fix static analysis issue
 - Improve code readability.
 - Fix send resource signal api

Change-Id: Id759b2169679d459a901675b01b1af2a3a771d39
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoFix send resource signal api 62/263362/2
Ilho Kim [Wed, 1 Sep 2021 05:51:45 +0000 (14:51 +0900)]
Fix send resource signal api

Related:
 [slp-pkgmgr]https://review.tizen.org/gerrit/#/c/platform/core/appfw/slp-pkgmgr/+/263354/

Change-Id: Id05fd4759ac9cdb1dfe5eee81ce47b6a66c8a45b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoImprove code readability. 46/262246/5
Junghyun Yeon [Thu, 5 Aug 2021 02:56:06 +0000 (11:56 +0900)]
Improve code readability.

- Add some empty lines for readability.
- Reduce indentation depth.
- Extract codes into function.

Change-Id: I7e3b3199632f71632b9e7311aaf35ea7ed4037a2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoFix static analysis issue 61/263361/1
Junghyun Yeon [Wed, 1 Sep 2021 05:48:33 +0000 (14:48 +0900)]
Fix static analysis issue

Change-Id: I1def0214172a8e0b6d7a49c7a2c8d7bbf7b5ed61
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoSend event signal for user 97/263297/4
Ilho Kim [Tue, 31 Aug 2021 05:33:22 +0000 (14:33 +0900)]
Send event signal for user

Change-Id: I69c2ca4ce2897c84f77a10f0094d867b611e6ff7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoChange permission of directories being created or copied 96/263296/1
Junghyun Yeon [Tue, 31 Aug 2021 02:23:56 +0000 (11:23 +0900)]
Change permission of directories being created or copied

Change-Id: I2b72706dfd2f95f779d2446e5cc83ef0ac35a480
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoFix coding rule 81/263081/3
Junghyun Yeon [Thu, 26 Aug 2021 02:40:20 +0000 (11:40 +0900)]
Fix coding rule

Change-Id: I87a5643b67f94381ae8466e009587c579685037a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.8.0 97/263097/1 accepted/tizen/unified/20210830.104017 submit/tizen/20210826.063234 submit/tizen/20210830.020619
Ilho Kim [Thu, 26 Aug 2021 06:30:12 +0000 (15:30 +0900)]
Release version 0.8.0

Changes:
 - Set smack label of pkg_upgrade
 - Implement request handlers
 - Fix static analysis issue
 - Change prefix rsc to res
 - Add DB backup unit test for pkg_upgrade
 - Merge "Set smack label of pkg_upgrade" into tizen
 - Implement CreateDir request handler
 - Add checking routine to prevent path traverse attack
 - Implement EventSignalSender
 - Implement EventSignalSender unit test
 - Change directory policy

Change-Id: I9cc80a51d2ecf8307f3a4908f7a040f381933b18
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoChange directory policy 57/263057/7
Junghyun Yeon [Wed, 25 Aug 2021 02:33:31 +0000 (11:33 +0900)]
Change directory policy

- Create root directory when installing RPM package.
- Change codes to set uid/gid with designated user and group.
- Cleanup unit test for reduce duplicated codes.

Change-Id: Id7621cced36340e045a7864b1b5e9e3756d3d36e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoImplement EventSignalSender unit test 73/262973/4
Ilho Kim [Tue, 24 Aug 2021 06:20:53 +0000 (15:20 +0900)]
Implement EventSignalSender unit test

Change-Id: I473f648fd6182ac3d7ab191a5cad55c89c7767bd
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoImplement EventSignalSender 99/262899/8
Ilho Kim [Mon, 23 Aug 2021 01:29:02 +0000 (10:29 +0900)]
Implement EventSignalSender

Change-Id: Ie9caa2fa8d39272132a100cbcd0930da49d5c4f5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdd checking routine to prevent path traverse attack 46/262946/3
Junghyun Yeon [Tue, 24 Aug 2021 01:41:02 +0000 (10:41 +0900)]
Add checking routine to prevent path traverse attack

Change-Id: Ie90df0c9d1075725870cdce7c86f7c1a6c5b703a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoImplement CreateDir request handler 03/262803/7
Junghyun Yeon [Fri, 20 Aug 2021 03:33:08 +0000 (12:33 +0900)]
Implement CreateDir request handler

Implement CreateDir request handler which responsible for creating new directories.

Change-Id: Ib5dba75b3f2d8975917eeb248fcd7cdf15afad95
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoMerge "Set smack label of pkg_upgrade" into tizen
Sangyoon Jang [Mon, 23 Aug 2021 04:55:47 +0000 (04:55 +0000)]
Merge "Set smack label of pkg_upgrade" into tizen

2 years agoAdd DB backup unit test for pkg_upgrade 23/261923/5
Ilho Kim [Thu, 29 Jul 2021 02:29:55 +0000 (11:29 +0900)]
Add DB backup unit test for pkg_upgrade

Change-Id: I3f0e55c4736b1ee4f24c8409ed14660985ec86c5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoChange prefix rsc to res 20/262720/3
Junghyun Yeon [Wed, 18 Aug 2021 10:21:51 +0000 (19:21 +0900)]
Change prefix rsc to res

"res" is more common word for representing "resource" than "rsc".

Change-Id: I32c71d86a056a1c5127282e9fe0d69db8bc6e627
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoFix static analysis issue 98/262798/1
Junghyun Yeon [Fri, 20 Aug 2021 02:51:40 +0000 (11:51 +0900)]
Fix static analysis issue

Change-Id: Ieeeb6130390c6a54d80d1f95fb5a839eae6c8c8e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoImplement request handlers 49/262449/16
Junghyun Yeon [Wed, 11 Aug 2021 05:57:36 +0000 (14:57 +0900)]
Implement request handlers

Implement request handlers and its unit tests.

Change-Id: I131b551905d32d0b9794eb072f654c0b43a3476c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoSet smack label of pkg_upgrade 61/262761/1
Sangyoon Jang [Thu, 19 Aug 2021 08:07:21 +0000 (17:07 +0900)]
Set smack label of pkg_upgrade

Change-Id: I7ffb643648b37b24ceb709f0a69cf10966e80418
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoRelease version 0.7.8 69/262469/1 accepted/tizen/unified/20210824.123803 submit/tizen/20210811.093352 submit/tizen/20210823.073136
Junghyun Yeon [Wed, 11 Aug 2021 09:31:46 +0000 (18:31 +0900)]
Release version 0.7.8

Changes:
 - Add BackendInvoker unittest
 - Minor refactor pkg_upgrade tool
 - Change unittest directory hierachy
 - Move unit test main code
 - Fix pkg_upgrader
 - Add skeleton codes for rsc-copy tool
 - Add missing include
 - Implement ParamChecker class
 - Add GetRequestHandlerType() on AbstractRequesthandler
 - Change prototype of some functions
 - Implement RequestHandlerInvoker, ConditionValidator
 - Implement RscHandler
 - Merge "Fix pkg_upgrader" into tizen
 - Parse session-id for emitting signal in rsc-copy

Change-Id: I5ee0d42d42ec80fcf0a3dd534e9fa53e2d5c6dca
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoParse session-id for emitting signal in rsc-copy 39/262439/3
Ilho Kim [Wed, 11 Aug 2021 01:49:30 +0000 (10:49 +0900)]
Parse session-id for emitting signal in rsc-copy

Change-Id: I86c6ee8e3f7050f1aaf12d48f88111be8c2315c0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoMerge "Fix pkg_upgrader" into tizen
Junghoon Park [Wed, 11 Aug 2021 05:29:56 +0000 (05:29 +0000)]
Merge "Fix pkg_upgrader" into tizen

2 years agoImplement RscHandler 42/262442/2
Junghyun Yeon [Wed, 11 Aug 2021 02:05:48 +0000 (11:05 +0900)]
Implement RscHandler

Change-Id: I90707c66551d8c52745f7ea4e2b66d074606d2b9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoImplement RequestHandlerInvoker, ConditionValidator 19/262419/7
Junghyun Yeon [Tue, 10 Aug 2021 07:45:12 +0000 (16:45 +0900)]
Implement RequestHandlerInvoker, ConditionValidator

Change-Id: I2d70a0c78dd2c9a6ebf0cbcbf4246c6dfe12de95
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoChange prototype of some functions 16/262416/7
Junghyun Yeon [Tue, 10 Aug 2021 06:44:58 +0000 (15:44 +0900)]
Change prototype of some functions

- Add GetUID() function to ParamChecker to get parsed UID properly.
- Change SendFail() to accept error type as parameter.
- Remove parameter of EventSignalSender constructer. and add setter functions.

Change-Id: Iedde81894c25afde769ff89a55a4725706fa6bbf
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoAdd GetRequestHandlerType() on AbstractRequesthandler 09/262409/1
Junghyun Yeon [Tue, 10 Aug 2021 05:42:54 +0000 (14:42 +0900)]
Add GetRequestHandlerType() on AbstractRequesthandler

Add function to check type of RequestHandler.

Change-Id: I6b041a90abf5e766fc07846d479b277c657d654f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoImplement ParamChecker class 37/262037/12
Junghyun Yeon [Mon, 2 Aug 2021 03:50:33 +0000 (12:50 +0900)]
Implement ParamChecker class

Implement ParamChecker class and its unittest.

Change-Id: I14b26a4d3e99e8184d4059c9c14583734194b9d0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoAdd missing include 04/262304/1
Sangyoon Jang [Fri, 6 Aug 2021 07:29:54 +0000 (16:29 +0900)]
Add missing include

std::find() needs <algorithm>.

Change-Id: I5f734889073ee7d7a039748968afb01fcf6b3eaf
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoAdd skeleton codes for rsc-copy tool 24/261924/10
Junghyun Yeon [Thu, 29 Jul 2021 02:31:43 +0000 (11:31 +0900)]
Add skeleton codes for rsc-copy tool

Change-Id: I3cdeb756b7acfc38b205cadb343312ac1e6ca553
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoFix pkg_upgrader 68/262068/10
jh9216.park [Mon, 2 Aug 2021 08:07:20 +0000 (04:07 -0400)]
Fix pkg_upgrader

- In case of Uninstall operation, the tool shouldn't unzip files
- Fixed PkgUpgrader::CompareVersion()
- Added unittests

Change-Id: I31d591527b37a4d97d5d80c5e9f1c9867409d11d
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoMove unit test main code 98/262198/1
Junghyun Yeon [Wed, 4 Aug 2021 05:08:15 +0000 (14:08 +0900)]
Move unit test main code

Extract main code for upper directory hierachy to used by other unit tests.

Change-Id: I313b299931183ecc62446d14cd0becd0e3e82348
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoChange unittest directory hierachy 61/262061/1
Junghyun Yeon [Mon, 2 Aug 2021 06:29:56 +0000 (15:29 +0900)]
Change unittest directory hierachy

Add pkg_upgrade directory at unit_unitests directory to
add unit tests for another tools.

Change-Id: I0c6f4d98d30b9ce53721e684703e98fabb3ce482
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoMinor refactor pkg_upgrade tool 94/260694/2
Junghyun Yeon [Thu, 1 Jul 2021 07:24:29 +0000 (16:24 +0900)]
Minor refactor pkg_upgrade tool

- Refactor CompareVersion() to return verson compare result directly.
- Change enum type name to use more common abbreviation of "compare".
- Fix using UnzipPkgFromZip() to deliver std::string.
- Remove unnecessary variable initialization.
- Change return type of UnzipPkgFromZip to boolean.
- Replace some command and its arguments into constexpr.
- Extract BackendInvoker constructor with several functions for readability.
- Adjust ordering of include files with alphabetical order.

Change-Id: I4c6f7a8617da1e3fbbf6eca53fe308a8f0b61d8d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoAdd BackendInvoker unittest 09/260709/3
Junghyun Yeon [Thu, 1 Jul 2021 09:43:54 +0000 (18:43 +0900)]
Add BackendInvoker unittest

This unittest checks BackendInvoker whether
generates correct backend parameter or not.

Change-Id: Ie205167961bc622f00dc9da9cb56c94490741931
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.7.7 81/259981/1 accepted/tizen/unified/20210621.214658 submit/tizen/20210617.070222 submit/tizen/20210618.082001 submit/tizen/20210620.232502 submit/tizen/20210621.070948
Ilho Kim [Thu, 17 Jun 2021 06:50:58 +0000 (15:50 +0900)]
Release version 0.7.7

Changes:
 - Remove unused script
 - Add upgrade script for pkg db version 30006
 - Implement res_type filter

Change-Id: I9b9156976c9100a75a5576cc5565ab356218c276
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoImplement res_type filter 36/258436/5
Ilho Kim [Fri, 23 Apr 2021 10:27:11 +0000 (19:27 +0900)]
Implement res_type filter

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/pkgmgr-info/+/251170/

Change-Id: Idba4833ba6efb42ecda69b30302d68c78a71c9f8
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdd upgrade script for pkg db version 30006 21/250521/5
Junghyun Yeon [Tue, 29 Dec 2020 03:45:36 +0000 (12:45 +0900)]
Add upgrade script for pkg db version 30006

Change-Id: I1e10a44388d8886f4ca32cf2fb4afe11eb46e11c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRemove unused script 45/259245/2
Junghyun Yeon [Thu, 3 Jun 2021 03:30:22 +0000 (12:30 +0900)]
Remove unused script

Change-Id: Ia6c723ac588a5ee94198cb467a25290cad7cc811
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.7.6 80/259780/1 accepted/tizen/unified/20210614.131703 submit/tizen/20210614.073712
Ilho Kim [Mon, 14 Jun 2021 07:12:04 +0000 (16:12 +0900)]
Release version 0.7.6

Changes:
 - Change backup db logic

Change-Id: I424c637f39ac82f752c6bba9c58bb3da7e2baac7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoChange backup db logic 82/259282/6
Ilho Kim [Tue, 1 Jun 2021 04:43:13 +0000 (13:43 +0900)]
Change backup db logic

 - Change to using sqlite3_backup api for making backup db
 - Try integrity check before restore backup db
   and if integrity check fail, the backup is cleared and continue to upgrade
 - Delete backup db when upgrade operation has failed

Change-Id: I0aacdbb7e756eb6ed2f48e683bea127057a09d13
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.7.5 98/259598/1 accepted/tizen/unified/20210611.013607 submit/tizen/20210610.070016
Sangyoon Jang [Thu, 10 Jun 2021 06:13:11 +0000 (15:13 +0900)]
Release version 0.7.5

Changes:
 - Fix memory leak
 - Improve code readability
 - Fix static analysis issues

Change-Id: I217a67ef170e4d33a296681567c56601cf960979
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoFix static analysis issues 45/259545/1
Sangyoon Jang [Wed, 9 Jun 2021 10:18:59 +0000 (19:18 +0900)]
Fix static analysis issues

Fix uninitialized variable and memory leak.

Change-Id: I6daaf54946c8919e4ae1f81b52973340f46b5690
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoImprove code readability 64/258364/3
Junghyun Yeon [Fri, 14 May 2021 05:18:27 +0000 (14:18 +0900)]
Improve code readability

- Extract constant string as constexpr variablres.
- Fix minor coding rule.

Change-Id: Ifd0a61d1f9ea0d27dae7a7d98b1e6c15ee7e1a7b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoMerge "Fix memory leak" into tizen
Junghyun Yeon [Fri, 28 May 2021 06:32:03 +0000 (06:32 +0000)]
Merge "Fix memory leak" into tizen

2 years agoFix memory leak 67/258367/2
Junghyun Yeon [Fri, 14 May 2021 06:26:33 +0000 (15:26 +0900)]
Fix memory leak

Filter handle should be freed before exit function unexpectdly.

Change-Id: If5a5b07cbbe4bfd93b9a3eb924dc8e89b8658a5d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.7.4 47/258447/1 accepted/tizen/unified/20210528.134635 submit/tizen/20210528.063157
Sangyoon Jang [Tue, 18 May 2021 04:17:13 +0000 (13:17 +0900)]
Release version 0.7.4

Changes:
 - Add version constraint for pkg upgrade in platform update
 - Refactor upgraders
 - Use std::make_unique instead of new
 - Fix some error logs
 - Refine some codes of RwUpgrader

Change-Id: Ia3010b849e94bdb79d417ca18008add17173ea99
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoRefine some codes of RwUpgrader 81/258381/1
Sangyoon Jang [Fri, 14 May 2021 10:04:34 +0000 (19:04 +0900)]
Refine some codes of RwUpgrader

Change-Id: Id142e9580736049a9eec3dcf6a6093e4ec54a79b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoFix some error logs 80/258380/1
Sangyoon Jang [Fri, 14 May 2021 09:59:56 +0000 (18:59 +0900)]
Fix some error logs

Make some more naturally.

Change-Id: Id7772a9ed0f3479c5e5c6cc139131f4d08d992a9
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoUse std::make_unique instead of new 73/258373/3
Sangyoon Jang [Fri, 14 May 2021 07:44:27 +0000 (16:44 +0900)]
Use std::make_unique instead of new

Change-Id: I3e12a3a6ae43640e826106de9261b00b18d6f7b8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoRefactor upgraders 72/258372/5
Sangyoon Jang [Fri, 14 May 2021 07:02:32 +0000 (16:02 +0900)]
Refactor upgraders

Now Ro2Rw / Rw2Ro become a combination of RoUpgrader / RwUpgrader.

Change-Id: I7e358ef7f30ca4ae2a280ac3c50b15da98b1828e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoAdd version constraint for pkg upgrade in platform update 51/258351/2
Junghyun Yeon [Fri, 14 May 2021 02:40:50 +0000 (11:40 +0900)]
Add version constraint for pkg upgrade in platform update

Installer will not be invoked for packages
which are version of old and new are same.

Change-Id: I98ba2fda168b9586c35bf3a9075c5d502b76b3dc
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRelease version 0.7.3 55/255555/1 accepted/tizen/unified/20210323.122956 submit/tizen/20210319.065928 submit/tizen/20210323.054210 submit/tizen/20210323.055934
Ilho Kim [Fri, 19 Mar 2021 07:31:49 +0000 (16:31 +0900)]
Release version 0.7.3

Changes:
 - Add codes to check backend execution result
 - Add cryptsetup runtime dependency
 - Clear memory database after saving certinfo

Change-Id: I80a5ca3cb802decc45afd8e1924513bd13a43be6
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoClear memory database after saving certinfo 37/255537/1
Ilho Kim [Fri, 19 Mar 2021 05:27:48 +0000 (14:27 +0900)]
Clear memory database after saving certinfo

Change-Id: I0b0dccf60b6b721630debf6c7e9a70c595908c7e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoAdd cryptsetup runtime dependency 85/254585/1
INSUN PYO [Fri, 5 Mar 2021 02:26:56 +0000 (11:26 +0900)]
Add cryptsetup runtime dependency

This package uses /sbin/cryptsetup.

Change-Id: I65eeb7be2fe70f19cc6dbe964ce02dbafa996356

3 years agoAdd codes to check backend execution result 00/252300/1
Junghyun Yeon [Tue, 26 Jan 2021 09:30:09 +0000 (18:30 +0900)]
Add codes to check backend execution result

Tool may add flags depends on backend execution result

Change-Id: I019d657d8d18e04d205702f3fd3bf0696f6f2357
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRelease version 0.7.2 90/250190/1 accepted/tizen/unified/20201222.122545 submit/tizen/20201222.033846
Ilho Kim [Tue, 22 Dec 2020 03:14:25 +0000 (12:14 +0900)]
Release version 0.7.2

Changes:
 - Fix minor coding rule
 - Fix static analysis issues

Change-Id: I0c20583a2a439fc43f10f7954fd83e87b6b7e958
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoFix static analysis issues 12/248612/3
Junghyun Yeon [Tue, 1 Dec 2020 01:49:39 +0000 (10:49 +0900)]
Fix static analysis issues

Change-Id: I4865c112274c9aec03770aebe59cff8ec2b180c0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix minor coding rule 56/248556/2
Junghyun Yeon [Mon, 30 Nov 2020 02:39:54 +0000 (11:39 +0900)]
Fix minor coding rule

Change-Id: Ibbab34ace09323983b9d411b20746030b3b5c797
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRelease version 0.7.1 02/248602/1 accepted/tizen/unified/20201201.124807 submit/tizen/20201201.002159
Junghyun Yeon [Tue, 1 Dec 2020 00:18:43 +0000 (09:18 +0900)]
Release version 0.7.1

Changes:
 - Fix minor coding rules
 - Add compiler, linker flags for c++ tools

Change-Id: Idd89b044f47dfd49e52687e1165eabfa1891cee5
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoAdd compiler, linker flags for c++ tools 88/248488/2
Junghyun Yeon [Fri, 27 Nov 2020 06:14:32 +0000 (15:14 +0900)]
Add compiler, linker flags for c++ tools

Change-Id: Iee455a1b331c18b856dedea45e60a8954ee11a9e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix minor coding rules 85/248185/1
Junghyun Yeon [Mon, 23 Nov 2020 09:59:52 +0000 (18:59 +0900)]
Fix minor coding rules

Change-Id: Icd145f54daa5c8790369ec66845cf4270b100a0c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRelease version 0.7.0 74/248174/1 accepted/tizen/unified/20201124.123024 submit/tizen/20201123.075751
Junghyun Yeon [Mon, 23 Nov 2020 07:42:42 +0000 (16:42 +0900)]
Release version 0.7.0

Changes:
 - Refactor pkg_upgrade tool

Change-Id: I537bff49e7fe418e27b56aee98c9325e89d1eaaf
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRefactor pkg_upgrade tool 96/246996/13
Junghoon Park [Fri, 6 Nov 2020 01:50:35 +0000 (10:50 +0900)]
Refactor pkg_upgrade tool

- Redesigned
- Changed language (c to c++)

Change-Id: I726102f2d84ddda80046d07a40e01ba7c55dff70
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
3 years agoRelease version 0.6.7 94/246994/1 accepted/tizen/6.0/unified/20201113.014606 accepted/tizen/unified/20201109.123530 submit/tizen/20201106.015342 submit/tizen_6.0/20201110.031647 submit/tizen_6.0/20201111.032505
Junghyun Yeon [Fri, 6 Nov 2020 01:51:10 +0000 (10:51 +0900)]
Release version 0.6.7

Changes:
 - Fix backup file process

Change-Id: Icd2daa16015c3c6ba9d18d3e94c45532d984e59d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix backup file process 78/246778/4
Sangyoon Jang [Wed, 4 Nov 2020 06:29:02 +0000 (15:29 +0900)]
Fix backup file process

Make a flag before backup file.

Change-Id: I040c371b9d5af2e93a7cea94decab7c96a9e7138
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoRelease version 0.6.6 29/245229/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.115918 accepted/tizen/6.0/unified/hotfix/20201103.050335 accepted/tizen/unified/20201006.044426 submit/tizen/20201006.000256 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192503 submit/tizen_6.0_hotfix/20201103.114803 tizen_6.0.m2_release
Hwankyu Jhun [Mon, 5 Oct 2020 23:55:34 +0000 (08:55 +0900)]
Release version 0.6.6

Changes:
 - Fix shared data migration script
 - Remove incorrectly created shared data directory
 - Remove directory using rm -r
 - Add parameters for further usage
 - Backup databases before running pkg_upgrade
 - Remove unused variable
 - Minor refactor in pkgmgr_upgrade.c
 - Fix pkginfo tool

Change-Id: I3c119df76cf4b14738b805d1327a3542c4224bcc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix pkginfo tool 27/245227/1
Hwankyu Jhun [Mon, 5 Oct 2020 23:35:21 +0000 (08:35 +0900)]
Fix pkginfo tool

- Prints component-based application info

Change-Id: Ie71b5f278aa0a4b3095c1d89345bb1d823a0c514
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoMinor refactor in pkgmgr_upgrade.c 95/244995/4
Ilho Kim [Tue, 29 Sep 2020 01:42:55 +0000 (10:42 +0900)]
Minor refactor in pkgmgr_upgrade.c

- Remove duplicated code
- Insert blank line for clarity

Change-Id: Ie9778d1329e418d03741948c893ce2a070f2c4fe
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoRemove unused variable 65/244865/1
Ilho Kim [Fri, 25 Sep 2020 08:03:28 +0000 (17:03 +0900)]
Remove unused variable

Change-Id: I9c3b182f66800c4b4f7cc09a29cb1bb4176ecce7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>