platform/core/appfw/pkgmgr-tool.git
5 years agoFix upgrade script 70/197670/1
Sangyoon Jang [Tue, 15 Jan 2019 06:32:33 +0000 (15:32 +0900)]
Fix upgrade script

Execute pkgmgr db migration script directly, because exec system call
overwrites process.

Change-Id: Id1aa8a490c1936dc1115b2cc987f53b255eed77f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoRefactor __process_request function of pkg_cmd.c 38/188638/22
ilho [Fri, 7 Sep 2018 02:49:48 +0000 (11:49 +0900)]
Refactor __process_request function of pkg_cmd.c

change that function's long switch-case statement using function pointer

Change-Id: I2bbc26dab024b8827cb706dae14c73f8414a1252
Signed-off-by: ilho <ilho159.kim@samsung.com>
6 years agoRefactor pkg_upgrade 70/190770/7
Junghyun Yeon [Fri, 5 Oct 2018 07:48:08 +0000 (16:48 +0900)]
Refactor pkg_upgrade

- Remove unused defines.
- Add codes to migrate preloaded pkg to preload-rw pkg.
- Invoking pkg_upgrade without parameter will migrate ro/rw pkgs.
- Remove some useless variable initialization.

Change-Id: I34e0afd77926b73a1a70667e43f2f69faa950c55
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix upgrade script 17/191817/4
Junghyun Yeon [Wed, 24 Oct 2018 06:54:39 +0000 (15:54 +0900)]
Fix upgrade script

- uid of user "tizenglobalapp" has changed in 4.0.

Change-Id: Ibedac9655875c725ec39013e7f71fd19ca0ce2aa
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.16 64/188964/1 accepted/tizen/5.0/unified/20181102.013403 accepted/tizen/unified/20180913.063900 submit/tizen/20180912.054239 submit/tizen_5.0/20181101.000002
Junghyun Yeon [Wed, 12 Sep 2018 05:18:01 +0000 (14:18 +0900)]
Release version 0.4.16

Changes:
 - Fix pkg_upgrade

Change-Id: Ia8023761f4e52348bbe960de2349b54078db11b3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix pkg_upgrade 38/188738/1
Junghyun Yeon [Mon, 10 Sep 2018 02:59:25 +0000 (11:59 +0900)]
Fix pkg_upgrade

- Add codes to support rpm pkg type.

Change-Id: Idca0d935c63e8a5591fb464f982eebab008409e5
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.15 53/179653/1 accepted/tizen/unified/20180521.094844 submit/tizen/20180521.022058
Junghyun Yeon [Mon, 21 May 2018 02:16:51 +0000 (11:16 +0900)]
Release version 0.4.15

Changes:
 - Fix static analysis issue

Change-Id: Ice29241c7d4ab83f78be30dcc799a307edc1be27
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix static analysis issue 40/179640/1
Junghyun Yeon [Mon, 21 May 2018 00:46:24 +0000 (09:46 +0900)]
Fix static analysis issue

Change-Id: Iae6f32b9a60aecd01802f32c830aa9d1ddc0393b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.14 26/179026/1 accepted/tizen/unified/20180516.065609 accepted/tizen/unified/20180521.003615 submit/tizen/20180515.094318 submit/tizen/20180518.004605
Sangyoon Jang [Tue, 15 May 2018 09:05:50 +0000 (18:05 +0900)]
Release version 0.4.14

Changes:
 - Fix pkg_upgrade tool to handle wgt packages
 - Add upgrade script for version 30002

Change-Id: Ifca72f6056f518bd95869bddc24f494cfd3c2eea
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd upgrade script for version 30002 40/177840/6
Sangyoon Jang [Fri, 4 May 2018 04:28:05 +0000 (13:28 +0900)]
Add upgrade script for version 30002

Change-Id: I9520d7568fc61a841329cf62282cde107d92701d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix pkg_upgrade tool to handle wgt packages 38/177838/4
Sangyoon Jang [Fri, 4 May 2018 04:17:12 +0000 (13:17 +0900)]
Fix pkg_upgrade tool to handle wgt packages

Change-Id: I7490454a0d08303f141cadc2ae3ca573fffe55fa
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.4.13 63/178663/1 accepted/tizen/unified/20180514.094105 submit/tizen/20180511.064939
Junghyun Yeon [Fri, 11 May 2018 06:44:49 +0000 (15:44 +0900)]
Release version 0.4.13

Changes:
 - Change execute label of pkgcmd to "System"

Change-Id: I7f2b6f58b9a83360c91eced73dd06263b1286312
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoChange execute label of pkgcmd to "System" 74/177074/1
Junghyun Yeon [Wed, 25 Apr 2018 06:37:42 +0000 (15:37 +0900)]
Change execute label of pkgcmd to "System"

- Shell's privilege will be reduced to prevent sending
  dbus signal directly so pkgcmd's execute label should be set
  to work properly.

