platform/core/appfw/pkgmgr-info.git
4 years agoFix static analysis issue 94/219694/8
Ilho Kim [Mon, 9 Dec 2019 07:23:21 +0000 (16:23 +0900)]
Fix static analysis issue

- Fix possibility of memory leak
- Fix possibility of null pointer dereference
- Check return value

Change-Id: I1876315e232be63f252548898cdcbe6b7345e1ce
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 0.17.6 97/218497/1 accepted/tizen/unified/20191201.221520 submit/tizen/20191128.101053 submit/tizen_5.5/20191204.061724 submit/tizen_5.5/20191205.065343
Junghyun Yeon [Mon, 25 Nov 2019 02:10:38 +0000 (11:10 +0900)]
Release version 0.17.6

Changes:
 - Increase pkg db version as 30005

Change-Id: I2e490923aaa720e8900a980ea90a76eec6404458
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoIncrease pkg db version as 30005 01/209901/6
Junghyun Yeon [Fri, 12 Jul 2019 07:58:08 +0000 (16:58 +0900)]
Increase pkg db version as 30005

This version is for shareddata policy

Change-Id: I01c25f71e239b1e7ddc7228dc3d451746b1df811
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 0.17.5 72/217872/1 accepted/tizen/5.5/unified/20191118.084807 accepted/tizen/unified/20191118.122940 submit/tizen/20191115.055644 submit/tizen/20191115.084359 submit/tizen_5.5/20191115.055905
Ilho Kim [Fri, 15 Nov 2019 05:51:17 +0000 (14:51 +0900)]
Release version 0.17.5

Changes:
 - Fix "using value after free" issue

Change-Id: I45285c4507812c7cb1978c10ffe5deb94be18b6e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoFix "using value after free" issue 70/217870/1
Ilho Kim [Fri, 15 Nov 2019 05:19:59 +0000 (14:19 +0900)]
Fix "using value after free" issue

If bg_category_str is not set by _save_column_str, __get_background_category use freed value

Change-Id: I5c1a4dda131df42ebf15627fd0fe72fc8038c972
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoRelease version 0.17.4 66/217466/1 accepted/tizen/unified/20191115.083945 submit/tizen/20191112.050420 submit/tizen/20191114.120558 submit/tizen_5.5/20191112.065048 submit/tizen_5.5/20191114.121100
Ilho Kim [Tue, 12 Nov 2019 04:28:05 +0000 (13:28 +0900)]
Release version 0.17.4

Changes:
 - Check if db recovery was aborted

Change-Id: I71a0aa1c52c62fa7add6ed9e739c4df85ab52be4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoCheck if db recovery was aborted 53/207953/10
Sangyoon Jang [Fri, 14 Jun 2019 07:06:12 +0000 (16:06 +0900)]
Check if db recovery was aborted

If db recovery was aborted and not corrupted, db will be remained
incomplete.

Change-Id: I6ba27f5459dfd9b9075f7cfb0f093f1b806f7007
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoRelease version 0.17.3 89/214289/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.024436 accepted/tizen/5.5/unified/mobile/hotfix/20201027.084323 accepted/tizen/unified/20191015.011857 submit/tizen/20190920.015601 submit/tizen/20191001.095121 submit/tizen/20191002.002728 submit/tizen/20191011.034922 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 tizen_5.5.m2_release
Ilho Kim [Fri, 20 Sep 2019 01:38:33 +0000 (10:38 +0900)]
Release version 0.17.3

Changes:
 - Adjust the position of pkg-db-recovery.service

Change-Id: If54d08a0e72b60315335df5517eb6671c2fe1eb1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoAdjust the position of pkg-db-recovery.service 12/208312/4
INSUN PYO [Fri, 21 Jun 2019 09:44:48 +0000 (18:44 +0900)]
Adjust the position of pkg-db-recovery.service

A service with "DefaultDependencies = no" is moved to basic.target.wants.

Change-Id: I2e5acbb3bd8a170daa239b56314e1618218ac48c

5 years agoRelease version 0.17.2 72/212272/1 accepted/tizen/unified/20190820.115009 submit/tizen/20190820.015710
Ilho Kim [Tue, 20 Aug 2019 01:36:05 +0000 (10:36 +0900)]
Release version 0.17.2

Changes:
 - Add Foreach depdency API for Archiveinfo

Change-Id: Ib1840bcaa6d22714f97dbd47c368f06259814a5d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoAdd Foreach depdency API for Archiveinfo 11/211111/3
Junghyun Yeon [Tue, 30 Jul 2019 07:32:17 +0000 (16:32 +0900)]
Add Foreach depdency API for Archiveinfo

Related changes:
[slp-pkgmgr] : https://review.tizen.org/gerrit/211114
[tpk-backend] : https://review.tizen.org/gerrit/211115

