platform/core/appfw/pkgmgr-info.git
7 years agoFix the row deletion failure of pkgmgr db 62/108762/2 accepted/tizen/3.0/common/20170109.083925 accepted/tizen/3.0/ivi/20170106.095000 accepted/tizen/3.0/mobile/20170106.094805 accepted/tizen/3.0/tv/20170106.094904 accepted/tizen/3.0/wearable/20170106.094931 accepted/tizen/common/20170112.174436 accepted/tizen/ivi/20170112.222531 accepted/tizen/mobile/20170112.222420 accepted/tizen/tv/20170112.222447 accepted/tizen/wearable/20170112.222510 submit/tizen/20170112.013301 submit/tizen_3.0/20170105.051635
jongmyeongko [Thu, 5 Jan 2017 13:12:31 +0000 (22:12 +0900)]
Fix the row deletion failure of pkgmgr db

Now, Trying to delete the empty row is always failed.

Change-Id: I979b32d85f2beb594677a3be4ae17a62d12b86cd
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoChange behavior of appinfo 69/107069/7 accepted/tizen/common/20170110.085156 accepted/tizen/ivi/20170106.103633 accepted/tizen/mobile/20170106.103416 accepted/tizen/tv/20170106.103520 accepted/tizen/wearable/20170106.103557 submit/tizen/20170105.051706
Junghyun Yeon [Mon, 26 Dec 2016 10:06:58 +0000 (19:06 +0900)]
Change behavior of appinfo

- When app disable filter has applied, code will check
app is disabled for certain user or not.
- Remove disable_for_user app filter and related values

Related changes:
[pkgmgr-tool] : https://review.tizen.org/gerrit/107098
[slp-pkgmgr] : https://review.tizen.org/gerrit/107263
[pkgmgr-server] : https://review.tizen.org/gerrit/107264

Change-Id: I887a92dbde508075a31732610502d4d401ca75e3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoChange checking status of pkg installed storage 20/108020/2
Junghyun Yeon [Mon, 2 Jan 2017 10:29:52 +0000 (19:29 +0900)]
Change checking status of pkg installed storage

- function will return ok only if given external storage path is readable
- It was changed to check existance of file due to permission issue but
now it is fixed so revert previous change

Change-Id: I629070e16bce1ba8b1ef4765b7721db9e18f1d8c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoUpdate will fail when there are no such record 82/106882/6
Junghyun Yeon [Fri, 23 Dec 2016 09:50:01 +0000 (18:50 +0900)]
Update will fail when there are no such record

- existance of record which mathes some conditions
will be checked when update transaction has happened in pkg db
- remove some useless db operation about mainappid.

Change-Id: Ifb04d9261e2067c5ecbe19505fc51c018bd12d15
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRemove unused codes 81/107981/3
Sangyoon Jang [Mon, 2 Jan 2017 06:33:08 +0000 (15:33 +0900)]
Remove unused codes

Change-Id: I40115a5b51acec3c9bd458081e127e0ef44702a5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoSeparate deprecated parser codes into another source file 63/107963/5
Sangyoon Jang [Mon, 2 Jan 2017 06:01:13 +0000 (15:01 +0900)]
Separate deprecated parser codes into another source file

Change-Id: I0145e271c8817afe8486c8516cd54acbbe705ee6
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRevert "Temporary fix for hybrid pkg installation" 36/107236/3
Sangyoon Jang [Tue, 27 Dec 2016 07:54:13 +0000 (16:54 +0900)]
Revert "Temporary fix for hybrid pkg installation"

This reverts commit 7e8901a3d5cf426a17222c3c6be87f41ef9855cc.

Conflicts:
include/pkgmgrinfo_basic.h
src/pkgmgrinfo_basic.c

Now hybrid installer can merge manifest completely.

Submit with:
 - https://review.tizen.org/gerrit/107236
 - https://review.tizen.org/gerrit/107237
 - https://review.tizen.org/gerrit/107238
 - https://review.tizen.org/gerrit/107239

Change-Id: Id6262ca978129c028ed09a4102252a03b7658c2b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix setting global flag for appinfo 55/107155/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.122029 accepted/tizen/3.0.m2/tv/20170104.122501 accepted/tizen/3.0.m2/wearable/20170104.122850 accepted/tizen/3.0/common/20161228.071608 accepted/tizen/3.0/ivi/20161228.021722 accepted/tizen/3.0/mobile/20161228.021535 accepted/tizen/3.0/tv/20161228.021633 accepted/tizen/3.0/wearable/20161228.021701 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161227.023045
Sangyoon Jang [Tue, 27 Dec 2016 03:47:17 +0000 (12:47 +0900)]
Fix setting global flag for appinfo

Change-Id: I8245d3cdc4962b6b0be8a037fe53cb273f38b089
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix wrong insert query 44/107044/2 accepted/tizen/3.0/common/20161227.181339 accepted/tizen/3.0/ivi/20161227.141651 accepted/tizen/3.0/mobile/20161227.141503 accepted/tizen/3.0/tv/20161227.141530 accepted/tizen/3.0/wearable/20161227.141629 submit/tizen_3.0/20161226.101740
Junghyun Yeon [Mon, 26 Dec 2016 08:05:05 +0000 (17:05 +0900)]
Fix wrong insert query

- fix query to work properly for package_app_info_for_uid table

Change-Id: Iaeafb8fd476c4be57bdb05b8df2c97f691bf3e67
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRemove unnecessary column in package_app_info 32/107032/2
Junghyun Yeon [Mon, 26 Dec 2016 07:29:00 +0000 (16:29 +0900)]
Remove unnecessary column in package_app_info

- Remove app_enabled column in package_app_info and related codes
- Change implementation of internal APIs to refer app_disable column

Related changes:
[app-installers] : https://review.tizen.org/gerrit/107033
[tpk-backend] : https://review.tizen.org/gerrit/107034
[wgt-backend] : https://review.tizen.org/gerrit/107035

Change-Id: I64e62a117bdbdd4451ee1979bc766a02fdeac148
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoPass empty filter when the input filter is null 57/105757/3 accepted/tizen/3.0/common/20161227.101228 accepted/tizen/3.0/ivi/20161222.024817 accepted/tizen/3.0/mobile/20161222.024650 accepted/tizen/3.0/tv/20161222.024726 accepted/tizen/3.0/wearable/20161222.024747 submit/tizen_3.0/20161221.130430
Sangyoon Jang [Mon, 19 Dec 2016 10:31:22 +0000 (19:31 +0900)]
Pass empty filter when the input filter is null

