platform/core/appfw/pkgmgr-info.git
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
21 months 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>
21 months 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>
21 months 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>
21 months 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>
21 months 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>
21 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
23 months 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>
23 months 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>
23 months 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>
23 months 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>
23 months 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>
23 months 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>
23 months 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>
23 months 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>
23 months 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>
23 months agoMerge "Refactor WorkerThread" into tizen
Changgyu Choi [Thu, 12 May 2022 08:17:05 +0000 (08:17 +0000)]
Merge "Refactor WorkerThread" into tizen

23 months 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>
23 months 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>
23 months 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>
23 months 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>
23 months 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>
2 years agoRelease version 0.22.0 55/268955/1 submit/tizen/20220105.075021
Ilho Kim [Wed, 5 Jan 2022 07:45:26 +0000 (16:45 +0900)]
Release version 0.22.0

Changes:
 - Fix static analysis issues
 - Add to cache pkg & appinfo
 - Create cache on a separate thread

Change-Id: I00cfea4874037092161ce8255447726214477337
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoCreate cache on a separate thread 30/265930/18
Ilho Kim [Mon, 1 Nov 2021 09:01:54 +0000 (18:01 +0900)]
Create cache on a separate thread

Change-Id: Ia00e4dea4b1b38cc7bd3876ac1d7695e6997c716
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdd to cache pkg & appinfo 23/261023/48
Changgyu Choi [Thu, 8 Jul 2021 11:31:17 +0000 (20:31 +0900)]
Add to cache pkg & appinfo

It is very expensive cost that access the sqlite db.
If getting pkg or app info query is called,
the server caches the info lists.
The cache data is released, when the set query was called.

Change-Id: I83380e1726bd7ae2acac6860cce05ce04326830e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix static analysis issues 79/268879/1
Junghyun Yeon [Tue, 4 Jan 2022 06:14:01 +0000 (15:14 +0900)]
Fix static analysis issues

Change-Id: I8d998de92fe576b64e87aef6dd7d3dbe132f8e84
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoRelease version 0.21.14 37/268037/1 submit/tizen/20211215.055423
Changgyu Choi [Wed, 15 Dec 2021 06:20:07 +0000 (15:20 +0900)]
Release version 0.21.14

Changes:
 - Remove macro for supporting old glib

Change-Id: I6fc05bc10c00d383ffabc3d3b0f588c67a0c4295
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRemove macro for supporting old glib 29/268029/1
Changgyu Choi [Wed, 15 Dec 2021 05:19:13 +0000 (14:19 +0900)]
Remove macro for supporting old glib

Change-Id: I218dfa031d79e69480c16e0b355b3380f46f6619
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.21.13 15/268015/1 accepted/tizen/unified/20211222.230509 submit/tizen/20211212.233427
jh9216.park [Wed, 15 Dec 2021 00:50:01 +0000 (19:50 -0500)]
Release version 0.21.13

Changes:
 - Fix build error for new glib
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Change-Id: I4a9aab764da50fa809dbf5ea5ae03228500e4cb1

2 years agoFix build error for new glib 14/268014/1
jh9216.park [Wed, 15 Dec 2021 00:45:08 +0000 (19:45 -0500)]
Fix build error for new glib

Change-Id: I583a83f837ddff0ab75a5edf577b9b40242f9af0
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoRelease version 0.21.12 03/267803/1 accepted/tizen/unified/20211214.124906 submit/tizen/20211210.020448
Hwankyu Jhun [Fri, 10 Dec 2021 02:03:30 +0000 (11:03 +0900)]
Release version 0.21.12

Changes:
 - Adjust pkgmgr-info.service depenedency

Change-Id: If5836c9d050788d1aec7b03f56783bbe48d9f518
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdjust pkgmgr-info.service depenedency 95/267695/1
Hwankyu Jhun [Thu, 9 Dec 2021 00:46:32 +0000 (09:46 +0900)]
Adjust pkgmgr-info.service depenedency

To improve launching performance of the pkginfo-server daemon,
dependencies of the service file is adjusted.
The 'After=pkgmgr-info.socket' dependency is added on the pkgmgr-info.service.
The 'Before=sockets.target' dependency is added on the pkgmgr-info.socket.
And, the 'DefaultDependencies=no' option is added on the pkgmgr-info.socket.

