platform/core/appfw/pkgmgr-info.git
3 years agoChange logic of delivering db path and handle
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>
3 years agoFix implementation (#147)
최창규/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

3 years agoChange log header to pkgmgrinfo_debug.h
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>
3 years agoFix pkginfo/appinfo
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>
3 years agoFix getting information
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>
3 years agoFix wrong implementation
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>
3 years agoChange GetParserDBPath logic
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>
3 years agoAvoid setting duplicate db path
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>
3 years agoRemove debugging log
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>
3 years agoAdd initialization
Junghyun Yeon [Thu, 11 Mar 2021 04:38:44 +0000 (13:38 +0900)]
Add initialization

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoUpdate pkg get db handler implementation
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>
3 years agoChange codes to extract appinfo nodes from hashtable
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>
3 years agoMove initialization of hash table into db handlers
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>
3 years agoFix query handler
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>
3 years agoImplement clear cache memory
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>
3 years agoRefactor DBHandleProvider (#136)
최창규/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>
3 years agoFix query in pkgmgr_parser_update_global_app_disable_for_uid_info_in_db
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>
3 years agoFix pkgmgrinfo_pkginfo_load_certinfo
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>
3 years agoFix build warning
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>
3 years agoFix build error
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>
3 years agoMerge pull request #134 from jungh-yeon/deliver_pid
연정현/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

3 years agoFix delivering PID logic
Junghyun Yeon [Tue, 9 Mar 2021 08:24:01 +0000 (17:24 +0900)]
Fix delivering PID logic

- Make pkg list as static to share it via instances.
- Remove hashtable destroy logic if given request has failed.
- Change parameter to get sender pid of socket properly.

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoMake pid_list_ into non-static
Junghyun Yeon [Tue, 9 Mar 2021 04:59:11 +0000 (13:59 +0900)]
Make pid_list_ into non-static

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoMerge remote-tracking branch 'origin/master' into deliver_pid
Junghyun Yeon [Tue, 9 Mar 2021 04:52:48 +0000 (13:52 +0900)]
Merge remote-tracking branch 'origin/master' into deliver_pid

3 years agoFix wrong implement
Ilho Kim [Tue, 9 Mar 2021 02:39:27 +0000 (11:39 +0900)]
Fix wrong implement

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoChange pid related bahavior
Junghyun Yeon [Tue, 9 Mar 2021 02:42:27 +0000 (11:42 +0900)]
Change pid related bahavior

- Set pid into request handler before execut it.
- Change pid_list_ into static and add setter codes.

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoChange type of pid
Junghyun Yeon [Tue, 9 Mar 2021 01:51:05 +0000 (10:51 +0900)]
Change type of pid

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRemove commented lines
Junghyun Yeon [Mon, 8 Mar 2021 09:11:29 +0000 (18:11 +0900)]
Remove commented lines

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRemove sqlite header includes from pkgmgr_parser_db.h
Junghyun Yeon [Mon, 8 Mar 2021 09:02:10 +0000 (18:02 +0900)]
Remove sqlite header includes from pkgmgr_parser_db.h

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoMove some internal APIs into internal files
Junghyun Yeon [Mon, 8 Mar 2021 09:00:13 +0000 (18:00 +0900)]
Move some internal APIs into internal files

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix codes for setting certificate
Junghyun Yeon [Mon, 8 Mar 2021 11:11:10 +0000 (20:11 +0900)]
Fix codes for setting certificate

- Set PkgID into certificate handle.
- Set ResultParcelable at setting certificate.

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoAdd pid as default parameter of dbhandler
Junghyun Yeon [Tue, 9 Mar 2021 01:20:10 +0000 (10:20 +0900)]
Add pid as default parameter of dbhandler

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix DepInfoGetDBHandler
Ilho Kim [Mon, 8 Mar 2021 10:31:45 +0000 (19:31 +0900)]
Fix DepInfoGetDBHandler

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoChange condition for returning proper dbpath
Junghyun Yeon [Mon, 8 Mar 2021 11:10:14 +0000 (20:10 +0900)]
Change condition for returning proper dbpath

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRemove cache_db_handler
Changgyu Choi [Mon, 8 Mar 2021 07:37:07 +0000 (16:37 +0900)]
Remove cache_db_handler

This handler is unnecessary.

Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoMerge remote-tracking branch 'origin/master' into deliver_pid
Junghyun Yeon [Mon, 8 Mar 2021 08:09:42 +0000 (17:09 +0900)]
Merge remote-tracking branch 'origin/master' into deliver_pid

3 years agoAdd pid set logic at request handlers
Junghyun Yeon [Mon, 8 Mar 2021 08:04:48 +0000 (17:04 +0900)]
Add pid set logic at request handlers

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoAdd pid handling logic at db handle provider
Junghyun Yeon [Mon, 8 Mar 2021 07:50:58 +0000 (16:50 +0900)]
Add pid handling logic at db handle provider

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoAdd Missing implement in PkgInfoParcel
Ilho Kim [Mon, 8 Mar 2021 06:57:31 +0000 (15:57 +0900)]
Add Missing implement in PkgInfoParcel

 - Read,Write application is missed

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoAdd PID setter/getter at db handler
Junghyun Yeon [Mon, 8 Mar 2021 07:27:36 +0000 (16:27 +0900)]
Add PID setter/getter at db handler

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoAdd PID related functions into abstract request handler
Junghyun Yeon [Mon, 8 Mar 2021 06:29:03 +0000 (15:29 +0900)]
Add PID related functions into abstract request handler

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix some crash issues
Changgyu Choi [Mon, 8 Mar 2021 04:33:17 +0000 (13:33 +0900)]
Fix some crash issues

Changes:
 * Add missing to call Connect() in cert_set_db_handler
 * Add to initialize request handler for get_depinfo_request_handler

Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoMerge pull request #121 from jungh-yeon/add_parser_dbpath
연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Mar 2021 05:55:43 +0000 (14:55 +0900)]
Merge pull request #121 from jungh-yeon/add_parser_dbpath

Add parser dbpath at db provider

3 years agoMerge branch 'master' into add_parser_dbpath
연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Mar 2021 05:34:22 +0000 (14:34 +0900)]
Merge branch 'master' into add_parser_dbpath

