platform/core/appfw/pkgmgr-server.git
7 years agoFix possible memory leak 05/107905/2 accepted/tizen/3.0/common/20170109.083951 accepted/tizen/3.0/ivi/20170106.095020 accepted/tizen/3.0/mobile/20170106.094837 accepted/tizen/3.0/tv/20170106.094921 accepted/tizen/3.0/wearable/20170106.094949 accepted/tizen/common/20170110.085240 accepted/tizen/ivi/20170106.103658 accepted/tizen/mobile/20170106.103459 accepted/tizen/tv/20170106.103543 accepted/tizen/wearable/20170106.103621 submit/tizen/20170105.051706 submit/tizen_3.0/20170105.051635
Junghyun Yeon [Mon, 2 Jan 2017 00:08:52 +0000 (09:08 +0900)]
Fix possible memory leak

Change-Id: I63fddbec9b75149b1b65ab9f8ad6993e52bde472
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoChange signal type when disabling app for certain user 64/107264/3
Junghyun Yeon [Tue, 27 Dec 2016 08:53:08 +0000 (17:53 +0900)]
Change signal type when disabling app for certain user

- Server will send disable_app/enable_app when disable/enable
global app for certain uid

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

Change-Id: I9b00ebb7f943740287b123c398b67b573be8c7f7
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdjust to change of pkg_cleardata interface 49/108349/2
Sangyoon Jang [Wed, 4 Jan 2017 06:27:20 +0000 (15:27 +0900)]
Adjust to change of pkg_cleardata interface

Submit together:
 - https://review.tizen.org/gerrit/108352

Change-Id: Id20f7c3362a7d12c7f2f565b9533879a8f659174
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix queue_job 37/108137/2
Sangyoon Jang [Tue, 3 Jan 2017 06:24:29 +0000 (15:24 +0900)]
Fix queue_job

When multiple job queued and some job failed, the server cannot process
next job because queue_job() never invoked.

Return TRUE to continue invoking queue_job() until no job available.

Change-Id: I207ced8359ea177233c6d637b94ac6277a0a175c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoMerge "Pass adjusted file path to backend" into tizen_3.0 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.121607 accepted/tizen/3.0.m2/tv/20170104.122342 accepted/tizen/3.0.m2/wearable/20170104.122723 accepted/tizen/3.0/common/20161228.071550 accepted/tizen/3.0/ivi/20161226.030309 accepted/tizen/3.0/mobile/20161226.030144 accepted/tizen/3.0/tv/20161226.030215 accepted/tizen/3.0/wearable/20161226.030241 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161223.043050
Sangyoon Jang [Fri, 23 Dec 2016 05:17:05 +0000 (21:17 -0800)]
Merge "Pass adjusted file path to backend" into tizen_3.0

7 years agoPass adjusted file path to backend 73/106773/3
Sangyoon Jang [Fri, 23 Dec 2016 02:53:22 +0000 (11:53 +0900)]
Pass adjusted file path to backend

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

Change-Id: Iff9755081a5d8031395c031bc684d07d7a288cbc
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoChange bin file to be executed 86/106486/2
Junghyun Yeon [Thu, 22 Dec 2016 01:26:10 +0000 (10:26 +0900)]
Change bin file to be executed

- pkg_clearcache is replced by pkg_cleardata so change code to use it
- new pkg_cleardata will handle clear data of pkg

Related changes:
[pkgmgr-tool] : https://review.tizen.org/gerrit/106485
[app-installers] : https://review.tizen.org/gerrit/105691
[tpk-backend] : https://review.tizen.org/gerrit/106603
[wgt-backend] : https://review.tizen.org/gerrit/106601

Change-Id: Ifa296ecdaf00596261c7e676bbebe6a5b344a386
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoMerge "Enable disable/enable function of global apps" into tizen_3.0 accepted/tizen/3.0/common/20161227.101249 accepted/tizen/3.0/ivi/20161222.024831 accepted/tizen/3.0/mobile/20161222.024714 accepted/tizen/3.0/tv/20161222.024739 accepted/tizen/3.0/wearable/20161222.024806 submit/tizen_3.0/20161221.130430
jongmyeong ko [Wed, 21 Dec 2016 12:12:07 +0000 (04:12 -0800)]
Merge "Enable disable/enable function of global apps" into tizen_3.0

7 years agorefactor getsize sync function 25/105825/9
jongmyeongko [Mon, 19 Dec 2016 14:10:32 +0000 (23:10 +0900)]
refactor getsize sync function

Submit with:
https://review.tizen.org/gerrit/#/c/105817/
https://review.tizen.org/gerrit/#/c/105823/
https://review.tizen.org/gerrit/#/c/105825/

Change-Id: I2b5a17199324a1f0ee6a2bac0f5adf8d077283f8
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoEnable disable/enable function of global apps 57/106257/1
Junghyun Yeon [Wed, 21 Dec 2016 06:37:25 +0000 (15:37 +0900)]
Enable disable/enable function of global apps

- For now, disable/enabling of global apps are prohibited.
  Remove some codes to enable it

Change-Id: I2dd4c7873ce3432e0c3e10c5df18a1cab96a1d6e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoexecute backend with different argument based on pkg's basic status 37/105037/7
Junghyun Yeon [Thu, 15 Dec 2016 07:02:13 +0000 (16:02 +0900)]
execute backend with different argument based on pkg's basic status

- Change argument on pkg's status, RO/RW or Global/User pkg

Change-Id: Ib15cbf9e8736598883ab2760bda980f10d4b8669
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix bug while handling change app label request 90/105890/1
Junghyun Yeon [Tue, 20 Dec 2016 02:42:53 +0000 (11:42 +0900)]
Fix bug while handling change app label request

Change-Id: Ia45ada0e6ed5a23ec7c45691b3ee864b715785dd
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoReturn no such pkg error when failed to get pkgtype 11/104011/2 accepted/tizen/3.0/common/20161213.163816 accepted/tizen/3.0/ivi/20161213.064817 accepted/tizen/3.0/mobile/20161213.064704 accepted/tizen/3.0/tv/20161213.064735 accepted/tizen/3.0/wearable/20161213.064753 submit/tizen_3.0/20161212.103225
Junghyun Yeon [Mon, 12 Dec 2016 05:52:40 +0000 (14:52 +0900)]
Return no such pkg error when failed to get pkgtype

