platform/core/appfw/pkgmgr-info.git
8 years agomerge tizen 2.3/2.4 to xsd and related structure type for parsing manifest 74/51474/4 accepted/tizen/mobile/20151111.231910 accepted/tizen/tv/20151111.231917 accepted/tizen/wearable/20151111.231926 submit/tizen/20151111.052448
jongmyeongko [Tue, 10 Nov 2015 04:36:11 +0000 (13:36 +0900)]
merge tizen 2.3/2.4 to xsd and related structure type for parsing manifest

Change-Id: I28fd3cbdfa625081364528684ef26dea25a74a62
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoRemove package_app_app_svc 97/51397/1 accepted/tizen/mobile/20151109.234051 accepted/tizen/tv/20151109.234110 accepted/tizen/wearable/20151109.234119 submit/tizen/20151109.104502
Sangyoon Jang [Mon, 9 Nov 2015 08:30:28 +0000 (17:30 +0900)]
Remove package_app_app_svc

remove package_app_app_svc table and related codes
app_svc(application-service) tag is replaced with app_control(app-control)

Change-Id: I9f62fc1b32f36558ef0e35451591f24ff534b6d6
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoParse app-control(application-service) properly 95/50995/3
Sangyoon Jang [Wed, 4 Nov 2015 09:49:57 +0000 (18:49 +0900)]
Parse app-control(application-service) properly

- app-control can have multiple operation, uri, mime combinations
- handle an application-service as an app-control

Change-Id: Iefcfcf97d6154f75b423d7fe3c099649c8ed2f58
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoAdd missing elment in manifest.xsd.in 55/50955/3 accepted/tizen/mobile/20151107.080021 accepted/tizen/tv/20151107.080152 accepted/tizen/wearable/20151107.080346 submit/tizen/20151106.045553
Sangyoon Jang [Wed, 4 Nov 2015 02:44:06 +0000 (11:44 +0900)]
Add missing elment in manifest.xsd.in

ADDED:
widget, widget-application, watch-application, watchface,
background-category, support-mode, support-reset, backend-installer,
multi-instance, multi-instance-mainid

TODO:
parse and store to db properly

Change-Id: I86a6c2ebcd6c19e4afc42fb3779b80ac15c390cc
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd missing attributes from Tizen 2.4 89/50489/2 accepted/tizen/mobile/20151029.231448 accepted/tizen/tv/20151029.231458 accepted/tizen/wearable/20151029.231510 submit/tizen/20151029.113651
Sangyoon Jang [Thu, 29 Oct 2015 08:10:26 +0000 (17:10 +0900)]
Add missing attributes from Tizen 2.4

- service-application: nodisplay, component-type
- ui-application: effectimage-type

Change-Id: Ib8517143d8f290e6379f80030d598614671ed2d3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRemove create, chsmack TZ_SYS_RW_PACKAGES 80/50480/1
Sangyoon Jang [Thu, 29 Oct 2015 06:50:19 +0000 (15:50 +0900)]
Remove create, chsmack TZ_SYS_RW_PACKAGES

this will be moved to tizen-platform-config packages

Change-Id: Ica309dedbd79daecfbdb9c17b095eb289babdb86
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoUse GList instead of custom linked list 85/49085/3 accepted/tizen/mobile/20151027.055534 accepted/tizen/tv/20151027.055540 accepted/tizen/wearable/20151027.055548 submit/tizen/20151027.011246
Sangyoon Jang [Tue, 6 Oct 2015 08:24:32 +0000 (17:24 +0900)]
Use GList instead of custom linked list

- use GList instead of custom linked list (sync with 2.4)
- remove unused structures:
 registry_x, database_x, layout_x, deviceprofie_x, daemon_x, theme_x,
 font_x, ime_x
- some attributes have just one value(e.g. privilege), so they can be
represented as 'char *' type instead of structure type

Change-Id: If0ba39724664da11ca3f60a48ab535bc936e2397
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRemove pkgmgr_parser_signature 77/49077/3
Sangyoon Jang [Tue, 6 Oct 2015 07:46:52 +0000 (16:46 +0900)]
Remove pkgmgr_parser_signature

not used

Change-Id: I880b6109a814d264ddf962caba781202000de3d2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRevert "Get string from db if the value is neither "(NULL)" nor empty string" 93/49493/1 accepted/tizen/mobile/20151014.092716 accepted/tizen/tv/20151014.092735 accepted/tizen/wearable/20151014.092750 submit/tizen/20151014.045135 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
Sangyoon Jang [Wed, 14 Oct 2015 02:52:53 +0000 (11:52 +0900)]
Revert "Get string from db if the value is neither "(NULL)" nor empty string"

This reverts commit dff125fbbf490b737e4d21876435579e153aeb4f.

Change-Id: I50d9afafd6bdebe354db69ac8a562f5903c9d9c9
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoUnify uiapplication_x and serviceapplication_x 04/48804/3 accepted/tizen/mobile/20151005.055453 accepted/tizen/tv/20151005.055507 accepted/tizen/wearable/20151005.055523 submit/tizen/20151005.030714
Sangyoon Jang [Wed, 30 Sep 2015 04:42:26 +0000 (13:42 +0900)]
Unify uiapplication_x and serviceapplication_x

since they are used in very similar way and also stored in the same table.

