platform/core/appfw/unified-backend.git
13 months agoRelease version 0.0.15 62/294462/1 accepted/tizen/7.0/unified/20230620.164242 accepted/tizen/unified/20230621.023236
ilho kim [Tue, 20 Jun 2023 00:05:31 +0000 (09:05 +0900)]
Release version 0.0.15

Changes:
 - Find the package type from package's xml file

Change-Id: Icdf84130dadd51ffc80bb1be1e4f46d7593a2677
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
13 months agoFind the package type from package's xml file 20/294120/4
ilho kim [Tue, 13 Jun 2023 08:40:34 +0000 (17:40 +0900)]
Find the package type from package's xml file

Package types needs to be identified from xml file for package
that don't exist in the database when manifest direct type's
installation

Change-Id: Ib610564308338baa3351da9f0b79cefe2fb874b4
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
20 months agoRelease version 0.0.14 20/284120/1 accepted/tizen/7.0/unified/20230102.132429 accepted/tizen/unified/20230102.132002
Sangyoon Jang [Thu, 10 Nov 2022 04:35:48 +0000 (13:35 +0900)]
Release version 0.0.14

Changes:
 - Merge SmokeTestHelperRunner into BackendInterface

Change-Id: I5316172756326800ca8f31b9e3a388684bf41741
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
21 months agoMerge SmokeTestHelperRunner into BackendInterface 71/283271/1
Ilho Kim [Fri, 21 Oct 2022 07:09:00 +0000 (16:09 +0900)]
Merge SmokeTestHelperRunner into BackendInterface

Related change:
  [app-installers] https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/283265/

Change-Id: Ie5ba408d92859463deafb037407aabf3c53c6fa5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.0.13 37/276137/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.061012 accepted/tizen/7.0/unified/hotfix/20221116.105108 accepted/tizen/unified/20220629.152944 submit/tizen/20220610.064111 submit/tizen/20220627.233604 tizen_7.0_m2_release
Sangyoon Jang [Fri, 10 Jun 2022 04:55:25 +0000 (13:55 +0900)]
Release version 0.0.13

Changes:
 - Fix spec file for gcov and unittest

Change-Id: Ic3b6461579909e5cda2c9125305a341d397c3e68
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoFix spec file for gcov and unittest 67/276067/3
Sangyoon Jang [Thu, 9 Jun 2022 06:25:34 +0000 (15:25 +0900)]
Fix spec file for gcov and unittest

Change-Id: I3975761c7052d234feeb94b497b8359e5eaf2df0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoRelease version 0.0.12 45/269745/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20220125.123541 accepted/tizen/unified/20220124.021149 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:20 +0000 (14:18 +0900)]
Release version 0.0.12

Changes:
 - Change gcov installation path

Change-Id: I9f6d1c49dc895da241771448baf34ceb13c321c8
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoChange gcov installation path 94/269694/1
Ilho Kim [Thu, 20 Jan 2022 04:33:11 +0000 (13:33 +0900)]
Change gcov installation path

Change-Id: I20005688e6b0ec2bfec51c4abec999433f3c3a4b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.0.11 15/266915/1 accepted/tizen/6.5/unified/20211124.060410 accepted/tizen/unified/20211123.143740 submit/tizen/20211122.092115 submit/tizen/20211123.001718 submit/tizen_6.5/20211123.111544
Junghyun Yeon [Mon, 22 Nov 2021 09:16:15 +0000 (18:16 +0900)]
Release version 0.0.11

Changes:
 - Remove setting installer index
 - Fix variable shadowing

Change-Id: Ie5301b7f20d451d2ad85a72423fcfabc8673507e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix variable shadowing 26/261026/1
Junghyun Yeon [Thu, 8 Jul 2021 11:51:11 +0000 (20:51 +0900)]
Fix variable shadowing

Change-Id: Id3f1b2d739046bf7f274ca2aad87b3d855b7377e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRemove setting installer index 63/259863/2
Sangyoon Jang [Wed, 16 Jun 2021 06:15:15 +0000 (15:15 +0900)]
Remove setting installer index

InstallerFactory doesn't need to set index.

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/259860

Change-Id: Ie2295b7a5d2f59b308d2bce16b895633f2f1c1ac
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoRelease version 0.0.10 90/259990/1 accepted/tizen/6.5/unified/20211028.100805 accepted/tizen/unified/20210621.214648 submit/tizen/20210617.070222 submit/tizen/20210618.082001 submit/tizen/20210620.232502 submit/tizen/20210621.070948 submit/tizen_6.5/20211028.162101 tizen_6.5.m2_release
Ilho Kim [Thu, 17 Jun 2021 07:22:06 +0000 (16:22 +0900)]
Release version 0.0.10