3 years agoAdd global parser memory db handle code
Junghyun Yeon [Mon, 8 Mar 2021 05:29:58 +0000 (14:29 +0900)]
Add global parser memory db handle code

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix build error
Ilho Kim [Mon, 8 Mar 2021 04:51:55 +0000 (13:51 +0900)]
Fix build error

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoAdd functions to get sender pid
Junghyun Yeon [Sat, 6 Mar 2021 08:02:18 +0000 (17:02 +0900)]
Add functions to get sender pid

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoMerge pull request #120 from jungh-yeon/fix_log
연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Mar 2021 01:53:56 +0000 (10:53 +0900)]
Merge pull request #120 from jungh-yeon/fix_log

Change logs

3 years agoMerge branch 'master' into fix_log
연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Mar 2021 01:53:42 +0000 (10:53 +0900)]
Merge branch 'master' into fix_log

3 years agoHandle error usecase of PkgInfoClient
Ilho Kim [Fri, 5 Mar 2021 08:02:10 +0000 (17:02 +0900)]
Handle error usecase of PkgInfoClient

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoFix db handlers
Junghyun Yeon [Sat, 6 Mar 2021 05:41:49 +0000 (14:41 +0900)]
Fix db handlers

- Certificate-related db handler will use one handle.
- Pkg/Appinfo db handler will break out loop if return value is abnormal.

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoChange db handler implementation to receive list when getting connection
Junghyun Yeon [Sat, 6 Mar 2021 05:12:35 +0000 (14:12 +0900)]
Change db handler implementation to receive list when getting connection

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoChange db handle provider to store parser dbpath
Junghyun Yeon [Sat, 6 Mar 2021 03:52:36 +0000 (12:52 +0900)]
Change db handle provider to store parser dbpath

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoMerge remote-tracking branch 'origin/master' into fix_log
Junghyun Yeon [Sat, 6 Mar 2021 02:59:50 +0000 (11:59 +0900)]
Merge remote-tracking branch 'origin/master' into fix_log

3 years agoAdd logs into request handlers for debugging purpose
Junghyun Yeon [Sat, 6 Mar 2021 02:54:18 +0000 (11:54 +0900)]
Add logs into request handlers for debugging purpose

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoAdd logs into db handlers for debugging purpose
Junghyun Yeon [Sat, 6 Mar 2021 02:27:01 +0000 (11:27 +0900)]
Add logs into db handlers for debugging purpose

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoAdd logs at pkginfo_client for debugging purpose
Junghyun Yeon [Sat, 6 Mar 2021 02:08:55 +0000 (11:08 +0900)]
Add logs at pkginfo_client for debugging purpose

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoChange log level
Junghyun Yeon [Fri, 5 Mar 2021 08:51:09 +0000 (17:51 +0900)]
Change log level