Now filtered_foreach functions do something with input filter, so the filter
should not be null.
For making more simple and imporving readabilty, create and pass filter before
calling filtered_foreach.

Change-Id: I4cc3d138900d671f80521de70faf3fab835d5d73
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix double free 85/105685/1
Hwankyu Jhun [Mon, 19 Dec 2016 08:28:29 +0000 (17:28 +0900)]
Fix double free

Change-Id: I5f6e7698482750aeb523e93d48dca02cc0b61a8b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoFix abnormal behavior of appinfo 70/104670/2 accepted/tizen/3.0/common/20161216.122442 accepted/tizen/3.0/ivi/20161216.013342 accepted/tizen/3.0/mobile/20161216.013201 accepted/tizen/3.0/tv/20161216.013249 accepted/tizen/3.0/wearable/20161216.013310 submit/tizen_3.0/20161214.072903
Junghyun Yeon [Wed, 14 Dec 2016 05:11:38 +0000 (14:11 +0900)]
Fix abnormal behavior of appinfo

- When app_disable filter is not exists in app filter,
app_disable filter will be added with 'false'
- Fix to use tmp_filter at pkginfo filter to work properly
(It was missed at previous change)

Change-Id: I847d98a24794604097dc99a83840468532f7eb9f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix a bug at pkgmgrinfo_appinfo_is_support_ambient 24/104724/1
Sangyoon Jang [Wed, 14 Dec 2016 07:19:23 +0000 (16:19 +0900)]
Fix a bug at pkgmgrinfo_appinfo_is_support_ambient

Change-Id: I4afb326b0d9ae3fbf49d72904f59f38b411ee110
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix possible double-free issue 18/103018/2 accepted/tizen/3.0/common/20161208.153348 accepted/tizen/3.0/ivi/20161208.062725 accepted/tizen/3.0/mobile/20161208.062406 accepted/tizen/3.0/tv/20161208.062550 accepted/tizen/3.0/wearable/20161208.062635 submit/tizen_3.0/20161207.072901
Junghyun Yeon [Wed, 7 Dec 2016 04:56:21 +0000 (13:56 +0900)]
Fix possible double-free issue

Change-Id: I34831c8038e1e63d75ee46e4033930fab663cb26
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoImplement support ambient feature 74/102774/5
Sangyoon Jang [Tue, 6 Dec 2016 12:16:07 +0000 (21:16 +0900)]
Implement support ambient feature

- Add inserting support ambient value into db.
- Add api getting support ambient.
- Change naming: ambient_support -> support_ambient

Change-Id: I7a7e1c7bdfdab71852ab954bf2868917a9634f79
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRemove parsing legacy splash screens 17/102617/1
Sangyoon Jang [Tue, 6 Dec 2016 07:57:09 +0000 (16:57 +0900)]
Remove parsing legacy splash screens

This is moved to app-installers.

Submit with:
 - https://review.tizen.org/gerrit/102612

Change-Id: I690eb46db37a1059ba24d87d0e8f7e6131166180
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd an exception handling 69/101569/1 accepted/tizen/3.0/common/20161203.012520 accepted/tizen/3.0/ivi/20161201.134736 accepted/tizen/3.0/mobile/20161201.134646 accepted/tizen/3.0/tv/20161201.134703 accepted/tizen/3.0/wearable/20161201.134721 submit/tizen_3.0/20161201.123639
Hwankyu Jhun [Thu, 1 Dec 2016 12:21:40 +0000 (21:21 +0900)]
Add an exception handling

- Check whether the variable is null pointer or not

Change-Id: I70a8ffeac2003e0b5e5bc0fef758688e00faa642
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoadd internal api for version comparison. 04/100304/4 accepted/tizen/3.0/common/20161203.012114 accepted/tizen/3.0/ivi/20161201.075319 accepted/tizen/3.0/mobile/20161201.075035 accepted/tizen/3.0/tv/20161201.075201 accepted/tizen/3.0/wearable/20161201.075238 submit/tizen_3.0/20161130.132739 submit/tizen_3.0/20161201.023740 submit/tizen_3.0/20161201.024602
jongmyeongko [Sat, 26 Nov 2016 00:29:28 +0000 (09:29 +0900)]
add internal api for version comparison.

Change-Id: I10cbc25ce0517856352558ba5a5de45da481c3b2
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdd filter property to retrieve external-installed app 15/100515/6
Junghyun Yeon [Mon, 28 Nov 2016 09:58:53 +0000 (18:58 +0900)]
Add filter property to retrieve external-installed app

- Functions could use new filters to retrieve app's info
which is installed externally but external storage has removed

Change-Id: I23a6e8cfc9fd5b4265f1bb28e21d08ea56590a32
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix add metadata filter value string 27/100827/1 accepted/tizen/3.0/common/20161130.065304 accepted/tizen/3.0/ivi/20161130.012622 accepted/tizen/3.0/mobile/20161130.012509 accepted/tizen/3.0/tv/20161130.012548 accepted/tizen/3.0/wearable/20161130.012605 submit/tizen_3.0/20161129.101050
Sangyoon Jang [Tue, 29 Nov 2016 10:03:00 +0000 (19:03 +0900)]
Fix add metadata filter value string

Set if valid value passed.

Change-Id: I50d0937f0500f88d477d3ab9ee49e5fe5727832e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd new functions to retrieve information of disabled package 63/99263/3 accepted/tizen/3.0/common/20161125.101758 accepted/tizen/3.0/ivi/20161125.081933 accepted/tizen/3.0/mobile/20161125.081604 accepted/tizen/3.0/tv/20161125.081748 accepted/tizen/3.0/wearable/20161125.081859 submit/tizen_3.0/20161124.130849
Junghyun Yeon [Tue, 22 Nov 2016 08:44:41 +0000 (17:44 +0900)]
Add new functions to retrieve information of disabled package

- add function pkgmgrinfo_pkginfo_get_usr_all_pkginfo function
to retrieve information of disabled packages

Change-Id: Ie4d20981ea84dcc82e61638b464689511e9e703e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoRemove unused type 55/99955/2
Sangyoon Jang [Fri, 4 Nov 2016 01:12:49 +0000 (10:12 +0900)]
Remove unused type

