platform/core/appfw/pkgmgr-info.git
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>
2 years agoRelease version 0.22.5 43/269743/1 accepted/tizen/unified/20220124.020517 submit/tizen/20220120.064930 submit/tizen/20220120.083417 submit/tizen/20220120.231448
Ilho Kim [Thu, 20 Jan 2022 05:18:07 +0000 (14:18 +0900)]
Release version 0.22.5

Changes:
 - Change gcov installation path

Change-Id: I7b6e466b96696ce1f12939ed531d1109c9532ccf
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoChange gcov installation path 88/269688/1
Ilho Kim [Thu, 20 Jan 2022 04:12:48 +0000 (13:12 +0900)]
Change gcov installation path

Change-Id: If8c9e82810f10280e97d3e6706e1239701bbb0dd
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.22.4 81/269481/1 accepted/tizen/unified/20220118.123310 submit/tizen/20220117.003944
Hwankyu Jhun [Mon, 17 Jan 2022 00:36:12 +0000 (09:36 +0900)]
Release version 0.22.4

Changes:
 - Fix crash issue

Change-Id: I9893e4ced85d075130d08d3503ed2bcdcf3f61d1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix crash issue 80/269480/1
Hwankyu Jhun [Sun, 16 Jan 2022 23:27:16 +0000 (08:27 +0900)]
Fix crash issue

While calling AddApplication() with calling std::move(), pkginfo-server process
has crashed. 'app->appid' causes the crash issue.

Change-Id: I006516a9553c7a52220afe85d2f80ae10fa24ff0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.22.3 57/269257/1 accepted/tizen/unified/20220114.130141 submit/tizen/20220112.060628
Junghyun Yeon [Wed, 12 Jan 2022 05:56:05 +0000 (14:56 +0900)]
Release version 0.22.3

Changes:
 - Refactor pkgmgr-info
 - Revert "Replace mock API"
 - Merge "Revert "Replace mock API"" into tizen

Change-Id: Ib6e8b6599bca867107aa2f1f4c4cf8ee752b683a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoMerge "Revert "Replace mock API"" into tizen
Junghoon Park [Wed, 12 Jan 2022 05:55:42 +0000 (05:55 +0000)]
Merge "Revert "Replace mock API"" into tizen

2 years agoRevert "Replace mock API" 55/269255/1
Junghoon Park [Wed, 12 Jan 2022 05:54:40 +0000 (05:54 +0000)]
Revert "Replace mock API"

This reverts commit e9bab6113e40817d021b167c6cd6639dd27003e7.

Change-Id: I8c5e54093e59c9b6b548c9c6cae60f136fadedd3

2 years agoRefactor pkgmgr-info 66/269166/3
jh9216.park [Tue, 11 Jan 2022 01:08:02 +0000 (20:08 -0500)]
Refactor pkgmgr-info

- Use std::vector instead of GHashTable to move application_x data
- Change c code to cpp code

Change-Id: Ibdccf3a216a611266e8c4e7d02f539f92c9b5c4e
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoRelease version 0.22.2 08/269208/1 accepted/tizen/unified/20220112.121706 submit/tizen/20220111.094849
Junghyun Yeon [Tue, 11 Jan 2022 09:21:23 +0000 (18:21 +0900)]
Release version 0.22.2

Changes:
 - Replace mock API
 - Change method name
 - Minor refactor

Change-Id: Ia44f0792a4ee3013bb008866a2189f2468683280
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoMinor refactor 66/269066/3
Junghyun Yeon [Thu, 6 Jan 2022 05:35:06 +0000 (14:35 +0900)]
Minor refactor

- Remove unnecessary parameter and local variable which is no longer used.
- Extract duplicate codes info function.
- Change variable name for readability.
- Adjust code order for readability.

Change-Id: I98050d35f0fd9a256895e698918fc34f8840fad1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoChange method name 04/269104/1
jh9216.park [Mon, 10 Jan 2022 01:38:37 +0000 (20:38 -0500)]
Change method name

- I changed the method name from GetAppHandle to DetachAppHandle because it
moves container 'handle_list_'

Change-Id: I67868253c8b3527ef81a88380c28cee0559c65d3
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoReplace mock API 02/269102/1
jh9216.park [Mon, 10 Jan 2022 00:57:19 +0000 (19:57 -0500)]
Replace mock API

- Use MOCK_METHOD instead of deprecated MOCK_METHODx

Change-Id: I03baf3a89f5c3663d74fa606fbd81cc61539623d
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoRelease version 0.22.1 98/268998/2 accepted/tizen/unified/20220107.120852 submit/tizen/20220106.054320
Ilho Kim [Thu, 6 Jan 2022 05:35:41 +0000 (14:35 +0900)]
Release version 0.22.1

Changes:
 - Fix memory leak
 - Add boot-sequence to manifest.xsd
 - Skip SetMemoryMode in offline mode

Change-Id: Ia9c61075c42c15f5bfe5ca1c0fbfb1d29afa4130
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoSkip SetMemoryMode in offline mode 86/268986/3
Ilho Kim [Thu, 6 Jan 2022 04:20:27 +0000 (13:20 +0900)]
Skip SetMemoryMode in offline mode

SetMemoryMode is unnecessarily performed during mic build
so skip SetMemoryMode operation in offline mode

Change-Id: I4ab061f097aa488abbcac4d37e23e06fdb182700
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoMerge "Add boot-sequence to manifest.xsd" into tizen
HwanKyu Jhun [Thu, 6 Jan 2022 04:54:29 +0000 (04:54 +0000)]
Merge "Add boot-sequence to manifest.xsd" into tizen

2 years agoAdd boot-sequence to manifest.xsd 62/267162/8
SukhyungKang [Fri, 26 Nov 2021 11:44:30 +0000 (20:44 +0900)]
Add boot-sequence to manifest.xsd

The UI & Service application can define boot-sequence to the tizen-manifest.xml.
The developer can adjust dependencies of on-boot apps using boot-sequence.
The application manager starts on-boot apps using boot-sequence.
This feature is only available for inhouse developer.

Change-Id: I626c2ec893225dcf0b16eb16b8d2f38e9e12890c
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
2 years agoFix memory leak 83/268983/1
Ilho Kim [Thu, 6 Jan 2022 01:32:11 +0000 (10:32 +0900)]
Fix memory leak

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