Change-Id: I33265d0a30cd4162551d1cff3489797ce933fe05
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoconsideration about legacy media path. 61/103561/2 accepted/tizen/3.0/common/20161212.060358 accepted/tizen/3.0/ivi/20161212.022756 accepted/tizen/3.0/mobile/20161212.022542 accepted/tizen/3.0/tv/20161212.022653 accepted/tizen/3.0/wearable/20161212.022725 submit/tizen_3.0/20161209.072525
jongmyeongko [Thu, 8 Dec 2016 16:38:16 +0000 (01:38 +0900)]
consideration about legacy media path.

if caller uid is regular user, then check and convert legacy path.

Change-Id: I22d4ead49a6b599b08a2cdea6f6b590fe6319b97
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix getting pkgtype from request 13/103413/1
Sangyoon Jang [Thu, 8 Dec 2016 08:26:01 +0000 (17:26 +0900)]
Fix getting pkgtype from request

Change-Id: I9d85af7f9da1f5c7615ee1d3c403054dc673e8d6
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix unintended switch-case operation 19/103019/1 accepted/tizen/3.0/common/20161208.153459 accepted/tizen/3.0/ivi/20161208.062750 accepted/tizen/3.0/mobile/20161208.062526 accepted/tizen/3.0/tv/20161208.062607 accepted/tizen/3.0/wearable/20161208.062701 submit/tizen_3.0/20161207.072901
Junghyun Yeon [Wed, 7 Dec 2016 04:56:55 +0000 (13:56 +0900)]
Fix unintended switch-case operation

Change-Id: I463eeb18ea67e589b609d4d09e68dee81964aed6
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoif it's failed to get the pkgtype from the file, use the pkgtype argument. 58/101958/1 accepted/tizen/3.0/common/20161206.125837 accepted/tizen/3.0/ivi/20161206.000425 accepted/tizen/3.0/mobile/20161206.000312 accepted/tizen/3.0/tv/20161206.000343 accepted/tizen/3.0/wearable/20161206.000403 submit/tizen_3.0/20161205.120256
jongmyeongko [Fri, 2 Dec 2016 13:02:40 +0000 (22:02 +0900)]
if it's failed to get the pkgtype from the file, use the pkgtype argument.

Change-Id: I8deaf21a552e94007e5a1c7b9341dcb69ccfe0d5
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix build break 97/101197/1 accepted/tizen/3.0/common/20161203.012202 accepted/tizen/3.0/ivi/20161201.075343 accepted/tizen/3.0/mobile/20161201.075144 accepted/tizen/3.0/tv/20161201.075228 accepted/tizen/3.0/wearable/20161201.075308 submit/tizen_3.0/20161130.132739 submit/tizen_3.0/20161201.024001 submit/tizen_3.0/20161201.024602
Hwankyu Jhun [Wed, 30 Nov 2016 11:21:25 +0000 (20:21 +0900)]
Fix build break

Change-Id: Ifb16e6f37fd5192bca08a5fb2c84d505b91a025b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoMerge "Add request type and codes for set app label" into tizen_3.0
jongmyeong ko [Wed, 30 Nov 2016 07:40:46 +0000 (23:40 -0800)]
Merge "Add request type and codes for set app label" into tizen_3.0

7 years agoAdd request type and codes for set app label 80/100580/3
Junghyun Yeon [Mon, 28 Nov 2016 12:02:27 +0000 (21:02 +0900)]
Add request type and codes for set app label

Related changes:
[slp-pkgmgr] : https://review.tizen.org/gerrit/100579

Change-Id: Ib2b395db143d6230817884c922e09c37f7289b38
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoUsing different pkgmgr-info API while getting pkgtype 47/100647/3
Junghyun Yeon [Tue, 29 Nov 2016 01:37:00 +0000 (10:37 +0900)]
Using different pkgmgr-info API while getting pkgtype

- Change API which is used while retrieving pkginfo
to retrieve disabled and external-installed pkg properly
(externally installed pkg but external storage has removed)

Change-Id: I374ccc1c7e73734729aafcdf68a7c38a3d06ffb4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoConsider caller uid when handling request 43/100543/2 accepted/tizen/3.0/common/20161129.102953 accepted/tizen/3.0/ivi/20161129.002023 accepted/tizen/3.0/mobile/20161129.001919 accepted/tizen/3.0/tv/20161129.001948 accepted/tizen/3.0/wearable/20161129.002000 submit/tizen_3.0/20161128.050643
Sangyoon Jang [Mon, 28 Nov 2016 10:42:24 +0000 (19:42 +0900)]
Consider caller uid when handling request

Request for getsize now need caller uid to sending result signal,
so pkgmgr-server should pass caller uid to getsize process.

Submit with:
 - https://review.tizen.org/gerrit/100542
 - https://review.tizen.org/gerrit/100544

Change-Id: I3ec28b650d705257007ce250c91137116063aa01
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoGet pkgtype from given pkgid or pkgfile 23/99923/5 accepted/tizen/3.0/common/20161125.101754 accepted/tizen/3.0/ivi/20161125.081932 accepted/tizen/3.0/mobile/20161125.081536 accepted/tizen/3.0/tv/20161125.081743 accepted/tizen/3.0/wearable/20161125.081854 submit/tizen_3.0/20161124.130849
Sangyoon Jang [Thu, 24 Nov 2016 11:54:36 +0000 (20:54 +0900)]
Get pkgtype from given pkgid or pkgfile

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

Change-Id: I1392aa95b3ec8316255fbcd3d9f285463d3b8c99
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix build dependency 80/99880/2
Sangyoon Jang [Thu, 24 Nov 2016 10:26:16 +0000 (19:26 +0900)]
Fix build dependency

Remove unused dependency.
Add some missing dependency obviously.