Change-Id: Ica6096e09c9fb5e124d12d2e85b41a2f0eefced9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 0.17.1 47/210547/1 accepted/tizen/unified/20190723.053615 submit/tizen/20190722.090051
Junghyun Yeon [Mon, 22 Jul 2019 08:43:57 +0000 (17:43 +0900)]
Release version 0.17.1

Changes:
 - Fix the possibility of a memory leak
 - Revert "Change pkg db journaling mode to WAL"

Change-Id: Ia6290c575a1afceac6bfb79303d7b4466d3e8da0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRevert "Change pkg db journaling mode to WAL" 20/210520/2
ilho kim [Mon, 22 Jul 2019 05:34:08 +0000 (05:34 +0000)]
Revert "Change pkg db journaling mode to WAL"

This reverts commit 98ea521303d74cfc8bb4cc7b801274f3c0cbfece.

Change-Id: Idef5f76a0de0f17c846e4c538b65d62f97b37b42

5 years agoFix the possibility of a memory leak 11/209911/4
Ilho Kim [Fri, 12 Jul 2019 08:20:23 +0000 (17:20 +0900)]
Fix the possibility of a memory leak

The sqlite3_open_v2() function may have a db handle
,even if even if an error occurs.

Change-Id: Ibe402d33984f833ea79556eece734b7cc349da35
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoRelease version 0.17.0 85/209885/1 accepted/tizen/unified/20190717.115158 submit/tizen/20190712.071407 submit/tizen/20190716.022534
Ilho Kim [Fri, 12 Jul 2019 06:38:32 +0000 (15:38 +0900)]
Release version 0.17.0

Changes:
 - Fix spelling
 - Remove unused structure
 - Change the config value of the systemd service ("false" -> "no")
 - Change pkg db journaling mode to WAL

Change-Id: I5c5e3b00d8b8f22cbcae3d9102e0f63d98905b6b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoChange pkg db journaling mode to WAL 13/207513/6
Junghyun Yeon [Wed, 5 Jun 2019 10:49:14 +0000 (19:49 +0900)]
Change pkg db journaling mode to WAL

Related changes:
[pkgmgr-tool] : https://review.tizen.org/gerrit/#/c/platform/core/appfw/pkgmgr-tool/+/207512/

Change-Id: I835fc6a87b2a5f2b7de3bb88cdc533d05368fd97
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoChange the config value of the systemd service ("false" -> "no") 71/208371/1
INSUN PYO [Mon, 24 Jun 2019 02:12:45 +0000 (11:12 +0900)]
Change the config value of the systemd service ("false" -> "no")

"no" and "false" have the same meaning, but the document has "no".
Also, since the parsing order is "no" first, there is some performance gain.

Change-Id: Ib0f0428cd0721cdc2344bde74c3fadc50753ddd2

5 years agoRemove unused structure 63/207563/1
Junghyun Yeon [Fri, 7 Jun 2019 07:24:41 +0000 (16:24 +0900)]
Remove unused structure

Change-Id: I9812f2192516fee9e23bafed3fe5ec83f0213cc1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoFix spelling 09/205909/1
Ilho Kim [Fri, 10 May 2019 08:13:55 +0000 (17:13 +0900)]
Fix spelling

Change-Id: I775c8e49515532d0ec7aa5087b81d4dc81a50a08
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoRelease version 0.16.1 31/203631/1 accepted/tizen/unified/20190419.110525 submit/tizen/20190416.100651 submit/tizen/20190418.021839 submit/tizen/20190418.055722
Junghyun Yeon [Tue, 16 Apr 2019 08:56:12 +0000 (17:56 +0900)]
Release version 0.16.1

Changes:
 - Set default support-mode to 0
 - Add missing annotation for describing added APIs
 - Store each api-version of application
 - Adjust component-based application information
 - Check write lock only when db is busy
 - Modify db recovery service file

Change-Id: I3a2a9ef7dfc0123fadfd92fd26d4fb75d88bca52
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoModify db recovery service file 92/201792/10
Junghyun Yeon [Tue, 19 Mar 2019 11:52:57 +0000 (20:52 +0900)]
Modify db recovery service file

- It should be executed only once.

Change-Id: Ia55563832faf0a50d230f908ccfaa9d7661b698d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoCheck write lock only when db is busy 26/203426/4
Sangyoon Jang [Fri, 12 Apr 2019 10:49:59 +0000 (19:49 +0900)]
Check write lock only when db is busy

Change-Id: I6f1048a7fc256223b87bda16d2454e3de84d25f4
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoAdjust component-based application information 18/203118/3
Hwankyu Jhun [Wed, 10 Apr 2019 05:45:17 +0000 (14:45 +0900)]
Adjust component-based application information

The component info table is removed.
The app-control, category, data-control and splash-screens elements
are added.

Change-Id: I93a70109fc848ecb44cd4b77b732bf43dbdd4efa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoStore each api-version of application 48/200048/5
Sangyoon Jang [Mon, 18 Feb 2019 02:42:19 +0000 (11:42 +0900)]
Store each api-version of application

