platform/core/appfw/pkgmgr-info.git
22 months agoFix build error 14/286914/2
jh9216.park [Mon, 16 Jan 2023 23:43:13 +0000 (18:43 -0500)]
Fix build error

- When 'gcov' is defined, build errors will happen.

Change-Id: I4ff56334d75630185f9720aa0b53d32612fc92c0
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
22 months agoRelease version 0.23.1 17/286817/1
Sangyoon Jang [Fri, 13 Jan 2023 07:54:23 +0000 (16:54 +0900)]
Release version 0.23.1

Changes:
 - Add missing table names

Change-Id: I636eaf704de27b962fd4b62f97e846e8466665cc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
22 months agoAdd missing table names 12/286812/1
Sangyoon Jang [Fri, 13 Jan 2023 07:50:52 +0000 (16:50 +0900)]
Add missing table names

Add missing table names for pkg-db-recovery.

Change-Id: Ib27c394da6d4c1e1874a41655e69cbc4997e267a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
22 months agoRelease version 0.23.0 97/286797/1
Sangyoon Jang [Fri, 13 Jan 2023 03:46:04 +0000 (12:46 +0900)]
Release version 0.23.0

Changes:
 - Add metadata to pkginfo
 - Update pkg_db_version

Change-Id: If41c00ce586fa29d8c33cee8eeaad847b4e4e40d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
22 months agoUpdate pkg_db_version 91/286791/1
Sangyoon Jang [Fri, 13 Jan 2023 02:11:10 +0000 (11:11 +0900)]
Update pkg_db_version

package_metadata table was added.

Change-Id: Ie0877a43e735fdbbf010269b9a00becedeb3c730
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
22 months agoAdd metadata to pkginfo 35/286635/8
Sangyoon Jang [Wed, 11 Jan 2023 01:14:42 +0000 (10:14 +0900)]
Add metadata to pkginfo

Now metadata is available at package level.

Change-Id: Ic3f561fdb427d2482b1c3945366e6c26d7fe3976
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
22 months agoRelease version 0.22.41 39/286739/1 accepted/tizen/unified/20230113.091222
jh9216.park [Thu, 12 Jan 2023 08:00:20 +0000 (03:00 -0500)]
Release version 0.22.41

Changes:
 - Refactor pkgmgr-info
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Change-Id: I04ca8c3d15c42f5349c13664427fa7138d3f1141

22 months agoRefactor pkgmgr-info 91/286191/23
jh9216.park [Fri, 30 Dec 2022 02:29:38 +0000 (21:29 -0500)]
Refactor pkgmgr-info

- Use tizen_base::Database
- C -> C++

Change-Id: I77ffd89f16f4386cc85ff1031034f42c1a22498d
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
22 months agoRelease version 0.22.40 71/286571/2 accepted/tizen/7.0/unified/20230111.015136 accepted/tizen/unified/20230111.174523
ilho kim [Tue, 10 Jan 2023 04:27:55 +0000 (13:27 +0900)]
Release version 0.22.40

Changes:
 - Fix ResTypePkgFilterChecker

Signed-off-by: ilho kim <ilho159.kim@samsung.com>
Change-Id: Ia0419f5efdbc6701a84673640e7580c2ca8eddb3

22 months agoFix ResTypePkgFilterChecker 61/286561/2
ilho kim [Tue, 10 Jan 2023 01:57:47 +0000 (10:57 +0900)]
Fix ResTypePkgFilterChecker

ResTypePkgFilterChecker filters the cached package information
to the resource type
Fix the the filter's behavior

Change-Id: Ia244ff932365be41b2fdb47c477644292058c85f
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
23 months agoRelease version 0.22.39 99/284699/1 accepted/tizen/unified/20230105.154652
Sangyoon Jang [Thu, 24 Nov 2022 01:04:34 +0000 (10:04 +0900)]
Release version 0.22.39

Changes:
 - Fix handling pending pkgs

Change-Id: I18e1d4be08e1ad13821617b205381a80c8b11877
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
23 months agoFix handling pending pkgs 98/284698/1
Sangyoon Jang [Thu, 24 Nov 2022 00:03:31 +0000 (09:03 +0900)]
Fix handling pending pkgs

Hanling pending pkgs doesn't need to affected by pid.

Change-Id: Iac865f75614426f71c8c425650077ed9e02ccbfd
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoIncrease timeout of client socket 79/283279/2 accepted/tizen/unified/20221104.082302
Sangyoon Jang [Fri, 21 Oct 2022 08:10:29 +0000 (17:10 +0900)]
Increase timeout of client socket