Change-Id: I66c1570f3c49ea16e1f051028325c28fa13a81ef
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoSet "false" on onboot, autorestart of uiapplication 48/48648/1 accepted/tizen/mobile/20150925.012513 accepted/tizen/tv/20150925.012528 accepted/tizen/wearable/20150925.012542 submit/tizen/20150924.065914 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620
Sangyoon Jang [Thu, 24 Sep 2015 06:19:06 +0000 (15:19 +0900)]
Set "false" on onboot, autorestart of uiapplication

Change-Id: Icd3392c08cab4b751bfa377a62a561438ac3ead2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix logic of getting localized values 80/48580/2 accepted/tizen/mobile/20150923.231048 accepted/tizen/tv/20150923.231056 accepted/tizen/wearable/20150923.231109 submit/tizen/20150923.091423
Sangyoon Jang [Wed, 23 Sep 2015 07:51:35 +0000 (16:51 +0900)]
Fix logic of getting localized values

try to get value whose locale is same as system locale
if failed, then try again with default locale

Change-Id: I3bcac5bbf34e338f859c77c7345b6099d935c50e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoGet string from db if the value is neither "(NULL)" nor empty string 79/48579/2
Sangyoon Jang [Wed, 23 Sep 2015 07:49:50 +0000 (16:49 +0900)]
Get string from db if the value is neither "(NULL)" nor empty string

Change-Id: I5a7bb0ac6693f61eb8f3dd16676e2c99e791e68a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoChange pkgmgr db label to "User::Home" 31/48131/2 accepted/tizen/mobile/20150920.232327 accepted/tizen/tv/20150920.232335 accepted/tizen/wearable/20150920.232353 submit/tizen/20150918.062932
Sangyoon Jang [Tue, 15 Sep 2015 01:28:27 +0000 (10:28 +0900)]
Change pkgmgr db label to "User::Home"

Change-Id: Id6fb407e4fe8065fb9fd550f270cc89391ed38ed
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoSave empty string when metadata value isn't set 88/47688/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150908.231345 accepted/tizen/tv/20150908.231359 accepted/tizen/wearable/20150908.231349 submit/tizen/20150908.044919 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
Sangyoon Jang [Tue, 8 Sep 2015 04:44:02 +0000 (13:44 +0900)]
Save empty string when metadata value isn't set

Change-Id: Iac07b79981e688013f9478eb4aca9fa24da3c8aa
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd pkgmgrinfo_pkginfo_is_global 32/47532/1 accepted/tizen/mobile/20150904.140100 accepted/tizen/tv/20150904.140319 accepted/tizen/wearable/20150904.140422 submit/tizen/20150904.085212
Sangyoon Jang [Fri, 4 Sep 2015 07:42:39 +0000 (16:42 +0900)]
Add pkgmgrinfo_pkginfo_is_global

get whethere the given package is global package or user package

Change-Id: Ib50ee621d80227c7d7f66e2e10b9a9b47d800ff9
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix memory leak 98/46998/2 accepted/tizen/mobile/20150902.004315 accepted/tizen/tv/20150902.004336 accepted/tizen/wearable/20150902.004341 submit/tizen/20150901.100622
Sangyoon Jang [Fri, 28 Aug 2015 05:49:16 +0000 (14:49 +0900)]
Fix memory leak

free locale string
free pkginfo_x, appinfo_x in error case

Change-Id: I71693d53478b5e21e0d9f6d9d6e7b89ee80df51c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix getting boolean value from pkginfo,appinfo 18/46618/1
Sangyoon Jang [Mon, 24 Aug 2015 07:13:43 +0000 (16:13 +0900)]
Fix getting boolean value from pkginfo,appinfo

use static getter function
return error when the value is NULL

Change-Id: I02f2bb34a4632d1d0fd9237c207a205d58b1f284
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix list iteration 39/46539/4 accepted/tizen/mobile/20150824.134456 accepted/tizen/tv/20150824.134524 accepted/tizen/wearable/20150824.134533 submit/tizen/20150824.024939
Sangyoon Jang [Fri, 21 Aug 2015 10:34:32 +0000 (19:34 +0900)]
Fix list iteration

save next node beforehand to delete node safely

Change-Id: I7d5d88f2bb8d2fb8959fc02f3b5f9134e1c39393
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix filter count api 89/46489/4
Sangyoon Jang [Fri, 21 Aug 2015 09:51:17 +0000 (18:51 +0900)]
Fix filter count api

Change-Id: I04898c44b77971635921924e94824da1926eff45
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoParse support-disable 35/46435/4
Sangyoon Jang [Thu, 20 Aug 2015 08:22:43 +0000 (17:22 +0900)]
Parse support-disable

add filter prop for support-disable

Change-Id: I0967e466a85b613b03d7c7397a997be07ab2754f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoImprove query performance 23/46323/4
Sangyoon Jang [Wed, 19 Aug 2015 02:32:21 +0000 (11:32 +0900)]
Improve query performance

opening and attaching db takes a long time more than opening db in twice

Change-Id: I5e4ecd78f392961d169c2581da2a45eac1b42cfd
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix pkgmgrinfo_appinfo_metadata_filter_foreach 17/46417/1
Sangyoon Jang [Thu, 20 Aug 2015 06:05:28 +0000 (15:05 +0900)]
Fix pkgmgrinfo_appinfo_metadata_filter_foreach

add filter prop for metadata key, value

Change-Id: Ib94612054f5a46c3e362174300e4e09b58a0fca8
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix getting author name 75/46275/1
Sangyoon Jang [Wed, 19 Aug 2015 02:57:08 +0000 (11:57 +0900)]
Fix getting author name