Change-Id: I00b2b88e6b3c126c0f157ef5d39a75b9a6d079bc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoAdd missing annotation for describing added APIs 99/202199/6
ilho [Tue, 26 Mar 2019 04:37:30 +0000 (13:37 +0900)]
Add missing annotation for describing added APIs

Change-Id: I13b4ab882a0c6f0028dbf2b633839521f1490152
Signed-off-by: ilho <ilho159.kim@samsung.com>
5 years agoSet default support-mode to 0 58/202258/2
Junghyun Yeon [Tue, 26 Mar 2019 10:19:47 +0000 (19:19 +0900)]
Set default support-mode to 0

Add default value for support-mode for wgt packages.

Change-Id: I534f9dd17a520901e0f0631c42dddb94af4ca465
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 0.16.0 63/201963/1 accepted/tizen/unified/20190322.075508 submit/tizen/20190321.084911
Sangyoon Jang [Thu, 21 Mar 2019 08:43:03 +0000 (17:43 +0900)]
Release version 0.16.0

Changes:
 - Fix spelling
 - Add manifest scheme of package dependency
 - Fix dependency info callback signature and API name
 - Fix a bug when retrieving package dependency info

Change-Id: Ie9eab16e4e39448a3ba8b7820c46f9168dce7c57
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoFix a bug when retrieving package dependency info 70/201770/1
Sangyoon Jang [Tue, 19 Mar 2019 08:40:43 +0000 (17:40 +0900)]
Fix a bug when retrieving package dependency info

Change-Id: I05e53fd8d9ef32dc0049304b824ed1688771202b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoFix dependency info callback signature and API name 98/201198/7
Sangyoon Jang [Mon, 11 Mar 2019 08:31:31 +0000 (17:31 +0900)]
Fix dependency info callback signature and API name

- Pass both pkgid of dependency info.
- API name changed to pkgmgrinfo_pkginfo_foreach_depends_on

Change-Id: Iea3a8e1694f352a4357bc1e18bfb8b2d1e7eb056
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoAdd manifest scheme of package dependency 64/201164/5
Sangyoon Jang [Mon, 11 Mar 2019 04:49:50 +0000 (13:49 +0900)]
Add manifest scheme of package dependency

Change-Id: Ibf9870d3a7a6bf556376514093cce74d64b3bc5d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoFix spelling 93/201593/1
ilho [Mon, 18 Mar 2019 05:18:04 +0000 (14:18 +0900)]
Fix spelling

Change-Id: I0e97e86c38c6c126b718b306144f124c38ff617f
Signed-off-by: ilho <ilho159.kim@samsung.com>
5 years agoRelease version 0.15.0 92/201492/1 accepted/tizen/unified/20190318.150649 submit/tizen/20190315.084013
Hwankyu Jhun [Fri, 15 Mar 2019 03:03:53 +0000 (12:03 +0900)]
Release version 0.15.0

Changes:
 - Add package dependency attribute
 - Update db version as 30004
 - Change codes to let initdb could have deferred lock
 - Implement pkgmgr plugin execution info
 - Add new elements for component-based application
 - Supplement db recovery tool

Change-Id: I4b57139f5e31b378ecb4f4b6f0e250ed0e611a38
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoMerge "Add new elements for component-based application" into tizen
HwanKyu Jhun [Fri, 15 Mar 2019 03:03:02 +0000 (03:03 +0000)]
Merge "Add new elements for component-based application" into tizen

5 years agoSupplement db recovery tool 94/200694/5
Junghyun Yeon [Thu, 28 Feb 2019 08:25:01 +0000 (17:25 +0900)]
Supplement db recovery tool

- Change printf to dlog.
- Add busy handler to prevent drop db when failed to check integrity check.

Change-Id: Ida824ae32e2a55b7ad17cac3e95f9063ec0f6748
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoAdd new elements for component-based application 68/200568/19
Hwankyu Jhun [Wed, 27 Feb 2019 01:25:45 +0000 (10:25 +0900)]
Add new elements for component-based application

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/pkgmgr-info/+/200568/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/tpk-manifest-handlers/+/200669/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/200691/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/200773/

Change-Id: Ib4b45d27948f48f74274f8346c624ac6710e7b42
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoImplement pkgmgr plugin execution info 20/195920/16
Junghyun Yeon [Thu, 13 Dec 2018 10:10:17 +0000 (19:10 +0900)]
Implement pkgmgr plugin execution info

Change-Id: I091818b5e368542a5e44d6a61d58ef6cd5d9dee0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoChange codes to let initdb could have deferred lock 69/200469/2
Junghyun Yeon [Mon, 25 Feb 2019 11:42:57 +0000 (20:42 +0900)]
Change codes to let initdb could have deferred lock

- Use deffered lock when initialize db to create table
  more fast when other processes try to get pkg dbinfo.