Increase timeout for read request. When system is busy, clients read
request fail by timeout.

Change-Id: I1ebdc879cd15bf812737818c66197b1c8440de67
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoRelease version 0.22.38 07/283507/1
Changgyu Choi [Fri, 28 Oct 2022 01:05:41 +0000 (10:05 +0900)]
Release version 0.22.38

Changes:
 - Fix to wrong free filter list

Change-Id: I7823f0f3f5a5b7ffd6f54d336f844f1ea8f1218c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix to wrong free filter list 04/283504/4
Changgyu Choi [Fri, 28 Oct 2022 00:27:52 +0000 (09:27 +0900)]
Fix to wrong free filter list

Change-Id: I622976537046751cf871902a59e58998db20f253
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.22.37 51/283351/1
Changgyu Choi [Tue, 25 Oct 2022 04:51:56 +0000 (13:51 +0900)]
Release version 0.22.37

Changes:
 - Fix get_filter_query
 - Improve handling of cache

Change-Id: I57f7dc85d76521bc4b8ecfabcc6d3407b40f8756
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoImprove handling of cache 63/283163/15
Ilho Kim [Wed, 19 Oct 2022 08:18:35 +0000 (17:18 +0900)]
Improve handling of cache

After writing the package information, entire cache is removed and created
This is an inefficient process
so change to update only cache that needs to be updated

Change-Id: I6e7eea3e23ae392765dd9cbf53cf2bc09f06f0f7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoFix get_filter_query 97/283197/2
Ilho Kim [Thu, 20 Oct 2022 05:34:32 +0000 (14:34 +0900)]
Fix get_filter_query

Because the query related to the JOIN_LOCALIZED_INFO flag
is located in front of the entire query
the order of the bind parameters should be adjusted

Change-Id: Ib65b11eda6e33343d80d55c9920caf47094d2f13
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.36 78/283078/1
Sangyoon Jang [Tue, 18 Oct 2022 01:18:19 +0000 (10:18 +0900)]
Release version 0.22.36

Changes:
 - Fix static analysis issue

Change-Id: Ib7c19f4e88075038b65891919bc233b23ad34d3f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoFix static analysis issue 40/283040/1
Sangyoon Jang [Mon, 17 Oct 2022 05:39:12 +0000 (14:39 +0900)]
Fix static analysis issue

Change-Id: I0a02f5b8445833a8563b6bfef7e7417a30785c07
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoRelease version 0.22.35 59/282759/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062304 accepted/tizen/7.0/unified/hotfix/20221116.105034 accepted/tizen/unified/20221012.014923 tizen_7.0_m2_release
Ilho Kim [Tue, 11 Oct 2022 07:08:33 +0000 (16:08 +0900)]
Release version 0.22.35

Changes:
 - Set the timeout to 60 for write query request
 - Add log in case of failure of recv due to interrupt
 - Fix to return errno

Change-Id: I51c56c06c89f341bd0281341965d6898bf9b38ec
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoFix to return errno 53/282753/1
Ilho Kim [Tue, 11 Oct 2022 06:49:00 +0000 (15:49 +0900)]
Fix to return errno

There is a possibility that errno may be changed during write log
Modified to save the errno value

Change-Id: I210bc4678e83ee00bb1c1b788f5c99c23f745b6a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdd log in case of failure of recv due to interrupt 52/282752/1
Ilho Kim [Tue, 11 Oct 2022 06:46:30 +0000 (15:46 +0900)]
Add log in case of failure of recv due to interrupt

Change-Id: Ib3e54dd7993afb33f75bea504de319ce70e8d9a4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoSet the timeout to 60 for write query request 44/282744/3
Ilho Kim [Tue, 11 Oct 2022 06:08:11 +0000 (15:08 +0900)]
Set the timeout to 60 for write query request

Change-Id: Idcbccef4c5147b6c6d0988d1253cf63c929f9dba
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.34 69/282469/1
Sangyoon Jang [Tue, 4 Oct 2022 06:03:06 +0000 (15:03 +0900)]
Release version 0.22.34

Changes:
 - Fix logging.hh

Change-Id: I4e29a024845218c1ec0f5d9ab6ed191e7982ab44
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoFix logging.hh 27/281427/6
Sangyoon Jang [Mon, 19 Sep 2022 02:26:25 +0000 (11:26 +0900)]
Fix logging.hh

Using singleton object in complex applications can cause problem,
for example, it can be a problem when invoked at destructor of global
object.

