Junghyun Yeon [Thu, 21 Sep 2017 11:24:03 +0000 (20:24 +0900)]
Fix memory leak
- Newly allocated manifest variable is not assigned at installer context
at that time and it will be leaked if any of function calls in
FillManifestX has failed.
Change-Id: I33c4525d37a2f9a3a19074288246ce6e06af749a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 21 Sep 2017 10:53:10 +0000 (19:53 +0900)]
Release version 1.22.2
Changes:
- Fix static analysis issue
- Do not retry gum API when offline mode
Change-Id: Ide18be170da1e37525653f8d9eb5adb0ef5e845b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 21 Sep 2017 10:20:21 +0000 (19:20 +0900)]
Do not retry gum API when offline mode
The retry logic is useful when dbus method call failed by timing issue,
but when offline mode, gum API doesn't use dbus.
Change-Id: Iaf2dda0f8b94740bdc034d88ff445a8c4ecc1a99
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Tue, 12 Sep 2017 08:11:11 +0000 (17:11 +0900)]
Fix static analysis issue
- Check returned variable whether value is null or not.
Change-Id: Ibdbce0375e5cde22e221990d49d42ddb634eb41d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 8 Sep 2017 06:50:59 +0000 (15:50 +0900)]
Release version 1.22.1
Changes:
- Add method to get privilege level from file
- Set installed storage and external image path when ManifestDirectInstall
- Adjust coding rule
Change-Id: Ia24ad1ef9d374c04759c9ccbf7c0a94a034eca41
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Seungha Son [Thu, 7 Sep 2017 02:43:35 +0000 (11:43 +0900)]
Adjust coding rule
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I15c79936ecdb097fc4e0b53ef52aacde63e17ee7
Sangyoon Jang [Fri, 1 Sep 2017 10:40:23 +0000 (19:40 +0900)]
Set installed storage and external image path when ManifestDirectInstall
Requires:
- https://review.tizen.org/gerrit/145167
Change-Id: I3bdeb3c825ef6a0fcb3cc8eb967871dbbd0dc364
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Mon, 28 Aug 2017 10:56:42 +0000 (19:56 +0900)]
Add method to get privilege level from file
- Signature1 of package has been erased after installation in earlier tizen.
- But signature is needed during migration to latest platform version
to determine privilege level and to be stored at cert db for trusted operations.
- So, add some codes to get dist root cert value from file which is made by
migration script.
- But backend still need to assume privilege level for preload RPM packages.
Change-Id: Idf2fa96fb6c4fbf3e598df48e7d93bf367228628
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Tue, 29 Aug 2017 04:54:06 +0000 (13:54 +0900)]
Release version 1.22.0
Changes:
- Perform code style checking fixes
- Skip security path register when ReadonlyUpdateUninstall
- Set package-recovery process label at systemd service file
- Support installing package at extended storage
- Fix wrong path for extended storage
- AppQueryInterface logic export
- Adapter interface for external PkgMgr module
- Remove unnecessary query in AppQueryInterface::IsPkgInstalled()
Change-Id: I9efa0b9ddef62fc689b3b37c3970ecd1ff5508a8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Damian Pietruchowski [Mon, 12 Jun 2017 14:12:29 +0000 (16:12 +0200)]
Remove unnecessary query in AppQueryInterface::IsPkgInstalled()
One of the ci::QueryIsPackageInstalled() calling is unnecessary.
Change-Id: I4c0fa68a1856543dc5e09d6777be97a9fad172f1
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Damian Pietruchowski [Fri, 14 Jul 2017 15:56:52 +0000 (17:56 +0200)]
Adapter interface for external PkgMgr module
PkgQueryInterface class for pkginfo queries instead of functions.
Advantage of this solution is that pkgmgrinfo_pkginfo_get_usr_pkginfo()
is called only once in constructor and handle is freed in destructor.
Submit together:
- https://review.tizen.org/gerrit/#/c/139347/
- https://review.tizen.org/gerrit/#/c/139346/
Change-Id: I820a92eedcbe90d058c1d61f49a595e0444d1fea
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Damian Pietruchowski [Mon, 12 Jun 2017 13:56:50 +0000 (15:56 +0200)]
AppQueryInterface logic export
IsPkgInstalled() and GetPkgId() have the same implementation for
wgt-backend and tpk-backend, so only GetPkgIdFromPath() should
be overrided in each backends.
Submit together:
- https://review.tizen.org/gerrit/#/c/133520/
- https://review.tizen.org/gerrit/#/c/133519/
Change-Id: I2b8edb1989ed5cf9fa9e4109292365a4721988f6
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Sangyoon Jang [Mon, 21 Aug 2017 11:21:38 +0000 (20:21 +0900)]
Fix wrong path for extended storage
Change-Id: I3cbf51a4bb8dc804c1d9b04b37f25f7ec7577f7b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 17 Aug 2017 11:25:05 +0000 (20:25 +0900)]
Support installing package at extended storage
Change-Id: If8b798161d0b837d1d0c02c1ad88e9a35a215c5f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 18 Aug 2017 09:19:48 +0000 (18:19 +0900)]
Set package-recovery process label at systemd service file
Change-Id: I4490f336e5b2f2e8fa37eaf47d15d4bfb0a1481e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 18 Aug 2017 07:38:11 +0000 (16:38 +0900)]
Skip security path register when ReadonlyUpdateUninstall
Change-Id: I14ec76de118c53005b32d4e4c1aaf8b2dbfa9def
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Bartlomiej Kunikowski [Fri, 11 Aug 2017 08:42:09 +0000 (10:42 +0200)]
Perform code style checking fixes
Change-Id: I72e8d7149aa46e028851f77f04c1b8b301bb675d
Seungha Son [Fri, 11 Aug 2017 06:32:48 +0000 (15:32 +0900)]
Release version 1.21.1
Changes:
- Fix bug on StepDeltaPatch step
- Remove backup dir for shared/res feature of web app
- Unnecessary uses of strcmp() in StepParsePreload
- Fix uninstalling package installed at extended storage
- Fix wrong reference in PrepareAppDefinedPrivilegeData
- Fix SetPackageDirectoryOwnerAndPermissions
- Add exception handler
- Add OOM exception handler
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Ia074cc40e09cafc7f6b0b8a7968cb922451ee6b9
Seungha Son [Fri, 4 Aug 2017 01:16:49 +0000 (10:16 +0900)]
Add OOM exception handler
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Ib23567136a901d8a9a833b23db3292abeaef2177
Seungha Son [Thu, 10 Aug 2017 09:53:36 +0000 (18:53 +0900)]
Add exception handler
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I4efd0db6fe47e21da0cd84380a974bb247f5a3be
Sangyoon Jang [Tue, 8 Aug 2017 09:05:44 +0000 (18:05 +0900)]
Fix SetPackageDirectoryOwnerAndPermissions
Skip when path is symlink.
Change-Id: Id133bb82a196c276340bb9588f633988ca1aa95d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
jongmyeongko [Thu, 10 Aug 2017 02:46:49 +0000 (11:46 +0900)]
Fix wrong reference in PrepareAppDefinedPrivilegeData
Change-Id: I5af7fbbb8ac32c8e3f3d19eaf255006664fc6edc
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Thu, 3 Aug 2017 11:59:18 +0000 (20:59 +0900)]
Fix uninstalling package installed at extended storage
Change-Id: Id4ed544792f34a1e6803f03bab4e24ab7c5f75ee
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Damian Pietruchowski [Wed, 5 Jul 2017 16:10:24 +0000 (18:10 +0200)]
Unnecessary uses of strcmp() in StepParsePreload
Change-Id: Ia2d6b3ff6d4fe6a3b14f9f1136b9914d6c1b6bb6
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
jongmyeongko [Mon, 17 Jul 2017 04:56:42 +0000 (13:56 +0900)]
Remove backup dir for shared/res feature of web app
This step is called at the recovery request.
Change-Id: I211d17f59d92f989862ef1affd090197aa72d03e
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Mon, 7 Aug 2017 07:04:10 +0000 (16:04 +0900)]
Fix bug on StepDeltaPatch step
invalid condition-check
Change-Id: I193b2e0a216b8b38b7cb60efa2fd4be426a3c7d8
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Fri, 4 Aug 2017 05:35:54 +0000 (14:35 +0900)]
Release version 1.21.0
Changes:
- Implement trust anchor feature
- Fix capability of pkgdir-tool
- Implement extended storage feature
Change-Id: I7285301dc4b506575818192b4ee46c6d60e1963d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 29 Jun 2017 06:27:54 +0000 (15:27 +0900)]
Implement extended storage feature
Change-Id: Ifd2a5c6f94c959a0b3bbbff55b52aa5b9d892f29
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 2 Aug 2017 07:49:37 +0000 (16:49 +0900)]
Fix capability of pkgdir-tool
pkgdir-tool will have capabilities only by inheritance.
Change-Id: I960ef63906f913f918b4de734f39dce7e8859271
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Thu, 29 Jun 2017 05:14:28 +0000 (14:14 +0900)]
Add logics for trust anchor
- Add parsing and fillup codes to fill trust anchor info
- Add StepRegisterTrustAnchor, StepUnregisterTrustAnchor, StepUpdateTrustAnchor
Related changes:
[tpk-manifest-handlers] : https://review.tizen.org/gerrit/136315
[pkgmgr-info] : https://review.tizen.org/gerrit/136317
[wgt-backend] : https://review.tizen.org/gerrit/136858
[wgt-manifest-handlers] : https://review.tizen.org/gerrit/136866
[tpk-backend] : https://review.tizen.org/gerrit/137370
Change-Id: I5c45c518d113c921df271b3a3f27ae27368fae7f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Tue, 1 Aug 2017 05:33:35 +0000 (14:33 +0900)]
Release version 1.20.0
Changes:
- Fix static analysis issue
- Store dist2 cert info when E_SIG_REGARDED returned
- Fix setting distributor2 certificate
- Handle skip-check-reference option
- Add appdefined privilege feature
- Add codes for backup directory at recovery
Change-Id: I6e79ea42d38c2030f66fcc7a19ca7a85d5277396
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Wed, 26 Jul 2017 11:57:23 +0000 (20:57 +0900)]
Add codes for backup directory at recovery
- Directories which have .bck postfix will be removed
when recovery requests
Change-Id: I6c4571fe5fe5fa45906a5e7aa9f6bd8a9d7ee781
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
jongmyeongko [Mon, 3 Jul 2017 14:00:59 +0000 (23:00 +0900)]
Add appdefined privilege feature
Requires :
https://review.tizen.org/gerrit/#/c/136928/
https://review.tizen.org/gerrit/#/c/137368/
Change-Id: Id02573078e37971acd375224a1cfdd67762a304c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Tue, 25 Jul 2017 06:11:10 +0000 (15:11 +0900)]
Handle skip-check-reference option
A new installer option is introduced. When skip-check-reference flag is
set, installer will skip checking reference at signature validation step.
Requires:
- https://review.tizen.org/gerrit/139436
Change-Id: If1a14a199456fb2a5aa200485626d75aa7f2222d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 26 Jul 2017 11:52:07 +0000 (20:52 +0900)]
Fix setting distributor2 certificate
The intermediate certificate is not mendatory for distributor2
certificates.
Change-Id: Ie97eee599aed89b3bce8c83f7e7b169212825fbb
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 25 Jul 2017 10:21:41 +0000 (19:21 +0900)]
Store dist2 cert info when E_SIG_REGARDED returned
Change-Id: I41a5f7eedb993234cbaee662e0e44b4ad7fd3cdc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Mon, 24 Jul 2017 10:06:12 +0000 (19:06 +0900)]
Fix static analysis issue
- Attacker could hijack contents of package by watching creation of
temporary directory for installation and make symbolic link which points
other file inside of it.
- Adding 'x' option when open package using fopen() will prevent it.
Change-Id: Ic0b5c87fd86c6ce9c6cf68e75e12c9de4227e8bc
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 18 Jul 2017 02:24:38 +0000 (11:24 +0900)]
Release version 1.19.2
Changes:
- Fix a bug on processing system packages
- Add dynamic loading for app2ext library
- Revert "Check if in uninstalled app dirs are mounted files"
- Set system_share group on data dirs when new user added
- Add plugin parser infos
- Revert "Set User::Home label to shared/res of wgt package"
- Reducing unnecessary code
- Update app root path when switching readonly mode
Change-Id: I167e0110a6329ec39761f4d72565725009da655b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Tue, 11 Jul 2017 10:23:01 +0000 (19:23 +0900)]
Update app root path when switching readonly mode
Change-Id: I8d83e12fa1c511d0061a279235ca80a5a6b83751
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Bartlomiej Kunikowski [Wed, 21 Jun 2017 09:44:07 +0000 (11:44 +0200)]
[Refactor] Reducing unnecessary code and refactor
Change-Id: Ia7668d0f4de4799c0f17a42df2bbafb2d8d39178
jongmyeong ko [Fri, 14 Jul 2017 12:21:36 +0000 (12:21 +0000)]
Revert "Set User::Home label to shared/res of wgt package"
This reverts commit
75d8f164e1cad6b24a549d8638cbac5ba42b9cd5.
Change-Id: I2f45ca17925a30c48bee2933783eddd8870a9534
Sangyoon Jang [Fri, 14 Jul 2017 09:26:42 +0000 (18:26 +0900)]
Add plugin parser infos
libactivity-parser, libapp-upgrade-parser added.
Change-Id: If393a9c522a2dd755a8b19bce0cabab8139c3ffc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 4 Jul 2017 02:29:04 +0000 (11:29 +0900)]
Set system_share group on data dirs when new user added
Change-Id: I81298911df07f74f5fa91d2b4b34b8ead834874c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
jongmyeong ko [Thu, 13 Jul 2017 07:40:19 +0000 (07:40 +0000)]
Revert "Check if in uninstalled app dirs are mounted files"
This reverts commit
ea66fe10d96114efdf2f661f9ab363136a57ed9e.
Original commit is for preventing uninstallation before unmount of the mounted point for current target pkg. (actual case : run external installed pkg)
But, We should be able to uninstall pkg regaredless of mount state.
So, New patch should be considered to actually unmount the point in the unistall progress.
Note: there, in the platform, is another chance to unmount all mounted points for external pkg when sdcard is removed.
Change-Id: I013b0bfb4734ec92549de840faa516ddbbf6b783
Piotr Ganicz [Tue, 27 Jun 2017 13:25:57 +0000 (15:25 +0200)]
Add dynamic loading for app2ext library.
That patch creates App2ExtDynamicService class that loads
the app2ext library at runtime.
As a result, libapp-installer.so can be used without
availability of libapp2ext.so.0 on the platform. This allows
app-installers users to save memory space on devices which
do not use SD card(by removing app2ext lib).
App2ExtDynamicService exports an app2ext lib API. In constructor
it searches for libapp2ext.so.0 in default lib locations. If library
is found then API works properly, otherwise it returns errors
(Depending on the function return type).
Change-Id: I3591b2cee9d19e268dddb7c4764acd9f0a406df3
jongmyeongko [Mon, 10 Jul 2017 12:47:02 +0000 (21:47 +0900)]
Set User::Home label to shared/res of wgt package
The 'shared/res' feature is new one in tizen 3.0 for wgt package.
It has the purpose of sharing resoures with other packages.
For this, the proper lable is necessary.
Change-Id: I7273cfeba43946c0bb956c46ca1f680d5e1cc937
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Thu, 29 Jun 2017 10:15:06 +0000 (19:15 +0900)]
Fix a bug on processing system packages
- ReadonlyUpdateUninstall will be triggered when the package is 'system'
and 'update' package.
- Non-removable preload package will be a non-system package after updated.
Change-Id: I6266cc8894a85bedd4e870e02357d55ad4428150
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 7 Jul 2017 02:13:18 +0000 (11:13 +0900)]
Release version 1.19.1
Changes:
- Fix parsing datacontrol privileges
- Parse app-control privileges
Change-Id: Ia7f5e6836b15060085ebe3fa0726348f89aa52af
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 4 Jul 2017 02:30:04 +0000 (11:30 +0900)]
Parse app-control privileges
Requires:
- https://review.tizen.org/gerrit/137217
- https://review.tizen.org/gerrit/135960
Change-Id: I46022c199cdbe7eb25d11545db74893d56efefef
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 6 Jul 2017 08:35:37 +0000 (17:35 +0900)]
Fix parsing datacontrol privileges
Requires:
- https://review.tizen.org/gerrit/137528
- https://review.tizen.org/gerrit/137530
Change-Id: Ie81706fad9875bd6202d24b708eca2f90240071e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
jongmyeongko [Wed, 5 Jul 2017 11:31:44 +0000 (20:31 +0900)]
Release version 1.19.0
Changes:
- Linker optimization for release build
- Binary size reduction
- Fix setting update attribute
- Add new status for recovery process done
- Do clean operation in opposite direction
Change-Id: I79b84b2f101769edb1970b49da02c2210f71d5dc
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Piotr Ganicz [Wed, 21 Jun 2017 08:25:54 +0000 (10:25 +0200)]
Linker optimization for release build
Change-Id: Ia784025aec012117f0222c9f6d993f91d5bc23ce
Piotr Ganicz [Thu, 22 Jun 2017 09:03:39 +0000 (11:03 +0200)]
Binary size reduction
This commit reduces binary size by removing usage
of boost str and boost format functions (about 20kB less).
Change-Id: I62be9b8fa6dd3db8ad3abe128e2cff8f42cefd0d
Sangyoon Jang [Thu, 29 Jun 2017 10:43:39 +0000 (19:43 +0900)]
Fix setting update attribute
When ReadonlyUpdateUninstall, update should be false.
Change-Id: Ieda308e85724a3d6c1bfd4e452e8dc82ac2a5cc3
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Damian Pietruchowski [Tue, 14 Mar 2017 08:33:23 +0000 (09:33 +0100)]
Add new status for recovery process done
Create new status for early terminated of recovery request
without errors.
Requires:
- https://review.tizen.org/gerrit/#/c/128628/
Change-Id: Idc646db6921cd646d3503bac5aaed4e699b55906
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Damian Pietruchowski [Wed, 10 May 2017 14:44:37 +0000 (16:44 +0200)]
Do clean operation in opposite direction
Change-Id: I6a18f2583a382b102fd5ac17971d160e19eaa7fd
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Sangyoon Jang [Tue, 20 Jun 2017 05:40:23 +0000 (14:40 +0900)]
Release version 1.18.2
Changes:
- Add another condition for external pkgs
- Fix metadata plugin parser matching logic
Change-Id: I670d942fdf8c238ca6b91d609785131417d24dbf
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 20 Jun 2017 05:33:09 +0000 (14:33 +0900)]
Fix metadata plugin parser matching logic
Change-Id: I0cc3fc2b0cba9afc5438d80731dfcf278b5a8506
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Tue, 13 Jun 2017 09:57:36 +0000 (18:57 +0900)]
Add another condition for external pkgs
- Skip if destination file/folder is symlink
to enable manifestdirectinstall on externally installed pkgs
Change-Id: Ia10cf4bc6e080c9e31f36fe0ae46c0a3a240b498
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Fri, 16 Jun 2017 04:29:19 +0000 (13:29 +0900)]
Release version 1.18.1
Changes:
- Fix memory leaks
- Call plugin parser when the name matched exactly
Change-Id: Idc2cd4af63deb9590113fa4872c58c25e6142724
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 15 Jun 2017 09:16:46 +0000 (18:16 +0900)]
Fix to unref DBusConnection properly
Change-Id: I358a9f84efdcb27d7f03aa20c89d902e3e5c7b1d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 15 Jun 2017 02:18:31 +0000 (11:18 +0900)]
Call plugin parser when the name matched exactly
Change-Id: I3cacaa20694b14403830f243184e81bcd284fba6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 13 Jun 2017 10:53:34 +0000 (19:53 +0900)]
Fix a wrong unref
service object has been unrefed twice when the retry count overred max.
Change-Id: I526fc679c96f74d4baa1dc6f1a645e640c306a18
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Inkyun Kil [Wed, 7 Jun 2017 03:26:40 +0000 (12:26 +0900)]
Release version 1.18.0
Changes :
- Fix signaling for appid
- Fix coding style violations
- Add parsing logic for datacontrol privileges
- Fix logic of 'update' and 'removable' attibutes
- New FSFlag for preserve ownership and permissions
- Fix for StepCopyStorageDirectories
- ConfigurationStep performance improvement
Change-Id: Ib03c559a7f2ada182b5084cc89dcf8ac5da18f69
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Piotr Ganicz [Fri, 2 Jun 2017 06:02:26 +0000 (08:02 +0200)]
ConfigurationStep performance improvement
Process function unnnecessarily calls PkgMgrInteface ->GetRequestType()
more than once without storing the received value. That results in
queriying the database for the same results many times which is slow.
Change-Id: I80f5381c6574e992260be44bd40fcafdf5df379a
Damian Pietruchowski [Tue, 4 Apr 2017 11:12:04 +0000 (13:12 +0200)]
Fix for StepCopyStorageDirectories
Files in storage directories should not be removed from
backup, so this files should be copied, not moved.
Requires: https://review.tizen.org/gerrit/#/c/123084/
Change-Id: I6dce45886a6cff6113bf42c3aad497fa41d45a2e
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Damian Pietruchowski [Tue, 4 Apr 2017 10:24:20 +0000 (12:24 +0200)]
New FSFlag for preserve ownership and permissions
Change-Id: I35124a78ea4564ae1a4b70132fbe5b94a764b53c
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
jongmyeongko [Wed, 24 May 2017 11:59:50 +0000 (20:59 +0900)]
Fix logic of 'update' and 'removable' attibutes
'update=true' means that updated 'preload=true' package by downloadable update.
RW global app can be 'preload=true'.
And, RW global app can be 'removalbe=false'.
Also, RW global app can be upgraded using downloaded package file.
After upgrade, the app should have 'update=true' and 'removable=true'.
About the logic to keep 'preload' attribute when 'preload' package is updated
by downloadble upate in StepParsePreload, we don't need to consider direct-update case
(includes partial-update)
Because, we should explicitly give the option to present 'preload' or not,
in direct-install/update request (--preload, --preload-rw or none).
Test:
1. Install as RW global app as not-removable package:
2. Update as download package
Change-Id: I864c348df806eea123b26f55114b24de897592c9
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Inkyun Kil [Mon, 15 May 2017 11:21:31 +0000 (20:21 +0900)]
Add parsing logic for datacontrol privileges
- Related patches
[pkgmgr-info] https://review.tizen.org/gerrit/#/c/129210/
[tpk-manifest-handler] https://review.tizen.org/gerrit/#/c/129211/
[data-control] https://review.tizen.org/gerrit/#/c/129882/
[amd] https://review.tizen.org/gerrit/#/c/129881/
[aul-1] https://review.tizen.org/gerrit/#/c/129880/
Change-Id: I4fd53cf493cc1baf5892f77a2b0a3f99512d1637
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
jongmyeongko [Thu, 25 May 2017 08:37:01 +0000 (17:37 +0900)]
Fix coding style violations
Change-Id: Id758dba5373f58a59cc9965a87400f6dadf62e8b
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Wed, 24 May 2017 13:20:57 +0000 (22:20 +0900)]
Fix signaling for appid
Only uninstall case requres this signal.
Change-Id: I5506916da2063b949a44c92c0e989bb23707b66a
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Thu, 1 Jun 2017 00:18:53 +0000 (09:18 +0900)]
Release version 1.17.10
Changes:
- Set privilege_level to pkgmgr_installer_info
- Continue recovery process when exception occured instead of exit
- Remove using deprecated security-manager API
- Move unversioned so file to devel package
Change-Id: I1b2869e83162dc1d82fe43ceaf7fea0038f76ed3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Semun Lee [Fri, 26 May 2017 00:59:34 +0000 (09:59 +0900)]
Move unversioned so file to devel package
- Unversioned so file is not needed at runtime. It is only used at build time.
Change-Id: Ibd764c5a07e4e2674338171616c5ad17c8918845
Signed-off-by: Semun Lee <semun.lee@samsung.com>
Junghyun Yeon [Fri, 26 May 2017 01:14:25 +0000 (10:14 +0900)]
Remove using deprecated API
Change-Id: I47596dc1c14f0d60ac76d1c366c17aa361b51e91
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 25 May 2017 04:51:03 +0000 (13:51 +0900)]
Continue recovery process when exception occured instead of exit
Change-Id: Id45e31e2c8d252db09314d4eb898ae7b968bacb2
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
jongmyeongko [Fri, 19 May 2017 04:05:55 +0000 (13:05 +0900)]
Set privilege_level to pkgmgr_installer_info
Requires:
https://review.tizen.org/gerrit/#/c/130050/
Change-Id: I7bce20e7dac855f8d29bdecd64779d4f29779138
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Fri, 19 May 2017 04:52:51 +0000 (13:52 +0900)]
Release version 1.17.9
Changes:
- Add/delete certain directory when updating pkg
- Unregister package from security manager/pkgmgr by pkgid
- New functions for creating and deleting storage dirs
Change-Id: I61d42e500040fefdd223ff0f64c8e882d720d56e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 24 Apr 2017 03:57:31 +0000 (12:57 +0900)]
Add/delete certain directory when updating pkg
- Shared/data should be added/removed depends on api version and privilege
of updated package.
- Installer will check these and update folder by adding/deleteing it.
Related changes:
[tpk-backend] : https://review.tizen.org/gerrit/#/c/128001/
Change-Id: I6d12620963b31ded9716f318259a82a238a87fd4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
jongmyeong ko [Tue, 16 May 2017 03:46:10 +0000 (03:46 +0000)]
Merge "Unregister package from security manager by pkgid" into tizen
Bartlomiej [Mon, 13 Mar 2017 07:37:33 +0000 (08:37 +0100)]
Unregister package from security manager by pkgid
We need to unregister package from security-manager when
manifest file is invalid, this is necessary in recovery
process of installation.
Requires:
- https://review.tizen.org/gerrit/#/c/119051/
- https://review.tizen.org/gerrit/#/c/119053/
Change-Id: I27ee009e8bdacf2b355f0bf42d94d52e39fd6115
Bartlomiej [Mon, 13 Mar 2017 09:02:12 +0000 (10:02 +0100)]
Unregister package from pkgmgr by pkgid
We need to unregister package from pkgmgr when
manifest file is invalid, this is necessary in recovery
process of installation.
Requires:
- https://review.tizen.org/gerrit/#/c/118631/
Change-Id: I3da7b017cbc1b78f7650860fd1e75d1742d016a7
Damian Pietruchowski [Wed, 5 Apr 2017 15:54:41 +0000 (17:54 +0200)]
New functions for creating and deleting storage dirs
Change-Id: Iceeaa4ac831ee01de3aaeb122e73fbafbae3e0fb
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Sangyoon Jang [Fri, 12 May 2017 05:31:27 +0000 (14:31 +0900)]
Release version 1.17.8
Changes:
- Remove rw directories when request mode is global
- Add waiting for unmounted condition
- Remove build warnings
Change-Id: I9d51f74f00e7c460ab9710b0165aededdce87e34
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Thu, 11 May 2017 00:57:46 +0000 (09:57 +0900)]
Remove build warnings
Change-Id: Ie231b44cba0940e7961ff0d263e6a426497191ea
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Damian Pietruchowski [Tue, 7 Mar 2017 12:43:04 +0000 (13:43 +0100)]
Add waiting for unmounted condition
Add waiting until file will be unmounted at the
end of UnmountZip() method.
Change-Id: Ic159b6b235600e81b9d22a016daac9089d98df0f
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Damian Pietruchowski [Mon, 20 Feb 2017 11:32:44 +0000 (12:32 +0100)]
Remove rw directories when request mode is global
Runtime rw directories should be removed in update for
global request mode.
Change-Id: If9d6c095a91284937b461ae9b60446dbfdcad720
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
Sangyoon Jang [Fri, 28 Apr 2017 04:53:30 +0000 (13:53 +0900)]
Release version 1.17.7
Changes:
- Set default value of datacontrol trusted attribute
- Keep 'preload' attribute in update case
Change-Id: Icf90a0df72f0624e78ff3ccc950873f510e4f4e3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 27 Apr 2017 02:47:10 +0000 (11:47 +0900)]
Keep 'preload' attribute in update case
In case of ReadonlyUpdateInstall, ReadonlyUpdateUninstall and
Update preload-rw should keep preload value.
Change-Id: I7f307db3c3dbaf792c9d0806512c11b9dbfc5db7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 28 Apr 2017 02:02:49 +0000 (11:02 +0900)]
Set default value of datacontrol trusted attribute
Change-Id: I87b95ed496ea0a8721644c90ed2a721ff9873925
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 27 Apr 2017 02:50:01 +0000 (11:50 +0900)]
Fix a wrong log message
Change-Id: Ia6f5ef9ddc7eafe7b1ce943a9344f03fb64f8b57
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Fri, 21 Apr 2017 01:52:12 +0000 (10:52 +0900)]
Release version 1.17.6
Changes:
- Add datacontrol trusted flag parsing logic
- Use current_exception to catch all exception
- Include missing header
- Adding useful method
- Add missing initialization of ExternalStorage class
- Remove unnecessary checking for deletion of skel dirs
Change-Id: I370f32397cd504ad2ff997ccd4013c418516ebef
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
jongmyeongko [Wed, 19 Apr 2017 09:53:59 +0000 (18:53 +0900)]
Remove unnecessary checking for deletion of skel dirs
skel dir was already moved from /etc/skel to /opt/etc/skel (RW)
Change-Id: I0649a6de654dea6348784befd7962da7b7a27129
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Thu, 20 Apr 2017 02:39:56 +0000 (11:39 +0900)]
Add missing initialization of ExternalStorage class
Change-Id: I6d976954067dd9d6df438dc2b8680fae6b033c18
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Piotr Ganicz [Thu, 16 Feb 2017 12:52:24 +0000 (13:52 +0100)]
Adding useful methods to app-installer
This patch adds useful methods for testing without
changing the enacapsulation of the class.
Change-Id: I370ed71678961019cef902f47283d6667611fc1c
Sangyoon Jang [Wed, 19 Apr 2017 05:50:56 +0000 (14:50 +0900)]
Include missing header
- Include diagnostic_information.hpp
- Remove unused headers
Change-Id: I0797138f1c8d71f5d3c2e598575627434643e3e9
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 18 Apr 2017 12:22:47 +0000 (21:22 +0900)]
Use current_exception to catch all exceptions
Change-Id: I0a9a165a82367d911706702eaba162d60717c4f2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Jiwoong Im [Mon, 10 Apr 2017 06:52:53 +0000 (15:52 +0900)]
Add datacontrol trusted flag parsing logic
- Related patches
[data-control] https://review.tizen.org/gerrit/#/c/124099/
[pkgmgr-info] https://review.tizen.org/gerrit/#/c/124100/
[tpk-manifest-handler] https://review.tizen.org/gerrit/#/c/124101/
Change-Id: I9574a7cb116ffcaa9e409cf4c84bc6750556ce99
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Junghyun Yeon [Tue, 18 Apr 2017 11:57:25 +0000 (20:57 +0900)]
Release version 1.17.5
Changes :
- Fix mount installation failure
Change-Id: If1d145e0c2fcd9102f6f255e21580d88641856f5
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
jongmyeongko [Tue, 18 Apr 2017 03:24:11 +0000 (12:24 +0900)]
Apply some changes of tizen 3.0
Add error handling in the step of StepRemoveFiles
- https://review.tizen.org/gerrit/#/c/123346/
Fix wrong behavior related to keep_rwdata
- https://review.tizen.org/gerrit/#/c/123333/
Change-Id: I0537e4097cad7cd287ec27d57e7bd168d31b8add
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Sat, 8 Apr 2017 06:40:16 +0000 (15:40 +0900)]
Fix Mount Installation Failure
Fix side-effect from previous change related to symlink files
Submit with :
[tpk-backend] https://review.tizen.org/gerrit/#/c/123948/
[wgt-backend] https://review.tizen.org/gerrit/#/c/123949/
Change-Id: I7e39ac91c7fd17f1fcad9b4c134e19d636146f8b
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
(cherry picked from commit
0405750ddb8837f86c5cce017af0e463b2c6592f)