Change-Id: I5185b8fe45f0c820c5c26a12925b4e47501d7b43
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.12 38/175738/1 accepted/tizen/unified/20180412.140831 submit/tizen/20180412.054319
Junghyun Yeon [Thu, 12 Apr 2018 05:41:33 +0000 (14:41 +0900)]
Release version 0.4.12

Changes:
 - Remove unused dependency in the spec file

Change-Id: I3b5a5c03be2b21a0e00b264258e127db4ff4bddf
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRemove unused dependency in the spec file 80/174480/1
Semun Lee [Mon, 2 Apr 2018 09:49:11 +0000 (18:49 +0900)]
Remove unused dependency in the spec file

Change-Id: I65abc4d1992ca2a4aac9ef89e264b122555b5537
Signed-off-by: Semun Lee <semun.lee@samsung.com>
6 years agoRelease version 0.4.11 73/173973/1 accepted/tizen/unified/20180330.060609 submit/tizen/20180327.085346
Junghyun Yeon [Tue, 27 Mar 2018 08:49:52 +0000 (17:49 +0900)]
Release version 0.4.11

Changes:
 - Fix pkg_upgrade tool

Change-Id: Ia04fd60bf5c69857fd493d8781fc4bf61fddb92b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix pkg_upgrade tool 33/170333/5
Junghyun Yeon [Mon, 19 Feb 2018 07:47:26 +0000 (16:47 +0900)]
Fix pkg_upgrade tool

- Change filter to get preload pkg to retrieve readonlyupdate pkgs.
- When pkg is readonlyupdated but not included at image,
  set its db attribute properly to treat as normal pkg.(TODO)
- When pkg is readnolyupdated and update image has same version,
  readonlyupdate should be uninstalled except its rwdata.

Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/#/c/170323/

Change-Id: I9ae7f5567034a5c44c0eb8cd62a0b138e6626d27
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.10 48/169748/1 accepted/tizen/unified/20180219.142416 submit/tizen/20180209.043342
Sangyoon Jang [Fri, 9 Feb 2018 01:58:45 +0000 (10:58 +0900)]
Release version 0.4.10

Changes:
 - Fix double free

Change-Id: Id6b2b4c3444362772f2aa1dff2a4b9cba425d92c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix double free 33/169233/1
Sangyoon Jang [Mon, 5 Feb 2018 06:04:11 +0000 (15:04 +0900)]
Fix double free

Change-Id: I9f745a5211e066ec2cd6cc70d81bd2efcf87bb35
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.4.9 53/169053/1 accepted/tizen/unified/20180205.060509 submit/tizen/20180202.063742
Junghyun Yeon [Fri, 2 Feb 2018 05:03:05 +0000 (14:03 +0900)]
Release version 0.4.9

Changes:
 - Perform pkg_upgrade after migrating pkg databases
 - add get support-mode info on pkginfo

Change-Id: Iad3bfbcbf50c3758a5e2991529da550ab9482e2c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoadd get support-mode info on pkginfo 12/165012/4
junsuk77.oh [Tue, 24 Oct 2017 02:01:10 +0000 (11:01 +0900)]
add get support-mode info on pkginfo

Change-Id: Ia397280a23110fbff30ac039f03eeb0d97baf1e1
(cherry picked from commit 31a67a8d1b528b9eaa7e21185c9625951ce68ad2)

6 years agoPerform pkg_upgrade after migrating pkg databases 54/166154/2
Junghyun Yeon [Mon, 8 Jan 2018 08:35:11 +0000 (17:35 +0900)]
Perform pkg_upgrade after migrating pkg databases

Change-Id: I75e1415d73a0c23b8bf51cb3299056ff1ea8d746
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.8 85/167685/1 accepted/tizen/unified/20180123.061156 submit/tizen/20180119.081808
Junghyun Yeon [Fri, 19 Jan 2018 07:49:32 +0000 (16:49 +0900)]
Release version 0.4.8

Changes:
 - Fix memory leak

Change-Id: I6eb83aecab77c1f899321c8b8b93a5c31c6f617f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix memory leak 80/167080/2
Seungha Son [Mon, 15 Jan 2018 08:40:35 +0000 (17:40 +0900)]
Fix memory leak

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I8b6ddb7c8576917662d1788e0f08794c5bc65ef1

6 years agoRelease version 0.4.7 89/165789/1 accepted/tizen/unified/20180108.062531 submit/tizen/20180104.043433
Sangyoon Jang [Thu, 4 Jan 2018 04:14:21 +0000 (13:14 +0900)]
Release version 0.4.7

Changes:
 - Add sciprts for missed column
 - Fix memory leak

Change-Id: I729ab8bcb2831bf19d58f8ea64b3df021a3e4d67
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix memory leak 75/165775/1
Sangyoon Jang [Thu, 4 Jan 2018 01:48:57 +0000 (10:48 +0900)]
Fix memory leak

Change-Id: I9dfbd4d88188c352e5d9cf0e14caa0e58938c21c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd sciprts for missed column 23/165223/1
Junghyun Yeon [Wed, 27 Dec 2017 06:40:45 +0000 (15:40 +0900)]
Add sciprts for missed column

- Add scripts to modify package_app_info to add additional column.