Change-Id: Ie164948a1d85b71af8fe5e2b2fa6b092c1da371e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoCheck if privilege is NULL before free it 62/99262/3
Bartlomiej Kunikowski [Tue, 22 Nov 2016 08:37:20 +0000 (09:37 +0100)]
Check if privilege is NULL before free it

Change-Id: Ia100e9e46d76bf261f22a057644e640ad5e632f8

7 years agoFix to merge of 'Reworking handling priviliges' commit 97/97497/4
Bartlomiej Kunikowski [Thu, 10 Nov 2016 09:53:38 +0000 (10:53 +0100)]
Fix to merge of 'Reworking handling priviliges' commit

Change-Id: Iefffd85c515ede263d0cde716da3f30ef73af990

7 years agoImplement apis getting disabled pkginfo 44/99944/2
Sangyoon Jang [Thu, 24 Nov 2016 12:21:40 +0000 (21:21 +0900)]
Implement apis getting disabled pkginfo

Added:
 - pkgmgrinfo_pkginfo_get_disabled_pkginfo
 - pkgmgrinfo_pkginfo_get_usr_disabled_pkginfo
 - pkgmgrinfo_pkginfo_get_disabled_list
 - pkgmgrinfo_pkginfo_get_usr_disabled_list

Submit with:
 - https://review.tizen.org/gerrit/99922
 - https://review.tizen.org/gerrit/99923

Change-Id: I9808cf126eb99e7043de30477043ce4bbc84facd
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoMerge "Revert "Revert "Remove pkgmgrinfo_client_xxx""" into tizen_3.0 sandbox/vbarinov/ubsan accepted/tizen/3.0/common/20161124.181946 accepted/tizen/3.0/ivi/20161124.030513 accepted/tizen/3.0/mobile/20161124.030356 accepted/tizen/3.0/tv/20161124.030427 accepted/tizen/3.0/wearable/20161124.030450 accepted/tizen/common/20161125.095255 accepted/tizen/ivi/20161125.004208 accepted/tizen/mobile/20161125.003700 accepted/tizen/tv/20161125.003927 accepted/tizen/wearable/20161125.004049 submit/tizen/20161124.000829 submit/tizen_3.0/20161123.114701
jongmyeong ko [Wed, 23 Nov 2016 11:44:18 +0000 (03:44 -0800)]
Merge "Revert "Revert "Remove pkgmgrinfo_client_xxx""" into tizen_3.0

7 years agoRevert "Revert "Remove pkgmgrinfo_client_xxx"" 34/99434/1
Sangyoon Jang [Wed, 23 Nov 2016 01:51:49 +0000 (10:51 +0900)]
Revert "Revert "Remove pkgmgrinfo_client_xxx""

This reverts commit d07f19b2c43fdd099dd028b5dfdc83e4469927af.

Conflicts:
CMakeLists.txt

Change-Id: I19a43692af29c8e7249c4615b5fd9e526c47788b

7 years agoFix abnormal behavior of pkginfo functions 56/98656/3
Junghyun Yeon [Fri, 18 Nov 2016 06:28:09 +0000 (15:28 +0900)]
Fix abnormal behavior of pkginfo functions

- If package_disable filter has applied
  hen retrieving pkg info, it will be used.
- Otherwise, package_disable='false' filter will
  be applied automatically

Change-Id: Ia4a76bf34109ec8470d58b29ce038d9d92677622
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd types for pkg/app support mode 45/98045/5
Junghyun Yeon [Wed, 16 Nov 2016 04:41:46 +0000 (13:41 +0900)]
Add types for pkg/app support mode

- Add string types for pkg/app support mode
- Add comment about OR-ing of support mode.
  db column which is for pkg/app support mode should
  store support mode of itself.

Change-Id: I2d6b20f3ca67ed26e0ec9971f8a9e751f7b445b8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoadd considering global app to get label info 16/98116/2 accepted/tizen/3.0/common/20161118.193023 accepted/tizen/3.0/ivi/20161118.004201 accepted/tizen/3.0/mobile/20161118.004049 accepted/tizen/3.0/tv/20161118.004117 accepted/tizen/3.0/wearable/20161118.004140 submit/tizen_3.0/20161117.054138
jongmyeongko [Wed, 16 Nov 2016 07:25:05 +0000 (16:25 +0900)]
add considering global app to get label info

Change-Id: Ic981a1f4aca462c4c99b912aff68ec28e4d98188
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix static analysis problem 08/98308/2
Junghyun Yeon [Thu, 17 Nov 2016 04:31:40 +0000 (13:31 +0900)]
Fix static analysis problem

Change-Id: I97500ba53de09e83905e0fbc385e631cdcac28c4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoMove internal headers to src directory 37/98037/5
Sangyoon Jang [Wed, 16 Nov 2016 02:40:53 +0000 (11:40 +0900)]
Move internal headers to src directory

Change-Id: I68181ae1eba05f0c1463c6367c949d9d01d3faa7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoChange column name defined in query 32/98132/1 accepted/tizen/3.0/common/20161117.090614 accepted/tizen/3.0/ivi/20161117.083423 accepted/tizen/3.0/mobile/20161117.083328 accepted/tizen/3.0/tv/20161117.083341 accepted/tizen/3.0/wearable/20161117.083405 submit/tizen_3.0/20161116.081158
Junghyun Yeon [Wed, 16 Nov 2016 07:56:39 +0000 (16:56 +0900)]
Change column name defined in query

- Change wrong column name

Change-Id: Ib45510caa14d17664358e84a3adf6e1fddbe94d3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoImplement support_mode related feature 08/97508/3 accepted/tizen/3.0/common/20161116.143515 accepted/tizen/3.0/ivi/20161116.022242 accepted/tizen/3.0/mobile/20161116.022021 accepted/tizen/3.0/tv/20161116.022125 accepted/tizen/3.0/wearable/20161116.022204 submit/tizen_3.0/20161115.024443
Junghyun Yeon [Mon, 14 Nov 2016 10:14:41 +0000 (19:14 +0900)]
Implement support_mode related feature

Related changes:
[app-installers] : https://review.tizen.org/gerrit/97702
[tpk-manifest-handlers] : https://review.tizen.org/gerrit/97699