Change-Id: Id61bbd147f8964a762b98ed2bc3138f9a07fa8d6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoRelease version 0.22.33 32/282332/1 accepted/tizen/unified/20220930.190550
Hwankyu Jhun [Fri, 30 Sep 2022 02:23:27 +0000 (02:23 +0000)]
Release version 0.22.33

Changes:
 - Fix static analysis issue
 - Fix wrong type size

Change-Id: I7fb889d4063b8737e32ec39e87690da6e98e4eea
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix wrong type size 28/282328/1
Hwankyu Jhun [Fri, 30 Sep 2022 01:42:18 +0000 (01:42 +0000)]
Fix wrong type size

The data size of the Parcel is size_t. In 64-bit machine, the size of
the size_t is 8 bytes. This patch changes the size type to the size_t
from the interger.

Change-Id: I6a9ccd057e3e7c26607a9703b5c189074911a660
oigned-off-by: Hwankyu Jhun <h.jhun@samsung.com>

2 years agoFix static analysis issue 79/282179/1
Hwankyu Jhun [Wed, 28 Sep 2022 04:03:42 +0000 (04:03 +0000)]
Fix static analysis issue

The following issue is fxied:
 - INEFFECTIVE_MOVE

Change-Id: I589684b5c398fc5b327bd76e111588130a7a6b49
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.22.32 18/282118/1 accepted/tizen/unified/20220928.144432
Hwankyu Jhun [Tue, 27 Sep 2022 06:54:49 +0000 (06:54 +0000)]
Release version 0.22.32

Changes:
 - Use modified tizen_base::Parcel
 - Fix static analysis issues

Change-Id: I06ee1196ede02432a81f6699a6f105cefcb6e61d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix static analysis issues 01/282101/3
Hwankyu Jhun [Tue, 27 Sep 2022 03:04:17 +0000 (03:04 +0000)]
Fix static analysis issues

The following issues are fixed:
 - INEFFECTIVE_MOVE
 - HFA
 - AUTO_CAUSES_COPY
 - UNINIT_CTOR

Change-Id: I3372b6578b80f91331d0da3b3a6dc8df8aea5a6f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoUse modified tizen_base::Parcel 47/281947/4
Hwankyu Jhun [Fri, 23 Sep 2022 10:29:09 +0000 (10:29 +0000)]
Use modified tizen_base::Parcel

To improve the performance of the parcel creation, the implementation of
the Parcel is changed. It uses malloc() instead of std::vector.

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/base/bundle/+/281779/

Change-Id: Iebb0c2905b860fab8247971c9fe064c4f1c92a48
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.22.31 42/281942/4
Ilho Kim [Fri, 23 Sep 2022 10:04:30 +0000 (19:04 +0900)]
Release version 0.22.31

Changes:
 - Remove unnecessary call of copy constructor
 - Remove build warning messages
 - Add log about client's tid for debug

Change-Id: I8d3d8bc562a783fc86dc57de23e39b6e5e95c3f1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdd log about client's tid for debug 43/281943/3
Ilho Kim [Fri, 23 Sep 2022 10:02:55 +0000 (19:02 +0900)]
Add log about client's tid for debug

Change-Id: I473044bf04a1ddbd7f1fd3f24d39c414c87dd4c1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRemove build warning messages 35/281935/1
Hwankyu Jhun [Fri, 23 Sep 2022 08:31:05 +0000 (08:31 +0000)]
Remove build warning messages

- Remove unused variable
- Remove const keyword

Change-Id: I29a6177607d338970072521bec5b4a9bac9aa3bb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRemove unnecessary call of copy constructor 78/281878/5
Ilho Kim [Thu, 22 Sep 2022 12:47:15 +0000 (21:47 +0900)]
Remove unnecessary call of copy constructor

When the WorkerThread calls the ExtractResult of RequestHandler
the copy constructor of the vector is called
This is an unnecessary operation

Change-Id: Ib2c368cc61a34bab6f9afd42887c902ecdcd78d1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.30 28/281928/1
Ilho Kim [Fri, 23 Sep 2022 07:51:12 +0000 (16:51 +0900)]
Release version 0.22.30

Changes:
 - Add log to client side after receiving the result
 - Fix missing semicolon

Change-Id: I0993344fce994a2d3e3fd39ccdbc5b8b6c49e8b4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoFix missing semicolon 23/281923/1
Ilho Kim [Fri, 23 Sep 2022 07:18:24 +0000 (16:18 +0900)]
Fix missing semicolon

Change-Id: I260da4343936afefaad95c65998194af4904d5d1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdd log to client side after receiving the result 88/281888/1
Ilho Kim [Fri, 23 Sep 2022 01:59:28 +0000 (10:59 +0900)]
Add log to client side after receiving the result