Change-Id: I94911698fc91b074e82c759a8a20ed7bd1a8deab
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.6 88/164988/1 accepted/tizen/unified/20171228.065025 submit/tizen/20171222.073841
Junghyun Yeon [Fri, 22 Dec 2017 07:36:39 +0000 (16:36 +0900)]
Release version 0.4.6

Changes:
 - Refactor pkg_getsize for reduce dbus call count

Change-Id: Ib1af0f4f1a1de745e9b30dadc1cd5830a1ff45dd
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRefactor pkg_getsize for reduce dbus call count 97/162897/4
Seungha Son [Wed, 6 Dec 2017 04:57:53 +0000 (13:57 +0900)]
Refactor pkg_getsize for reduce dbus call count

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Iad633c39ed7e8532f55358f8c95d3b885d19a563

6 years agoRelease version 0.4.5 81/161781/1 accepted/tizen/4.0/unified/20171128.072852 accepted/tizen/unified/20171128.150348 submit/tizen/20171127.102301 submit/tizen_4.0/20171127.103425
Junghyun Yeon [Mon, 27 Nov 2017 10:15:47 +0000 (19:15 +0900)]
Release version 0.4.5

Changes:
 - Change pkginfo getter function
 - Remove unnecessary directory in spec

Change-Id: I8e43a0201d51bd0c1e723f98dc2ba84db2d644fe
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRemove unnecessary directory in spec 40/160440/1
Junghyun Yeon [Thu, 16 Nov 2017 06:42:25 +0000 (15:42 +0900)]
Remove unnecessary directory in spec

Change-Id: I127a115250a33ff2f9e02c546cb4616199f6609e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoChange pkginfo getter function 46/159446/2
Junghyun Yeon [Thu, 9 Nov 2017 02:50:01 +0000 (11:50 +0900)]
Change pkginfo getter function

- pkgmgrinfo_pkginfo_get_usr_list retrieves whole information
  even it doesn't used by getsize.
- get_usr_list_full will retrieve minimum information
  but it's enough for pkg_getsize's purpose.

Change-Id: I92e04f83e872824f717202f4bc035d038716f311
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.4.4 50/159450/1 accepted/tizen/unified/20171109.124917 submit/tizen/20171109.041728
Seungha Son [Thu, 9 Nov 2017 04:10:20 +0000 (13:10 +0900)]
Release version 0.4.4

Changes:
 - Remove unnecessary dependency

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I34e5a38623038e68da8161d76f2491ad8a09d180

7 years agoRemove unnecessary dependency 12/157912/3
Junghyun Yeon [Fri, 27 Oct 2017 01:30:44 +0000 (10:30 +0900)]
Remove unnecessary dependency

- Remove db-util dependency and replace it into sqlite3
- Remove inclusion of unnecessary header.

Change-Id: I87f09354d62b40fa544e62e99305897b04c51377
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.4.3 31/156631/1 accepted/tizen/4.0/unified/20171019.235305 accepted/tizen/unified/20171020.091602 submit/tizen/20171019.074229 submit/tizen_4.0/20171019.074058 tizen_4.0.m2_release
Junghyun Yeon [Thu, 19 Oct 2017 07:33:45 +0000 (16:33 +0900)]
Release version 0.4.3

Changes:
 - Fix typo error

Change-Id: I1715899ed74f46dc7a31602f6f1c69a200761539
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix typo error 20/156620/1
Junghyun Yeon [Thu, 19 Oct 2017 07:19:41 +0000 (16:19 +0900)]
Fix typo error

Change-Id: I96f103d32c4b87122bdfc1676690a16cd5eaec85
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.4.2 07/156107/1 accepted/tizen/4.0/unified/20171018.060940 accepted/tizen/unified/20171018.062527 submit/tizen/20171017.074628 submit/tizen_4.0/20171017.080654
Junghyun Yeon [Tue, 17 Oct 2017 06:55:44 +0000 (15:55 +0900)]
Release version 0.4.2

Changes:
 - Add update start script

Change-Id: I7abc6d0a43f6b8a1475bd8a6e32e5946bf877cfd
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd update start script 23/155223/1
Junghyun Yeon [Thu, 12 Oct 2017 10:02:53 +0000 (19:02 +0900)]
Add update start script

- Pkgmgr db upgrade will be happened even if there are no platform update
  so seperate update initialization script from platform update script.

Change-Id: Ie847af1969c7ab65c766228b5a0c9729ad9f4ad2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.4.1 52/154952/1 accepted/tizen/unified/20171012.075137 submit/tizen/20171011.123741 submit/tizen_4.0/20171013.025647
Sangyoon Jang [Wed, 11 Oct 2017 12:32:23 +0000 (21:32 +0900)]
Release version 0.4.1

Changes:
 - Fix some static analyzer issues
 - Fix upgrade script

Change-Id: I75f7cc30e78c47eaadb68d676e6a35cd88953942
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoFix upgrade script 03/152603/6
Junghyun Yeon [Tue, 26 Sep 2017 11:53:30 +0000 (20:53 +0900)]
Fix upgrade script