there is only one author element
author element doesn't need lang attibute

Change-Id: I3c22ade424eae62c124ccc8e2fc344b3abdb13a5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoprefer local package over global in pkgmgr_pkginfo_get_user_pkginfo 19/46219/1 accepted/tizen/mobile/20150818.100847 accepted/tizen/tv/20150818.101329 accepted/tizen/wearable/20150818.101636 submit/tizen/20150818.070205
Jiwoong Im [Tue, 18 Aug 2015 06:40:17 +0000 (15:40 +0900)]
prefer local package over global in pkgmgr_pkginfo_get_user_pkginfo

- result handle should point to local package info if there is local and global
package with the same pkgid

Change-Id: I30ad69db80b789f7a6bc8b94d784066a827fa698
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoFix db open functions 48/46148/1 accepted/tizen/mobile/20150817.134134 accepted/tizen/tv/20150817.134529 accepted/tizen/wearable/20150817.134809 submit/tizen/20150817.084057
Sangyoon Jang [Mon, 17 Aug 2015 07:50:54 +0000 (16:50 +0900)]
Fix db open functions

add a new parameter to open db on writable or readonly mode
return error when manifest db does not exist

Change-Id: I15bf60d2b8d5bc1e75e05568124e6fc535559698
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRetrieve metadata info when getting appinfo 36/46136/1
Sangyoon Jang [Mon, 17 Aug 2015 07:18:18 +0000 (16:18 +0900)]
Retrieve metadata info when getting appinfo

Change-Id: Ic6fa595f3289fced8a712846747ef1242a3a8ffd
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd filter prop for package privilege 24/46124/1
Sangyoon Jang [Mon, 17 Aug 2015 05:51:22 +0000 (14:51 +0900)]
Add filter prop for package privilege

Change-Id: I5eb7b3de1e1d0a44f39080ed4d04f5601a6641b4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix getting icon path 83/45783/4
Sangyoon Jang [Tue, 11 Aug 2015 07:45:39 +0000 (16:45 +0900)]
Fix getting icon path

try to get icon path from various paths

Change-Id: I7400cc427758a0a4fe4bb2dfdc107fe788b4798a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd filter prop for ui-gadget 87/45987/1 accepted/tizen/mobile/20150814.112850 accepted/tizen/tv/20150814.113011 accepted/tizen/wearable/20150814.112929 submit/tizen/20150814.080020
Sangyoon Jang [Thu, 13 Aug 2015 02:41:52 +0000 (11:41 +0900)]
Add filter prop for ui-gadget

Change-Id: I3355e529e1f5bc997931a6324cb26bdcc03c1d7e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix bug on listing pkg, app 67/45867/1 accepted/tizen/mobile/20150813.012024 accepted/tizen/tv/20150813.012035 accepted/tizen/wearable/20150813.012047 submit/tizen/20150812.102005
Sangyoon Jang [Wed, 12 Aug 2015 05:52:29 +0000 (14:52 +0900)]
Fix bug on listing pkg, app

Change-Id: I16f947be90802bff53095381d96755d30be96207
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoParse ui-gadget attribute 65/45865/3
Sangyoon Jang [Wed, 12 Aug 2015 05:42:10 +0000 (14:42 +0900)]
Parse ui-gadget attribute

Change-Id: Ie86c603fdc9ee113e15975826798453330e586ad
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoSeparate source files, clean up repository 91/45391/7
Sangyoon Jang [Mon, 10 Aug 2015 12:30:10 +0000 (21:30 +0900)]
Separate source files, clean up repository

separate pkgmgr-info.c into:
  pkgmgrinfo_pkginfo.c
  pkgmgrinfo_appinfo.c
  pkgmgrinfo_certinfo.c
  pkgmgrinfo_db.c
  pkgmgrinfo_client.c
rename headers
remove unused codes
remove executable permission from some files

Change-Id: Ie56d8c76223ed0593ded98138b3a2ecef0738ea5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix crash 65/45765/1 accepted/tizen/mobile/20150811.060101 accepted/tizen/tv/20150811.060105 accepted/tizen/wearable/20150811.060118 submit/tizen/20150811.055211
Sangyoon Jang [Tue, 11 Aug 2015 05:48:42 +0000 (14:48 +0900)]
Fix crash

use sizeof() instead of fixed size

Change-Id: I10abd3ba45f0d31519716c14f8d3e236d40d062b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoBuildbreak fix in pkgmgr-info.c 74/45674/1 accepted/tizen/mobile/20150811.013709 accepted/tizen/tv/20150811.013730 accepted/tizen/wearable/20150811.013750 submit/tizen/20150810.084526
Pawel Sikorski [Mon, 10 Aug 2015 08:44:05 +0000 (10:44 +0200)]
Buildbreak fix in pkgmgr-info.c

Removal of not needed call.

Change-Id: Id8afe37e16acc92765f7d085b434cb08b70d0065
Signed-off-by: Pawel Sikorski <p.sikorski@samsung.com>
9 years agoFix listing query 56/45556/3
Sangyoon Jang [Fri, 7 Aug 2015 09:38:37 +0000 (18:38 +0900)]
Fix listing query

get pkgid or appid list first, and getting pkginfo or appinfo using the
list

Change-Id: Ifd4a5c349f2cb325588ad20710f173a5253b7ed0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix some prevent issues 03/45503/1
Sangyoon Jang [Fri, 7 Aug 2015 02:09:08 +0000 (11:09 +0900)]
Fix some prevent issues