Change-Id: I1deecc0c4d9e63bcca40277fe560cec2aa948492
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoUpdate db version as 30004 07/199507/1
Sangyoon Jang [Tue, 12 Feb 2019 08:01:47 +0000 (17:01 +0900)]
Update db version as 30004

Version 30004 includes package dependency feature.

Change-Id: Ib5b20497b3ae79a09277c0a1bf0d05ed943e16de
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoAdd package dependency attribute 34/197434/10
Sangyoon Jang [Thu, 3 Jan 2019 04:57:09 +0000 (13:57 +0900)]
Add package dependency attribute

Change-Id: I5cd2dc375e7ff4e070ce9f4292c0368a7ed16a4f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoRelease version 0.14.1 99/198099/1 accepted/tizen/unified/20190128.061311 submit/tizen/20190121.002257
Hwankyu Jhun [Mon, 21 Jan 2019 00:02:30 +0000 (09:02 +0900)]
Release version 0.14.1

Changes:
 - Fix get app control info query

Change-Id: Ifd18d3e903b68d46f63e5045c2c78967e47e960e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoFix get app control info query 92/197792/2
ilho [Wed, 16 Jan 2019 10:46:25 +0000 (19:46 +0900)]
Fix get app control info query

Change-Id: I2584f1719d2d333db30f8460230f72700fef5ac7
Signed-off-by: ilho <ilho159.kim@samsung.com>
5 years agoRelease version 0.14.0 accepted/tizen/unified/20190117.151829 submit/tizen/20190116.052201 submit/tizen/20190117.001629
Hwankyu Jhun [Mon, 14 Jan 2019 02:16:08 +0000 (11:16 +0900)]
Release version 0.14.0

Changes:
 - Add attribute 'id' on app-control element

Change-Id: Id3be17ec6ed97022e3bbdd6cb14a47dba927148a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoAdd attribute 'id' on app-control element 87/196887/6
Hwankyu Jhun [Mon, 7 Jan 2019 09:41:34 +0000 (18:41 +0900)]
Add attribute 'id' on app-control element

Change-Id: I3a44c4610e8831e3597a7d9b511f5e060dfbed88
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.13.7 02/196402/1
Junghyun Yeon [Fri, 28 Dec 2018 04:38:58 +0000 (13:38 +0900)]
Release version 0.13.7

Changes:
 - Fix possible issues for pkgmgr-info

Change-Id: I2a5b87c5105a4dc67a878c9170528b42eb589104
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoChange codes for db lock issue 79/196379/1
Junghyun Yeon [Fri, 28 Dec 2018 02:13:51 +0000 (11:13 +0900)]
Change codes for db lock issue

- SQLite connection will be disconnected before cleanup operation.
- Adjust busy timer to 5 sec to prevent db lock issue.

Change-Id: If139d988819e28bd1b1ed733541491ea09ff5be8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoAdd busy handler when initializing pkg db 47/195247/1
Junghyun Yeon [Wed, 12 Dec 2018 02:21:03 +0000 (11:21 +0900)]
Add busy handler when initializing pkg db

- Continuous db read query could cause db lock when initializing db
  such as db recovery, etc.

Change-Id: I9c4b375fe95339b1ae23f57a39ad08d8fcc67901
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 0.13.6 23/195123/1
Junghyun Yeon [Tue, 11 Dec 2018 02:59:10 +0000 (11:59 +0900)]
Release version 0.13.6

Changes:
 - Fix possible issues for pkgmgr-info

Change-Id: Idad8956fa2a88eb64cc02795ad38ae359a1b2676
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoFix possible issues for pkgmgr-info 45/194845/3
Junghyun Yeon [Fri, 7 Dec 2018 10:27:15 +0000 (19:27 +0900)]
Fix possible issues for pkgmgr-info

- Change order of releasing resources according to SQLite recommendation.
- Change methods of lock from exclusive to deferred.
  This will allow processes to access db while modifying db
  except actual transaction.

Change-Id: I441d6c14b6b503f6f2b8599240efdfed36b6a617
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.13.5 41/189141/1 accepted/tizen/5.0/unified/20181102.014118 accepted/tizen/unified/20180914.143048 submit/tizen/20180914.014038 submit/tizen_5.0/20181101.000002
Sangyoon Jang [Fri, 14 Sep 2018 01:36:58 +0000 (10:36 +0900)]
Release version 0.13.5

Changes:
 - Add checking processes which hold db lock
 - Add sending wakeup wakeup signal to resourced
 - Remove dependency from db-util

Change-Id: Ie9dcecddf76cc4cb565675a950caf677691758c0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRemove dependency from db-util 66/188966/2
Sangyoon Jang [Wed, 12 Sep 2018 06:16:38 +0000 (15:16 +0900)]
Remove dependency from db-util