- Invoke pkg_upgrade tool for updated RO packages
- Change schema of datacontrol table.
- Adjust order of inserting order of datacontrol table.

Change-Id: I218f79acbf89caab9f411b3b6173c6871a1b177c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix some static analyzer issues 34/154434/1
Semun Lee [Tue, 10 Oct 2017 07:53:05 +0000 (16:53 +0900)]
Fix some static analyzer issues

- fix resource leak
- check return value properly

Change-Id: I9c3ab936cb6c84dbb664a6c41c74f48f5dab5067
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agoRelease version 0.4.0 35/152435/1 accepted/tizen/4.0/unified/20170927.181738 accepted/tizen/unified/20170927.063509 submit/tizen/20170926.073829 submit/tizen_4.0/20170926.120510 tizen_4.0.IoT.p1_release
Junghyun Yeon [Tue, 26 Sep 2017 06:51:26 +0000 (15:51 +0900)]
Release version 0.4.0

Changes:
 - Fix realpath issue
 - Support debug mode for reinstall, mount install
 - Fix upgrade script

Change-Id: I11df87815627653f2e40fe20e62c7bb2e6fcc31f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix upgrade script 47/151747/5
Junghyun Yeon [Fri, 22 Sep 2017 01:13:34 +0000 (10:13 +0900)]
Fix upgrade script

- Fix wrong scripts to get latest db version properly.
- Remove usage of undefined variable.
- Add codes to migrate user db
- Add codes to migrate cert db

Change-Id: Iec8f5b670959dc984f623ed14e1662fed7c61ccd
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoSupport debug mode for reinstall, mount install 01/151301/2
Semun Lee [Wed, 20 Sep 2017 10:30:41 +0000 (19:30 +0900)]
Support debug mode for reinstall, mount install

Change-Id: I5a54a6dec944415579c172e5d63bdcf57a27c662
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agoFix realpath issue 10/151310/1
Semun Lee [Wed, 20 Sep 2017 10:53:03 +0000 (19:53 +0900)]
Fix realpath issue

realpath may cause buffer overflow by design.
This patch fixes to pass NULL for resolved path to make realpath safe.

Change-Id: I881726619ec14d8cbc4f7c47cf7e8d57d5a13af2
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agoRelease version 0.3.13 49/150249/1 accepted/tizen/4.0/unified/20170920.081432 submit/tizen/20170915.023525 submit/tizen_4.0/20170915.023947
Semun Lee [Fri, 15 Sep 2017 02:22:55 +0000 (11:22 +0900)]
Release version 0.3.13

Changes:
 - Fix bugs on upgrade script
 - fix coding rule error

Change-Id: I245d3d1763059ae540b69801d73e9c070ea7c5f9
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agofix coding rule error 68/149668/2
Youngjae Shin [Wed, 13 Sep 2017 01:44:19 +0000 (10:44 +0900)]
fix coding rule error

Change-Id: I86e3b7ba445367e0af3fa1bad8dfeedae92a6e36

7 years agoFix bugs on upgrade script 75/147275/2
Junghyun Yeon [Sun, 3 Sep 2017 23:39:01 +0000 (08:39 +0900)]
Fix bugs on upgrade script

- Signature file has removed by previous platform for security purpose
  so there are no way to determine privilege level while upgrading.
- So, now upgrade script will make file which stores root cert value
  each package and installer will retrieve it at runtime when there are
  no signature file to read.
- After migration, cert db will be migrated directly into pkg cert db.
- Remove chsmack in script.
- Now tpk related functions will handle rpm packages, too.

Change-Id: I2ec688c94876c903e82274a2eefd63290514578b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.3.12 82/148582/1 accepted/tizen/unified/20170911.155853 submit/tizen/20170908.075925
Junghyun Yeon [Fri, 8 Sep 2017 06:55:36 +0000 (15:55 +0900)]
Release version 0.3.12

Changes:
 - Fix pkgmgr migration script
 - Fix wrong option name

Change-Id: Icc0020463552431792cb911b731c951f8edc7698
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix upgrade script 33/144633/7
Junghyun Yeon [Thu, 17 Aug 2017 09:12:07 +0000 (18:12 +0900)]
Fix upgrade script

- Add updates directory to store actual upgrade script
- Previous upgrade scripts will determine current version and target version
  and execute proper upgrade script by right order
- Add codes for certificate migration to get dist root to determine privilege level
  because signature file has removed in previous platform for security purpose.
- Certificate values now will be inserted into cert db directly.
- Fix to not to remove shared/data and shared/cache

Change-Id: I52942990115b25d0db489bc4333e6560f978c018
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix upgrade script 74/144774/2
Junghyun Yeon [Fri, 18 Aug 2017 01:28:42 +0000 (10:28 +0900)]
Fix upgrade script

- Remove unused function
- Add function to remove files at previous location(/opt/usr/apps)
  after coping it to new location

Change-Id: I7a48df2d6c9a78aa6c8d0f4f7e8dbfdcabb3e829
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix wrong option name 98/144898/2
Sangyoon Jang [Fri, 18 Aug 2017 08:39:21 +0000 (17:39 +0900)]
Fix wrong option name