Only PMINFO_R_ERROR will be logged with ERROR tag

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix DBHandleProvider implementation (#118)
최창규/Tizen Platform Lab(SR)/Engineer/삼성전자 [Fri, 5 Mar 2021 08:35:39 +0000 (17:35 +0900)]
Fix DBHandleProvider implementation (#118)

* Fix DBHandleProvider implementation

Changes:
 - Add flag "SQLITE_OPEN_URI" for open memory db
 - Add ConverUID for global app

Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoAdd default log tag
Junghyun Yeon [Fri, 5 Mar 2021 08:27:21 +0000 (17:27 +0900)]
Add default log tag

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix logging classes
Junghyun Yeon [Fri, 5 Mar 2021 08:26:18 +0000 (17:26 +0900)]
Fix logging classes

- Fix definitions.
- Do not print error log as std err.

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoAdd Error handling in RequestHandler (#117)
김일호/Tizen Platform Lab(SR)/Engineer/삼성전자 [Fri, 5 Mar 2021 08:23:26 +0000 (17:23 +0900)]
Add Error handling in RequestHandler (#117)

Add Error handling in RequestHandler

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoMerge pull request #116 from jusung07-son/master
손주성/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 [Fri, 5 Mar 2021 05:37:29 +0000 (14:37 +0900)]
Merge pull request #116 from jusung07-son/master

Add request handler

3 years agoAdd constructor of CommandParcelable
jusung [Fri, 5 Mar 2021 01:46:11 +0000 (10:46 +0900)]
Add constructor of CommandParcelable

Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoAdd request handler
jusung [Fri, 5 Mar 2021 01:03:13 +0000 (10:03 +0900)]
Add request handler

Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoFix wrong implementation
Changgyu Choi [Thu, 4 Mar 2021 10:59:39 +0000 (19:59 +0900)]
Fix wrong implementation

Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoFix memory leak
Changgyu Choi [Thu, 4 Mar 2021 10:35:03 +0000 (19:35 +0900)]
Fix memory leak

3 years agoAdd DBHandleProvider
Changgyu Choi [Thu, 4 Mar 2021 05:17:48 +0000 (14:17 +0900)]
Add DBHandleProvider

Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoReplace implementation of app cert compare API
Junghyun Yeon [Thu, 4 Mar 2021 09:10:22 +0000 (18:10 +0900)]
Replace implementation of app cert compare API

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoImplement app cert compare internal API
Junghyun Yeon [Thu, 4 Mar 2021 09:07:03 +0000 (18:07 +0900)]
Implement app cert compare internal API

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoChange API name
Junghyun Yeon [Thu, 4 Mar 2021 08:50:29 +0000 (17:50 +0900)]
Change API name

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoReplace implementation of comparing pkg certinfo
Junghyun Yeon [Thu, 4 Mar 2021 06:43:16 +0000 (15:43 +0900)]
Replace implementation of comparing pkg certinfo

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoImplement compare cert API using server-client architecture
Junghyun Yeon [Thu, 4 Mar 2021 05:09:34 +0000 (14:09 +0900)]
Implement compare cert API using server-client architecture

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRemove IFactory innerclass from parcelable classes
Junghyun Yeon [Thu, 4 Mar 2021 07:13:29 +0000 (16:13 +0900)]
Remove IFactory innerclass from parcelable classes

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoImplement pkgmgrinfo_pkginfo_load_certinfo
Junghyun Yeon [Thu, 4 Mar 2021 10:32:39 +0000 (19:32 +0900)]
Implement pkgmgrinfo_pkginfo_load_certinfo

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoImplement pkgmgrinfo_save_certinfo using client-server architecture
Junghyun Yeon [Thu, 4 Mar 2021 10:23:41 +0000 (19:23 +0900)]
Implement pkgmgrinfo_save_certinfo using client-server architecture

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoImplement pkgmgrinfo_delete_certinfo
Junghyun Yeon [Thu, 4 Mar 2021 10:13:12 +0000 (19:13 +0900)]
Implement pkgmgrinfo_delete_certinfo

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix build warnings
Junghyun Yeon [Thu, 4 Mar 2021 06:22:23 +0000 (15:22 +0900)]
Fix build warnings

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoImplement dependency handler, parcelable, dbhandler (#101)
연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 [Thu, 4 Mar 2021 02:29:23 +0000 (11:29 +0900)]
Implement dependency handler, parcelable, dbhandler (#101)

Implement dependency related classes,
such as request handler, dbhandler, parcelable and related request types

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix gcov result file
Ilho Kim [Wed, 3 Mar 2021 11:06:34 +0000 (20:06 +0900)]
Fix gcov result file

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoFix static analysis issue
Junghyun Yeon [Wed, 3 Mar 2021 11:07:12 +0000 (20:07 +0900)]
Fix static analysis issue

- Add default initializer at constructor.
- Remove unused variable.

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoFix minor issue
Ilho Kim [Wed, 3 Mar 2021 07:35:36 +0000 (16:35 +0900)]
Fix minor issue

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoFix static analysis issue
Ilho Kim [Wed, 3 Mar 2021 07:29:05 +0000 (16:29 +0900)]
Fix static analysis issue

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoRemove useless logic
Ilho Kim [Wed, 3 Mar 2021 07:22:29 +0000 (16:22 +0900)]
Remove useless logic

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoImplement pkgmgr_parser_insert_manifest_info_in_usr_db
Ilho Kim [Mon, 1 Mar 2021 04:42:29 +0000 (13:42 +0900)]
Implement pkgmgr_parser_insert_manifest_info_in_usr_db

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoImplement parser_db's api using PkgInfoClient
Ilho Kim [Mon, 1 Mar 2021 01:15:37 +0000 (10:15 +0900)]
Implement parser_db's api using PkgInfoClient

 - pkgmgr_parser_update_app_disable_info_in_usr_db
 - pkgmgr_parser_update_pkg_disable_info_in_db
 - pkgmgr_parser_update_global_app_splash_screen_display_info_in_usr_db
 - pkgmgr_parser_update_app_splash_screen_display_info_in_usr_db
 - pkgmgr_parser_update_app_label_info_in_usr_db
 - pkgmgr_parser_update_app_icon_info_in_usr_db
 - pkgmgr_parser_update_tep_info_in_usr_db
 - pkgmgr_parser_register_pkg_update_info_in_usr_db
 - pkgmgr_parser_register_pkg_plugin_info_in_usr_db
 - pkgmgr_parser_update_pkg_plugin_info_in_usr_db
 - pkgmgr_parser_update_pkg_plugin_info_in_usr_db
 - pkgmgr_parser_unregister_pkg_plugin_info_in_usr_db
 - pkgmgr_parser_update_global_app_disable_for_uid_info_in_db
 - pkgmgr_parser_unregister_pkg_update_info_in_usr_db
 - pkgmgr_parser_unregister_all_pkg_update_info_in_usr_db

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoImplement pkgmgrinfo_pkginfo_set_installed_storage
Ilho Kim [Sun, 28 Feb 2021 03:57:34 +0000 (12:57 +0900)]
Implement pkgmgrinfo_pkginfo_set_installed_storage

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoMove __open_db to AbstractDbHandler
Ilho Kim [Sun, 28 Feb 2021 02:34:43 +0000 (11:34 +0900)]
Move __open_db to AbstractDbHandler

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoChange to use bundle parcel's WriteString
Ilho Kim [Sun, 28 Feb 2021 00:43:52 +0000 (09:43 +0900)]
Change to use bundle parcel's WriteString

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoSet QueryHandler's operation,db type before use
Ilho Kim [Sun, 28 Feb 2021 00:40:37 +0000 (09:40 +0900)]
Set QueryHandler's operation,db type before use

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoChange get_updateinfo to use PkgInfoClient
Ilho Kim [Fri, 26 Feb 2021 04:41:31 +0000 (13:41 +0900)]
Change get_updateinfo to use PkgInfoClient

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoChange pkgmgrinfo_plugininfo_foreach_plugininfo to use PkgInfoClient
Ilho Kim [Fri, 26 Feb 2021 02:52:01 +0000 (11:52 +0900)]
Change pkgmgrinfo_plugininfo_foreach_plugininfo to use PkgInfoClient

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoFix invalid query
Ilho Kim [Wed, 3 Mar 2021 06:35:01 +0000 (15:35 +0900)]
Fix invalid query

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoHandle locale in InfoParcleable
Ilho Kim [Wed, 3 Mar 2021 04:50:20 +0000 (13:50 +0900)]
Handle locale in InfoParcleable

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoFix Parcelable (#87)
김일호/Tizen Platform Lab(SR)/Engineer/삼성전자 [Wed, 3 Mar 2021 04:37:36 +0000 (13:37 +0900)]
Fix Parcelable (#87)

* Fix Parcelable

- add ExtractPkgInfo() in PkgInfoParcelable
- FilterParcelable doesn't need to handle pkgmgrinfo_filter_x*

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoFix build warning
Junghyun Yeon [Wed, 3 Mar 2021 02:51:19 +0000 (11:51 +0900)]
Fix build warning

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoRemove unused local variable
Junghyun Yeon [Wed, 3 Mar 2021 02:48:17 +0000 (11:48 +0900)]
Remove unused local variable

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoSeparate null check routine
Junghyun Yeon [Wed, 3 Mar 2021 02:47:27 +0000 (11:47 +0900)]
Separate null check routine

Both could be failed due to short of memory.

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoMerge pull request #82 from jungh-yeon/implement_api2
연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 [Wed, 3 Mar 2021 02:23:08 +0000 (11:23 +0900)]
Merge pull request #82 from jungh-yeon/implement_api2

Implement pkginfo, appinfo APIs using PkgInfoClient

3 years agoUpdate src/pkgmgrinfo_appinfo.c
최창규/Tizen Platform Lab(SR)/Engineer/삼성전자 [Tue, 2 Mar 2021 06:22:03 +0000 (15:22 +0900)]
Update src/pkgmgrinfo_appinfo.c