fix resource leak
fix dereference null return value

Change-Id: I018e365c798de51c8e7f8cc47f1db51768e744f0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd new error code: PMINFO_R_ENOENT 74/45274/5 accepted/tizen/mobile/20150807.073538 accepted/tizen/tv/20150807.073543 accepted/tizen/wearable/20150807.073549 submit/tizen/20150807.044508
Sangyoon Jang [Tue, 4 Aug 2015 09:08:22 +0000 (18:08 +0900)]
Add new error code: PMINFO_R_ENOENT

return OK when getting no result on filter foreach api

Change-Id: Ie619b75f010d24ab9407d6b8068963589714fe1f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix memory leak 83/45383/1 accepted/tizen/mobile/20150806.001422 accepted/tizen/tv/20150806.001427 accepted/tizen/wearable/20150806.001437 submit/tizen/20150805.104426
Sangyoon Jang [Wed, 5 Aug 2015 10:40:41 +0000 (19:40 +0900)]
Fix memory leak

fix parsing & freeing appcontrol
fix _appinfo_get_filtered_foreach
fix __cleanup_appinfo

Change-Id: I074ff97e4fc9f72c6c9e3913b1487133d240068b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agomodify resource manager source. 94/44894/5
Jiwoong Im [Wed, 29 Jul 2015 06:55:19 +0000 (15:55 +0900)]
modify resource manager source.

- remove db saving/loading while using resource manager

Change-Id: Id8d00ddcf1f731e236e12be9bc37cb8b69f29861
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoReturn error when cannot find appinfo 64/45264/1 accepted/tizen/mobile/20150804.235121 accepted/tizen/tv/20150804.235129 accepted/tizen/wearable/20150804.235146 submit/tizen/20150804.080541
Sangyoon Jang [Tue, 4 Aug 2015 08:12:15 +0000 (17:12 +0900)]
Return error when cannot find appinfo

Change-Id: Icbc22ef147e403c17e8acda31da486d59ee7ed8f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix resource leak 59/45259/1
Sangyoon Jang [Tue, 4 Aug 2015 08:02:32 +0000 (17:02 +0900)]
Fix resource leak

finalize sqlite3_stmt
use sqlite3_close_v2 instead of sqlite3_close

Change-Id: Ie48f7b7fbc7d239ba19c46b80cb6623c4b2a1f6d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRewrite query apis 68/44768/9 accepted/tizen/mobile/20150804.062729 accepted/tizen/tv/20150804.062740 accepted/tizen/wearable/20150804.062747 submit/tizen/20150804.021939
Sangyoon Jang [Mon, 27 Jul 2015 12:35:42 +0000 (21:35 +0900)]
Rewrite query apis

increase package version
set so version using package version
unify uiapplication_x serviceapplication_x to application_x
move data structure free code to pkgmgr-info

rewrite query apis:
pkgmgrinfo_pkginfo_get_pkginfo
pkgmgrinfo_pkginfo_get_list
pkgmgrinfo_pkginfo_filter_foreach_pkginfo
pkgmgrinfo_appinfo_get_appinfo
pkgmgrinfo_appinfo_get_list
pkgmgrinfo_appinfo_get_install_list
pkgmgrinfo_appinfo_get_installed_list
pkgmgrinfo_appinfo_filter_foreach_appinfo
pkgmgrinfo_appinfo_metadata_filter_foreach

TODO:
revise list structure
revise free code

Change-Id: I22b0a9c4c06276d793844b86b89fb339037a2515
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix parsing icon path 28/44728/1
Sangyoon Jang [Mon, 27 Jul 2015 06:53:38 +0000 (15:53 +0900)]
Fix parsing icon path

Change-Id: I472c934f73b85b43ccc84437aeb5f11f5ebb3299
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRemove warnings 79/44379/2
Sangyoon Jang [Tue, 21 Jul 2015 08:11:08 +0000 (17:11 +0900)]
Remove warnings

fix mismatching type
remove unused varibales, functions
remove unnecessary initializing of local variable
include missing headers
move declarations to the top of function implementation
fix some spaces, indents

Change-Id: I8a9154d64d9bd1b3e0cde58fdbd43381072b3b2d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd missing break statement 32/44332/1 accepted/tizen/mobile/20150721.092052 accepted/tizen/tv/20150721.092234 accepted/tizen/wearable/20150721.092356 submit/tizen/20150721.043206
Sangyoon Jang [Tue, 21 Jul 2015 04:30:00 +0000 (13:30 +0900)]
Add missing break statement

Change-Id: I4d7bf6c8296990bc4227b7b26eab4e899eb7d1e5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoPrint uid in error log when failed to find pkg/app 58/44258/2
Sangyoon Jang [Mon, 20 Jul 2015 08:44:51 +0000 (17:44 +0900)]
Print uid in error log when failed to find pkg/app

Change-Id: Ib24c4cc28b69614b33ce7e51ccd003f065407f10
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRevise parser, insert db 36/44136/5 accepted/tizen/mobile/20150720.122058 accepted/tizen/tv/20150720.122204 accepted/tizen/wearable/20150720.122251 submit/tizen/20150720.072256
Sangyoon Jang [Mon, 20 Jul 2015 04:28:17 +0000 (13:28 +0900)]
Revise parser, insert db

use static function to getting xml values
set root_path, pkgtype at parsing time
parse api-version from manifest
remove unused attribute: main_package
add attribute: process-pool, ui-gadget