Change-Id: Ie001b8ff9565b883be36276326ec7c0fb8a42bd4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.29 50/281850/1 accepted/tizen/unified/20220923.052708
Ilho Kim [Thu, 22 Sep 2022 09:08:52 +0000 (18:08 +0900)]
Release version 0.22.29

Changes:
 - Remove unused code
 - Remove unnecessary unique_lock from read operation

Change-Id: Iaa9161e10cd9f0c56f27a616154a6cd9a2cae444
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRemove unnecessary unique_lock from read operation 32/281632/4
Ilho Kim [Tue, 20 Sep 2022 05:55:15 +0000 (14:55 +0900)]
Remove unnecessary unique_lock from read operation

In some case, unique_lock is used in code that can be operated in
multiple thread environments without changing memory state
during read operation, which cause unnecessary starvation

Change-Id: Ife3689a667929ac0506f4ced44e4a12cf16ba3dc
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRemove unused code 33/281633/3
Ilho Kim [Tue, 20 Sep 2022 06:02:06 +0000 (15:02 +0900)]
Remove unused code

Change-Id: I6e989171828fc4a555b98e4d696ba0d115384de1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.28 52/281652/1 accepted/tizen/unified/20220921.091802
Sangyoon Jang [Tue, 20 Sep 2022 08:01:46 +0000 (17:01 +0900)]
Release version 0.22.28

Changes:
 - Fix static analysis issue

Change-Id: I783e2a327c679cf454454b4545b2405119a5fe9d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoFix static analysis issue 27/281627/3
Sangyoon Jang [Tue, 20 Sep 2022 05:29:16 +0000 (14:29 +0900)]
Fix static analysis issue

Change-Id: I93c65806e99bcd1744c6c1cd6ea8b05044522af4
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoRelease version 0.22.27 28/279928/1 accepted/tizen/unified/20220825.135040 submit/tizen/20220819.060925 submit/tizen/20220824.011922
Ilho Kim [Fri, 19 Aug 2022 06:06:35 +0000 (15:06 +0900)]
Release version 0.22.27

Changes:
 - Fix the use of cache if not the requested uid default
 - Delay server ready timing until creating cache
 - Adjust OOMScore of pkgmgr-info.service

Change-Id: I4dc4c8b481de28c4169b289a785818259e35e9f0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdjust OOMScore of pkgmgr-info.service 17/279917/3
Ilho Kim [Fri, 19 Aug 2022 05:32:05 +0000 (14:32 +0900)]
Adjust OOMScore of pkgmgr-info.service

Because pkgmgr-info.service has a default OOMScore
if there is insufficient memory in the system
the pkgmgr-info.service can be a victim with a high priority
To prevent this, apply OOMScore to -100

Change-Id: Ic48662f207a0208d358a1c3f813ab3a8c8864602
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoDelay server ready timing until creating cache 14/279914/6
Changgyu Choi [Fri, 19 Aug 2022 04:54:17 +0000 (13:54 +0900)]
Delay server ready timing until creating cache

Change-Id: I3ee85c5c6cff1cbb5455df25b363cc0768da6e1c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix the use of cache if not the requested uid default 03/279703/3
Ilho Kim [Tue, 16 Aug 2022 11:04:31 +0000 (20:04 +0900)]
Fix the use of cache if not the requested uid default

Because the cache of pkginfo, appinfo is created for the default user
the cache can't be used unless it is a default user

Change-Id: I724ebc89b18883d65b53c168024f110c83a848ab
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.26 53/278753/1 accepted/tizen/unified/20220728.044714 submit/tizen/20220726.010051 submit/tizen/20220728.021016
Ilho Kim [Tue, 26 Jul 2022 00:52:12 +0000 (09:52 +0900)]
Release version 0.22.26

Changes:
 - Add lock while opening direct access library

Change-Id: I20032e23c83c78653124fa57249cf8f787e47fa0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdd lock while opening direct access library 50/278750/1
Ilho Kim [Mon, 25 Jul 2022 11:44:58 +0000 (20:44 +0900)]
Add lock while opening direct access library

Change-Id: I5db98c4aed67d9648afdab5ae49abc3b9457da09
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.25 13/277713/1 accepted/tizen/unified/20220714.135339 submit/tizen/20220712.091723 submit/tizen/20220713.094236
Ilho Kim [Tue, 12 Jul 2022 08:42:27 +0000 (17:42 +0900)]
Release version 0.22.25

Changes:
 - Set nice value -10 when making cache