Change-Id: I1461d25385616593f54e7c4f13d254c28e7fd96f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoapply retry logic to get an user type using gum api. 41/97241/1 accepted/tizen/3.0/common/20161114.143016 accepted/tizen/3.0/ivi/20161114.002606 accepted/tizen/3.0/mobile/20161114.002448 accepted/tizen/3.0/tv/20161114.002513 accepted/tizen/3.0/wearable/20161114.002538 accepted/tizen/common/20161125.095130 accepted/tizen/ivi/20161125.004138 accepted/tizen/mobile/20161125.003553 accepted/tizen/tv/20161125.003904 accepted/tizen/wearable/20161125.004023 submit/tizen/20161124.000829 submit/tizen_3.0/20161111.080112 submit/tizen_3.0_common/20161114.081136
jongmyeongko [Fri, 11 Nov 2016 12:51:46 +0000 (21:51 +0900)]
apply retry logic to get an user type using gum api.

Change-Id: I3c72109483737e0ba8281cadde48b24e9f7d2928
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix memory leak 90/96990/1 accepted/tizen/common/20161114.170754 accepted/tizen/ivi/20161114.003927 accepted/tizen/mobile/20161114.003756 accepted/tizen/tv/20161114.003825 accepted/tizen/wearable/20161114.003857 submit/tizen/20161111.010949 submit/tizen/20161111.080541 submit/tizen_3.0/20161111.001102
Hwankyu Jhun [Thu, 10 Nov 2016 22:51:45 +0000 (07:51 +0900)]
Fix memory leak

Change-Id: Ie588a5a60ad426e070b62367f36078ee82a0a454
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoFix a bug in queue_job 71/96271/1 accepted/tizen/3.0/common/20161114.081116 accepted/tizen/3.0/ivi/20161110.015557 accepted/tizen/3.0/mobile/20161110.015337 accepted/tizen/3.0/tv/20161110.015435 accepted/tizen/3.0/wearable/20161110.015527 submit/tizen_3.0/20161107.133644 submit/tizen_3.0_common/20161110.084657
Sangyoon Jang [Tue, 8 Nov 2016 10:07:50 +0000 (19:07 +0900)]
Fix a bug in queue_job

Change-Id: I101dd3b6dcafda27ed401fdb6c2dd34af6d7b585
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix enable/disable pkgs handler 10/96210/1
Sangyoon Jang [Tue, 8 Nov 2016 07:12:10 +0000 (16:12 +0900)]
Fix enable/disable pkgs handler

Use one request key for each request.

Change-Id: I3ab60a450101761400d0913d71b5ab094f049b36
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoCode refactoring 81/94381/7
Sangyoon Jang [Fri, 28 Oct 2016 12:43:20 +0000 (21:43 +0900)]
Code refactoring

- Rewrite queue management code.
   Data Struture.
    * struct backend_queue:
     store each backend's informations(backend path, slot num, job list)
    * struct backend_job:
     store each job(request)'s infomations(req type, uid, pkgid, ...)
   The pkgmgr-server has two hash tables which map each backend, each table
   use type(tpk, wgt) and slot number as key.
   And there is another table which stores informations about the job
   currently processed.

   The pkgmgr-server will push job to each queue, pop it at idler, and
   insert the job into the backend info table(using slot num as key).
   When the backend finished the job, the server will get the job info
   and free it(by removing from the table).
   All the memories for the request data will be allocated dynamically,
   and nerver duplicated.

- Remove unused code.
- Rename enums/internal apis.
- Fix some code style.

Change-Id: Ie95b369608dc6675aeccc6a66b255b28ca200059
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix to disable/enable multiple packages 40/95640/1
Sangyoon Jang [Fri, 4 Nov 2016 06:00:44 +0000 (15:00 +0900)]
Fix to disable/enable multiple packages

Submit together:
 - https://review.tizen.org/gerrit/95565

Change-Id: Ib44668d5025b74414aa58ec9a9650a43540c03a2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix queue msg args buffer size issue 39/95639/1
Sangyoon Jang [Thu, 27 Oct 2016 06:30:10 +0000 (15:30 +0900)]
Fix queue msg args buffer size issue

Alloc memory for args dynamically.

Change-Id: I7ed8d06477836287a1d994088959c43324c13d80
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix CMakeLists for compatibility 36/92936/2
Junghyun Yeon [Wed, 19 Oct 2016 11:42:00 +0000 (20:42 +0900)]
Fix CMakeLists for compatibility

- Fix CMakeLists to include additional source files automatically

Change-Id: I6990759ae72674e26dea5d3627d28d62740baca8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix possible memory leak 14/92414/2 accepted/tizen/3.0/ivi/20161028.122954 accepted/tizen/3.0/mobile/20161028.122234 accepted/tizen/3.0/tv/20161028.122531 accepted/tizen/3.0/wearable/20161028.122749 accepted/tizen/common/20161017.170243 accepted/tizen/ivi/20161017.081555 accepted/tizen/mobile/20161017.081455 accepted/tizen/tv/20161017.081511 accepted/tizen/wearable/20161017.081531 submit/tizen/20161017.041518 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082323 submit/tizen_3.0_common/20161104.104000
Junghyun Yeon [Mon, 17 Oct 2016 02:35:23 +0000 (11:35 +0900)]
Fix possible memory leak

Change-Id: I1acc9ca9657532ec56a99f5bf63da642aff14562
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoReturn kill/check result directly instead of writing on tmp file 95/91895/2 accepted/tizen/common/20161012.154713 accepted/tizen/ivi/20161014.022203 accepted/tizen/mobile/20161014.022230 accepted/tizen/tv/20161014.022144 accepted/tizen/wearable/20161014.022129 submit/tizen/20161012.064511
Sangyoon Jang [Wed, 12 Oct 2016 06:25:08 +0000 (15:25 +0900)]
Return kill/check result directly instead of writing on tmp file

Submit together:
 - https://review.tizen.org/gerrit/91895
 - https://review.tizen.org/gerrit/91896

Change-Id: I6d32d1f8fe93a8cbfb13429f34560024ac074549
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix returning error to client 93/91893/1
Sangyoon Jang [Wed, 12 Oct 2016 06:22:55 +0000 (15:22 +0900)]
Fix returning error to client

Return ENOMEM when memory allocation failed.