Change-Id: Iff9193028a773161c3a09a63dd8508c3ca5fdaff
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix coding rules 01/97901/1
Junghyun Yeon [Tue, 15 Nov 2016 08:53:39 +0000 (17:53 +0900)]
Fix coding rules

Change-Id: Ie777703854533a13c216cdf0087aa4169c054050
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoImplement pkgmgr_parser_update_app_label_info_in_db for app label change 48/97348/2
Junghyun Yeon [Mon, 14 Nov 2016 02:42:03 +0000 (11:42 +0900)]
Implement pkgmgr_parser_update_app_label_info_in_db for app label change

Change-Id: I33e506cd698189812c59783cf9cd25acc5ffb8ec
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix checking installed storage 98/97298/2 accepted/tizen/3.0/common/20161115.184604 accepted/tizen/3.0/ivi/20161114.070005 accepted/tizen/3.0/mobile/20161114.065857 accepted/tizen/3.0/tv/20161114.065920 accepted/tizen/3.0/wearable/20161114.065945 submit/tizen_3.0/20161113.234301
Hwankyu Jhun [Sun, 13 Nov 2016 22:50:40 +0000 (07:50 +0900)]
Fix checking installed storage

- Use F_OK option instead of R_OK option

Change-Id: Ic2960c710348657c017d84e2e5a721a383e2208e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agomake it to extendible structure for adding sources and headers 90/97090/3 accepted/tizen/3.0/common/20161114.143107 accepted/tizen/3.0/ivi/20161114.002550 accepted/tizen/3.0/mobile/20161114.002420 accepted/tizen/3.0/tv/20161114.002459 accepted/tizen/3.0/wearable/20161114.002523 submit/tizen_3.0/20161111.080112 submit/tizen_3.0_common/20161114.081136
jongmyeongko [Fri, 11 Nov 2016 06:33:10 +0000 (15:33 +0900)]
make it to extendible structure for adding sources and headers

Change-Id: I0366020a10cc84676a36177dd2eea5ccbcc9535c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoconsider an extra icon_path for only RO package 82/97182/1
jongmyeongko [Fri, 11 Nov 2016 10:17:38 +0000 (19:17 +0900)]
consider an extra icon_path for only RO package

Change-Id: Idbaa8b26f5c3440d3753ae1612fd1745c1e589ec
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoadd db column and APIs for app info 77/95077/3 accepted/tizen/3.0/common/20161114.082340 accepted/tizen/3.0/ivi/20161110.015558 accepted/tizen/3.0/mobile/20161110.015341 accepted/tizen/3.0/tv/20161110.015436 accepted/tizen/3.0/wearable/20161110.015529 submit/tizen_3.0/20161107.133644 submit/tizen_3.0_common/20161110.084657
Junghyun Yeon [Wed, 2 Nov 2016 08:32:59 +0000 (17:32 +0900)]
add db column and APIs for app info

add internal APIs below and related db columns
- pkgmgrinfo_appinfo_get_installed_time
- pkgmgrinfo_appinfo_is_system
- pkgmgrinfo_appinfo_is_removable

Change-Id: I6406a44b9e0c306e708f920600360d1feb02b63f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoapp query will check package disable 99/94199/4
Junghyun Yeon [Thu, 27 Oct 2016 11:23:27 +0000 (20:23 +0900)]
app query will check package disable

Change-Id: Ia015094e44f571d7a23e2bb1b5e98ccc03f20204
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoReworking handling privileges for hybrid application 40/90540/6
Tomasz Iwanek [Thu, 29 Sep 2016 13:49:00 +0000 (15:49 +0200)]
Reworking handling privileges for hybrid application

This patch keeps single list of privileges (stored in
manifest_x) and filters privileges when registring
security rules of applications. Following changed:
 - generated platform manifest xml contains <privilege>
   tags with 'type' atttibute set to 'tpk' or 'wgt',
 - in case of absence of attribute, its default value
   is 'tpk',
 - manifest_x changes privilege type from GList of char*
   to GList of privilege_x. Structure named 'privilege_x'
   contain parsed privilege type,
 - although there is one privilege list, given the fact
   that privilege now have type, native and web privileges
   should be registered in native or web apps only.

Verification:
 - no regression in tpk/wgt smoke tests,
 - install hybrid app with native and web privileges
   and check generated manifest file for privileges,
 - install web app with privileges and check generated
   manifest file,
 - install web app without privileges and check generated
   manifest file -> default privileges should be added.

Submit together:
 - https://review.tizen.org/gerrit/#/c/90540/
 - https://review.tizen.org/gerrit/#/c/90543/
 - https://review.tizen.org/gerrit/#/c/90544/
 - https://review.tizen.org/gerrit/#/c/90546/
 - https://review.tizen.org/gerrit/#/c/90561/

Change-Id: I901d61800251519a48327a0ea2b6400d20dfe2f7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoRevert "Remove pkgmgrinfo_client_xxx" 18/95518/2
jongmyeong ko [Thu, 3 Nov 2016 12:07:37 +0000 (05:07 -0700)]
Revert "Remove pkgmgrinfo_client_xxx"

This reverts commit fa975ef3f8d817b608292dc418ff07e6955d6eb3.

Change-Id: Ibeec1eddd6b197032496a78f306f2bfdc365a84f

8 years agoAdd external_path column and change function related with it 72/91972/6 submit/tizen/20161102.115555
Junghyun Yeon [Wed, 12 Oct 2016 10:49:41 +0000 (19:49 +0900)]
Add external_path column and change function related with it

- Add external_path column at package_info table
to store loopback device path when pkg has moved into
external storage

Change-Id: I31b9402bbcf96c5ff45b89640561aa5e7c22505a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoRemove pkgmgrinfo_client_xxx 35/94535/2
Sangyoon Jang [Mon, 31 Oct 2016 10:06:33 +0000 (19:06 +0900)]
Remove pkgmgrinfo_client_xxx

These apis can be replaced with pkgmgr_client_xxx.

Change-Id: I974c7abf22445dc986a71f2cafb10c14459ae975
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix getting privilege query 78/93478/2
Sangyoon Jang [Mon, 24 Oct 2016 11:23:39 +0000 (20:23 +0900)]
Fix getting privilege query

Remove duplicates.