Change-Id: I6fdbfe59f527a6c4c6093510e5cb0b4ddc20f8eb
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoSet nice value -10 when making cache 96/277696/3
Ilho Kim [Tue, 12 Jul 2022 07:21:34 +0000 (16:21 +0900)]
Set nice value -10 when making cache

When creating cache the scheduling policy is changed to RR
which is the real time scheduling policy
as a result, the pkginfo-server can occupy the cpu for a long time
with some real time scheduling policy process
this patch modified to increase the priority by changing only the nice value
instead of changing the scheduling policy

Change-Id: If5c6509cddaa1bf3fa2cd2c47f94057aa8c35168
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.24 66/277466/1 accepted/tizen/unified/20220708.132807 submit/tizen/20220707.091844
Ilho Kim [Thu, 7 Jul 2022 09:13:22 +0000 (18:13 +0900)]
Release version 0.22.24

Changes:
 - Fix UpdateCache related with storage check

Change-Id: Ic10b66550c973de0ecaedd468bf86c29ae273c0b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoFix UpdateCache related with storage check 14/277314/5
Ilho Kim [Tue, 5 Jul 2022 04:53:34 +0000 (13:53 +0900)]
Fix UpdateCache related with storage check

If there is not check_storage value in the filter
storage check logic is performed by default
when the external_path of the package installed in the external is not accessible
the package's information is not inclued in the cache
This logic must be performed when the client requests package information

Change-Id: Iaaee5231fa939c1c8a7af3ca6f6049674832e965
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.23 68/277268/1 accepted/tizen/unified/20220705.211016 submit/tizen/20220704.080336
Ilho Kim [Mon, 4 Jul 2022 07:57:39 +0000 (16:57 +0900)]
Release version 0.22.23

Changes:
 - Fix static analysis issues

Change-Id: Ie02e405630e392e821b6d59a2df6d8c50f0eaf88
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoFix static analysis issues 37/277237/1
Ilho Kim [Mon, 4 Jul 2022 04:14:07 +0000 (13:14 +0900)]
Fix static analysis issues

- Resource leak
- Pointer to local outside scope

Change-Id: I3445d458c28a448d6c873bea862712d47c669096
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.22 62/277162/1 accepted/tizen/unified/20220704.212942 submit/tizen/20220701.072011
Ilho Kim [Fri, 1 Jul 2022 06:44:28 +0000 (15:44 +0900)]
Release version 0.22.22

Changes:
 - Apply cpu priority inheritance

Change-Id: I38194fce2937844216c111f86262c06df36b8db0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoApply cpu priority inheritance 29/276829/4
Ilho Kim [Mon, 27 Jun 2022 04:39:43 +0000 (13:39 +0900)]
Apply cpu priority inheritance

If a process with a high cpu priority attempts IPC with a non cpu boosting process
the high cpu priority of the process becomes useless
To improve the priority inversion problem
apply cpu priority inheritance to pkginfo-server

Change-Id: I05414234f147d360ce63820b53edbbabda872aad
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.21 84/276884/1 accepted/tizen/unified/20220628.133545 submit/tizen/20220627.091746
Ilho Kim [Mon, 27 Jun 2022 09:15:38 +0000 (18:15 +0900)]
Release version 0.22.21

Changes:
 - Increase timeout value in case of db write request

Change-Id: Ifbf6021794c5e0e68707ed7603a4afca69ef8eef
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoIncrease timeout value in case of db write request 60/276860/5
Ilho Kim [Mon, 27 Jun 2022 06:40:28 +0000 (15:40 +0900)]
Increase timeout value in case of db write request

Change-Id: I39718d869d7941db9de3af62d02481cd60bf6a6f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.20 66/276466/1 accepted/tizen/unified/20220621.140352 submit/tizen/20220617.054926 submit/tizen/20220620.044118
Ilho Kim [Fri, 17 Jun 2022 05:19:54 +0000 (14:19 +0900)]
Release version 0.22.20

Changes:
 - Fix variable that prevent unittest build

Change-Id: Ibe96ab9894e6641d16d2bc3d42d06ec9974cf1cf
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoFix variable that prevent unittest build 60/276460/1
Ilho Kim [Fri, 17 Jun 2022 04:57:59 +0000 (13:57 +0900)]
Fix variable that prevent unittest build

Change-Id: I5308e5233ff0421a8721cdd63a63ce17ac40617d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.19 91/276391/1 accepted/tizen/unified/20220620.030026 submit/tizen/20220616.021734
Ilho Kim [Thu, 16 Jun 2022 02:09:25 +0000 (11:09 +0900)]
Release version 0.22.19

Changes:
 - Modify to listen only G_IO_IN event