Change-Id: I4b4c0b8777c9f8a18fc1c1955e923d7ee3f290c1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoKill app using aul api instead of proc filesystem 77/91877/4
Sangyoon Jang [Wed, 12 Oct 2016 04:52:00 +0000 (13:52 +0900)]
Kill app using aul api instead of proc filesystem

Change-Id: Ic48077821e5c81b378510deba30ecf0741b5e310
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agofix wrong behavior of pkg_getsize 55/91655/1 accepted/tizen/common/20161011.061126 accepted/tizen/ivi/20161011.234023 accepted/tizen/mobile/20161011.234005 accepted/tizen/tv/20161011.234014 accepted/tizen/wearable/20161011.233941 submit/tizen/20161011.002253
jongmyeongko [Mon, 10 Oct 2016 14:35:34 +0000 (23:35 +0900)]
fix wrong behavior of pkg_getsize

- set uid/gid for pkg_getsize

Change-Id: I57c33ae74d33148350520776d34db24bcc5ba6c9
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoSet busy status flag on pkg enable/disable 46/89746/2 accepted/tizen/3.0/ivi/20161011.062209 accepted/tizen/3.0/mobile/20161015.034057 accepted/tizen/3.0/tv/20161016.005606 accepted/tizen/3.0/wearable/20161015.083937 accepted/tizen/common/20161005.165552 accepted/tizen/ivi/20161006.075652 accepted/tizen/mobile/20161006.075603 accepted/tizen/tv/20161006.075626 accepted/tizen/wearable/20161006.075636 submit/tizen/20161005.072822 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 [Mon, 26 Sep 2016 23:23:31 +0000 (08:23 +0900)]
Set busy status flag on pkg enable/disable

Change-Id: Ia27ff96bd2deec12162243a339d286fc9fa93335
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agosuppess build warning on the profile which doesn't support CSR feature. 66/89766/1 accepted/tizen/common/20160928.163804 accepted/tizen/ivi/20160929.080903 accepted/tizen/mobile/20160929.080813 accepted/tizen/tv/20160929.080847 accepted/tizen/wearable/20160929.080834 submit/tizen/20160928.040222
jongmyeongko [Tue, 27 Sep 2016 02:27:43 +0000 (11:27 +0900)]
suppess build warning on the profile which doesn't support CSR feature.

Change-Id: I2a22e1002e417abdb7b03c43e794e830b14bbbbf
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoGet actucal pkgid first and then send signal 46/88046/1 accepted/tizen/common/20160919.154544 accepted/tizen/ivi/20160919.232046 accepted/tizen/mobile/20160919.231953 accepted/tizen/tv/20160919.232017 accepted/tizen/wearable/20160919.232031 submit/tizen/20160919.055034
Sangyoon Jang [Tue, 13 Sep 2016 01:37:47 +0000 (10:37 +0900)]
Get actucal pkgid first and then send signal

For sending pkgid, appid pair correctly, get pkgid from appid first.

Change-Id: I72f682b2e519ebd96d5d812d3fb05256a2eb0277
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix sending app signal 44/88044/1
Sangyoon Jang [Tue, 13 Sep 2016 01:18:54 +0000 (10:18 +0900)]
Fix sending app signal

Send to signal agent too.

Change-Id: Ifa2229c35ef5c9ce92938885892f2b78e3f65c52
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agofix cmakelist 29/87329/1 accepted/tizen/common/20160907.154838 accepted/tizen/ivi/20160909.062112 accepted/tizen/mobile/20160909.062028 accepted/tizen/tv/20160909.062044 accepted/tizen/wearable/20160909.062059 submit/tizen/20160907.105742 submit/tizen/20160909.003612
Junghyun Yeon [Wed, 7 Sep 2016 10:40:15 +0000 (19:40 +0900)]
fix cmakelist

Change-Id: Iedb7a27594e8b2bf2e354f1dce32acbbfd20b701
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoremove csr routines in tv profile 18/87318/2
Junghyun Yeon [Wed, 7 Sep 2016 10:18:07 +0000 (19:18 +0900)]
remove csr routines in tv profile

Change-Id: I0487e36776f510deb317cd80ee59d6c55fa4d764
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix CSR routine to not to fail installation when engine is not exists 48/85948/1 accepted/tizen/common/20160830.150200 accepted/tizen/ivi/20160830.061221 accepted/tizen/mobile/20160830.060947 accepted/tizen/tv/20160830.061051 accepted/tizen/wearable/20160830.061135 submit/tizen/20160830.010724
Junghyun Yeon [Tue, 30 Aug 2016 00:58:19 +0000 (09:58 +0900)]
Fix CSR routine to not to fail installation when engine is not exists

Change-Id: I485108d8d62c5f1029bf646f6e73dda263f00a78
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoImplement CSR checking routine 71/84971/1 accepted/tizen/common/20160829.135949 submit/tizen/20160829.010716
Junghyun Yeon [Tue, 23 Aug 2016 05:36:56 +0000 (14:36 +0900)]
Implement CSR checking routine

Change-Id: Ida96780aef166ab47f3c9cd7f6f4212896923d8d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoSet list of supplementary groups IDs 74/84274/2 accepted/tizen/common/20160818.144545 accepted/tizen/ivi/20160819.063359 accepted/tizen/mobile/20160819.063301 accepted/tizen/tv/20160819.063346 accepted/tizen/wearable/20160819.063325 submit/tizen/20160818.060816
Hwankyu Jhun [Wed, 17 Aug 2016 23:01:17 +0000 (08:01 +0900)]
Set list of supplementary groups IDs

Change-Id: I3072df4d4e41a12ca8fedcc4b59d3c378ef3c39f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agotpk/wgt backend will run as system session 05/78205/9 accepted/tizen/common/20160812.140746 accepted/tizen/ivi/20160815.233253 accepted/tizen/mobile/20160815.233136 accepted/tizen/tv/20160815.233211 accepted/tizen/wearable/20160815.233233 submit/tizen/20160811.013634 submit/tizen/20160811.062803 submit/tizen/20160812.053402
Junghyun Yeon [Mon, 4 Jul 2016 12:33:52 +0000 (21:33 +0900)]
tpk/wgt backend will run as system session