Change-Id: If0d48697912d1644ee8a1164dee8ee896a077505
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRevise pkginfo appinfo getters 95/43895/5
Sangyoon Jang [Wed, 15 Jul 2015 06:23:05 +0000 (15:23 +0900)]
Revise pkginfo appinfo getters

return error code in error case
remove unnecessary initialize
move declarations to the top of function implementation
fix some spaces, indents

Change-Id: I88e181b061b0bbeb415042ab8d7b41c61192f241
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd create and initialize db api 80/43980/2
Sangyoon Jang [Thu, 16 Jul 2015 02:00:34 +0000 (11:00 +0900)]
Add create and initialize db api

add api: create and initialize db
set smack label "System::Shared" to db file

Change-Id: I0f187a0f074d8ac430ca804bc2c121bbe48509c0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix compare and load certinfo by GLOBAL USER. 62/43662/2 accepted/tizen/mobile/20150714.074933 accepted/tizen/tv/20150714.074952 accepted/tizen/wearable/20150714.074959 submit/tizen/20150714.024616
Jiwoong Im [Mon, 13 Jul 2015 05:42:47 +0000 (14:42 +0900)]
Fix compare and load certinfo by GLOBAL USER.

- comparing and loading package certinfo by GLOBAL USER returns error
because of for_all_users column.
- modify query in compare and load certinfo function.

Change-Id: I172184fbb813c0254c140fd9302f4311f620943b
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoIgnore feautre tag during parsing manifest 52/43052/2 accepted/tizen/mobile/20150708.065808 accepted/tizen/tv/20150708.065815 accepted/tizen/wearable/20150708.065824 submit/tizen/20150707.063401
Sangyoon Jang [Tue, 7 Jul 2015 10:36:41 +0000 (19:36 +0900)]
Ignore feautre tag during parsing manifest

add feature tag to manifest schema(but ignore)

Change-Id: Ib82dbdce5f722847336f727efe60bcde5bf950b4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRun external tag parser after insert manifest into db 35/43035/1
Sangyoon Jang [Tue, 7 Jul 2015 07:40:15 +0000 (16:40 +0900)]
Run external tag parser after insert manifest into db

external parser should be run after base information inserted into db

Change-Id: I8d0e2a0afb8d1164388174d391822d30db7f30b2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix pkgmgrinfo_client_listen_status 06/43006/1
Sangyoon Jang [Tue, 7 Jul 2015 01:25:59 +0000 (10:25 +0900)]
Fix pkgmgrinfo_client_listen_status

Change-Id: I9481873c97965bb2bfa71f076cdde8280a352817
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix compare package certinfo 56/42856/1 submit/tizen/20150706.001325 submit/tizen/20150706.044131
Sangyoon Jang [Fri, 3 Jul 2015 07:13:18 +0000 (16:13 +0900)]
Fix compare package certinfo

compare cert info string instead of cert id because cert id can be
different global and user

Change-Id: Id506938fe2f11c7f5f67a1b93397062976b32693
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix load certinfo 29/42829/1 submit/tizen/20150703.013128
Sangyoon Jang [Fri, 3 Jul 2015 01:18:17 +0000 (10:18 +0900)]
Fix load certinfo

TC-2527

distinguish global cert and user cert

Change-Id: I2d7f4bebfdeb681210671b43cc07008952e6408e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRemove using removed vconf key 77/42777/1 accepted/tizen/mobile/20150708.015024 accepted/tizen/tv/20150708.015127 accepted/tizen/wearable/20150708.015221 submit/tizen/20150630.051205 submit/tizen/20150702.103311
Sangyoon Jang [Thu, 2 Jul 2015 07:59:09 +0000 (16:59 +0900)]
Remove using removed vconf key

Change-Id: I574f71f5c79dbaa787559a17bdb3a75cb145eb65
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix pkgmgrinfo_appinfo_get_launch_mode 07/42607/1 accepted/tizen/mobile/20150702.045219 accepted/tizen/tv/20150702.040115 accepted/tizen/wearable/20150702.040144 submit/tizen/20150702.000829
Sangyoon Jang [Tue, 30 Jun 2015 12:44:25 +0000 (21:44 +0900)]
Fix pkgmgrinfo_appinfo_get_launch_mode

service application doesn't have launch mode

Change-Id: I1740c99a92cb01700fe32f755aa8ee01c4fdac75
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRemove some useless error log 37/42337/1
Sangyoon Jang [Fri, 26 Jun 2015 05:24:21 +0000 (14:24 +0900)]
Remove some useless error log

Change-Id: I52cc97b9c8fe381b284cef3b290fccf1eb017925
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoDon't make desktop file 02/42302/2 accepted/tizen/mobile/20150626.064822 accepted/tizen/tv/20150626.064859 accepted/tizen/wearable/20150626.064939 submit/tizen/20150626.014106
Sangyoon Jang [Thu, 25 Jun 2015 10:59:28 +0000 (19:59 +0900)]
Don't make desktop file

desktop file is no longer used

Change-Id: If01b06662eb203c6ad0b5af2204c6e9488685783
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoTreat root user as globalapp user 99/42299/1
Sangyoon Jang [Thu, 25 Jun 2015 10:33:39 +0000 (19:33 +0900)]
Treat root user as globalapp user