Change-Id: Ieb59d0a603230400f9b232f785cc5f2ab610e353
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoFix pkgmgr migration script 34/141034/9
Junghyun Yeon [Fri, 28 Jul 2017 01:46:43 +0000 (10:46 +0900)]
Fix pkgmgr migration script

- change to pkg_initdb handle only readonly packages
- seperate preload rw package and normal rw packages as seperate functions

Related changes:
[tpk-backend] : https://review.tizen.org/gerrit/#/c/141412/

Change-Id: I16d7aa4f43bf1acc27803a6a6ab79aba0b4941f7
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.3.11 85/142485/1 accepted/tizen/4.0/unified/20170828.223727 accepted/tizen/unified/20170807.150544 submit/tizen/20170804.060432 submit/tizen_4.0/20170828.100002
Junghyun Yeon [Fri, 4 Aug 2017 05:45:19 +0000 (14:45 +0900)]
Release version 0.3.11

Changes:
 - Support move to extended

Change-Id: I7dac639bb1a67467e35bc59020d7cb7a8fe3f594
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoSupport move to extended 62/140562/3
Sangyoon Jang [Tue, 25 Jul 2017 10:24:08 +0000 (19:24 +0900)]
Support move to extended

Change-Id: Ibd99fb34a05bda84c44d20ca89b6ff14cba57e07
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoRelease version 0.3.10 95/141595/1 accepted/tizen/4.0/unified/20170816.011338 accepted/tizen/4.0/unified/20170816.014703 accepted/tizen/unified/20170803.010453 submit/tizen/20170801.062239 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
Sangyoon Jang [Tue, 1 Aug 2017 05:40:57 +0000 (14:40 +0900)]
Release version 0.3.10

Changes:
 - Fix code style
 - Skip checking reference when installing preload pkgs

Change-Id: Iac173e0899f1d0827a32acfe239d570fbcca2cc6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoSkip checking reference when installing preload pkgs 63/140463/3
Sangyoon Jang [Tue, 25 Jul 2017 05:59:13 +0000 (14:59 +0900)]
Skip checking reference when installing preload pkgs

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

Change-Id: I44eae5ac3c05fe14fe0bceb084bf1f3e06456515
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoFix code style 74/140474/1
Sangyoon Jang [Tue, 25 Jul 2017 06:14:10 +0000 (15:14 +0900)]
Fix code style

Change-Id: Ice9a07a1cbca9b2fec964a79184ceab6af9edc1e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoRelease version 0.3.9 57/136957/1 accepted/tizen/unified/20170706.193111 submit/tizen/20170704.014215 submit/tizen/20170705.015812 submit/tizen/20170707.024819
Sangyoon Jang [Tue, 4 Jul 2017 01:40:16 +0000 (10:40 +0900)]
Release version 0.3.9

Changes:
 - Fix build break

Change-Id: I73917bf9ff4ce78ea627ecd9a873bdc399307820
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoRevert "Add new error handling" 66/136766/2
Bartlomiej Kunikowski [Mon, 3 Jul 2017 06:29:55 +0000 (06:29 +0000)]
Revert "Add new error handling"

This reverts commit 36b92948c41e6f459a89488f6162abd78f69493d.

Change-Id: I5b70c9fe3580e2df303b0dffb7a14927b687914c

7 years agoRelease version 0.3.8 75/136475/1 submit/tizen/20170630.024412
Sangyoon Jang [Fri, 30 Jun 2017 02:09:59 +0000 (11:09 +0900)]
Release version 0.3.8

Changes:
 - Fix upgrade script

Change-Id: I1d93cb63643d449d84d23cae1b6c1d45858492bd
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoFix upgrade script 10/133810/6
Junghyun Yeon [Tue, 13 Jun 2017 10:47:19 +0000 (19:47 +0900)]
Fix upgrade script

- copy manifest of user tpk file to manifest location to be initialized
  by pkg_initdb
- get user wgt packages and invoke backend to be initialized
- Add initialization of restriction db

Change-Id: If92bfdd7346f5ce2e30e00c1d920b23a285ed993
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.3.7 31/133831/1 accepted/tizen/unified/20170629.085235 submit/tizen/20170614.015416
jongmyeongko [Tue, 13 Jun 2017 12:44:04 +0000 (21:44 +0900)]
Release version 0.3.7

Changes:
 - Change scripts

Change-Id: Ic1b6d46eae756459c5afda6c48e4f6d5ecccd9d8
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoChange scripts 61/131961/3
Junghyun Yeon [Wed, 31 May 2017 10:00:57 +0000 (19:00 +0900)]
Change scripts

- Remove scripts for pkg_initdb
- Add initial label change script

Change-Id: Ifcf7aceb5f08c10dc0658e3da29cae5ba21b9e08
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.3.6 26/132026/1 accepted/tizen/unified/20170607.063239 submit/tizen/20170531.235759
Junghyun Yeon [Thu, 1 Jun 2017 00:26:10 +0000 (09:26 +0900)]
Release version 0.3.6