Related changes
[slp-pkgmgr] https://review.tizen.org/gerrit/#/c/80764/
[app-installers] https://review.tizen.org/gerrit/#/c/78206/
[tpk-backend] https://review.tizen.org/gerrit/#/c/80787/
[wgt-backend] https://review.tizen.org/gerrit/#/c/81099/

Change-Id: Ifcbe6b0ceeb038d166ca924a576197299bcad8d9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix coding rule 19/79619/5 accepted/tizen/common/20160803.193159 accepted/tizen/ivi/20160804.080752 accepted/tizen/mobile/20160804.080843 accepted/tizen/tv/20160804.080710 accepted/tizen/wearable/20160804.080529 submit/tizen/20160803.012753
Junghyun Yeon [Tue, 12 Jul 2016 05:13:49 +0000 (14:13 +0900)]
Fix coding rule

Change-Id: Ic18982d2254c09c628ae9e20059908c737063976
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoSet the SMACK security label to run given executable file in systemd services 50/80850/1 accepted/tizen/common/20160721.175543 accepted/tizen/ivi/20160721.090710 accepted/tizen/mobile/20160721.090340 accepted/tizen/tv/20160721.091228 accepted/tizen/wearable/20160721.090850 submit/tizen/20160721.003054
jooseong lee [Wed, 20 Jul 2016 11:25:04 +0000 (20:25 +0900)]
Set the SMACK security label to run given executable file in systemd services

Change-Id: Idc1e8645d1c96f5eb82651d7857ec74fe2e07d30
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
7 years agoImplement pkg enable/disable 18/78918/6 accepted/tizen/common/20160719.171906 accepted/tizen/ivi/20160718.104421 accepted/tizen/mobile/20160718.104306 accepted/tizen/tv/20160718.104230 accepted/tizen/wearable/20160718.104324 submit/tizen/20160718.020809
Junghyun Yeon [Thu, 7 Jul 2016 10:14:14 +0000 (19:14 +0900)]
Implement pkg enable/disable

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

Change-Id: I2ebab9538ada5468b0a9859ae171dfdf740fda2c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd missing methods to conf file 70/79870/1
Sangyoon Jang [Wed, 13 Jul 2016 09:00:37 +0000 (18:00 +0900)]
Add missing methods to conf file

Change-Id: Ic10783609bed76c0e615e5faba098b30271e5723
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agochange user id of pkgmgr-server 69/77569/1 accepted/tizen/common/20160706.141410 accepted/tizen/ivi/20160705.044614 accepted/tizen/mobile/20160705.044448 accepted/tizen/tv/20160705.044555 accepted/tizen/wearable/20160705.044510 submit/tizen/20160704.042542
jongmyeongko [Thu, 30 Jun 2016 07:58:07 +0000 (16:58 +0900)]
change user id of pkgmgr-server

Change-Id: I7ec7e544d0f9771ad457778ba1af072cc45964e7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agogrant media storeage group 51/76251/1 accepted/tizen/common/20160627.191556 accepted/tizen/ivi/20160624.063927 accepted/tizen/mobile/20160624.063509 accepted/tizen/tv/20160624.063548 accepted/tizen/wearable/20160624.063816 submit/tizen/20160623.103205
jongmyeongko [Thu, 23 Jun 2016 07:57:46 +0000 (16:57 +0900)]
grant media storeage group

Change-Id: I8f021a7babf1bb4b0a1e5781b1a044bd8d505a55
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix send_fail_signal 20/73920/10 accepted/tizen/common/20160621.184531 accepted/tizen/ivi/20160622.093658 accepted/tizen/mobile/20160622.093548 accepted/tizen/tv/20160622.093617 accepted/tizen/wearable/20160622.093638 submit/tizen/20160621.063045
Sangyoon Jang [Fri, 10 Jun 2016 05:13:10 +0000 (14:13 +0900)]
Fix send_fail_signal

Change-Id: If5905f46cfc249135c34a40c29165e3e17c5f5f9
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoMerge "Initialize stat" into tizen accepted/tizen/common/20160620.163128 accepted/tizen/common/20160620.163205 accepted/tizen/ivi/20160617.083635 accepted/tizen/ivi/20160617.083718 accepted/tizen/mobile/20160617.083501 accepted/tizen/mobile/20160617.083839 accepted/tizen/tv/20160617.083331 accepted/tizen/tv/20160617.083612 accepted/tizen/wearable/20160617.083700 accepted/tizen/wearable/20160617.083922 submit/tizen/20160616.134250 submit/tizen/20160616.235341
jongmyeong ko [Thu, 16 Jun 2016 13:33:56 +0000 (06:33 -0700)]
Merge "Initialize stat" into tizen

7 years agofix labeling issue of new added dir(/var/lib/package-manager) 94/75094/1
jongmyeongko [Thu, 16 Jun 2016 12:30:59 +0000 (21:30 +0900)]
fix labeling issue of new added dir(/var/lib/package-manager)

Change-Id: Ib497e933fa332a675737f980c7f58bb78366e1d3
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoadd PIE compliler & linker option. 76/75076/4
jongmyeongko [Thu, 16 Jun 2016 11:47:11 +0000 (20:47 +0900)]
add PIE compliler & linker option.

Change-Id: I3330aadf6eba39c3aa76f26208a05edf38c61adf
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoInitialize stat 65/74965/1
Junghyun Yeon [Thu, 16 Jun 2016 07:26:02 +0000 (16:26 +0900)]
Initialize stat

Change-Id: Ia771840d933b0ee48d147c8f91d6753baa89973f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix restriction mode 27/74627/5
Sangyoon Jang [Wed, 15 Jun 2016 04:24:16 +0000 (13:24 +0900)]
Fix restriction mode

- Entire restriction mode -> store at run directory(volatile)
- Package restriction mode -> store at package-manager db(non-volatile)