Change-Id: I4c0412f284091152e2f1af005f87743b8428f674
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoAdd md_key column into unique constraint on package_app_app_metadata table 58/94058/1
Junghyun Yeon [Thu, 27 Oct 2016 04:46:42 +0000 (13:46 +0900)]
Add md_key column into unique constraint on package_app_app_metadata table

Change-Id: I0e94a8e2910db95a7b5453381a53e1de1debb67c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoTemporary fix for hybrid pkg installation 84/92584/3 accepted/tizen/3.0/ivi/20161028.123004 accepted/tizen/3.0/mobile/20161028.122253 accepted/tizen/3.0/tv/20161028.122551 accepted/tizen/3.0/wearable/20161028.122807 accepted/tizen/common/20161017.170521 accepted/tizen/ivi/20161018.091321 accepted/tizen/mobile/20161018.091223 accepted/tizen/tv/20161018.091253 accepted/tizen/wearable/20161018.091308 submit/tizen/20161017.122727 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082323 submit/tizen_3.0_common/20161104.104000
Sangyoon Jang [Mon, 17 Oct 2016 11:50:46 +0000 (20:50 +0900)]
Temporary fix for hybrid pkg installation

Submit together:
 - https://review.tizen.org/gerrit/92582
 - https://review.tizen.org/gerrit/92583
 - https://review.tizen.org/gerrit/92585

Change-Id: Ic90added323afd9d1a2e00490800bb595a8f6ec1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix parser-devel dependency 53/89153/2
Slava Barinov [Thu, 22 Sep 2016 12:07:35 +0000 (15:07 +0300)]
Fix parser-devel dependency

Change-Id: Icb02131de3bc1916134ab07701da6b31e6e46436
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
8 years agoRemove unused parameter 30/90930/2 accepted/tizen/3.0/ivi/20161011.062236 accepted/tizen/3.0/mobile/20161015.034107 accepted/tizen/3.0/tv/20161016.005633 accepted/tizen/3.0/wearable/20161015.083951 accepted/tizen/common/20161006.153957 accepted/tizen/ivi/20161006.232917 accepted/tizen/mobile/20161006.232808 accepted/tizen/tv/20161006.232843 accepted/tizen/wearable/20161006.232903 submit/tizen/20161006.094717 submit/tizen_3.0_ivi/20161010.000006 submit/tizen_3.0_mobile/20161015.000006 submit/tizen_3.0_tv/20161015.000005 submit/tizen_3.0_wearable/20161015.000005
Junghyun Yeon [Wed, 5 Oct 2016 04:23:27 +0000 (13:23 +0900)]
Remove unused parameter

Related change:
[app-installers] https://review.tizen.org/gerrit/#/c/90929/

Change-Id: I651b0871e0694710f11893481cf80ad3be8249ad
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix some getters 89/87189/2 accepted/tizen/common/20160907.154524 accepted/tizen/ivi/20160908.042746 accepted/tizen/mobile/20160908.042626 accepted/tizen/tv/20160908.042656 accepted/tizen/wearable/20160908.042721 submit/tizen/20160907.052821
Sangyoon Jang [Wed, 7 Sep 2016 01:34:09 +0000 (10:34 +0900)]
Fix some getters

Just return const string(empty string) instead of modifying handle.

Change-Id: Iea592afea9bb5e7f73af0392ef9d33dcf76c1452
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoAdd installed_storage to appinfo filter 76/84476/2 accepted/tizen/common/20160829.135826 accepted/tizen/common/20160830.150115 accepted/tizen/ivi/20160830.061203 accepted/tizen/mobile/20160830.060924 accepted/tizen/tv/20160830.061029 accepted/tizen/wearable/20160830.061117 submit/tizen/20160829.010716 submit/tizen/20160830.010724
Junghyun Yeon [Fri, 19 Aug 2016 01:52:24 +0000 (10:52 +0900)]
Add installed_storage to appinfo filter

Change-Id: Idbf3a84a85d3a44df9710d4f62ff66def1bf0aeb
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoAllow user 'app_fw' to create pkgmgr_parser.db 57/84457/2
Tomasz Iwanek [Thu, 18 Aug 2016 14:45:53 +0000 (16:45 +0200)]
Allow user 'app_fw' to create pkgmgr_parser.db

Change-Id: I0036baf2e68b039d2512135f1d9a9df3066c22f7

8 years agoFix package query 40/83340/1 accepted/tizen/common/20160811.145557 accepted/tizen/ivi/20160811.002613 accepted/tizen/mobile/20160811.002551 accepted/tizen/tv/20160811.002604 accepted/tizen/wearable/20160811.003000 submit/tizen/20160810.074113
Sangyoon Jang [Wed, 10 Aug 2016 07:36:45 +0000 (16:36 +0900)]
Fix package query

Change-Id: I688a8294adadc9298911325be55194f339bd82b8
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoSet default operation for legacy splash screen 57/83257/1 accepted/tizen/common/20160810.161617 accepted/tizen/ivi/20160810.081805 accepted/tizen/mobile/20160810.081652 accepted/tizen/tv/20160810.081708 accepted/tizen/wearable/20160810.081735 submit/tizen/20160810.000849
Hwankyu Jhun [Wed, 10 Aug 2016 00:31:22 +0000 (09:31 +0900)]
Set default operation for legacy splash screen

Change-Id: I1d2ada089af222a79b27cbdadbb9027a5891dc92
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix splash screen table 62/82862/3
Hwankyu Jhun [Mon, 8 Aug 2016 07:46:15 +0000 (16:46 +0900)]
Fix splash screen table

- Requires
https://review.tizen.org/gerrit/82860

Change-Id: I77dabea3066bc874809562ac925cdbab5db9fb7f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix pkg getting query to do it once if possible 86/82286/11 accepted/tizen/common/20160809.183916 accepted/tizen/ivi/20160809.232606 accepted/tizen/mobile/20160809.232336 accepted/tizen/tv/20160809.232455 accepted/tizen/wearable/20160809.232701 submit/tizen/20160809.011327 submit/tizen/20160809.051427
Junghyun Yeon [Tue, 2 Aug 2016 11:15:32 +0000 (20:15 +0900)]
Fix pkg getting query to do it once if possible

- Fix query for getting pkginfo to get as many information as possible at once
- Retrieve icon,label,description information only one.

