platform/core/appfw/pkgmgr-info.git
19 months agoRelease version 0.24.6 88/290688/1 accepted/tizen/unified/20230331.225112
ilho kim [Fri, 31 Mar 2023 00:33:53 +0000 (09:33 +0900)]
Release version 0.24.6

Changes:
 - Decrease timeout of client socket

Change-Id: I7495b702240669ccc331a7c32758489bd544c605
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
19 months agoDecrease timeout of client socket 55/290655/1
ilho kim [Thu, 30 Mar 2023 05:54:53 +0000 (14:54 +0900)]
Decrease timeout of client socket

The timeout was increased because the request received before the cache
creation is completed is delayed, but not the request is received after
the cache creation is completed, so the value is reduce again

Change-Id: Id208b540a6fbc94cc1094a2aa68046eaba99cb46
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
19 months agoRelease version 0.24.5 25/290225/1 accepted/tizen/unified/20230323.172511
ilho kim [Wed, 22 Mar 2023 00:17:07 +0000 (09:17 +0900)]
Release version 0.24.5

Changes:
 - Fix Typo
 - Fix "_APPINFO_PROP_PKG_DISABLE" filter check logic

Change-Id: I0a1fa6192a89ce41e1b254cd2483dd2119433590
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
19 months agoFix "_APPINFO_PROP_PKG_DISABLE" filter check logic 16/290216/1
ilho kim [Tue, 21 Mar 2023 11:44:03 +0000 (20:44 +0900)]
Fix "_APPINFO_PROP_PKG_DISABLE" filter check logic

The GetPackageDisableFilterStatus function should check
'PMINFO_APPINFO_PROP_PKG_DISABLE' not 'PMINFO_APPINFO_PROP_APP_DISABLE'

Change-Id: Ia922d73aaf845dbd97d4e7bef28029be4c42df4c
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
19 months agoFix Typo 13/290213/1
ilho kim [Tue, 21 Mar 2023 11:29:53 +0000 (20:29 +0900)]
Fix Typo

Change-Id: I5ed2ebc7f2d52e41546fdb22a8af57b3b6fceb21
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
20 months agoRelease version 0.24.4 81/289881/1 accepted/tizen/unified/20230316.101442
ilho kim [Wed, 15 Mar 2023 04:50:57 +0000 (13:50 +0900)]
Release version 0.24.4

Changes:
 - Fix static analysis issue

Change-Id: I015f93e43773f751b2d9eb25c68ca54884f0d6f9
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
20 months agoFix static analysis issue 69/289869/2
ilho kim [Wed, 15 Mar 2023 03:32:46 +0000 (12:32 +0900)]
Fix static analysis issue

Fix resource leak

Change-Id: I63816552cf432f3c9c1eee8eac1c62a6e4b1fdfa
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
20 months agoRelease version 0.24.3 70/289770/1 accepted/tizen/unified/20230315.093458
ilho kim [Tue, 14 Mar 2023 07:20:37 +0000 (16:20 +0900)]
Release version 0.24.3

Changes:
 - Add debugging log for disabled pkg/app for db
 - Fix 'pkgmgr_parser_update_global_app_disable_for_uid_info_in_db'

Change-Id: I06c8b2f2a2bd20d54160319d0b52366dba3c58d5
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
20 months agoFix 'pkgmgr_parser_update_global_app_disable_for_uid_info_in_db' 26/289526/1
ilho kim [Thu, 9 Mar 2023 06:23:24 +0000 (15:23 +0900)]
Fix 'pkgmgr_parser_update_global_app_disable_for_uid_info_in_db'

The api write value for global user database

Change-Id: I8296c653497337c9aa79091058b89a47dd878388
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
20 months agoAdd debugging log for disabled pkg/app for db 08/289508/3
ilho kim [Thu, 9 Mar 2023 03:42:07 +0000 (12:42 +0900)]
Add debugging log for disabled pkg/app for db

When using a filter for package_disable or app_disable
do not filter using a query, get a values from db and then apply filter
and print log when package or application is disabled

Change-Id: I3842c346e6bdebee2a7703897ab91cd323d33a45
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
20 months agoRelease version 0.24.2 79/289479/1 accepted/tizen/unified/20230310.062643 accepted/tizen/unified/20230314.093341
Hwankyu Jhun [Wed, 8 Mar 2023 23:37:04 +0000 (23:37 +0000)]
Release version 0.24.2