Change-Id: I853f6c0c2ca6edb3a4ccaa1cacab17ec93368c83
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd sending wakeup wakeup signal to resourced 58/188858/5
Sangyoon Jang [Tue, 11 Sep 2018 03:09:48 +0000 (12:09 +0900)]
Add sending wakeup wakeup signal to resourced

When some process get freezed with holding pkgmgr db lock,
installer cannot install package properly.

Change-Id: I21785093cfdf065fab8f13c150e4228f3ee0ecec
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd checking processes which hold db lock 82/188782/8
Sangyoon Jang [Mon, 10 Sep 2018 08:17:37 +0000 (17:17 +0900)]
Add checking processes which hold db lock

Change-Id: I0ffbbfa83c57c127fd3c447a4270ab5ce58a6b5b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.13.4 68/186768/1 accepted/tizen/unified/20180816.062945 submit/tizen/20180814.083738
Junghyun Yeon [Tue, 14 Aug 2018 07:41:00 +0000 (16:41 +0900)]
Release version 0.13.4

Changes:
 - Add checking return value of stat()
 - Remove unnecessary User/Group settings from pkg-db-recovery.service

Change-Id: Ia9f7b5059bca9379bda5974e97873d7db7c8fa30
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRemove unnecessary User/Group settings from pkg-db-recovery.service 09/186309/1
INSUN PYO [Thu, 9 Aug 2018 01:26:18 +0000 (10:26 +0900)]
Remove unnecessary User/Group settings from pkg-db-recovery.service

Default User/Group is root.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ifc63fe8e95f888e84de3a46e270a5f8a1250f789

6 years agoAdd checking return value of stat() 57/185357/1
Semun Lee [Mon, 30 Jul 2018 01:24:25 +0000 (10:24 +0900)]
Add checking return value of stat()

Change-Id: I36c4233a17db4b8f28c9a39dc4ddebafed6aa8ff
Signed-off-by: Semun Lee <semun.lee@samsung.com>
6 years agoRelease version 0.13.3 62/184462/1 accepted/tizen/unified/20180719.063015 submit/tizen/20180718.064806
Junghyun Yeon [Wed, 18 Jul 2018 05:45:37 +0000 (14:45 +0900)]
Release version 0.13.3

Changes:
 - Supplement db recovery tool

Change-Id: I43b7f02c23d4277eec38eaeb075b77c19b96195f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoSupplement db recovery tool 78/181778/15
Junghyun Yeon [Mon, 18 Jun 2018 08:12:14 +0000 (17:12 +0900)]
Supplement db recovery tool

- Recovery tool now checks db status with integrity_check command.
- When tool detects corruption, invoke pkg_initdb to restore it.

Related changes:
[app-installers] : https://review.tizen.org/gerrit/182176
[tpk-backend] : https://review.tizen.org/gerrit/182177

Change-Id: Ide052f512d0e052fe871d7c61d1fd29bf5b33cdc
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.13.2 69/182169/2 accepted/tizen/unified/20180627.070024 submit/tizen/20180626.064201
Sangyoon Jang [Thu, 21 Jun 2018 05:21:07 +0000 (14:21 +0900)]
Release version 0.13.2

Changes:
 - Add privilege filter for app info
 - Remove unnecessary function
 - Adjust busy handler timer as 2 seconds

Change-Id: Ibdba442e129cc694b9b82c47fe2f09e67bcfc2cc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdjust busy handler timer as 2 seconds 57/180757/2
Sangyoon Jang [Mon, 4 Jun 2018 01:55:01 +0000 (10:55 +0900)]
Adjust busy handler timer as 2 seconds

1 second is too tight, sometimes getting pkginfo failed.

Change-Id: I43d52a569c47a78827de11fdb7a1124fa12ff728
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRemove unnecessary function 99/181599/3
Junghyun Yeon [Fri, 15 Jun 2018 04:42:04 +0000 (13:42 +0900)]
Remove unnecessary function

- Certificate database is integrated into one so functions to get
  individual certificate db path is unnecessary.
- Initializing user parser db will not initialize integrated cert db.

Change-Id: I1864e3e370a2b268a0dd66cbcd90277de3c1605e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoAdd privilege filter for app info 81/179681/4
Junghyun Yeon [Mon, 21 May 2018 07:09:45 +0000 (16:09 +0900)]
Add privilege filter for app info

- This patch will enable filtering app list with pkg privilege.

Change-Id: I46e3cee50991a2a2a6043a85be2ffafc3b296321
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.13.1 41/180641/1 accepted/tizen/unified/20180611.015322 submit/tizen/20180531.110445 submit/tizen/20180607.021807
Sangyoon Jang [Thu, 31 May 2018 11:01:43 +0000 (20:01 +0900)]
Release version 0.13.1

Changes:
 - Fix crash issue when getting appcontrol info