Change-Id: Ib455a5d7ef4530e3118d348109039933e687fbf5
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoremove some internal api (not-used and not-support) 06/76806/7
jongmyeongko [Fri, 24 Jun 2016 10:46:18 +0000 (19:46 +0900)]
remove some internal api (not-used and not-support)

Submit with:
        https://review.tizen.org/gerrit/#/c/79978/

Change-Id: I7372d89974617bc3ceb869b91fb67d6b0863e4fd
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoremove getting TZ_USER_ICONS path 85/74485/13
jongmyeongko [Tue, 14 Jun 2016 02:35:01 +0000 (11:35 +0900)]
remove getting TZ_USER_ICONS path

for removing TZ_USER_ICONS

Submit with:
https://review.tizen.org/gerrit/#/c/74482/

Change-Id: I81cd19ccdccddef237514a0081bae11d26d75b63
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoChange user db path 22/81322/6
Hwankyu Jhun [Mon, 25 Jul 2016 12:05:32 +0000 (21:05 +0900)]
Change user db path

The user db path is changed to "/opt/dbspace/user/<uid>/".

Change-Id: I771705c9125512138ed0191ad60d173157ad517e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix unexpected unique constraint on package_app_splash_screen 54/82654/4
Junghyun Yeon [Fri, 5 Aug 2016 02:21:18 +0000 (11:21 +0900)]
Fix unexpected unique constraint on package_app_splash_screen

- operation column will be part of primary key
  of package_app_splash_screen

Change-Id: I6a128c89586e513ae4f224709a04aa2e154eac2f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix coding style 36/82436/1
Junghyun Yeon [Wed, 3 Aug 2016 10:02:14 +0000 (19:02 +0900)]
Fix coding style

Change-Id: Ie2187e207e27b15a168faea9e2c713a32a37a7e3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoAppwidget's metadata tag and max-instance in manifest.xsd schema 96/81496/4 accepted/tizen/common/20160803.193206 accepted/tizen/ivi/20160804.080757 accepted/tizen/mobile/20160804.080848 accepted/tizen/tv/20160804.080714 accepted/tizen/wearable/20160804.080539 submit/tizen/20160803.012753
Tomasz Iwanek [Tue, 26 Jul 2016 12:33:20 +0000 (14:33 +0200)]
Appwidget's metadata tag and max-instance in manifest.xsd schema

Change-Id: I0e235b44d490744febc2ffe628fabf2c3bea0d31

8 years agoRemove unused static function 26/82226/2
Sangyoon Jang [Tue, 2 Aug 2016 05:42:33 +0000 (14:42 +0900)]
Remove unused static function

Change-Id: I5a6584993e02b8dce933769f4ed9ee868d081022
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRemove unused apis 22/82222/3
Sangyoon Jang [Tue, 2 Aug 2016 05:22:25 +0000 (14:22 +0900)]
Remove unused apis

Removed:
 pkgmgrinfo_pkginfo_get_total_size
 pkgmgrinfo_pkginfo_get_data_size
 pkgmgrinfo_pkginfo_get_size_from_xml
 pkgmgrinfo_pkginfo_get_location_from_xml

libxml dependency is removed from pkgmgr-info.

Change-Id: I46b9c98379ca909e205a34a76583b2960f77966b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix a bug on inserting localized info 80/81480/3
Sangyoon Jang [Tue, 26 Jul 2016 11:29:58 +0000 (20:29 +0900)]
Fix a bug on inserting localized info

Change-Id: I688cbfab869997caf76c7f6c133b896c26ce9c40
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoImplement functions for pkg enable/disable 82/79682/4 accepted/tizen/common/20160719.171839 accepted/tizen/ivi/20160718.104409 accepted/tizen/mobile/20160718.104256 accepted/tizen/tv/20160718.104147 accepted/tizen/wearable/20160718.104314 submit/tizen/20160718.020809
Junghyun Yeon [Tue, 12 Jul 2016 09:48:31 +0000 (18:48 +0900)]
Implement functions for pkg enable/disable

Related changes
[pkgmgr-tool] https://review.tizen.org/gerrit/78916
[slp-pkgmgr] https://review.tizen.org/gerrit/78917
[pkgmgr-server] https://review.tizen.org/gerrit/78918
[app-installers] https://review.tizen.org/gerrit/78919
[tpk-backend] https://review.tizen.org/gerrit/#/c/79070/

Change-Id: I70d8108c76e2062eed4c081fc35a35c105b47901
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix returning empty value on getter 24/78424/4
Sangyoon Jang [Tue, 5 Jul 2016 11:36:52 +0000 (20:36 +0900)]
Fix returning empty value on getter

Change-Id: I8e23937b0f455a2a140ee84930739670241f910c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix logic of pkgmgrinfo_save_cert_info 95/78595/1
Sangyoon Jang [Tue, 5 Jul 2016 08:58:30 +0000 (17:58 +0900)]
Fix logic of pkgmgrinfo_save_cert_info

pkgmgrinfo_save_cert_info now increasing package count(added)
when calling with same pkgid instead of overriding cert info.
Normally overriding cert info is not allowed behavior, it used to
running TCT or testing by inhouse developer.

Change-Id: I648066ae3cfe89888cfd9dad3e8a6a24886883cd
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoDon't delete certinfo when delete manifest info 94/78594/1
Sangyoon Jang [Tue, 5 Jul 2016 07:00:30 +0000 (16:00 +0900)]
Don't delete certinfo when delete manifest info

Cert info should be deleted by installer explicitly.
But, for consistency, delete certinfo when calling old(deprecated) apis.

Change-Id: Ieca6b88d7ba3d78a719f2ef1fceb39c381d8cbc9
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix __find_icon 13/78413/2 accepted/tizen/common/20160706.141900 accepted/tizen/ivi/20160706.014246 accepted/tizen/mobile/20160706.014208 accepted/tizen/tv/20160706.014222 accepted/tizen/wearable/20160706.014234 submit/tizen/20160705.114429
Sangyoon Jang [Tue, 5 Jul 2016 11:04:07 +0000 (20:04 +0900)]
Fix __find_icon

Don't return NULL when getting screen dpi failed.

Change-Id: If0178acb3ae9f57127f44f089eac0bcde6461270
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRemove unnecessary code 65/77365/1 accepted/tizen/common/20160706.141400 accepted/tizen/ivi/20160705.044601 accepted/tizen/mobile/20160705.044434 accepted/tizen/tv/20160705.044545 accepted/tizen/wearable/20160705.044458 submit/tizen/20160704.042542
Sangyoon Jang [Wed, 29 Jun 2016 11:46:55 +0000 (20:46 +0900)]
Remove unnecessary code