Change-Id: I4fa68b616f1423becfa621b34a13df3417c2468f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoModify to listen only G_IO_IN event 29/276329/2
Ilho Kim [Wed, 15 Jun 2022 01:24:21 +0000 (10:24 +0900)]
Modify to listen only G_IO_IN event

Change-Id: Iab1098f361392c2224ce0ab244eea0ad151a8212
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.18 39/276139/1 accepted/tizen/unified/20220615.135332 submit/tizen/20220610.062030 submit/tizen/20220614.054816
Ilho Kim [Fri, 10 Jun 2022 05:23:35 +0000 (14:23 +0900)]
Release version 0.22.18

Changes:
 - Block the build of unittest when building with asan

Change-Id: I62d378feed8dedbe0e0a7bef050d5c683ff11c9c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoBlock the build of unittest when building with asan 76/276076/1
Ilho Kim [Thu, 9 Jun 2022 07:38:27 +0000 (16:38 +0900)]
Block the build of unittest when building with asan

Change-Id: Ic22ed90b221be8993e365ddb600a3dd7ead947e0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.17 59/275959/1 submit/tizen/20220607.095337
Ilho Kim [Tue, 7 Jun 2022 09:47:49 +0000 (18:47 +0900)]
Release version 0.22.17

Changes:
 - Add calling usleep() to avoid busy wating
 - Receive client's request at each thread

Change-Id: Ica04587fa5bfe22424fdf75bc12b1a118abe8074
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoReceive client's request at each thread 22/275822/4
Ilho Kim [Thu, 2 Jun 2022 07:21:44 +0000 (16:21 +0900)]
Receive client's request at each thread

Currently, pkginfo-server read each request in the main thread
but if some client sends the request slowly,
there is a possibility that the main thread is blocked

Change-Id: I7cdd27a5c81d2badd6885c2251390eb4ab5d8fcd
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdd calling usleep() to avoid busy wating 44/275744/3
Ilho Kim [Tue, 31 May 2022 08:29:21 +0000 (17:29 +0900)]
Add calling usleep() to avoid busy wating

If the socket is non-blocking mode, while loop can make busy wating
To avoid busy wating, this patch adds calling usleep() with 100 ms

Change-Id: Id4c17e2f8e403ebfe17ae903fa1f4ccb86822c58
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.16 38/275738/1 accepted/tizen/unified/20220608.140108 submit/tizen/20220531.074151
Ilho Kim [Tue, 31 May 2022 06:39:20 +0000 (15:39 +0900)]
Release version 0.22.16

Changes:
 - Add capabilities to pkg db recovery service

Change-Id: I690e7d85009aca36098ad7cdafeb0079b24d5bef
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdd capabilities to pkg db recovery service 87/275687/1
Ilho Kim [Mon, 30 May 2022 06:55:19 +0000 (15:55 +0900)]
Add capabilities to pkg db recovery service

This service can execute backend(tpk-backend,wgt-backend,unified-backend)
so same capabilities is needed

Change-Id: I8441449049658df805d39203c3d0d823e6704b7f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.15 14/275614/1 accepted/tizen/unified/20220530.140644 submit/tizen/20220527.073732
Ilho Kim [Fri, 27 May 2022 07:12:17 +0000 (16:12 +0900)]
Release version 0.22.15

Changes:
 - Fix spec file for coverage measurement

Change-Id: I73322426d54d781121c1fd783989dea6eb94d68c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoFix spec file for coverage measurement 92/275592/1
Ilho Kim [Fri, 27 May 2022 00:53:32 +0000 (09:53 +0900)]
Fix spec file for coverage measurement

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

Change-Id: I80baad904065d8639910e62a035ff04a0f3a5660
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.14 35/275435/1 accepted/tizen/unified/20220526.143708 submit/tizen/20220525.022451
Changgyu Choi [Wed, 25 May 2022 01:46:52 +0000 (10:46 +0900)]
Release version 0.22.14

Changes:
 - Refactor WorkerThread
 - Remove TODOs
 - Add missing filter checker

Change-Id: I630a6faf5e1c271144adc01eb42e61c5461a7e7a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoAdd missing filter checker 67/275367/8
Changgyu Choi [Mon, 23 May 2022 10:20:34 +0000 (19:20 +0900)]
Add missing filter checker

Change-Id: Ib51e5e25e2c3595d4f8804224f7a0ba1faa47d49
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRemove TODOs 45/274945/1
Junghyun Yeon [Thu, 12 May 2022 06:22:15 +0000 (15:22 +0900)]
Remove TODOs

Get UID from sender's PkgRequest and send it into each RequestHandler