Change-Id: I51e726ce6c5c2a187f0a0df292bfec75e0841a72
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoremove unnecessary "required" from the XSD 50/41450/1 accepted/tizen_3.0.2015.q2_common tizen_3.0.2015.q2_common accepted/tizen/3.0.2015.q2/common/20150619.141540 accepted/tizen/common/20150619.142310 accepted/tizen/mobile/20150616.011009 accepted/tizen/tv/20150616.011023 accepted/tizen/wearable/20150616.011037 submit/tizen/20150615.113220 submit/tizen_3.0.2015.q2_common/20150619.140921 submit/tizen_common/20150619.140859
Semun Lee [Mon, 15 Jun 2015 11:28:50 +0000 (20:28 +0900)]
remove unnecessary "required" from the XSD

Change-Id: I26a69c8b4c6dd18e17c82e6cabc63484471dba79
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
9 years agoMerge "Set pkgid when getting pkgmgr_appinfo_x" into tizen
Semun Lee [Mon, 15 Jun 2015 11:21:58 +0000 (04:21 -0700)]
Merge "Set pkgid when getting pkgmgr_appinfo_x" into tizen

9 years agoSupport empty appcontrol strings 23/41423/1 submit/tizen/20150615.110504
Semun Lee [Mon, 15 Jun 2015 08:28:20 +0000 (17:28 +0900)]
Support empty appcontrol strings

Change-Id: I178a907be4eb6da08511828d65bc7587385f0bea
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
9 years agoSet pkgid when getting pkgmgr_appinfo_x 69/41269/1
Sangyoon Jang [Fri, 12 Jun 2015 07:42:41 +0000 (16:42 +0900)]
Set pkgid when getting pkgmgr_appinfo_x

Change-Id: I629754e9a5a34977e59bb7bda619576565660ef1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRevise manifest.xsd.in 60/41260/1 accepted/tizen/3.0.2015.q2/common/20150615.160015 accepted/tizen/common/20150615.075930 accepted/tizen/mobile/20150616.010558 accepted/tizen/tv/20150616.010608 accepted/tizen/wearable/20150616.010620 submit/tizen/20150612.081948 submit/tizen_3.0.2015.q2_common/20150615.075539
Sangyoon Jang [Fri, 12 Jun 2015 05:10:49 +0000 (14:10 +0900)]
Revise manifest.xsd.in

change package version type to xs:string
allow taskmanage, multiple at service-application
set indentation to 2 spaces

Change-Id: Iaa8ed8f1b1e40fdf50562844381b1a687dddc265
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAllow datacontrol element in ui-application 85/40585/2 accepted/tizen/3.0.2015.q2/common/20150609.181931 accepted/tizen/common/20150609.084312 accepted/tizen/mobile/20150609.085833 accepted/tizen/tv/20150612.003514 accepted/tizen/wearable/20150609.085854 submit/tizen/20150605.114228 submit/tizen_3.0.2015.q2_common/20150609.170642 submit/tizen_tv/20150611.000000
Sangyoon Jang [Fri, 5 Jun 2015 08:26:25 +0000 (17:26 +0900)]
Allow datacontrol element in ui-application

Change-Id: I726facf89fb434a554203645f987bf9baca99c0f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix app_control process 06/40506/3 submit/tizen/20150605.041856 submit/tizen/20150605.044443
Sangyoon Jang [Thu, 4 Jun 2015 11:42:25 +0000 (20:42 +0900)]
Fix app_control process

retrieve appcontrol info when getting appinfo
fix appcontrol_x
fix pkgmgrinfo_appinfo_foreach_appcontrol
fix pkgmgrinfo_appinfo_get_installed_list

Change-Id: Ie70c08331df3981a1d99035b8ba66d8280b0b7d6
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRemove event-system apis 67/40467/1
Sangyoon Jang [Thu, 4 Jun 2015 06:21:37 +0000 (15:21 +0900)]
Remove event-system apis

this can be replaced with foreach appcontrol api

Change-Id: Ifc2bd1d67a4cea2fe516b219114bb8d1ab6a1575
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoMerge "support resource manager API." into tizen
Semun Lee [Wed, 3 Jun 2015 02:45:16 +0000 (19:45 -0700)]
Merge "support resource manager API." into tizen

9 years agoMerge "add launch_mode attribute to support app_group" into tizen
Semun Lee [Wed, 3 Jun 2015 02:45:07 +0000 (19:45 -0700)]
Merge "add launch_mode attribute to support app_group" into tizen

9 years agoAdd glib requires in pc file to avoid build break. 96/40296/2 submit/tizen/20150602.110936
Jiwoong Im [Tue, 2 Jun 2015 05:23:36 +0000 (14:23 +0900)]
Add glib requires in pc file to avoid build break.

Change-Id: I532735a867cc9c78d966035b2ee8cc4165cdbbd3
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoadd launch_mode attribute to support app_group 32/40232/1
Jiwoong Im [Mon, 1 Jun 2015 08:30:10 +0000 (17:30 +0900)]
add launch_mode attribute to support app_group

add launch_mode attribute and new api to get application's launch_mode
in package_app_info.
New API: pkgmgrinfo_appinfo_get_launch_mode

Change-Id: I2e4d0db2c6b7a4b7002bb854c1a04741daedcc09
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agosupport resource manager API. 18/40218/2
Jiwoong Im [Mon, 1 Jun 2015 05:23:24 +0000 (14:23 +0900)]
support resource manager API.

Provides interfaces to check and insert resource.xml and get resource
data of specific package from db.

JIRA ticket : TC-2491

Change-Id: Ibd30c9840af30e877caec8d2cf4ba73c72092b45
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoMerge "add api to support event system." into tizen submit/tizen/20150601.084214 submit/tizen/20150602.063407
Semun Lee [Sat, 30 May 2015 06:01:53 +0000 (23:01 -0700)]
Merge "add api to support event system." into tizen