Cert info will be stored by installer.

Change-Id: Ia41bfa97201bd9588ae45ecea47a9c6f1d292867
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix exceptions about splash screen 91/76491/1 accepted/tizen/common/20160703.125759 accepted/tizen/ivi/20160629.015657 accepted/tizen/mobile/20160629.015615 accepted/tizen/tv/20160629.015729 accepted/tizen/wearable/20160629.015535 submit/tizen/20160627.042541 submit/tizen_common/20160701.180000
Hwankyu Jhun [Fri, 24 Jun 2016 05:46:37 +0000 (14:46 +0900)]
Fix exceptions about splash screen

The index() returns NULL pointer if the character is not found.

Change-Id: I0835cd80f6f10c5c565cc71ad4a9cd2a285dd09c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agofor consistent result of memtadata value (NULL -> empty) 56/76356/1 accepted/tizen/common/20160627.191558 accepted/tizen/ivi/20160624.063928 accepted/tizen/mobile/20160624.063511 accepted/tizen/tv/20160624.063549 accepted/tizen/wearable/20160624.063817 submit/tizen/20160623.103205
jongmyeongko [Thu, 23 Jun 2016 12:29:37 +0000 (21:29 +0900)]
for consistent result of memtadata value (NULL -> empty)

Change-Id: Ife8046037f48eb8894af61f15fcc84d7a28ebbf3
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agokeep consistent results(empty) of {NULL} values of pkgmgr db. 04/76204/3
jongmyeongko [Thu, 23 Jun 2016 06:30:58 +0000 (15:30 +0900)]
keep consistent results(empty) of {NULL} values of pkgmgr db.

Change-Id: I003b111eaf4aaeaacbba42a46e84827b7f6cba65
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agofix static analysis defect 30/75730/1 accepted/tizen/common/20160621.184520 accepted/tizen/ivi/20160622.093650 accepted/tizen/mobile/20160622.093541 accepted/tizen/tv/20160622.093609 accepted/tizen/wearable/20160622.093629 submit/tizen/20160621.063045
jongmyeongko [Tue, 21 Jun 2016 07:19:05 +0000 (16:19 +0900)]
fix static analysis defect

Change-Id: I3329d2832890ef23f427fd6db76ec47922b316aa
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoRevert "Revert "change functions to constructing queries from snprintf to sqlite3_snp... 15/75215/4
Junghyun Yeon [Fri, 17 Jun 2016 05:38:51 +0000 (22:38 -0700)]
Revert "Revert "change functions to constructing queries from snprintf to sqlite3_snprintf""

This reverts commit dc98f879929b7469da98dfeecc2380bda2c08926.

Change-Id: I75cfea79b4995d5295fb4fa2cbac3f27226002a9

8 years agoRevert "Remove tep update API" 45/74045/3
Tomasz Iwanek [Fri, 10 Jun 2016 12:23:27 +0000 (14:23 +0200)]
Revert "Remove tep update API"

This reverts commit 729210e8f340c0c2d899de09221e1dc08f34668b.

API will be used for move request where we need to update only
tep location and nothing more.

Change-Id: I933de75fad3db847db376d1d112be463985df9bd

8 years agofix issues 69/74969/4 accepted/tizen/common/20160620.163200 accepted/tizen/ivi/20160617.083714 accepted/tizen/mobile/20160617.083835 accepted/tizen/tv/20160617.083602 accepted/tizen/wearable/20160617.083917 submit/tizen/20160616.235341
Junghyun Yeon [Thu, 16 Jun 2016 07:32:01 +0000 (16:32 +0900)]
fix issues

- adjust enum value of appinfo filter property
- fix compare routine for splash screen to compare properly
- add error check routine for OOM
- add missed parameter for log

Change-Id: I884990e3cea253ed21d6940b98b2d3087cc43fce
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoRevert "change functions to constructing queries from snprintf to sqlite3_snprintf" 91/74591/1
Junghyun Yeon [Wed, 15 Jun 2016 01:36:33 +0000 (18:36 -0700)]
Revert "change functions to constructing queries from snprintf to sqlite3_snprintf"

This reverts commit 5078b712aa430fd7d5d8b358747f5894f31ecbd3.

Change-Id: I5e84539399562124fe1ac764ba19e90687873e97

8 years agochange functions to constructing queries from snprintf to sqlite3_snprintf 36/72936/8 submit/tizen/20160615.004118
Junghyun Yeon [Fri, 3 Jun 2016 07:02:52 +0000 (16:02 +0900)]
change functions to constructing queries from snprintf to sqlite3_snprintf

- constructing queries using snprintf
has weakness for sql injection so change it into sqlite_snprintf
- sqlite3_snprintf will prevent storing null string as "(null)"
or ''
- add "NOT NULL" constraint which column store true/false value

Change-Id: I07e4aa85628692fb464797e8453cd635de132283
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix issues 31/74131/1 accepted/tizen/common/20160614.143823 accepted/tizen/ivi/20160614.042623 accepted/tizen/mobile/20160614.041621 accepted/tizen/tv/20160614.041613 accepted/tizen/wearable/20160614.042139 submit/tizen/20160614.004549
Junghyun Yeon [Mon, 13 Jun 2016 02:48:08 +0000 (11:48 +0900)]
Fix issues

- replace strtok into strtok_r for thread-safe
- supress build warning

Change-Id: I1b4f390fa0ec5e0d4c9cf69c1c47e251f0aec357
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoretrieve tep_name for app_info handle 16/73716/2
jongmyeongko [Thu, 9 Jun 2016 08:42:05 +0000 (17:42 +0900)]
retrieve tep_name for app_info handle

Change-Id: I64aa39ddc7cfdf3dc283e70d1fd30be422b808ba
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoPrevent race condition attack 54/73454/4
Sangyoon Jang [Wed, 8 Jun 2016 07:14:21 +0000 (16:14 +0900)]
Prevent race condition attack

Use fchown, fchmod instead of chown, chmod.