Change-Id: I751d1c99d04aa74af76ba2f61be434d8991f579d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoMerge "Refactor WorkerThread" into tizen
Changgyu Choi [Thu, 12 May 2022 08:17:05 +0000 (08:17 +0000)]
Merge "Refactor WorkerThread" into tizen

2 years agoRefactor WorkerThread 99/274699/8
Changgyu Choi [Fri, 6 May 2022 08:21:51 +0000 (17:21 +0900)]
Refactor WorkerThread

Changes:
 - Moves Scheduler to CreateCacheRequestHandler.
 - Adds PreExec() & PostExec() to RequestHandler steps.
 - Adds RequestHandlerFactory for loose coupling.

Change-Id: I0520f73164d335e6b5db97000db25c4132caad6d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.22.13 15/274915/1 submit/tizen/20220512.042033
Ilho Kim [Thu, 12 May 2022 04:10:12 +0000 (13:10 +0900)]
Release version 0.22.13

Changes:
 - Check map data in cache has key before access

Change-Id: Ib32a7eeaeb52ab5e49d40b5fe92831538fc37e4a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoCheck map data in cache has key before access 14/274914/1
Ilho Kim [Thu, 12 May 2022 03:35:01 +0000 (12:35 +0900)]
Check map data in cache has key before access

map's operator[] can modify it's data
it can cause problem in multithreaded environments

Change-Id: I2aa75be1ae70a675e6875039a25af0243a1eeb90
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.12 57/274857/1 submit/tizen/20220511.041825
Ilho Kim [Wed, 11 May 2022 04:09:25 +0000 (13:09 +0900)]
Release version 0.22.12

Changes:
 - Check if database is modified when making cache

Change-Id: I3ce72ada1db9180ecc60bcf90d1bd73992677d0d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoCheck if database is modified when making cache 53/274853/3
Ilho Kim [Tue, 10 May 2022 11:46:35 +0000 (20:46 +0900)]
Check if database is modified when making cache

If there is a writer tring access db directly,
there is a possibility that the database will change while creating the cache
so check the change time of the database before and after making the cache
and detect the modification of the database
if so fails the cache creation task

Change-Id: Ib606db06e424b5dfca2414592938a10f43ab4240
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.11 92/274492/1 accepted/tizen/unified/20220501.223721 submit/tizen/20220429.050615
Hwankyu Jhun [Fri, 29 Apr 2022 06:04:38 +0000 (15:04 +0900)]
Release version 0.22.11

Changes:
 - Change scheduling policy to a round-robin policy

Change-Id: I4d99836568c02b97fb0683be1be09cbfa537eb52
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoChange scheduling policy to a round-robin policy 09/274409/4
Hwankyu Jhun [Thu, 28 Apr 2022 00:37:44 +0000 (09:37 +0900)]
Change scheduling policy to a round-robin policy

Before creating the cache information(CREATE_CACHE), the worker thread of
pkginfo-server adjusts scheduling policy to the round-robin policy to improve
the performance temporaily. And, the CREATE_CACHE command is started after
the worker threads are created immediately.
Calling TrimCache() is removed from TrimMemory().

Change-Id: I1ecc2aabdbdb5f171b411704bd5cbef15c0e17b1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.22.10 52/274152/1 accepted/tizen/unified/20220425.055030 accepted/tizen/unified/20220426.132124 submit/tizen/20220422.070818 submit/tizen/20220423.050208 submit/tizen/20220423.124820 submit/tizen/20220425.070152
Junghyun Yeon [Fri, 22 Apr 2022 06:38:57 +0000 (15:38 +0900)]
Release version 0.22.10

Changes:
 - Change db schema comparison logic
 - Refactor pkgmgr-info
 - Revert refactor patch and its release patch
 - Add lightuser feature

Change-Id: I64bf330689af2f87f82dea1216820b22a1a47ef0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoAdd lightuser feature 13/274013/1
Junghyun Yeon [Wed, 20 Apr 2022 04:52:34 +0000 (13:52 +0900)]
Add lightuser feature

Add columns, getter, setter for lightuser feature

Change-Id: I7d0e84c9a425f886373e125be3a86d578dda5942
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRevert refactor patch and its release patch 04/274004/1
Junghyun Yeon [Wed, 20 Apr 2022 02:34:14 +0000 (11:34 +0900)]
Revert refactor patch and its release patch

It causes some thread related exception

Change-Id: I12c1ccadf82a75882e7d7472aadab80ff79a0681
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.22.10 96/273596/1 submit/tizen/20220408.083303
Junghyun Yeon [Fri, 8 Apr 2022 08:26:24 +0000 (17:26 +0900)]
Release version 0.22.10