Changes:
 - Add codes for handling rpk pkg

Change-Id: I59f2e449339f19ea5832a5138b03463c5f0476dc
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoAdd codes for handling rpk pkg 63/258263/1
Junghyun Yeon [Thu, 13 May 2021 04:24:15 +0000 (13:24 +0900)]
Add codes for handling rpk pkg

Change-Id: If3bc5d87d7a2dd4ae56ee00ad278b2e42b4ff127
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRelease version 0.0.9 45/251545/1 accepted/tizen_6.0_unified tizen_6.0 accepted/tizen/6.0/unified/20210120.085712 accepted/tizen/unified/20210118.141100 submit/tizen/20210115.013110 submit/tizen/20210115.062551 submit/tizen_6.0/20210119.073516
Junghyun Yeon [Fri, 15 Jan 2021 01:06:21 +0000 (10:06 +0900)]
Release version 0.0.9

Changes:
 - Add codes to treat rpm pkg as tpk
 - Fix memory leak

Change-Id: I5720f4fe614d6ecf9cfba7a5d46d03fd24dedadf
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix memory leak 65/251265/2
Junghyun Yeon [Tue, 12 Jan 2021 05:20:41 +0000 (14:20 +0900)]
Fix memory leak

Related changes:
[app-installers] : https://review.tizen.org/gerrit/251120

Change-Id: Ie5d74662f6ed8a5f911bbc2bc90bd78c007b2cc3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoAdd codes to treat rpm pkg as tpk 96/251096/1
Junghyun Yeon [Fri, 8 Jan 2021 04:31:16 +0000 (13:31 +0900)]
Add codes to treat rpm pkg as tpk

Change-Id: Icd9f544602c00e0d4dfa6c4d68db04a9f071b003
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRelease version 0.0.8 01/248601/1 accepted/tizen/6.0/unified/20201201.091053 accepted/tizen/unified/20201201.124800 submit/tizen/20201201.002159 submit/tizen_6.0/20201201.004919
Ilho Kim [Tue, 1 Dec 2020 00:04:17 +0000 (09:04 +0900)]
Release version 0.0.8

Changes:
 - Fix unit test's failiure

Change-Id: I1099b0789f715748329c5a171f316778e7251c8a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoFix unit test's failiure 58/248558/2
Ilho Kim [Mon, 30 Nov 2020 03:04:51 +0000 (12:04 +0900)]
Fix unit test's failiure

In app-installers' admin user check logic, if gum_user_get_sync() return nullptr
then creation of PkgmgrInterface is failed. this patch change the mock function
of gum_user_get_sync() to return AdminUser's information

Change-Id: Iab03024f597830b32d202398cc2c297ce9a5e2d0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoRelease version 0.0.7 34/243534/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.120100 accepted/tizen/6.0/unified/hotfix/20201103.050406 accepted/tizen/unified/20200908.130511 submit/tizen/20200908.025700 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
Ilho Kim [Tue, 8 Sep 2020 02:30:38 +0000 (11:30 +0900)]
Release version 0.0.7

Changes:
 - Add checking routine after getting pkg type
 - Fix unit test

Change-Id: Ic18b27e0259c13b2f0f5943ee5ce1aeca6b199be
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoFix unit test 18/242618/1
Junghyun Yeon [Fri, 28 Aug 2020 09:26:32 +0000 (18:26 +0900)]
Fix unit test

- Supress build warning.
- Add negative unittest for identifying pkg type.

Change-Id: Ib679b47ab5196675bb0271cb068f3bbfed68d9f1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoAdd checking routine after getting pkg type 90/241190/4
Junghyun Yeon [Tue, 18 Aug 2020 10:55:47 +0000 (19:55 +0900)]
Add checking routine after getting pkg type

Installer may failed to get pkg type with given input

Change-Id: I38921f4ebf3e19eac4ff7679e26a4cef644762b2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRelease version 0.0.6 13/242113/1 accepted/tizen/unified/20200825.033240 submit/tizen/20200824.070831
Ilho Kim [Mon, 24 Aug 2020 06:53:07 +0000 (15:53 +0900)]
Release version 0.0.6

Changes:
 - Adjust a changed smoke utils header

Change-Id: Ie4dbb5a9a15dc6b184aeb2f7a06248767cb0475e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoAdjust a changed smoke utils header 74/242074/1
Ilho Kim [Mon, 24 Aug 2020 03:48:49 +0000 (12:48 +0900)]
Adjust a changed smoke utils header