9 years agoAdd 'usr' prefixed datacontrol apis 08/39908/3
Sangyoon Jang [Tue, 26 May 2015 08:26:33 +0000 (17:26 +0900)]
Add 'usr' prefixed datacontrol apis

rename column of package_app_datacontrol:
provider_id -> providerid

Change-Id: Ib891d37bd075e9ffdd9dda04cac9372ccc120d5e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoMerge "Fix _mkdir_for_user" into tizen submit/tizen/20150526.104937
Semun Lee [Tue, 26 May 2015 10:46:41 +0000 (03:46 -0700)]
Merge "Fix _mkdir_for_user" into tizen

9 years agoadd api to support event system. 03/39903/1
Jiwoong Im [Tue, 26 May 2015 07:09:26 +0000 (16:09 +0900)]
add api to support event system.

add api which find event_launch_list in package_app_app_control table.

JIRA ticket : TC-2473

Change-Id: I1980d96da012d96a0560a03056d0c0ef311aa3b1
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoFix _mkdir_for_user 88/39888/1
Sangyoon Jang [Tue, 26 May 2015 05:09:04 +0000 (14:09 +0900)]
Fix _mkdir_for_user

add constraint to prevent infinite loop

Change-Id: Iab35153b83a7d53cde23b5cbe2720aa7672f16cd
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agochange package_app_app_control table to apply 2.3 app_control. 83/39583/1
Jiwoong Im [Tue, 19 May 2015 06:53:24 +0000 (15:53 +0900)]
change package_app_app_control table to apply 2.3 app_control.

In current, package_app_app_control table has operation,
uri_scheme, mime_type and subapp_name fields.
Put these filed together into one app_control filed.

Jira ticket : TC-2513

Change-Id: Iec68cb593d97d86fdba5bdc9af6cb61fba2b8049
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoRemove unused variables 14/33514/3
Maciej Piotrowski [Wed, 31 Dec 2014 13:02:00 +0000 (14:02 +0100)]
Remove unused variables

This patch impacts below files:
- src/pkgmgr-info.c
- parser/pkgmgr_parser.c
- parser/pkgmgr_parser_db.c

Change-Id: I8f2292c11b727c530202523f65a4ca33c31aa3c2
Signed-off-by: Pawel Sikorski <p.sikorski@samsung.com>
9 years agoFix formatting of icon path for global installation 40/37240/1 accepted/tizen/common/20150331.085035 accepted/tizen/mobile/20150404.084443 accepted/tizen/tv/20150404.082819 accepted/tizen/wearable/20150404.083341 submit/tizen_common/20150330.150902 submit/tizen_mobile/20150403.045347 submit/tizen_tv/20150403.045347 submit/tizen_wearable/20150403.045347
Tomasz Iwanek [Fri, 20 Mar 2015 13:23:41 +0000 (14:23 +0100)]
Fix formatting of icon path for global installation

Change-Id: Iffe87b566fb1090132bb96abc81c46a806fd4e74

9 years agoInclude "sys/types.h" at pkgmgr-info.h 80/35880/1 accepted/tizen/mobile/20150313.083936 accepted/tizen/tv/20150226.011427 accepted/tizen/tv/20150313.083818 accepted/tizen/wearable/20150226.065655 accepted/tizen/wearable/20150313.083849 submit/tizen/20150304.022845 submit/tizen_common/20150226.010729 submit/tizen_mobile/20150225.124301 submit/tizen_mobile/20150313.022842 submit/tizen_tv/20150225.124301 submit/tizen_tv/20150313.022842 submit/tizen_wearable/20150225.124301 submit/tizen_wearable/20150313.022842
Sangyoon Jang [Wed, 25 Feb 2015 12:32:23 +0000 (21:32 +0900)]
Include "sys/types.h" at pkgmgr-info.h

Change-Id: I01ca2b52a1501aba9c98a983c6b9b230d8ba7ca3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd get gid using getgrnam_r 06/35506/1 accepted/tizen/mobile/20150225.053511 accepted/tizen/tv/20150225.100212 accepted/tizen/wearable/20150225.053942 submit/tizen_mobile/20150225.030152 submit/tizen_tv/20150225.030125 submit/tizen_wearable/20150225.030214
Sangyoon Jang [Tue, 17 Feb 2015 01:54:19 +0000 (10:54 +0900)]
Add get gid using getgrnam_r

tzplatform_getgid cannot get gid from group name

Change-Id: I5a31cddc070bc654f170136dc034bec048b094eb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoChange owner of parent directory 59/35459/3
Sangyoon Jang [Mon, 16 Feb 2015 07:20:08 +0000 (16:20 +0900)]
Change owner of parent directory

revise making directory
when create directory recursively, change owner of parent directory

Change-Id: I5beda08252f050a6104699b28bcde26e0a6957f5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoCreate db if not exists 51/35451/2
Sangyoon Jang [Mon, 16 Feb 2015 04:11:19 +0000 (13:11 +0900)]
Create db if not exists

Change-Id: I2b227cdc5e76c18ab908801715fdee8bbd9cea97
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoMerge "Add missing declaration, remove unused declaration" into tizen
Suchang Woo [Fri, 6 Feb 2015 04:33:46 +0000 (20:33 -0800)]
Merge "Add missing declaration, remove unused declaration" into tizen