Changes:
 - Fix bug on pkg_getsize

Change-Id: Ifa8aa46811ea2e2d69203597fd6899dd7922711a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix bug on pkg_getsize 48/129948/2
jongmyeongko [Thu, 18 May 2017 12:22:49 +0000 (21:22 +0900)]
Fix bug on pkg_getsize

- Signal for uid doesn't work

Change-Id: Iebdf076ec74c011b6c74582de7b7f4d1e3f62897
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoRelease version 0.3.5 17/129617/1 accepted/tizen/unified/20170517.125630 submit/tizen/20170517.073353 tizen_4.0.m1_release
jongmyeongko [Wed, 17 May 2017 07:29:48 +0000 (16:29 +0900)]
Release version 0.3.5

Changes:
 - Modify calculation logic for data and cache

Change-Id: Ib6c7ddd6debbaadea36650e417ac9a1b2dd0f753
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoModify calculation logic for data and cache. 87/129587/1
jongmyeongko [Wed, 17 May 2017 05:25:56 +0000 (14:25 +0900)]
Modify calculation logic for data and cache.

Exclude the data or cache in the global directory from
the calculation of data or cache size.

Change-Id: I2830772de8046e6b8000624c9d0e3907fa7903da
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoRelease version 0.3.4 17/126917/1 accepted/tizen/unified/20170428.033041 submit/tizen/20170425.040634 submit/tizen/20170427.131814
Junghyun Yeon [Tue, 25 Apr 2017 08:54:51 +0000 (17:54 +0900)]
Release version 0.3.4

Changes:
 - Fix bug about sdcard api
 - Fix cleardata tool
 - Apply taget_uid for GET_PKG_SIZE_INFO_REQ

Change-Id: Id1d1342afddb8af3bc6b0913512d672ae2830345
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoApply target_uid for GET_PKG_SIZE_INFO_REQ 67/126667/3
jongmyeongko [Mon, 24 Apr 2017 13:43:12 +0000 (22:43 +0900)]
Apply target_uid for GET_PKG_SIZE_INFO_REQ

In the root shell, target_uid is assumed as default user.
this is required for the valid calculation of RW directories.

Change-Id: Ia32d2651146afdff1bf7159d8e7ceee3a0982191
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix cleardata tool 63/126663/4
Junghyun Yeon [Mon, 6 Mar 2017 01:25:40 +0000 (10:25 +0900)]
Fix cleardata tool

- Fix to remove external data folder if exists
- Add some usage at help message

Change-Id: I308faac8988dfa31e1fffe7870896fcc3fee0ad8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
(cherry picked from commit 2d68017e46577fedcb51ce760c2f7bc71d7acd69)
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix the bug that local variable can't be assigned by sdcard api. 54/126654/2
jongmyeongko [Mon, 24 Apr 2017 12:16:46 +0000 (21:16 +0900)]
Fix the bug that local variable can't be assigned by sdcard api.

this can cause the crash issue when there is no sdcard.

Change-Id: Ie7608e6b26e29422eaee2e06c7f7daf54f2673b7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoRelease version 0.3.3 67/125167/1 accepted/tizen/unified/20170414.163923 submit/tizen/20170414.043651
Sangyoon Jang [Fri, 14 Apr 2017 04:49:11 +0000 (13:49 +0900)]
Release version 0.3.3

Changes:
 - Fix bug on setting tep option

Change-Id: Ibfacd07e738144c8bfe34dd4bc5791b0cf14eaa3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix bug on setting tep option 46/124246/1
Sangyoon Jang [Tue, 11 Apr 2017 02:22:57 +0000 (11:22 +0900)]
Fix bug on setting tep option

Change-Id: I8a82b80651cbe1ddf9d826d3a10542f6f04afd96
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRelease version 0.3.2 02/123802/1 accepted/tizen/unified/20170407.190626 submit/tizen/20170407.042402
Sangyoon Jang [Fri, 7 Apr 2017 05:09:58 +0000 (14:09 +0900)]
Release version 0.3.2

Changes:
 - Fix app_size calculation
 - Fix static analyzer issues
 - Delete invalid labeling

Change-Id: Ic10fd9a00e8f163fd8077d60b13fe86ab33dea7f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoDelete invalid labeling 12/122112/2
jongmyeongko [Thu, 30 Mar 2017 07:47:54 +0000 (16:47 +0900)]
Delete invalid labeling

The label 'User::Home' for TZ_SYS_RW_PACKAGE is enough.

Change-Id: Ibae510e815b3d3db9205a9df25212ffb5c4e5349
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix static analyzer issue 31/122531/2
jongmyeongko [Mon, 3 Apr 2017 01:34:46 +0000 (10:34 +0900)]
Fix static analyzer issue

Change-Id: I2b98a24932342e94f245094e85940a84cf8361d3
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
(cherry picked from commit 1e26bf7bec3de727741ed36109dca3d140f6eac3)