Changes:
 - Fix static analysis issues
 - Fix static analysis issues
 - Add package paremeter to application filter
 - Fix 'PMINFO_APPINFO_PROP_PKG_DISABLE' filter for cache
 - Add debugging log for disabled pkg/app for cache
 - Modify package ID comparison

Change-Id: I5b373b0de37669ae76206e11078c177a91663c36
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
20 months agoModify package ID comparison 78/289478/1
Hwankyu Jhun [Wed, 8 Mar 2023 23:30:15 +0000 (23:30 +0000)]
Modify package ID comparison

This patch fixes duplicated callback function call.

Change-Id: I438d3e1243652542a002701f623da2aeba27b0a1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
20 months agoAdd debugging log for disabled pkg/app for cache 87/289387/2
ilho kim [Fri, 3 Mar 2023 01:15:12 +0000 (10:15 +0900)]
Add debugging log for disabled pkg/app for cache

Change-Id: I360d3bd833b7f05db225ae437bdab35adc5555af
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
20 months agoFix 'PMINFO_APPINFO_PROP_PKG_DISABLE' filter for cache 99/289299/1
ilho kim [Mon, 6 Mar 2023 04:44:57 +0000 (13:44 +0900)]
Fix 'PMINFO_APPINFO_PROP_PKG_DISABLE' filter for cache

PMINFO_APPINFO_PROP_PKG_DISABLE filter should check
if the application's package is disabled or not

Change-Id: Ifce33771267de6ade81d9e118cded3519757aef0
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
20 months agoAdd package paremeter to application filter 98/289298/1
ilho kim [Mon, 6 Mar 2023 04:34:47 +0000 (13:34 +0900)]
Add package paremeter to application filter

Package information of the application may be required
in the application filter

Change-Id: I1386eb75cd30f939eef253621b13300904398b1a
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
21 months agoFix static analysis issues 69/288169/2
ilho kim [Mon, 13 Feb 2023 02:25:54 +0000 (11:25 +0900)]
Fix static analysis issues

- Unchecked return value

Change-Id: Ic59b1ee15622fd86f1bf4782e3df0191aa7fe0aa
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
21 months agoFix static analysis issues 68/288168/1
ilho kim [Mon, 13 Feb 2023 01:50:01 +0000 (10:50 +0900)]
Fix static analysis issues

- Fix resource leak

Change-Id: I4157b1f9f5e3014ce0adea493551e98f3a5e8038
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
21 months agoRelease version 0.24.1 28/288028/1
ilho kim [Thu, 9 Feb 2023 07:59:54 +0000 (16:59 +0900)]
Release version 0.24.1

Changes:
 - Delay Creation of cache if backup database is exist

Change-Id: Iabd33173e22e46426ba44f426ac98ae4b8fdcfda
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
21 months agoDelay Creation of cache if backup database is exist 47/287947/3
ilho kim [Wed, 8 Feb 2023 06:37:28 +0000 (15:37 +0900)]
Delay Creation of cache if backup database is exist

If the backup database created during pkg_upgrade remains due to power off
the backup database will be restored in the next pkg_upgrade
In this case, the package information of the database and cache may be
different

Change-Id: I3b17a659cdaeccd3fc2c01224336f771b4bd7f5f
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
21 months agoRelease version 0.24.0 30/287530/2 accepted/tizen/unified/20230202.015302
Hwankyu Jhun [Tue, 31 Jan 2023 04:05:15 +0000 (04:05 +0000)]
Release version 0.24.0

Changes:
 - Support multiple instance launch

Change-Id: I93937cd9a71ee6000bfac3bd80b3b2fde4f55532
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoSupport multiple instance launch 30/287130/2
Hwankyu Jhun [Fri, 20 Jan 2023 07:24:04 +0000 (07:24 +0000)]
Support multiple instance launch

When the multiple instance launch is supported, the application ID can
be "<appid>::<instance_id>". This patch checks whether the application ID
has the instance Id or not. If it has the instance ID, the library tries
to find the application info using the real application ID.

Change-Id: I4d72dada5815f359073de860b354cb7bee994b9d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoRelease version 0.23.2 15/286915/1 accepted/tizen/7.0/unified/20230203.164125 accepted/tizen/unified/20230117.140519
jh9216.park [Mon, 16 Jan 2023 23:51:51 +0000 (18:51 -0500)]
Release version 0.23.2

Changes:
 - Fix build error

Change-Id: I2bb76f95c5d9367050bc109013a0a901bfc4444f
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
21 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>