Change-Id: I8b2e0a5a2a4df5171d67df46faff5d7841015487
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agofix to return -1 when cert value is not exists 46/73446/2 accepted/tizen/common/20160610.175843 accepted/tizen/ivi/20160609.091403 accepted/tizen/mobile/20160609.091537 accepted/tizen/tv/20160609.091340 accepted/tizen/wearable/20160609.091314 submit/tizen/20160609.010102
Junghyun Yeon [Wed, 8 Jun 2016 06:53:55 +0000 (15:53 +0900)]
fix to return -1 when cert value is not exists

Change-Id: Ibceae46f3385d8e7fd4eeeeb5d5958047dd92078
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoRetrieve app_zip_mount_file 48/73448/1
Sangyoon Jang [Wed, 8 Jun 2016 06:55:08 +0000 (15:55 +0900)]
Retrieve app_zip_mount_file

Change-Id: I9713a3652d3facb7741468d3bc44b0503664105a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoCheck existance of cert info with given pkgid before compare it. 77/72177/6 accepted/tizen/common/20160608.160006 accepted/tizen/ivi/20160608.083949 accepted/tizen/mobile/20160608.083913 accepted/tizen/tv/20160608.083946 accepted/tizen/wearable/20160608.083923 submit/tizen/20160607.231554
Junghyun Yeon [Tue, 31 May 2016 05:41:33 +0000 (14:41 +0900)]
Check existance of cert info with given pkgid before compare it.

Codes are added to check existance of cert info for given 2 pkgids
before retrieve cert info and compare it.

Change-Id: Ibf56dad3997838e7dbcfde473344a1442b18624e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoAdd missing dependency 96/73296/4 accepted/tizen/common/20160607.194647 accepted/tizen/ivi/20160607.235330 accepted/tizen/mobile/20160607.235302 accepted/tizen/tv/20160607.235321 accepted/tizen/wearable/20160607.235312 submit/tizen/20160607.082137
Sangyoon Jang [Tue, 7 Jun 2016 10:54:25 +0000 (19:54 +0900)]
Add missing dependency

libsmack is required for parser lib. (using smack_setlabel())

Change-Id: I26484db752120f8fec0205826886b07a32b7c25b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix to check existance of zip mount file info 05/73205/2
Junghyun Yeon [Tue, 7 Jun 2016 07:17:23 +0000 (16:17 +0900)]
Fix to check existance of zip mount file info

Change-Id: I3120f2e4b8a314d4e4817603dcd2f29e61f330af
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix _get_filtered_query 80/72980/1
Sangyoon Jang [Fri, 3 Jun 2016 10:23:08 +0000 (19:23 +0900)]
Fix _get_filtered_query

Change-Id: I2df0e576c929d6cfd9aaab98ab86a6f44d1695c6
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoadd db file versioning codes 74/67074/6
Junghyun Yeon [Mon, 25 Apr 2016 05:22:03 +0000 (14:22 +0900)]
add db file versioning codes

db version will be added with integer format.
minor version and patch version can be 2 digits each.

Change-Id: Ia35a3874ba1178c2d882d76e439a336e06260a69
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agochange log type when failed to open db while getting package info 90/72890/2
Junghyun Yeon [Fri, 3 Jun 2016 02:01:05 +0000 (11:01 +0900)]
change log type when failed to open db while getting package info

Change-Id: I3ebffa229cacf500d16ce3e01ef537c0593d458d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoremove api for enabling external pkg. 25/72825/1
jongmyeongko [Thu, 2 Jun 2016 02:44:27 +0000 (11:44 +0900)]
remove api for enabling external pkg.

Change-Id: Ie49a3d4307a4b123134e0343f746dc1449cc4e54
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoparameter binding will not work when filter is null 03/72403/2 accepted/tizen/common/20160602.140041 accepted/tizen/ivi/20160602.022846 accepted/tizen/mobile/20160602.023019 accepted/tizen/tv/20160602.022547 accepted/tizen/wearable/20160602.022733 submit/tizen/20160531.024853
Junghyun Yeon [Wed, 1 Jun 2016 00:03:11 +0000 (09:03 +0900)]
parameter binding will not work when filter is null

When there are no parameters to binded,
Binding parameter will not work

Change-Id: Ie05e3d20fb3ec70220ecf0ca032d313bbd921404
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix pkgmgr pkginfo issues 31/72231/1
Junghyun Yeon [Tue, 31 May 2016 08:10:43 +0000 (17:10 +0900)]
Fix pkgmgr pkginfo issues

- When given filter is null, create new one to add
  pkg_disable clause
- Suppress build warnings

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

8 years agoFix some log level at certinfo 52/71752/3
Sangyoon Jang [Fri, 27 May 2016 04:13:17 +0000 (13:13 +0900)]
Fix some log level at certinfo

Change log level LOGE(error) to LOGI(info)

Change-Id: I65c9f4ce2298d0f5162eaa95acfc3e27a783ddfd
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agofix wrong db command 65/71965/2
Junghyun Yeon [Mon, 30 May 2016 02:44:11 +0000 (11:44 +0900)]
fix wrong db command

Change-Id: I11f7c03310042ed80486b06d98c1f55a149f7dfc
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agofix issues on pkgmgr-info 19/70719/16
Junghyun Yeon [Fri, 20 May 2016 08:04:44 +0000 (17:04 +0900)]
fix issues on pkgmgr-info

- move package_disable condition to end to
  not to retrieve unnecessary data
- fix to add locale when package_app_localized_info table
  has joined with package_app_info while getting appinfo
- fix to use sqlite3_bind_* instead of snprintf to prevent
  sql injection attack
- fix wrong flag when package_app_app_category
  filter has applied

Change-Id: I8ec2a80307f28976790ae44d6b15c0b7606d5b56
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoImprove query performance 76/61276/26 submit/tizen/20160524.073932
Sangyoon Jang [Mon, 7 Mar 2016 06:29:05 +0000 (15:29 +0900)]
Improve query performance

Add api:
 - pkgmgrinfo_appinfo_get_installed_list_full
 - pkgmgrinfo_appinfo_get_usr_installed_list_full
 - pkgmgrinfo_pkginfo_get_list_full
 - pkgmgrinfo_pkginfo_get_usr_list_full

Removed:
 - pkgmgrinfo_appinfo_get_applist_for_amd
 - pkgmgrinfo_appinfo_get_usr_applist_for_amd

Modify existing apis and added new expandable apis for improve
performance without redundant api.

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