7 years agoFix static analyzer issues 77/122477/1
Sangyoon Jang [Fri, 31 Mar 2017 12:09:56 +0000 (21:09 +0900)]
Fix static analyzer issues

Change-Id: I94f39bbc7c2721865ed868b496d7d633e9588c7a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix app_size calculation 23/120923/1
jongmyeongko [Thu, 23 Mar 2017 12:33:36 +0000 (21:33 +0900)]
Fix app_size calculation

- Skip the mount point (.mmc, .pkg, tep/mount)
- Add external tep file

Change-Id: I4de49662e54c1c62e73df0135759c8d97296d962
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
(cherry picked from commit 56fc473a0d0ce89006f7e128080fd2f8a64c69b6)

7 years agoRelease version 0.3.1 97/120897/3 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170324.170105 accepted/tizen/ivi/20170327.051931 accepted/tizen/mobile/20170327.051845 accepted/tizen/tv/20170327.051858 accepted/tizen/unified/20170327.051949 accepted/tizen/wearable/20170327.051914 submit/tizen/20170324.134900
Junghyun Yeon [Fri, 24 Mar 2017 13:33:42 +0000 (22:33 +0900)]
Release version 0.3.1

Changes:
 - Fix coding style issue
 - Fix cleardata tool
 - Use %license macro to copy license file
 - Add app2sd file as external app_size
 - Add new error handling

Change-Id: Ib8ae75ce417dab6defc6b96109c708b192d8448a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix coding style issue 01/120901/1
Junghyun Yeon [Fri, 24 Mar 2017 13:47:09 +0000 (22:47 +0900)]
Fix coding style issue

Change-Id: I2e87b6348c1712420e3bd1727559a728cf2c9291
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix cleardata tool send proper signal 96/120896/1
Junghyun Yeon [Fri, 24 Mar 2017 13:29:56 +0000 (22:29 +0900)]
Fix cleardata tool send proper signal

- Currently, clear tool send all signals to root user
- So fix it to send signal to given uid

Change-Id: Iace5bdbac00ea3d45c59ed8ba5343c533543df33
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoUse %license macro to copy license file 43/120443/1
Sangyoon Jang [Thu, 23 Mar 2017 02:17:29 +0000 (11:17 +0900)]
Use %license macro to copy license file

Change-Id: I9dfe3a0e2e0d960e292d9057b169ab4a5f7b4e00
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd app2sd file as external app_size 40/120440/1
jongmyeongko [Wed, 22 Mar 2017 06:05:39 +0000 (15:05 +0900)]
Add app2sd file as external app_size

Requires:
https://review.tizen.org/gerrit/120280

Change-Id: Idd2fd98c0f08377e34509a77181f6543e1d6129d
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
(cherry picked from commit 0c9ff45a261e8bdf0451baba5034050f2de8fd7a)

7 years agoAdd new error handling 14/118914/2
Bartlomiej [Tue, 14 Mar 2017 12:00:29 +0000 (13:00 +0100)]
Add new error handling

Submit together:
 - https://review.tizen.org/gerrit/#/c/118912/

Change-Id: I25c26ab877f8558f78554f6b5bec75cb7a26e6a7

7 years agoRelease version 0.3.0 37/117337/2 accepted/tizen/common/20170306.165223 accepted/tizen/ivi/20170307.050453 accepted/tizen/mobile/20170307.050323 accepted/tizen/tv/20170307.050401 accepted/tizen/unified/20170309.032719 accepted/tizen/wearable/20170307.050426 submit/tizen/20170306.070018 submit/tizen_unified/20170308.100406
jongmyeongko [Sat, 4 Mar 2017 08:52:20 +0000 (17:52 +0900)]
Release version 0.3.0

Changes:
 - Fix cleardata and getsize
 - Add some conditions for app disable/enable
 - Fix wrong path of pkg_getsize
 - Modify cert-info related logic of pkginfo
 - Fix static analysis issue
 - Fix usage of some pkgmgr client APIs

Change-Id: Idb00e8b3e051e4e5c696abcba4aa16a8e9813380
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix cleardata and getsize 06/117006/4
Junghyun Yeon [Thu, 2 Mar 2017 09:28:45 +0000 (18:28 +0900)]
Fix cleardata and getsize

- Remove hardcoded path
- Fix wrong path of pkg_cleardata
- Fix coding rule

Change-Id: I9044d376b97d9fe6d20f5af286fe60b2556b396e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd some conditions for app disable/enable 61/117061/1
Junghyun Yeon [Mon, 26 Dec 2016 11:42:42 +0000 (20:42 +0900)]
Add some conditions for app disable/enable

- Codes will check certain app is installed as global app or not
and call internal api with different target uid
- Add usage about enable/disable pkg/app at help message

Change-Id: Ic1353e0468d661b3e78f05bab3ca54c638dee0be
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix wrong path of pkg_getsize 36/116736/4
Junghyun Yeon [Tue, 28 Feb 2017 04:41:02 +0000 (13:41 +0900)]
Fix wrong path of pkg_getsize