Change-Id: I88ea686a0189a1a7c0215e63699fc9348281b23b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix crash issue when getting appcontrol info 39/180639/1
Sangyoon Jang [Thu, 31 May 2018 10:57:14 +0000 (19:57 +0900)]
Fix crash issue when getting appcontrol info

Change-Id: I312520ffda5dc6ceb2b338bce8e6e482404551f0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.13.0 23/179023/1 accepted/tizen/unified/20180516.065603 accepted/tizen/unified/20180521.003604 submit/tizen/20180515.094318 submit/tizen/20180518.004605
Sangyoon Jang [Tue, 15 May 2018 09:04:18 +0000 (18:04 +0900)]
Release version 0.13.0

Changes:
 - Implement remote appcontrol feature

Change-Id: Ie8c817df84b35e4f927f5d6deca80d95821e42e7
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoImplement remote appcontrol feature 05/170905/8
Sangyoon Jang [Fri, 23 Feb 2018 06:39:56 +0000 (15:39 +0900)]
Implement remote appcontrol feature

Change-Id: I1168424c7920bad0f52ab73f98c008dd22d03b4f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.12.14 78/174678/1 accepted/tizen/unified/20180405.131207 submit/tizen/20180404.060840 submit/tizen/20180405.022120
Sangyoon Jang [Tue, 3 Apr 2018 10:58:33 +0000 (19:58 +0900)]
Release version 0.12.14

Changes:
 - Fix a memory leak

Change-Id: Iecf42429fbfcf3cc10d78b7ca845bad5400f6924
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix a memory leak 94/174494/2
Sangyoon Jang [Mon, 2 Apr 2018 10:45:26 +0000 (19:45 +0900)]
Fix a memory leak

__BIND_TEXT macro cannot free local allocated variable.

Change-Id: Iaaa140efa0f14193bc40ddd33cd1a13aa8403cb6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.12.13 72/173972/1 accepted/tizen/unified/20180330.060606 submit/tizen/20180327.085346
Junghyun Yeon [Tue, 27 Mar 2018 08:49:46 +0000 (17:49 +0900)]
Release version 0.12.13

Changes:
 - Add PMINFO_PKGINFO_PROP_PACKAGE_SYSTEM property

Change-Id: Ibc38a8719c9e3a77af65fd0a20a8cf1a29d5c85d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoAdd PMINFO_PKGINFO_PROP_PACKAGE_SYSTEM property 23/170323/1
Junghyun Yeon [Mon, 19 Feb 2018 05:42:33 +0000 (14:42 +0900)]
Add PMINFO_PKGINFO_PROP_PACKAGE_SYSTEM property

Change-Id: I5ff9a9943c97e23f6efff8b0f5fb5ae026690cac
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.12.12 49/169749/2 accepted/tizen/unified/20180219.142407 submit/tizen/20180209.043342
Sangyoon Jang [Fri, 9 Feb 2018 01:59:13 +0000 (10:59 +0900)]
Release version 0.12.12

Changes:
 - Fix static analyzer issue
 - Fix pkgmgrinfo_pkginfo_foreach_privilege
 - Remove unnecessary service options

Change-Id: I6776727ca94c594a49c5328993a533e6c7c82e4f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRemove unnecessary service options 05/169605/2
Junghyun Yeon [Thu, 8 Feb 2018 01:36:50 +0000 (10:36 +0900)]
Remove unnecessary service options

- Recovery service should be executed before AMD and this is
  only constraint for recovery service.

Change-Id: I87a54689bf14cd25493e215a71631fb0fd8b1c26
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix pkgmgrinfo_pkginfo_foreach_privilege 72/169472/5
Sangyoon Jang [Wed, 7 Feb 2018 05:20:16 +0000 (14:20 +0900)]
Fix pkgmgrinfo_pkginfo_foreach_privilege

Iterate appdefined privilege together.

Change-Id: I2427ab8950c9b3874b9553bf2fcff28719d4b8e7
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix static analyzer issue 37/169237/1
Sangyoon Jang [Mon, 5 Feb 2018 06:21:34 +0000 (15:21 +0900)]
Fix static analyzer issue

Add null checking before strcmp().

Change-Id: I2ef5976034958b41f71c60b9c69dd5c26049a695
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.12.11 51/169051/1 accepted/tizen/unified/20180205.060457 submit/tizen/20180202.063742
Junghyun Yeon [Fri, 2 Feb 2018 05:01:48 +0000 (14:01 +0900)]
Release version 0.12.11

Changes:
 - Fix a memory leak

Change-Id: I26a1dec9206240bf8b1d1117e9615f2e10130f58
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix a memory leak 94/168394/1
Sangyoon Jang [Fri, 26 Jan 2018 07:47:43 +0000 (16:47 +0900)]
Fix a memory leak

Change-Id: Ib2f681bc7233cc1dede18351f95ef0a831615f47
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.12.10 93/168293/1 accepted/tizen/unified/20180126.042856 submit/tizen/20180125.122523
Hwankyu Jhun [Thu, 25 Jan 2018 11:01:48 +0000 (20:01 +0900)]
Release version 0.12.10