Change-Id: Ieacb387da8faccd8af4fb266f639f21cb937a4a9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoRelease version 0.0.5 73/241973/1 submit/tizen/20200821.072757
Ilho Kim [Fri, 21 Aug 2020 07:24:20 +0000 (16:24 +0900)]
Release version 0.0.5

Changes:
 - Combine try-catch statement in unified recovery test

Change-Id: I65311118c7dbba2b992c95032c045b8a9c797c94
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoCombine try-catch statement in unified recovery test 70/241170/1
Ilho Kim [Tue, 18 Aug 2020 08:34:04 +0000 (17:34 +0900)]
Combine try-catch statement in unified recovery test

Change-Id: I4aaf7b3f8c82a0830a1d6049615041bd372c05a8
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoRelease version 0.0.4 66/241066/1 accepted/tizen/unified/20200818.125956 submit/tizen/20200814.081404 submit/tizen/20200814.081807
Ilho Kim [Fri, 14 Aug 2020 07:43:25 +0000 (16:43 +0900)]
Release version 0.0.4

Changes:
 - Extract functions for refactoring
 - Add unit test structure
 - Fix coding rule
 - Add try-catch statements for error handling
 - Add unit tests and mocks for it
 - Implement dependency checker test
 - Add error handling logic for unified installer factory
 - Add recovery test tool

Change-Id: I01ec6a74117598a6371e40d521e2284551d0a1f2
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoAdd recovery test tool 61/235161/13
Ilho Kim [Tue, 2 Jun 2020 02:09:44 +0000 (11:09 +0900)]
Add recovery test tool

Change-Id: I1693e591d771d8118ee142476774be1dfc33a861
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoAdd error handling logic for unified installer factory 04/235504/6
Junghyun Yeon [Fri, 5 Jun 2020 05:52:47 +0000 (14:52 +0900)]
Add error handling logic for unified installer factory

Installer type may not be determined even GetPkgTypeFromFilename has done.

Change-Id: Ie1781bf3030e22484dd1222ebb96cfcbdcf37616
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoImplement dependency checker test 75/238075/8
Ilho Kim [Wed, 1 Jul 2020 09:39:26 +0000 (18:39 +0900)]
Implement dependency checker test

Change-Id: Ifc11f9bc243e53b6e29f47ff8bdb205318cb7dc5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoAdd unit tests and mocks for it 32/239532/5
Junghyun Yeon [Mon, 27 Jul 2020 02:20:51 +0000 (11:20 +0900)]
Add unit tests and mocks for it

Change-Id: I79018783e33ca40beadda6af43ac1d613c36482a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoAdd try-catch statements for error handling 53/239853/3
Junghyun Yeon [Thu, 30 Jul 2020 07:22:05 +0000 (16:22 +0900)]
Add try-catch statements for error handling

Change-Id: Ia2145de1f60400959e2c840c4d22eb9ece0996a1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix coding rule 72/239972/1
Junghyun Yeon [Fri, 31 Jul 2020 06:29:47 +0000 (15:29 +0900)]
Fix coding rule

Change-Id: Ie37e7a6ff8d9a59c1fcafe5be0b8c92b1350ee70
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd unit test structure 35/239235/2
Junghyun Yeon [Thu, 23 Jul 2020 04:45:14 +0000 (13:45 +0900)]
Add unit test structure

Change-Id: I038eca552db47235305341d0aadb9b6c353daad5
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoExtract functions for refactoring 36/238236/3
Junghyun Yeon [Thu, 9 Jul 2020 23:40:05 +0000 (08:40 +0900)]
Extract functions for refactoring

Change-Id: I673b23b81661784effe2377c3fa46186e6ec07ea
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRelease version 0.0.3 41/238341/1 accepted/tizen/unified/20200713.094534 submit/tizen/20200713.034005
Ilho Kim [Mon, 13 Jul 2020 02:45:49 +0000 (11:45 +0900)]
Release version 0.0.3

Changes:
 - Initial Release

Change-Id: I9c9c0dde36cb1e0824857d3a73d020b76516f099
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix spec file 34/238334/1
Ilho Kim [Mon, 13 Jul 2020 02:20:39 +0000 (11:20 +0900)]
Fix spec file

unified-backend rpm should not contain test files

Change-Id: Ic604cce4a09dc513e1c90907c850ce7a0024491c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoMove unit test location 88/238088/1
Junghyun Yeon [Wed, 8 Jul 2020 08:43:01 +0000 (17:43 +0900)]
Move unit test location