9 years agopkgmgr-info.h - include what you use 36/34936/1
Tomasz Iwanek [Wed, 4 Feb 2015 13:29:32 +0000 (14:29 +0100)]
pkgmgr-info.h - include what you use

This causes problem to use this header in other projects.
Header should be able to provide all definitions it uses.

Change-Id: I1c443a7ffc273c269ced91e91f56215d84f0d98b

9 years agoAdd missing declaration, remove unused declaration 10/34810/3
Sangyoon Jang [Tue, 3 Feb 2015 06:19:42 +0000 (15:19 +0900)]
Add missing declaration, remove unused declaration

added:
pkgmgr_parser_get_usr_manifest_file

removed:
pkgmgr_parser_get_manifest_info
pkgmgr_parser_has_parser
pkgmgr_parser_get_list
pkgmgr_parser_initialize_db (change to static function)
pkgmgr_parser_check_and_create_db (change to static function)

Change-Id: I001ca5e5014fac337a351365e087934a44678657
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd pkgmgrinfo_appinfo_is_category_exists 08/34308/1 accepted/tizen/mobile/20150127.061159 accepted/tizen/tv/20150127.060443 accepted/tizen/wearable/20150127.060703 submit/tizen_mobile/20150127.020611 submit/tizen_tv/20150127.020604 submit/tizen_wearable/20150127.020617
Sangyoon Jang [Fri, 23 Jan 2015 06:47:15 +0000 (15:47 +0900)]
Add pkgmgrinfo_appinfo_is_category_exists

Change-Id: I2b7aa3eec0e2d2f6cdfe4a13fe420cfe16bacf82
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoMerge "Add X-TIZEN-AppID filed in destop file" into tizen
Baptiste DURAND [Tue, 20 Jan 2015 14:00:46 +0000 (06:00 -0800)]
Merge "Add X-TIZEN-AppID filed in destop file" into tizen

9 years agoMerge "Add api from tizen 2.3 : pkgmgrinfo_appinfo_get_localed_label" into tizen accepted/tizen/mobile/20150121.045016 accepted/tizen/tv/20150121.044516 accepted/tizen/wearable/20150121.044749 submit/tizen/20150120.043506 submit/tizen_mobile/20150121.020049 submit/tizen_tv/20150121.020041 submit/tizen_wearable/20150121.020025
Semun Lee [Tue, 20 Jan 2015 04:12:53 +0000 (20:12 -0800)]
Merge "Add api from tizen 2.3 : pkgmgrinfo_appinfo_get_localed_label" into tizen

9 years agoClean up logic opening/attaching manifest and cert db 00/33800/11
Sangyoon Jang [Thu, 15 Jan 2015 05:27:47 +0000 (14:27 +0900)]
Clean up logic opening/attaching manifest and cert db

rename '_pkgmgr_parser_attach_create_view_parserdb' and '_pkgmgr_parser_attach_create_view_certdb' to
'__attach_and_create_view'
remove some unused variables
clean up duplicate code

Change-Id: Ib3c86eec3b4ea06b76fec08aba3d9b30d2461d34
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd api from tizen 2.3 : pkgmgrinfo_appinfo_get_localed_label 15/33115/13
Sangyoon Jang [Tue, 6 Jan 2015 05:29:41 +0000 (14:29 +0900)]
Add api from tizen 2.3 : pkgmgrinfo_appinfo_get_localed_label

Change-Id: I3ea422055376763ef5ed0a1dc8d8ae6a2cb75084
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoMerge "Add missing declaration" into tizen
Semun Lee [Tue, 20 Jan 2015 00:11:36 +0000 (16:11 -0800)]
Merge "Add missing declaration" into tizen

9 years agoAdd missing declaration 18/33718/3
Sangyoon Jang [Wed, 14 Jan 2015 05:47:37 +0000 (14:47 +0900)]
Add missing declaration

added:
pkgmgrinfo_pkginfo_get_label
pkgmgrinfo_pkginfo_get_size_from_xml
pkgmgrinfo_pkginfo_get_location_from_xml
pkgmgrinfo_pkginfo_is_for_all_users pkgmgrinfo_save_pkgusrdbinfo
pkgmgrinfo_appinfo_set_usr_state_enabled
pkgmgrinfo_appinfo_set_state_enabled
pkgmgrinfo_appinfo_set_usr_default_label
pkgmgrinfo_appinfo_set_default_label

Change-Id: I832d850e9990c4dfd0b71598814257f927feaef3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoMerge "Remove meaningless code" into tizen
Suchang Woo [Wed, 14 Jan 2015 08:47:52 +0000 (00:47 -0800)]
Merge "Remove meaningless code" into tizen

9 years agoMerge "Remove unused files and change file permission" into tizen
Suchang Woo [Wed, 14 Jan 2015 08:39:09 +0000 (00:39 -0800)]
Merge "Remove unused files and change file permission" into tizen

9 years agoMerge "add api and db table to support data-control api" into tizen
Semun Lee [Wed, 14 Jan 2015 01:16:05 +0000 (17:16 -0800)]
Merge "add api and db table to support data-control api" into tizen

9 years agoRemove meaningless code 14/33114/3
Sangyoon Jang [Fri, 9 Jan 2015 05:35:09 +0000 (14:35 +0900)]
Remove meaningless code

__pkgmgr_parser_create_parser_db and __pkgmgr_parser_create_cert_db do same thing,
so remove one and rename

Change-Id: Idca8c82ffaa5f5d15b51c40eb43c7f6db19eda2e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>