Changes:
 - Fix pkgmgrinfo_appinfo_foreach_appcontrol_privileges API

Change-Id: Ib526133b3ab9307d5aeb095f1f6e8d68801d3ea1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoFix pkgmgrinfo_appinfo_foreach_appcontrol_privileges API 52/167852/5
Hwankyu Jhun [Tue, 23 Jan 2018 00:47:59 +0000 (09:47 +0900)]
Fix pkgmgrinfo_appinfo_foreach_appcontrol_privileges API

- Removes uri and mime parameters

Change-Id: I2fe782cc9831dc3e8cff2f88ec2e6963b71a6f72
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.12.9 84/167684/1 accepted/tizen/unified/20180123.061141 submit/tizen/20180119.081808
Junghyun Yeon [Fri, 19 Jan 2018 07:49:22 +0000 (16:49 +0900)]
Release version 0.12.9

Changes:
 - Close db when sqlite3_prepare_v2 is failed
 - Fix memory leak
 - Change free function for GSList

Change-Id: I06579d93f3b40538be4962b392298da45b8cd7ad
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoChange free function for GSList 09/167109/2
Seungha Son [Mon, 15 Jan 2018 10:57:05 +0000 (19:57 +0900)]
Change free function for GSList

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Ia4a369a88c1387058ec95e443d8cfeb89e362808

6 years agoFix memory leak 56/167156/2
Seungha Son [Tue, 16 Jan 2018 01:32:09 +0000 (10:32 +0900)]
Fix memory leak

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Ie70c36a8d56acb5b13b9ae7812a4c58f2d42a035

6 years agoClose db when sqlite3_prepare_v2 is failed 82/167082/1
Seungha Son [Mon, 15 Jan 2018 08:57:10 +0000 (17:57 +0900)]
Close db when sqlite3_prepare_v2 is failed

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I33dfb432425e6466a7f611c7c0a0965b5712bd26

6 years agoRelease version 0.12.8 68/164968/1 accepted/tizen/unified/20171228.065033 submit/tizen/20171222.073841
Junghyun Yeon [Fri, 22 Dec 2017 06:11:21 +0000 (15:11 +0900)]
Release version 0.12.8

Changes:
 - Fix static analyzer issues

Change-Id: I1a698d36183efe3cebdc02530dcb17395f45fd4d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix static analyzer issues 91/163891/1
Sangyoon Jang [Thu, 14 Dec 2017 02:27:18 +0000 (11:27 +0900)]
Fix static analyzer issues

Fix to check return value.

Change-Id: Ib30045abd4bae40ff7585312b4402771ce2ee317
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoRelease version 0.12.7 78/159078/1 accepted/tizen/unified/20171109.124933 submit/tizen/20171107.031828 submit/tizen/20171108.023404 submit/tizen/20171109.041728
Junghyun Yeon [Tue, 7 Nov 2017 01:54:51 +0000 (10:54 +0900)]
Release version 0.12.7

Changes:
 - Remove API prototype for getting setting icon

Change-Id: Ic0bce4fa2efc876d6108a67c5e322195f567a4f3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRemove API prototype for getting setting icon 08/157908/2
Junghyun Yeon [Fri, 27 Oct 2017 01:14:47 +0000 (10:14 +0900)]
Remove API prototype for getting setting icon

- It only exists in header until now but no one uses it.

Change-Id: I8c4af002faa262cdeb7e62fd169d40cad30eeda9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.12.6 05/156105/1 accepted/tizen/4.0/unified/20171018.060917 accepted/tizen/unified/20171018.062509 submit/tizen/20171017.074628 submit/tizen_4.0/20171017.080654 tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Junghyun Yeon [Tue, 17 Oct 2017 06:54:44 +0000 (15:54 +0900)]
Release version 0.12.6

Changes:
 - Change behavior of trust-anchor

Change-Id: I70fa7a4eca3fc47bd747f6d112e5127ca0b62522
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoChange behavior of trust-anchor 84/149784/3
Junghyun Yeon [Wed, 13 Sep 2017 05:44:42 +0000 (14:44 +0900)]
Change behavior of trust-anchor

- Trust-anchor certificate file directory has fixed.
- Remove pkg-certs-dir attribute due to change of its concept.

Related changes:
[app-installers] : https://review.tizen.org/gerrit/149836
[wgt-backend] : https://review.tizen.org/gerrit/149978
[tpk-manifest-handlers] : https://review.tizen.org/gerrit/150060
[wgt-manifest-handlers] : https://review.tizen.org/gerrit/150136