Change-Id: Ibb764a1ecfcd843cdf039bc3f85efcfc3f920fd2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoset label to prevent execution by non-system application. 46/73946/2 accepted/tizen/common/20160616.151558 accepted/tizen/ivi/20160616.002912 accepted/tizen/mobile/20160616.002841 accepted/tizen/tv/20160616.002824 accepted/tizen/wearable/20160616.002749 submit/tizen/20160615.073423
jongmyeongko [Fri, 10 Jun 2016 07:01:13 +0000 (16:01 +0900)]
set label to prevent execution by non-system application.

Change-Id: Ibb12282ca5d48435f70a332e40f650faa911832c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agofix memory leak 25/74125/1 accepted/tizen/common/20160614.143934 accepted/tizen/ivi/20160614.103511 accepted/tizen/mobile/20160614.103407 accepted/tizen/tv/20160614.103441 accepted/tizen/wearable/20160614.103430 submit/tizen/20160614.023654
Junghyun Yeon [Mon, 13 Jun 2016 02:23:34 +0000 (11:23 +0900)]
fix memory leak

Change-Id: I6da3fbe7a0ec0965393f0d6c3fb0d6169e5ede43
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix double free 10/74110/1
Sangyoon Jang [Mon, 13 Jun 2016 01:49:12 +0000 (10:49 +0900)]
Fix double free

Change-Id: I0e80906fe6289bebd0e44b5395b291a49da1dd2b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRemove smack related capabilities 52/73752/6
Sangyoon Jang [Thu, 9 Jun 2016 10:16:44 +0000 (19:16 +0900)]
Remove smack related capabilities

Remove capabilities using systemd service.

Change-Id: Ie8fc2a588744c62433455039f89eaf4a8c656bab
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRemove a meaningless error log 47/73947/1
Sangyoon Jang [Fri, 10 Jun 2016 07:01:50 +0000 (16:01 +0900)]
Remove a meaningless error log

Change-Id: Iabe8d37b23a36b360ee261978b8cfcb80cc635c8
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoMerge "Change move function to return req_key for signal" into tizen accepted/tizen/common/20160613.144722 accepted/tizen/ivi/20160610.114505 accepted/tizen/mobile/20160610.114417 accepted/tizen/tv/20160610.114433 accepted/tizen/wearable/20160610.114451 submit/tizen/20160610.015635
jongmyeong ko [Fri, 10 Jun 2016 03:50:19 +0000 (20:50 -0700)]
Merge "Change move function to return req_key for signal" into tizen

7 years agoRemove unnecessary build dependency 59/73759/1
Sangyoon Jang [Thu, 9 Jun 2016 10:26:13 +0000 (19:26 +0900)]
Remove unnecessary build dependency

libsmack is not used.

Change-Id: I664e9c7798f438868818d1a7f364e023f5c662da
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoChange move function to return req_key for signal 22/73622/2
Junghyun Yeon [Thu, 9 Jun 2016 02:23:31 +0000 (11:23 +0900)]
Change move function to return req_key for signal

changed should be applied with slp-pkgmgr
https://review.tizen.org/gerrit/#/c/73621/

Change-Id: I2972c3aef5168773aa3bf329566dbe313f717a6f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRemove old recovery behavior. 46/72146/4 accepted/tizen/common/20160602.140058 accepted/tizen/ivi/20160602.022859 accepted/tizen/mobile/20160602.023031 accepted/tizen/tv/20160602.022607 accepted/tizen/wearable/20160602.022746 submit/tizen/20160531.024853
jongmyeongko [Tue, 31 May 2016 02:13:04 +0000 (11:13 +0900)]
Remove old recovery behavior.

Instead, new operation is necessory.

The app-installer makes recovery file.
But, there is no trigger operation to do \
a recovery using this file, actually.
So, we should implement this trigger operation in somewhere.

Change-Id: If91207538c8447d0c968b9506cc161fba7d2f0b7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoset groups for the access of external storage. 29/72229/3
jongmyeongko [Tue, 31 May 2016 08:11:04 +0000 (17:11 +0900)]
set groups for the access of external storage.

Change-Id: Id15871fc965d241616d06efce1990d67e723e814
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoMake pkg_type to lower case when queuing 06/72206/1
Sangyoon Jang [Tue, 31 May 2016 07:26:32 +0000 (16:26 +0900)]
Make pkg_type to lower case when queuing

Change-Id: Ia063dd2d1f8d68352ca11f0db1518476b185536f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agofix clear data behavior 66/71866/3
jongmyeongko [Fri, 27 May 2016 10:43:53 +0000 (19:43 +0900)]
fix clear data behavior

Change-Id: I272de791ac3973e3ca9530f0dba1855aeda75474
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix checking caller permission 37/70537/1
Sangyoon Jang [Thu, 19 May 2016 10:08:24 +0000 (19:08 +0900)]
Fix checking caller permission

Skip checking when caller is system user.

Change-Id: I93bc80dd744805b9ccb4ab860426f38fd592dfd7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRedesign restriction mode 73/69473/5 submit/tizen/20160520.050106
Sangyoon Jang [Fri, 13 May 2016 09:41:52 +0000 (18:41 +0900)]
Redesign restriction mode

- Remove blacklist feature(merged to restriction mode)
- Use gdbm to store mode
- set/unset/get by pkgid

Change-Id: I3da360eb5b20471c5249f8445b96560c7fead598
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoImplement restriction mode 38/66938/6
Sangyoon Jang [Fri, 22 Apr 2016 06:06:47 +0000 (15:06 +0900)]
Implement restriction mode

For setting restriction mode, pkgmgr-server will make a file at
/run/user/<uid>/

This file contains current restriction mode.
Since this directory is volitile, it will be deleted if the user session closed.

Change-Id: Ic665cbefc40e1010d266d809def549ab36eb51eb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd support for mount install 34/65834/12 accepted/tizen/common/20160505.140409 accepted/tizen/ivi/20160506.035741 accepted/tizen/mobile/20160506.035211 accepted/tizen/tv/20160506.035531 accepted/tizen/wearable/20160506.035631 submit/tizen/20160504.074553
Arkadiusz Szulakiewicz [Wed, 13 Apr 2016 09:05:06 +0000 (11:05 +0200)]
Add support for mount install

Change-Id: I084d0359ece0d0bcaad80ccba1fa022da897f967