Change-Id: I653463020585419a28cd435922764ad820fa6718
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.21.11 61/266861/1 accepted/tizen/6.5/unified/20211123.213441 accepted/tizen/unified/20211123.143724 submit/tizen/20211123.001718 submit/tizen/20211123.042250 submit/tizen_6.5/20211121.235436
Ilho Kim [Sun, 21 Nov 2021 23:45:10 +0000 (08:45 +0900)]
Release version 0.21.11

Changes:
 - Fix thread synchronization when clear cache

Change-Id: Id2a5bcaafce65dc8596a530582997c40aff0c6ad
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoFix thread synchronization when clear cache 36/266836/2
Ilho Kim [Fri, 19 Nov 2021 08:15:18 +0000 (17:15 +0900)]
Fix thread synchronization when clear cache

RemoveCache operation need to get lock before operation
for syncronization with other read threads

Change-Id: I3cd78d81e6d4612a6f19531d8c7bda5e8cf883f5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.21.10 26/266726/1 accepted/tizen/6.5/unified/20211122.213339 submit/tizen/20211118.003310 submit/tizen_6.5/20211118.003322 submit/tizen_6.5/20211119.052213
Changgyu Choi [Thu, 18 Nov 2021 00:26:23 +0000 (09:26 +0900)]
Release version 0.21.10

Changes:
- Fix to set locale

Change-Id: I280cdb6eb762841ed71a25b295e0ec13145fb47a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix to set locale 51/266451/5
Changgyu Choi [Fri, 12 Nov 2021 08:51:41 +0000 (17:51 +0900)]
Fix to set locale

Some language codes are being another pattern with "XX_XX".
This patch generalize algorithm that convert to locale.

Change-Id: I4b55dcd185ecd029562da036aebbc5ac6ab6eefe
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.21.9 77/266277/1 accepted/tizen/6.5/unified/20211111.115733 submit/tizen/20211110.075839 submit/tizen_6.5/20211110.075830
Changgyu Choi [Wed, 10 Nov 2021 07:36:50 +0000 (16:36 +0900)]
Release version 0.21.9

Changes:
 - Fix memory leak
 - Fix minor coding rule

Change-Id: I4a56e349ab8a1eff0a4e38e775854058e4fffb65
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix minor coding rule 74/265774/3
Junghyun Yeon [Thu, 28 Oct 2021 07:58:36 +0000 (16:58 +0900)]
Fix minor coding rule

Change-Id: Idcb957159f3861d7374d16c5dad7f23dbc9060c2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
2 years agoFix memory leak 50/265750/2
Ilho Kim [Thu, 28 Oct 2021 04:51:10 +0000 (13:51 +0900)]
Fix memory leak

res_type, res_version should be free

Change-Id: Ia32662389504fced7b8bd63a1f0fd5898e0a0237
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.21.8 55/265755/1 accepted/tizen/6.5/unified/20211109.041719 accepted/tizen/unified/20211101.140312 accepted/tizen/unified/20211104.123526 submit/tizen/20211028.054746 submit/tizen/20211028.063318 submit/tizen/20211101.102058 submit/tizen/20211103.040120 submit/tizen/20211104.074108 submit/tizen/20211104.225435 submit/tizen/20211105.011855 submit/tizen_6.5/20211105.053806
Hwankyu Jhun [Thu, 28 Oct 2021 05:52:14 +0000 (14:52 +0900)]
Release version 0.21.8

Changes:
 - Change codes for readability
 - Fix some API's request type checked
 - Fix wrong parameter
 - Add pkgmgr-info-server pkgconfig file

Change-Id: Ib3197ca45f9f0c4b8140ae6c239a74e6350609f9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd pkgmgr-info-server pkgconfig file 96/265496/1
Hwankyu Jhun [Thu, 21 Oct 2021 00:15:07 +0000 (09:15 +0900)]
Add pkgmgr-info-server pkgconfig file

To improve db direct access performance, the pkgmgr-info-server.pc file
is added for compilation. The amd package will be built using the pkgconfig.
This is to remove the behavior of opening the so file at runtime.

Change-Id: I1c7b9eae6bd181c8b89c8b13735df7788b5ddbf3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix wrong parameter 26/265226/2
Changgyu Choi [Wed, 13 Oct 2021 02:58:52 +0000 (11:58 +0900)]
Fix wrong parameter

Change-Id: If8969221815f634edea4cca6779921ed78b59d9c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix some API's request type checked 91/264791/2
Changgyu Choi [Thu, 30 Sep 2021 00:51:58 +0000 (09:51 +0900)]
Fix some API's request type checked

Change-Id: I5bd5de1a4abcc9732d6070998257a92ecba123fe
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>