Change-Id: I8bca864316b82ad83f774d006e38a5ae5e6ecc8d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoModify cert-info related logic of pkginfo 65/115165/5
jongmyeongko [Thu, 16 Feb 2017 13:12:10 +0000 (22:12 +0900)]
Modify cert-info related logic of pkginfo

- Privileged user process can handle cert-info.
- Actually, the user id is not neccessary to handle cert-info.
  Because, the cert-info database has unified concept and
  the pkgid/appid is globally unique.

Change-Id: I318d93638221b40004b2128d5287d5fb110ce545
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix static analysis issue 13/115113/1
Junghyun Yeon [Thu, 16 Feb 2017 08:12:37 +0000 (17:12 +0900)]
Fix static analysis issue

Change-Id: I7a5e52bdaaf5e1379c06aaca6f5363f709d04cbe
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix usage of some pkgmgr client APIs 39/114639/2
Junghyun Yeon [Tue, 14 Feb 2017 09:01:54 +0000 (18:01 +0900)]
Fix usage of some pkgmgr client APIs

Related changes:
[slp-pkgmgr] : https://review.tizen.org/gerrit/#/c/114638/

Change-Id: I996ae05f1e9e6a545f71c19acd5fccd608be3089
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.2.0 70/113970/1 accepted/tizen/common/20170209.122557 accepted/tizen/ivi/20170210.004238 accepted/tizen/mobile/20170210.003950 accepted/tizen/tv/20170210.004038 accepted/tizen/wearable/20170210.004132 submit/tizen/20170209.083108
Sangyoon Jang [Thu, 9 Feb 2017 11:15:22 +0000 (20:15 +0900)]
Release version 0.2.0

Changes:
 - Remove unused versioning macro
 - Fix pkg_cleardata to clear shared/data, shared/trusted directory

Change-Id: Ifc0051d78e2dcb0bd20e2251505b1ee93b5f5f1a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoClear shared/data, shared/trusted directory 35/113535/1
Sangyoon Jang [Wed, 8 Feb 2017 05:41:58 +0000 (14:41 +0900)]
Clear shared/data, shared/trusted directory

Change-Id: I81f053bce77b22514b78d49ae526c7958cfbad4b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRemove unused versioning macro 95/110995/1
jongmyeongko [Thu, 19 Jan 2017 06:35:28 +0000 (15:35 +0900)]
Remove unused versioning macro

Change-Id: I97be8d154739f3f20544c4906676df4b06c86109
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoReplace 'readdir_r' with 'readdir' 85/110185/1 accepted/tizen/common/20170113.184248 accepted/tizen/ivi/20170115.221952 accepted/tizen/mobile/20170115.221905 accepted/tizen/tv/20170115.221921 accepted/tizen/wearable/20170115.221937 submit/tizen/20170113.080103
Inkyun Kil [Fri, 13 Jan 2017 07:22:13 +0000 (16:22 +0900)]
Replace 'readdir_r' with 'readdir'

- Fix build error for toolchain upgrade.
  This patch is intended to be missing from previous patch.

Change-Id: I4a766a3ad50e8e088649039fa84ff349d8e20e05
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
7 years agoCalculate size of preloaded package together 07/109607/1 accepted/tizen/3.0/common/20170116.122612 accepted/tizen/3.0/ivi/20170114.000330 accepted/tizen/3.0/mobile/20170114.000237 accepted/tizen/3.0/tv/20170114.000258 accepted/tizen/3.0/wearable/20170114.000313 accepted/tizen/common/20170112.174522 accepted/tizen/ivi/20170112.222546 accepted/tizen/mobile/20170112.222437 accepted/tizen/tv/20170112.222502 accepted/tizen/wearable/20170112.222525 submit/tizen/20170112.013301 submit/tizen_3.0/20170113.111925
Sangyoon Jang [Wed, 11 Jan 2017 02:01:56 +0000 (11:01 +0900)]
Calculate size of preloaded package together

Change-Id: Id0f18ab05ec96f7068ba6c7e842696a0f515235c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoImplement app2sd migration script 20/108220/4 accepted/tizen/3.0/common/20170109.083953 accepted/tizen/3.0/ivi/20170106.095023 accepted/tizen/3.0/mobile/20170106.094843 accepted/tizen/3.0/tv/20170106.094923 accepted/tizen/3.0/wearable/20170106.094950 submit/tizen_3.0/20170105.051635
Junghyun Yeon [Tue, 3 Jan 2017 10:54:52 +0000 (19:54 +0900)]
Implement app2sd migration script

Change-Id: If5d4838d515c392abc97d9097c6a71cfb27a76e3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoSend clear cache signal 56/108356/3
Sangyoon Jang [Wed, 4 Jan 2017 06:33:29 +0000 (15:33 +0900)]
Send clear cache signal

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

Change-Id: Ie3f21ad30721e5f54c862434054b26dc220eddc0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix to send signal to session bus 52/108352/4
Sangyoon Jang [Wed, 4 Jan 2017 06:29:34 +0000 (15:29 +0900)]
Fix to send signal to session bus

To send signal session bus, now pkg_cleardata should be run as app_fw user.

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

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