7 years agoAdd checking user type 85/68085/2
Sangyoon Jang [Mon, 2 May 2016 06:47:34 +0000 (15:47 +0900)]
Add checking user type

non-admin user cannot request operation to other users.

Change-Id: If36ac04c6e7547ca9ecc4b65ab715e81ce96d6ae
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoImplement app signal related with app splash screen display 59/65959/10 accepted/tizen/common/20160426.143118 accepted/tizen/ivi/20160425.231858 accepted/tizen/mobile/20160425.231846 accepted/tizen/tv/20160425.231818 accepted/tizen/wearable/20160425.231836 submit/tizen/20160425.083419
Hwankyu Jhun [Tue, 19 Apr 2016 08:32:19 +0000 (17:32 +0900)]
Implement app signal related with app splash screen display

- Requires:
[pkgmgr-info] https://review.tizen.org/gerrit/#/c/65897/
[slp-pkgmgr] https://review.tizen.org/gerrit/#/c/64902/

Change-Id: I1a32909ffda34ce0f50228188826a860dd2cb2c6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoimplement pkg move 23/64123/5 accepted/tizen/common/20160421.161455 accepted/tizen/ivi/20160421.011258 accepted/tizen/mobile/20160421.011434 accepted/tizen/tv/20160421.011320 accepted/tizen/wearable/20160421.011326 submit/tizen/20160418.112441 submit/tizen/20160420.102539 submit/tizen/20160425.022839
Junghyun Yeon [Wed, 30 Mar 2016 07:13:57 +0000 (16:13 +0900)]
implement pkg move

changes are applied in these repos
[pkgmgr-tool] https://review.tizen.org/gerrit/#/c/64121/
[slp-pkgmgr] https://review.tizen.org/gerrit/#/c/64122/
[pkgmgr-server] https://review.tizen.org/gerrit/#/c/64123/

Change-Id: I34e4d9ea0e3d8aea86681d34391d353916e4708d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix build fail issue 90/66290/1
Sangyoon Jang [Mon, 18 Apr 2016 08:00:22 +0000 (17:00 +0900)]
Fix build fail issue

Change-Id: I6c8cd8a93108cb0d955ead98f5f7e35722de2ae4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agonot to add space at last of argument 10/64610/1 accepted/tizen/common/20160406.143417 accepted/tizen/ivi/20160406.012033 accepted/tizen/mobile/20160406.011909 accepted/tizen/tv/20160406.011951 accepted/tizen/wearable/20160406.012013 submit/tizen/20160405.001024
Junghyun Yeon [Mon, 4 Apr 2016 07:39:57 +0000 (16:39 +0900)]
not to add space at last of argument

Change-Id: I4ccfc956b5b4829f37519c5cbd7816f31afc6132
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoseperate app enable/disable signal 40/62540/5 accepted/tizen/common/20160324.084232 accepted/tizen/ivi/20160323.010808 accepted/tizen/ivi/20160324.131637 accepted/tizen/mobile/20160323.010712 accepted/tizen/mobile/20160324.132918 accepted/tizen/tv/20160323.010733 accepted/tizen/tv/20160324.132738 accepted/tizen/wearable/20160323.010753 accepted/tizen/wearable/20160324.132702 submit/tizen/20160322.002805 submit/tizen/20160323.235918
Junghyun Yeon [Wed, 16 Mar 2016 11:51:23 +0000 (20:51 +0900)]
seperate app enable/disable signal

Change-Id: I6431cc7502d51b30d28355baa84fdb9957e81576
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoremove unnecessary pkg queue and reassign operations 27/62927/2
Junghyun Yeon [Mon, 21 Mar 2016 06:20:07 +0000 (15:20 +0900)]
remove unnecessary pkg queue and reassign operations

Change-Id: I05effb13bbafb3dfc925a828d0fa0dbc223e15b3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agokill app before server tried to disable it 45/62945/1
Junghyun Yeon [Mon, 21 Mar 2016 07:40:18 +0000 (16:40 +0900)]
kill app before server tried to disable it

Change-Id: Idad9ddb91cdcbe9e304b466e5a14a6cf0745284e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agochange functions for thread-safe 96/62296/1 accepted/tizen/common/20160321.145916 accepted/tizen/ivi/20160321.004615 accepted/tizen/ivi/20160322.023148 accepted/tizen/mobile/20160321.004513 accepted/tizen/tv/20160321.004537 accepted/tizen/wearable/20160321.004556 submit/tizen/20160318.074817 submit/tizen_ivi/20160322.020156
Junghyun Yeon [Tue, 15 Mar 2016 08:44:27 +0000 (17:44 +0900)]
change functions for thread-safe

Change-Id: Iebcda54f4a0880a8b0ac6f7ed629a4c26188eb9d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agofix to check given app handle is from global db or not 53/62053/1
Junghyun Yeon [Mon, 14 Mar 2016 05:54:03 +0000 (14:54 +0900)]
fix to check given app handle is from global db or not

Change-Id: I789427820696a1d5bd87cc1017a5fa206d7d7189
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agosuppress build warnings 92/61992/1 accepted/tizen/common/20160317.155401 accepted/tizen/ivi/20160315.001444 accepted/tizen/mobile/20160315.001356 accepted/tizen/tv/20160315.001407 accepted/tizen/wearable/20160315.001422 submit/tizen/20160314.031145 submit/tizen_common/20160316.154911
Junghyun Yeon [Sat, 12 Mar 2016 04:42:05 +0000 (13:42 +0900)]
suppress build warnings

Change-Id: I725ef47c4da3fa80f3c9ce618d6cb21b99572260
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoset uid before sending app signal 75/60775/2 accepted/tizen/common/20160308.142753 accepted/tizen/ivi/20160309.004710 accepted/tizen/mobile/20160309.004613 accepted/tizen/tv/20160309.004630 accepted/tizen/wearable/20160309.004650 submit/tizen/20160308.025616
Junghyun Yeon [Wed, 2 Mar 2016 07:11:11 +0000 (16:11 +0900)]
set uid before sending app signal
to signal being sent to user properly