Change-Id: I746853898e3206ccc00cd543d3c7ca90c473feca
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.12.5 53/154953/1 accepted/tizen/4.0/unified/20171012.074531 accepted/tizen/unified/20171012.075117 submit/tizen/20171011.123741 submit/tizen_4.0/20171011.124331 tizen_4.0.IoT.p1_release
Sangyoon Jang [Wed, 11 Oct 2017 12:32:39 +0000 (21:32 +0900)]
Release version 0.12.5

Changes:
 - Define _GNU_SOURCE to use GNU-specific strerror_r
 - Fix memory leak
 - Fix static analyzer issues

Change-Id: I0d12ea54d203f175299cda76304c5c090c7bd85d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoFix static analyzer issues 88/154488/4
Semun Lee [Tue, 10 Oct 2017 09:24:27 +0000 (18:24 +0900)]
Fix static analyzer issues

- fix resource leaks
- handle error case properly

Change-Id: Ibc1b47b0e61e2ca68ef653efbff2915afec442f2
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agoFix memory leak 30/154430/1
Sangyoon Jang [Tue, 10 Oct 2017 07:49:44 +0000 (16:49 +0900)]
Fix memory leak

Change-Id: I31809c353bdd3ec63cb79151b8018a1e0c30ad5f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoDefine _GNU_SOURCE to use GNU-specific strerror_r 78/154278/1
Sangyoon Jang [Tue, 10 Oct 2017 04:12:45 +0000 (13:12 +0900)]
Define _GNU_SOURCE to use GNU-specific strerror_r

Change-Id: I316110482124224203cec1e6fcec3805d8e12d01
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoRelease version 0.12.4 51/153451/1 accepted/tizen/4.0/unified/20170929.080335 accepted/tizen/unified/20170929.081709 submit/tizen/20170928.104306 submit/tizen_4.0/20170928.104840
Junghyun Yeon [Thu, 28 Sep 2017 10:53:09 +0000 (19:53 +0900)]
Release version 0.12.4

Changes:
 - Fix resource leak

Change-Id: Ibc1342029930b86af5cd890364d9d9e5931a1d8f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix resource leak 90/152490/1
Junghoon Park [Tue, 26 Sep 2017 08:10:40 +0000 (17:10 +0900)]
Fix resource leak

Change-Id: I35851682a958f42dfbf1492b4a424381f6b4ed87
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
7 years agoRelease version 0.12.3 80/148580/1 accepted/tizen/unified/20170911.155835 submit/tizen/20170908.075925
Junghyun Yeon [Fri, 8 Sep 2017 06:54:14 +0000 (15:54 +0900)]
Release version 0.12.3

Changes:
 - Fix wrong dlog message
 - Fix static analysis issue
 - Fix manifest xsd schema

Change-Id: I1dcfabf4d7c0bfa972a8936d16a36ee7bb8d105f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix manifest xsd schema 61/147861/3
Sangyoon Jang [Wed, 6 Sep 2017 02:38:10 +0000 (11:38 +0900)]
Fix manifest xsd schema

Remove unnecessary sequence indicator.

Change-Id: I43bfdf723ae58e1f7af0fd51c1c24eec0ff4a988
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoFix static analysis issue 17/147917/1
Junghyun Yeon [Wed, 6 Sep 2017 05:03:55 +0000 (14:03 +0900)]
Fix static analysis issue

Change-Id: I50a7403bbcc008999910d27ac7b8294e374ad374
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix wrong dlog message 11/146111/1
Sangyoon Jang [Fri, 25 Aug 2017 04:25:05 +0000 (13:25 +0900)]
Fix wrong dlog message

Change-Id: I767891cd9edfed260996a02466d586d374b874da
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoRelease version 0.12.2 06/145306/1 accepted/tizen/4.0/unified/20170828.223919 accepted/tizen/unified/20170823.031653 submit/tizen/20170822.051313 submit/tizen_4.0/20170828.100002
Sangyoon Jang [Tue, 22 Aug 2017 05:05:27 +0000 (14:05 +0900)]
Release version 0.12.2

Changes:
 - Change mechanism of setting db version
 - Fix bug on adding disable filter for appinfo filter

Change-Id: I41db8fb7274f7b27db3335b66cd0c39d62419007
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoFix bug on adding disable filter for appinfo filter 78/144978/2
Semun Lee [Sun, 20 Aug 2017 01:50:20 +0000 (10:50 +0900)]
Fix bug on adding disable filter for appinfo filter

- Fixed misused pointer for storing enum value

Change-Id: Ic62e7513e4e99aa39b6c5027b26296233e94926f
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agoChange mechanism of setting db version 21/144521/4
Junghyun Yeon [Thu, 17 Aug 2017 05:44:02 +0000 (14:44 +0900)]
Change mechanism of setting db version

- Previously, DB version was defined at codes so
  scripts such as upgrade scripts cannot retrieve it for upgrade.
- So, create new file which stores db version and read it at runtime
  to let codes and script read it properly.

Change-Id: I3f643f421228026c38c8507c0af25928144a2ee7
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>