Change-Id: I59c9a77767deddecd230efb378108c21dc2c286c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoChange filepath 35/237935/1 accepted/tizen/unified/20200709.030129 submit/tizen/20200707.063722 submit/tizen/20200708.012148 submit/tizen/20200709.004750
Junghyun Yeon [Mon, 6 Jul 2020 23:49:33 +0000 (08:49 +0900)]
Change filepath

Related changes:
[app-installers] : https://review.tizen.org/gerrit/237608

Change-Id: I7f42d574065a6874a0d3a09bfed17ee8daa603a1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoImplement unified recovery feature 02/234402/3
Junghyun Yeon [Tue, 26 May 2020 06:18:10 +0000 (15:18 +0900)]
Implement unified recovery feature

Recovery will be performed for package to be installed together.
Even if certain package's operation has finished, It will be revoked
if other package operation has failed which are requested at once.
In addition, Unified backend will handle recovery for single package.

Change-Id: Ia540a4a92eb53d5b3a97e497165058ab129ee0e5
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd unit test for unified installer 03/231103/4
Ilho Kim [Mon, 13 Apr 2020 08:01:12 +0000 (17:01 +0900)]
Add unit test for unified installer

[Added test list]
-InstallAndROUpdate : test Install and ReadonlyUpdateInstall case
-Uninstall_Single : test Uninstall single package case
-Uninstall_Double : test Uninstall double package case
-Uninstall_Triple : test Uninstall triple package case
-UninstallAndROUpdateUninstall : test Uninstall and ReadonlyUpdateUninstall case
-InstallAndROUpdate_Rollback : test rollback Install and ReadonlyUpdateInstall case

Change-Id: Id1f4120776c9d02a0bce8a37b5c2cc0f7ac7f472
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix Recovery mode tests 84/232684/1
Sangyoon Jang [Thu, 7 May 2020 06:34:47 +0000 (15:34 +0900)]
Fix Recovery mode tests

Change-Id: Iba23c26bc0856b04706204b4062efee17e1ed485
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix minor coding rule
Junghyun Yeon [Thu, 2 Apr 2020 06:41:54 +0000 (15:41 +0900)]
Fix minor coding rule

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd smoke tests for unified-installer
Sangyoon Jang [Tue, 24 Mar 2020 05:40:52 +0000 (14:40 +0900)]
Add smoke tests for unified-installer

Change-Id: I6bb29973e19480c7e91f20d11e3b4b9edf1d0d87
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd backend for pkgmgr-server
Sangyoon Jang [Tue, 25 Feb 2020 03:48:58 +0000 (12:48 +0900)]
Add backend for pkgmgr-server

Change-Id: Iaf3d239622a214693aa639d0933ccf175dc2ff2e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRemove InstallerFactory, InstallerRunner
Sangyoon Jang [Thu, 6 Feb 2020 11:14:59 +0000 (20:14 +0900)]
Remove InstallerFactory, InstallerRunner

These classes is moved to app-installer library.

Change-Id: I0a22d5b04826b53f7bec946951632daf7c02bf42
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdjust codes for multi-request
Sangyoon Jang [Mon, 3 Feb 2020 10:49:56 +0000 (19:49 +0900)]
Adjust codes for multi-request

Change-Id: I91d9ef5e4925817650e0f6d5474904541f981cac
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoMake InstallerFactory as interface
Sangyoon Jang [Wed, 22 Jan 2020 09:39:59 +0000 (18:39 +0900)]
Make InstallerFactory as interface

Someone wants to using customized installer should implements
InstallerFactory interface.

Change-Id: I5115c603ce424c9e226469127052af0cdde3f24b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd unified-installer library
Sangyoon Jang [Wed, 22 Jan 2020 07:21:10 +0000 (16:21 +0900)]
Add unified-installer library

Added classes:
 - InstallerRunner
 - InstallerFactory

Change-Id: I6e205b7d9e1e9c1e378fb3b54f4d356a18f7cc1c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix to use new installer methods
Sangyoon Jang [Wed, 6 Nov 2019 11:59:39 +0000 (20:59 +0900)]
Fix to use new installer methods

Use AppInstaller::Process(), Undo(), Cleanup instead of Run().
Add code for handling multiple request.

Change-Id: I0bc191a43a389804f6d623327da95d825675234a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoInitial commit
Sangyoon Jang [Tue, 5 Nov 2019 05:59:50 +0000 (14:59 +0900)]
Initial commit

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