Junghyun Yeon [Tue, 29 Dec 2020 01:34:12 +0000 (10:34 +0900)]
Add tables for resource package
Change-Id: I20257494908542cb8bb948702fd7ab3befffc375
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 23 Nov 2020 09:35:18 +0000 (18:35 +0900)]
Add definition of res-control and its attributes
Change-Id: I29762513b157e48f90849b6b391d148f5e96421e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 8 Jun 2021 03:01:55 +0000 (12:01 +0900)]
Supress CMake build warning
Change-Id: I9100d7738e374c8be159db299c9fc41d836a9d7c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Thu, 10 Jun 2021 09:33:53 +0000 (18:33 +0900)]
Release version 0.20.7
Changes:
- Remove redundant access at global database
- Fix static analysis issues
Change-Id: Ia8c6c15c4b0c498ea232aff16e9cf279f5f3f8df
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 10 Jun 2021 01:26:22 +0000 (10:26 +0900)]
Fix static analysis issues
- Fix memory leak
- Fix buffer not null terminated
- Fix double free
- The out parameter is not modified in the error case
Change-Id: I24266271e42c249c2d96b3ec764bf1a61d87aa43
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 10 Jun 2021 05:40:11 +0000 (14:40 +0900)]
Remove redundant access at global database
If uid is global user pkginfo-server access global database twice
Change-Id: I05490b12a5e8c07cd62abe317471e2ff0ecfd1a8
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Changgyu Choi [Mon, 31 May 2021 09:13:25 +0000 (18:13 +0900)]
Release version 0.20.6
Changes:
- Use cache to get system locale
- Improve performance
Change-Id: Ic854c4dd8755d998acbfaa3480d41f20f7e717d3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 28 May 2021 01:59:50 +0000 (10:59 +0900)]
Improve performance
Changes:
- Fix some unnecessary copy.
- Add ReadyChecker for booting time.
Change-Id: I8454ff5ce28946f45375451a5ee2264a3f914024
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghoon Park [Sun, 30 May 2021 23:02:35 +0000 (23:02 +0000)]
Merge "Use cache to get system locale" into tizen
Ilho Kim [Fri, 28 May 2021 07:05:18 +0000 (16:05 +0900)]
Release version 0.20.5
Changes:
- Fix memory leak
- Add to make ready file
- Fix memory leak
- Fix build warning
Change-Id: Ib05d8ee8c2e0a356b93b1d67ea79371eee48b2ac
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 20 May 2021 08:09:02 +0000 (17:09 +0900)]
Fix build warning
Change-Id: I7fb07ce044d08ae445e987a6d514b641fcf7e3eb
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 10 May 2021 02:16:29 +0000 (11:16 +0900)]
Fix memory leak
- There is need to free the list as well as elements
- Free the used list
Change-Id: I0b0c3d98e49d368e58ffbe34fd4f3bfd5905ff41
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
jh9216.park [Thu, 27 May 2021 03:05:23 +0000 (23:05 -0400)]
Use cache to get system locale
Change-Id: I955f1624be77e8c70a7ed73262169fe9d4769de3
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Changgyu Choi [Tue, 25 May 2021 07:19:59 +0000 (16:19 +0900)]
Add to make ready file
After pkginfo-server was loaded, it creates ready file at bellow path.
"/run/.pkginfo_server_ready"
Before client try to connect server, it checks to exist the file.
Change-Id: I2b55cc9d9c9eb1661e83124a53fadea6e44541fb
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 21 May 2021 07:25:51 +0000 (16:25 +0900)]
Fix memory leak
g_slist_delete_link() don't free data.
This patch add to free data.
Change-Id: I86f3647eccb58282b0340281e18e709f7cada4f8
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Wed, 28 Apr 2021 07:21:12 +0000 (16:21 +0900)]
Release version 0.20.4
Changes:
- Fix ReqTypeToString()
- Refactor query construction logic of query handler
- Fix to properly bind the parameter in writing query
- Add unit test for parcelable
- Add codes and comments for possible static analysis issues
- Fix possible static analysis issue
- Fix wrong response issues
Change-Id: I40358e948de28e7946a463f326506255aaedc09d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Changgyu Choi [Thu, 29 Apr 2021 01:47:31 +0000 (10:47 +0900)]
Fix wrong response issues
Closing fd should be performed on the thread.
This patch modified what was handled on the main thread.
Changes:
* Remove FdErrorHandler()
* Add to Disconnect() at socket destructor.
* Add some logs for debugging.
Change-Id: I436a6e987e5691970e0e76892b995e131d22e034
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Tue, 27 Apr 2021 06:14:28 +0000 (15:14 +0900)]
Fix possible static analysis issue
- Fix static analysis issue.
- Integrate error check logic for efficiency.
Change-Id: I757e5b8a93a9bdf2972cb2857712a0b9d0b267ef
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 12 Apr 2021 05:03:12 +0000 (14:03 +0900)]
Add codes and comments for possible static analysis issues
- Add copyright comments.
- Add parameter check logic.
Change-Id: I8526900ae44c3423914f49b90d0eb2afe89d27ef
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Wed, 14 Apr 2021 01:14:19 +0000 (10:14 +0900)]
Add unit test for parcelable
Add unit test related DepInfoParcelable, CommandParcelable
Change-Id: Ib77bb0172e1723cce80ee3d76d8f62d8d11b0b05
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 8 Apr 2021 08:14:15 +0000 (17:14 +0900)]
Fix to properly bind the parameter in writing query
Change-Id: I6aa0174845ee4d4a6745a5a897abacee30a9f3ca
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Mon, 5 Apr 2021 07:13:36 +0000 (16:13 +0900)]
Refactor query construction logic of query handler
Query requests could be handled on sqlite side
by using sqlite3_prepare_v2() and sqlite3_bind_text().
Change-Id: I6bc6906a6dc42d00ec21724fd16a88cae28b9e2b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Changgyu Choi [Thu, 1 Apr 2021 08:20:30 +0000 (17:20 +0900)]
Fix ReqTypeToString()
Changes:
* Add to missing comma
* Change return type to char*
Change-Id: I775a732456d80d14c557b64cda54f841f8138d1d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Thu, 1 Apr 2021 04:02:44 +0000 (13:02 +0900)]
Release version 0.20.3
Changes:
- Change socket access retry policy
Change-Id: I4fccf77f733a99d072812c84a24ca9790b5d0493
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 1 Apr 2021 01:31:04 +0000 (10:31 +0900)]
Change socket access retry policy
Do not retry socket access if requester is root.
Change-Id: I437289395733b66ddadeda76bc80c25c6ab3ce9e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Changgyu Choi [Tue, 30 Mar 2021 02:23:21 +0000 (11:23 +0900)]
Release version 0.20.2
Changes:
- Fix minor issues
- Add to check to crash process
- Add mutex in DBHandler
- Fix 64-bit build error
- Fix uid behavior on appinfo related functions
- Remove useless log
- Add ReqTypeToString()
- Refactor pkgmgr-info
- Remove some logs
- Fix minor coding rule
Change-Id: Idc6c181156a755c7f82fc2745064649c90d1e9c3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Fri, 26 Mar 2021 06:31:04 +0000 (15:31 +0900)]
Fix minor coding rule
Change-Id: I93b7b987c341b651325a481f1647aabe3e20628b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Changgyu Choi [Fri, 26 Mar 2021 05:50:47 +0000 (14:50 +0900)]
Remove some logs
pkginfo-server's log is too much.
This patch remove some logs regarding to socket connect.
Change-Id: Ic1b06bd62cab34a679d387e283acaa4963bbd9e9
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
jh9216.park [Wed, 24 Mar 2021 07:24:38 +0000 (03:24 -0400)]
Refactor pkgmgr-info
- Make queries at server side to protect from SQL injection attack
Change-Id: I146269d1bfd31d81c168e33565c85481a9d6700a
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Changgyu Choi [Wed, 24 Mar 2021 08:16:39 +0000 (17:16 +0900)]
Add ReqTypeToString()
Change-Id: I7751f887dc23be2aaec57c590ad763dae345be0a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Ilho Kim [Wed, 24 Mar 2021 01:44:57 +0000 (10:44 +0900)]
Remove useless log
When getting appinfo fails the client prints log
Change-Id: I7e8d78c5f9eda0d514b5906b03c00f27f475c12a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Mon, 22 Mar 2021 07:08:52 +0000 (16:08 +0900)]
Fix uid behavior on appinfo related functions
To support features like "disable global app for certain user only",
uid for database and uid to be used in query should be delivered
simultaneously.
Change-Id: Ie7f15a71821dc7418dc781faf350a445128c9ac6
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Changgyu Choi [Wed, 24 Mar 2021 00:47:09 +0000 (00:47 +0000)]
Merge "Add mutex in DBHandler" into tizen
jusung [Tue, 23 Mar 2021 05:57:08 +0000 (14:57 +0900)]
Fix 64-bit build error
Change-Id: I2da0c29326f84c81548ce636b5367735b74725c0
Signed-off-by: jusung <jusung07.son@samsung.com>
Changgyu Choi [Fri, 19 Mar 2021 07:35:44 +0000 (16:35 +0900)]
Add mutex in DBHandler
Add shared_mutex in DBHandler.
When it received get request, then use shared_lock.
So multiple thread is accessible.
On the other hand, when be received set request,
it use unique_lock.
Change-Id: Ifbf02d50713479d26372adaa4ad4772a030be2ef
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 18 Mar 2021 08:43:02 +0000 (17:43 +0900)]
Add to check to crash process
When TrimMemory() is called , it checks if there is a dead process
among the processes that requested the write.
Change-Id: I95732a8b178e2c0abb4f4e449151f861a7b59cb8
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Fri, 19 Mar 2021 08:41:13 +0000 (17:41 +0900)]
Fix minor issues
- Fix coding rule.
- Fix static analysis issues.
Change-Id: I391fbac9f7ec865fc06cbab7c204fa619c00e038
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Fri, 19 Mar 2021 07:37:31 +0000 (16:37 +0900)]
Release version 0.20.1
Changes:
- Remove unnecessary mutex
- Fix parcel factroy
- Refactor pkginfo
- Fix codes for matching behavior with previous code
- Fix comparing pkg certinfo API
- Add build options for ASLR
Change-Id: Iace9af6a4dc418a0e8052db5edd513593970420b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Fri, 19 Mar 2021 07:34:39 +0000 (16:34 +0900)]
Add build options for ASLR
Change-Id: I84b11422970b99a57d0888924bc80201c952901d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 19 Mar 2021 04:26:12 +0000 (13:26 +0900)]
Fix comparing pkg certinfo API
Change-Id: I87a428d75056cc71dfe98f806941dcafd2549130
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 19 Mar 2021 01:42:26 +0000 (10:42 +0900)]
Fix codes for matching behavior with previous code
Change-Id: Ia02f583952b346ee3dec85a8f4259164cddfba47
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Changgyu Choi [Fri, 19 Mar 2021 06:39:20 +0000 (06:39 +0000)]
Merge "Remove unnecessary mutex" into tizen
jh9216.park [Thu, 18 Mar 2021 06:10:50 +0000 (02:10 -0400)]
Refactor pkginfo
- Use constexpr instead of macro.
- Use operator* in smart pointer.
- Remove unused variable.
Change-Id: I1f0fd188accafbb5ca5361f1081525dea557d0b3
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
jh9216.park [Fri, 19 Mar 2021 01:01:13 +0000 (21:01 -0400)]
Fix parcel factroy
- The protocol for parcel was changed not to use a flag
- see : https://review.tizen.org/gerrit/#/c/platform/core/base/bundle/+/255354/
Change-Id: Icc3bfb08c35161667637f01f4acb85a250ba4b61
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Changgyu Choi [Thu, 18 Mar 2021 02:10:05 +0000 (11:10 +0900)]
Remove unnecessary mutex
Local lock is unnecessary because every critical section is global.
Change-Id: Ib33ae7a6bd7709e72fb23eb4884014b53b9a165c
igned-off-by: Changgyu Choi <changyu.choi@samsung.com>
Ilho Kim [Wed, 17 Mar 2021 23:37:13 +0000 (08:37 +0900)]
Release version 0.20.0
Redesign pkgmgr-info to apply client-server architecture.
Change-Id: Ia096cf88e84ae87d41f03d8c2fd01e018f6536bf
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 17 Mar 2021 08:15:00 +0000 (17:15 +0900)]
Release version 1.0.0
Redesign pkgmgr-info to apply client-server architecture.
Change-Id: I4eb3812dca8c3d66d9fa2ace19c3af7a3a508ad1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Wed, 17 Mar 2021 05:21:24 +0000 (14:21 +0900)]
Change return value of filter_count() APIs
It will return PMINFO_R_OK even if result count with given filter is 0.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Wed, 17 Mar 2021 07:38:51 +0000 (16:38 +0900)]
Fix coding rule
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Wed, 17 Mar 2021 05:32:57 +0000 (14:32 +0900)]
Fix cosmetic issues
- Supress build warnings.
- Fix coding rule.
- Adjust log level.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 17 Mar 2021 01:35:11 +0000 (10:35 +0900)]
Implement pkgmgrinfo_appinfo_filter_count
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Changgyu Choi [Tue, 16 Mar 2021 07:46:01 +0000 (16:46 +0900)]
Fix white space
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 16 Mar 2021 07:34:44 +0000 (16:34 +0900)]
Change to get db path condition
Add parameter that is "write" flag.
If use GetParserDBPath() or GetCertDBPath() with write=true flag,
then return file db path.
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Tue, 16 Mar 2021 10:34:55 +0000 (19:34 +0900)]
Change function
Document saids this is more efficient for memory management
if user doesn't require exact time matching.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
최창규/Tizen Platform Lab(SR)/Engineer/삼성전자 [Tue, 16 Mar 2021 05:12:32 +0000 (14:12 +0900)]
Change trim logic (#158)
* Change trim logic
This patch is changed to trim when the server is idle status.
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
* Change to timeout callback
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Mon, 15 Mar 2021 10:53:33 +0000 (19:53 +0900)]
Fix spelling
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 15 Mar 2021 10:31:59 +0000 (19:31 +0900)]
Remove TODOs
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 15 Mar 2021 10:19:31 +0000 (19:19 +0900)]
Fix coding rule of pkginfo_manager.h
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 15 Mar 2021 10:01:05 +0000 (19:01 +0900)]
Fix coding rule for db handlers
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 15 Mar 2021 09:18:45 +0000 (18:18 +0900)]
Fix coding rule for parcelables
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 15 Mar 2021 09:04:59 +0000 (18:04 +0900)]
Fix coding rule of request handlers
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 15 Mar 2021 08:40:34 +0000 (17:40 +0900)]
Fix coding rule
- Fix coding rule for files below:
pkginfo_client.cc
main.cc
pkg_request.cc
runner.cc
worker_thread.cc
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 15 Mar 2021 08:34:50 +0000 (17:34 +0900)]
Fix coding rule of test_parcel.cc
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 15 Mar 2021 08:32:51 +0000 (17:32 +0900)]
Fix coding rule of parcel_utils.cc
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 15 Mar 2021 07:50:29 +0000 (16:50 +0900)]
FIx coding rule of pkginfo_manager.cc
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Mon, 15 Mar 2021 07:58:59 +0000 (16:58 +0900)]
Fix memory leak
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Mon, 15 Mar 2021 07:39:05 +0000 (16:39 +0900)]
Remove build warning
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Mon, 15 Mar 2021 06:04:38 +0000 (15:04 +0900)]
Fix memory leak
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
최창규/Tizen Platform Lab(SR)/Engineer/삼성전자 [Mon, 15 Mar 2021 07:08:29 +0000 (16:08 +0900)]
Change to set thread number (#153)
* Change to set thread number
This patch is set thread number provided at hardware.
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
* Add to trim memory
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
* Change trim interval
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Mon, 15 Mar 2021 06:09:52 +0000 (15:09 +0900)]
Add convert uid logic
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Mon, 15 Mar 2021 02:29:49 +0000 (11:29 +0900)]
Use unique_ptr at allocated char*
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
jusung [Mon, 15 Mar 2021 02:06:09 +0000 (11:06 +0900)]
Fix memory leak in request handler
Signed-off-by: jusung <jusung07.son@samsung.com>
Ilho Kim [Mon, 15 Mar 2021 01:11:38 +0000 (10:11 +0900)]
Fix memory leak
free allocated memory by vconf_get_str()
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 12 Mar 2021 06:00:27 +0000 (15:00 +0900)]
Remove r-value return type function
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 12 Mar 2021 05:33:37 +0000 (14:33 +0900)]
Change Extract function's return type
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 12 Mar 2021 05:13:41 +0000 (14:13 +0900)]
Set auto_release's default parameter value
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 12 Mar 2021 04:23:03 +0000 (13:23 +0900)]
Move local variables
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 11 Mar 2021 10:03:16 +0000 (19:03 +0900)]
Fix memory leak in Parcelable
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 11 Mar 2021 06:55:47 +0000 (15:55 +0900)]
Fix memory leak
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Fri, 12 Mar 2021 05:54:03 +0000 (14:54 +0900)]
Change logic of delivering db path and handle
UID will be included with it.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
최창규/Tizen Platform Lab(SR)/Engineer/삼성전자 [Fri, 12 Mar 2021 04:12:03 +0000 (13:12 +0900)]
Fix implementation (#147)
* Fix implementation
Changes:
* Add global_lock_ into GetParserDBPath
* Add error handling for socket fd.
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
* Remove wrong break
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
* Fix Wreorder warning
Changgyu Choi [Fri, 12 Mar 2021 03:44:33 +0000 (12:44 +0900)]
Change log header to pkgmgrinfo_debug.h
This patch remove "debug.h" in common.
It is duplecated with pkgmgrinfo_debug.h
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Thu, 11 Mar 2021 08:25:51 +0000 (17:25 +0900)]
Fix pkginfo/appinfo
- Fix return value.
- Add invalid argument log.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 11 Mar 2021 08:23:05 +0000 (17:23 +0900)]
Fix getting information
- Fix condition for getting information from db.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Thu, 11 Mar 2021 06:46:05 +0000 (15:46 +0900)]
Fix wrong implementation
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 11 Mar 2021 06:22:42 +0000 (15:22 +0900)]
Change GetParserDBPath logic
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 11 Mar 2021 02:19:46 +0000 (11:19 +0900)]
Avoid setting duplicate db path
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Thu, 11 Mar 2021 05:34:55 +0000 (14:34 +0900)]
Remove debugging log
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 11 Mar 2021 04:38:44 +0000 (13:38 +0900)]
Add initialization
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 11 Mar 2021 04:02:35 +0000 (13:02 +0900)]
Update pkg get db handler implementation
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 11 Mar 2021 02:30:44 +0000 (11:30 +0900)]
Change codes to extract appinfo nodes from hashtable
- Use g_hash_table_foreach_steal to extract node without free it.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 11 Mar 2021 02:08:00 +0000 (11:08 +0900)]
Move initialization of hash table into db handlers
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Thu, 11 Mar 2021 02:21:04 +0000 (11:21 +0900)]
Fix query handler
When approaching multiple db, just add each db's result
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 10 Mar 2021 04:28:02 +0000 (13:28 +0900)]
Implement clear cache memory
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
최창규/Tizen Platform Lab(SR)/Engineer/삼성전자 [Wed, 10 Mar 2021 07:59:07 +0000 (16:59 +0900)]
Refactor DBHandleProvider (#136)
* Refactor DBHandleProvider
Changes:
* Seperate global path with user uid section.
* Add to return path of GetParserDBPath when system uid.
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
* Add conner case
Seperate first of instances of providers case.
Case of the first call of SetMemoryMode() and
the other case were distinguished.
* Fix wrong implementation
Changes:
* Fix GetParserDBPath()'s return condition
* Fix GetPid() in AbstractSocket class.
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
* Add missing to set flag
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
* Fix build error
Signed-off-by: jusung <jusung07.son@samsung.com>
* Fix SetMemoryMode condition
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Co-authored-by: jusung <jusung07.son@samsung.com>
Ilho Kim [Wed, 10 Mar 2021 00:28:53 +0000 (09:28 +0900)]
Fix query in pkgmgr_parser_update_global_app_disable_for_uid_info_in_db
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 9 Mar 2021 11:37:28 +0000 (20:37 +0900)]
Fix pkgmgrinfo_pkginfo_load_certinfo
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Wed, 10 Mar 2021 01:27:36 +0000 (10:27 +0900)]
Fix build warning
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 10 Mar 2021 01:25:31 +0000 (10:25 +0900)]
Fix build error
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 [Tue, 9 Mar 2021 08:31:48 +0000 (17:31 +0900)]
Merge pull request #134 from jungh-yeon/deliver_pid
Change codes to deliver PID for identifying install request process