Change-Id: Ib8122d16591bff810022aff8bad4fcb8bbe3ae02
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix return value when check blacklist failed 43/61043/2
Sangyoon Jang [Thu, 3 Mar 2016 12:27:21 +0000 (21:27 +0900)]
Fix return value when check blacklist failed

It should return two integer values.

Change-Id: I722a05b024466a2795cf09464947bbc6c6a0dc61
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix memory leak, insecure code 71/60971/3
Sangyoon Jang [Thu, 3 Mar 2016 06:57:21 +0000 (15:57 +0900)]
Fix memory leak, insecure code

- Free reqkey when failed.
- Use snprintf instead of sprintf.

Change-Id: Ia50c2dd0bb602d1ccbd773a8275cf072aec9d027
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRemove hardcoded path 48/60448/2 accepted/tizen/common/20160304.194343 accepted/tizen/ivi/20160303.093925 accepted/tizen/mobile/20160303.093813 accepted/tizen/tv/20160303.093835 accepted/tizen/wearable/20160303.093906 submit/tizen/20160303.064856
Sangyoon Jang [Fri, 26 Feb 2016 08:24:22 +0000 (17:24 +0900)]
Remove hardcoded path

Use _sysconfdir, fix incorrect comment.

Change-Id: I241c76601efce425a651c59134ffd6e1f886cbf7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agofix change_info to get pkg info properly 16/59716/1 accepted/tizen/ivi/20160225.081534 accepted/tizen/mobile/20160225.081450 accepted/tizen/tv/20160225.081506 accepted/tizen/wearable/20160225.081519 submit/tizen/20160224.000443 submit/tizen/20160224.092603
Junghyun Yeon [Wed, 17 Feb 2016 23:39:02 +0000 (08:39 +0900)]
fix change_info to get pkg info properly

Change-Id: I2c2869f2703c664835654da36062c562bbf16b01
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoGenerate request key for cleardata request 43/58243/2 accepted/tizen/ivi/20160218.023227 accepted/tizen/mobile/20160202.114608 accepted/tizen/mobile/20160203.051935 accepted/tizen/tv/20160202.114654 accepted/tizen/tv/20160203.051948 accepted/tizen/wearable/20160202.114733 accepted/tizen/wearable/20160203.052020 submit/tizen/20160202.002216 submit/tizen/20160202.010556 submit/tizen/20160202.023804 submit/tizen/20160203.003555 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000002
Tomasz Iwanek [Thu, 28 Jan 2016 13:43:40 +0000 (14:43 +0100)]
Generate request key for cleardata request

Fixes the problem that backend is called with missing key.

  backend -k -c $pkgid

should be:

  backend -k $key -c $pkgid

as pkgmgr_installer option parser requires key.

Change-Id: Ie616e3b928f52c0e5ce2c1f6fa738ebd47af13fb

8 years agoImplement app signal related with app disable/enable 24/58224/5 submit/tizen/20160201.060916
Junghyun Yeon [Thu, 28 Jan 2016 10:58:20 +0000 (19:58 +0900)]
Implement app signal related with app disable/enable

Changes applied at
[pkgmgr-tool][pkgmgr-info][slp-pkgmgr][pkgmgr-server]

Change-Id: I66521744e30a20da8c67135cef16da92dea2d41c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoAdd blacklist management feature 43/57543/18 accepted/tizen/mobile/20160201.042845 accepted/tizen/tv/20160201.042919 accepted/tizen/wearable/20160201.042933 submit/tizen/20160201.013807
Sangyoon Jang [Thu, 21 Jan 2016 04:50:02 +0000 (13:50 +0900)]
Add blacklist management feature

Change-Id: I48543f21262825bd70a2508195ff4d6191233341
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix processing getsize, clearcache 70/58170/3
Sangyoon Jang [Thu, 28 Jan 2016 06:41:55 +0000 (15:41 +0900)]
Fix processing getsize, clearcache

argv[0] should be excutable path.
remove unused parameter of __exec_with_arg_vector.
rename __exec_with_arg_vector to __fork_and_exec_with_args for clarify
functionality.

Change-Id: I8e2230fca1aeb563adf0705c99bd47d4f0362277
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoSet backend busy, recovery mode when needed only 04/58204/2
Sangyoon Jang [Thu, 28 Jan 2016 08:59:10 +0000 (17:59 +0900)]
Set backend busy, recovery mode when needed only

Change-Id: I1470c40051f47a58f2aa3fdb75d561262b237d88
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFork child process for the backend installer only 71/58071/2
Sangyoon Jang [Wed, 27 Jan 2016 08:27:22 +0000 (17:27 +0900)]
Fork child process for the backend installer only

use g_spawn_async which calls fork() and execv() internally.

Change-Id: Ibec6f0cd0a29ab2d3719ecb1d2af39905aaaf8d0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoEach user can disable global app separately 66/56866/5 accepted/tizen/mobile/20160122.031241 accepted/tizen/mobile/20160129.083355 accepted/tizen/tv/20160122.031302 accepted/tizen/tv/20160129.083419 accepted/tizen/wearable/20160122.031319 accepted/tizen/wearable/20160129.083441 submit/tizen/20160120.053637 submit/tizen/20160127.110348
Junghyun Yeon [Wed, 13 Jan 2016 08:20:24 +0000 (17:20 +0900)]
Each user can disable global app separately

Changes applied at [slp-pkgmgr][pkgmgr-info][pkgmgr-server]

Change-Id: Iab92e323553ab6f58ef330ac9f7b1d37b0094293
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix wrong filepath for kill/check command 16/56516/1
Junghyun Yeon [Mon, 11 Jan 2016 00:13:26 +0000 (09:13 +0900)]
Fix wrong filepath for kill/check command

Change-Id: Ibb7d696be7f504f0420b384e797b9c5c9b665a32
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoAdd drm related methods 31/52731/3 accepted/tizen/mobile/20151201.031741 accepted/tizen/tv/20151201.031758 accepted/tizen/wearable/20151201.031822 submit/tizen/20151130.235340 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
Sangyoon Jang [Thu, 26 Nov 2015 08:43:24 +0000 (17:43 +0900)]
Add drm related methods

ADDED:
 generate_license_request
 register_license
 decrypt_package

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