Changes:
 - Change db schema comparison logic
 - Refactor pkgmgr-info

Change-Id: I049893d2e71e63dc800a8f920a6e73ac5f4053b6
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRefactor pkgmgr-info 49/269349/14
Junghyun Yeon [Thu, 13 Jan 2022 04:26:28 +0000 (13:26 +0900)]
Refactor pkgmgr-info

- Separace Cache logic from DBHandleProvider.
- Change function name for readability.
- Add UID setter/getter function at AbstractRequestHandler to provide uid at CacheRequestHandler.
- Apply early-return policy to reduce indentation.

Change-Id: I1f2bc50247178a70c2268c81d2f2fc5bd2e75b2c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoChange db schema comparison logic 37/272837/7
Junghyun Yeon [Fri, 25 Mar 2022 08:30:04 +0000 (17:30 +0900)]
Change db schema comparison logic

DB schema couldn't be separated by newline when db has upgraded
using "alter table" sql statement.
To compare it with db schema separated by newline, parse retrieved
schema with "," and trim empty lines to separate schema with one
colum definition.

Change-Id: I14c0f58c67f668962aac9a574ff2161132e69702
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.22.9 69/273469/1 accepted/tizen/unified/20220406.211839 submit/tizen/20220406.064234
Ilho Kim [Wed, 6 Apr 2022 06:19:27 +0000 (15:19 +0900)]
Release version 0.22.9

Changes:
 - Fix metadata filter when using cached app info

Change-Id: I63eb4f35ad2319c1b184b2e4ed9e4bf5d012d678
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoFix metadata filter when using cached app info 58/273458/2
Ilho Kim [Wed, 6 Apr 2022 04:49:57 +0000 (13:49 +0900)]
Fix metadata filter when using cached app info

when compare metadata value using metadat filter
there is need to check the exact matching of values using 'strcmp' not 'strstr'

Change-Id: I61f85c4a3e50278077730eb7190caeb0f6b484eb
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.8 01/272601/1 accepted/tizen/unified/20220322.082804 submit/tizen/20220321.132958
Ilho Kim [Mon, 21 Mar 2022 09:36:18 +0000 (18:36 +0900)]
Release version 0.22.8

Changes:
 - Trim cache after set query request

Change-Id: Id587ba5963374b9349c31c98cff9dd6602e32709
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoTrim cache after set query request 98/272598/3
Ilho Kim [Mon, 21 Mar 2022 08:51:12 +0000 (17:51 +0900)]
Trim cache after set query request

After the write query request is completed
the cache value and database value are different
there is a need to call trim cache directrly after excuting write query

Change-Id: Icc7f87fa60c372fad7df6e31df4ae5055d36419d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.7 83/272583/2 submit/tizen/20220321.062859
Junghyun Yeon [Mon, 21 Mar 2022 06:22:45 +0000 (15:22 +0900)]
Release version 0.22.7

Changes:
 - Add parameters for offline mode
 - Separate pkgid and pkg manifest

Change-Id: I562fcff0ca75d7530e944683816ba8ed02fbcdcf
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoMerge "Add parameters for offline mode" into tizen
Junghyun Yeon [Mon, 21 Mar 2022 06:23:17 +0000 (06:23 +0000)]
Merge "Add parameters for offline mode" into tizen

2 years agoSeparate pkgid and pkg manifest 17/272517/1
Junghyun Yeon [Fri, 18 Mar 2022 07:22:06 +0000 (16:22 +0900)]
Separate pkgid and pkg manifest

Change-Id: I35e1d4caaa8567d80083801930948684f6954714
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoAdd parameters for offline mode 51/272451/1
Junghyun Yeon [Thu, 17 Mar 2022 03:34:54 +0000 (12:34 +0900)]
Add parameters for offline mode

Callback registration for language change is unnecessary
if code operates as offline mode.

Change-Id: I89067c8305a81c8ffc3b0bf67f7bb10789051767
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.22.6 82/271482/1 accepted/tizen/unified/20220223.132444 submit/tizen/20220222.050046
Junghyun Yeon [Tue, 22 Feb 2022 03:29:45 +0000 (12:29 +0900)]
Release version 0.22.6

Changes:
 - Fix static analysis issue

Change-Id: Ibc5cc3d26225ef39e55a2f8527e4c7e33578cf97
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoFix static analysis issue 22/271222/1
Ilho Kim [Thu, 17 Feb 2022 02:33:04 +0000 (11:33 +0900)]
Fix static analysis issue

- Uninitialized scalar field

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