jongmyeongko [Tue, 6 Dec 2016 11:00:11 +0000 (20:00 +0900)]
Apply the change of skel root path from /etc to /opt/etc
The change of skel root path is from readonly mount policy of root filesystem.
(/etc is included in root filesystem.)
Because the skel is designed as writable concept, the root path of skel should be changed in RW partition.
Change-Id: Iec87da4ee3533fb415114bc8c24e138e4cb01257
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Wed, 4 Jan 2017 08:00:16 +0000 (17:00 +0900)]
Set group of cache dir as system_share
cache dir should be treated as data, shared/data.
Change-Id: I9864c0f42ff4901e206d7051605e677d82284359
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 27 Dec 2016 07:54:49 +0000 (16:54 +0900)]
Revert "Temporary fix for hybrid pkg installation"
This reverts commit
01c6dc4d8426123f93e91130620bd6cd2fdfd86f.
Now hybrid installer can merge manifest completely.
Submit with:
- https://review.tizen.org/gerrit/107236
- https://review.tizen.org/gerrit/107237
- https://review.tizen.org/gerrit/107238
- https://review.tizen.org/gerrit/107239
Change-Id: Ic90a5d6e8a0e3eb419647c6433e20a48e83fd15d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeongko [Wed, 28 Dec 2016 11:54:39 +0000 (20:54 +0900)]
Skip to change ownership and permissions to the symlink file
To prevent chaning to the path outside of application path.
Change-Id: Id3c5d3ca33ec7e6f484c8185d0279fc109cafa39
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Tue, 27 Dec 2016 13:12:16 +0000 (22:12 +0900)]
Add new plugin parser library to the list
Change-Id: Ia829e470d0a7881bf356ce049134b6fd18289666
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Tue, 27 Dec 2016 06:23:48 +0000 (15:23 +0900)]
Fix wrong if condition at CMakeLists.txt
Change-Id: Ia088843da1b5b24f10afa612af817681e60a3947
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Mon, 26 Dec 2016 07:31:08 +0000 (16:31 +0900)]
Remove codes which refers deleted attribute
Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/107032
[tpk-backend] : https://review.tizen.org/gerrit/107034
[wgt-backend] : https://review.tizen.org/gerrit/107035
Change-Id: I68669c969a484a2bd19a94f75c0cd294b2e804e2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 26 Dec 2016 06:29:34 +0000 (15:29 +0900)]
Fix profile macro
Change-Id: I54594c5d334b8c217acbdeccb9e49bd730d55bdf
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 23 Dec 2016 02:40:28 +0000 (11:40 +0900)]
Revert "Support legacy content directory path"
This reverts commit
10d8245726f7cc1125878a3af35cb2ddf92df867.
Adjusting legacy content path will be done by pkgmgr-server.
Submit with:
- https://review.tizen.org/gerrit/106773
Change-Id: I9eb30805c8ba9837cbe33687b3b0dfb349e552bd
Junghyun Yeon [Mon, 19 Dec 2016 08:39:16 +0000 (17:39 +0900)]
Cleardata will not be handled by backend
- Cleardata operation will be handled by pkg_cleardata
- Remove features related with it
Related changes:
[pkgmgr-server] : https://review.tizen.org/gerrit/106486
[pkgmgr-tool] : https://review.tizen.org/gerrit/106485
[tpk-backend] : https://review.tizen.org/gerrit/106603
[wgt-backend] : https://review.tizen.org/gerrit/106601
Change-Id: I19664fa8841467395c236af9a3a63fd206ded02e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 22 Dec 2016 02:23:43 +0000 (11:23 +0900)]
Add undo operation at StepCreatePerUserStorageDirectories
Change-Id: Ifaf8786995d4fad30be39adcd52d463cda2dcbda
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Tue, 20 Dec 2016 06:12:23 +0000 (15:12 +0900)]
Fox to not print error message when certinfo is not exists
Change-Id: I4c70db626d2ad65658ab6810c250e67d44734382
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 19 Dec 2016 11:37:03 +0000 (20:37 +0900)]
Fix setting mainapp attribute
Use parsed mainapp first, but if there is no parsed mainapp, take first
app as mainapp.
Requires:
- https://review.tizen.org/gerrit/106007
Change-Id: I021f86bbdfae95034b542d9b9ae4a00875ed7e29
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 19 Dec 2016 07:34:06 +0000 (16:34 +0900)]
Fix undo() of StepCopyStorageDirectories
Skip when global mode like as process().
Change-Id: Ic2dcf9d4782d9018b24941b7cd37471e5bcae9f0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 19 Dec 2016 06:46:29 +0000 (15:46 +0900)]
Fix some log level
Change-Id: I0fd06c529811bbe5bd1da8898f257240e8825cad
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Piotr Dabrowski [Mon, 19 Dec 2016 07:18:23 +0000 (08:18 +0100)]
Create private tmp directory in skel
Submit together:
https://review.tizen.org/gerrit/#/c/105467/
https://review.tizen.org/gerrit/#/c/105468/
Change-Id: I5556e12d01a66111b9ccfd86ee0b5c5b5d51af91
Sangyoon Jang [Fri, 16 Dec 2016 13:31:45 +0000 (22:31 +0900)]
Revert "Revert "Add missing definition at CMakeLists.txt""
This reverts commit
08089ea54582eb8f6f12ec83738f4712bd2e5dc4.
Change-Id: I6667edf2c606b5344653d27804d6681cd9c8871d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 16 Dec 2016 13:19:41 +0000 (22:19 +0900)]
Revert "Add missing definition at CMakeLists.txt"
This reverts commit
17318972d51074cef7e6147109d038833e9da81b.
Temporary disable admin user global installation policy.
Change-Id: I8e4d39acdc934fa87107b84413c5580e0a322d88
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeongko [Fri, 16 Dec 2016 12:13:48 +0000 (21:13 +0900)]
fix on handling the request from admin user as global request
- to support parser plugin
Change-Id: I5861c5733db1b8e6413887458586d357a64c17e1
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Fri, 16 Dec 2016 08:40:42 +0000 (17:40 +0900)]
Fix update failure requested by admin user
Change-Id: Ibd160635361f8d62cf546b300efe924e83173aa5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Piotr Ganicz [Wed, 14 Dec 2016 10:10:38 +0000 (11:10 +0100)]
Code style check
This change removes all errors detected by check-coding-style script.
Change-Id: Id5bc7abcade2558295494d1b4fabe8d59815f3d5
Sangyoon Jang [Thu, 15 Dec 2016 06:52:08 +0000 (15:52 +0900)]
Add missing definition at CMakeLists.txt
Change-Id: Iaa830f968b1b429882f8fc8d7cd79af2071a915b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 14 Dec 2016 04:03:49 +0000 (13:03 +0900)]
Parse support-disable
Change-Id: I1085bef5f9b4ba60a53d439cdd9178548eb152b4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Wed, 14 Dec 2016 07:24:11 +0000 (23:24 -0800)]
Merge "Add default permission of directory for global pkg to 755" into tizen_3.0
Sangyoon Jang [Wed, 9 Nov 2016 07:07:21 +0000 (16:07 +0900)]
Handle request from admin user as global request
Change-Id: I1de150ffc7bc13cd3615e77a168c5c0493a26d39
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Wed, 14 Dec 2016 02:29:19 +0000 (11:29 +0900)]
Add default permission of directory for global pkg to 755
Change-Id: I3c37fbe5c5b97a48a606e041ce30d48dfcd05693
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 13 Dec 2016 08:10:30 +0000 (17:10 +0900)]
Let force_clean work when partialuninstall scenario
Change-Id: I1c3af379914298a1ede19ce9f4ce6dbf69884c4c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 12 Dec 2016 11:21:09 +0000 (20:21 +0900)]
Fix setting mainapp attribute
When installing hybrid application, webapp should be main application.
Native application should not be main application.
Change-Id: I1e210ad22e7b3f5e5bdcde0ea88f9c58e177bc3d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeong ko [Fri, 9 Dec 2016 07:44:18 +0000 (23:44 -0800)]
Merge "Add codes at StepRemoveFiles to remove RO data properly" into tizen_3.0
jongmyeongko [Thu, 8 Dec 2016 06:23:36 +0000 (15:23 +0900)]
move the behavior of StepGrantPermission to StepChangeOwnershipAndPermission
to support this behavior commonly for wgt / tpk.
Submit with :
https://review.tizen.org/gerrit/#/c/103361/
https://review.tizen.org/gerrit/#/c/103512/
Change-Id: I60e72bb1b6a832a2d33fb472c1b30d594f6a029a
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Fri, 9 Dec 2016 01:42:32 +0000 (10:42 +0900)]
Assume privilege level as platform when partial install case
Change-Id: Iec93a26d11e8ebb7f9416830528a52361a530313
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 6 Dec 2016 11:06:21 +0000 (20:06 +0900)]
Add codes at StepRemoveFiles to remove RO data properly
- when tried to uninstall preload-rw package but keep
rwdata, RO directory should be removed
Related changes:
[wgt-backend] : https://review.tizen.org/gerrit/102026
Change-Id: I4f42eac12b6b1d69aedee2627a32f7fc4b1e55d9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Wed, 7 Dec 2016 11:58:16 +0000 (20:58 +0900)]
Support debug mode installation
Requires:
- https://review.tizen.org/gerrit/103163
Change-Id: I3112673326054c0e45404c8bcc5cff18737d6ec4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Thu, 8 Dec 2016 04:40:22 +0000 (13:40 +0900)]
GetRequestType will return unknown if query_interface is not implemented
Change-Id: I46169a22d0f8c0ba71e30288ea3873f3bd664190
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
jongmyeongko [Tue, 6 Dec 2016 13:03:17 +0000 (22:03 +0900)]
check metadata privilege level
Change-Id: I798acae8b829319579f7bbe16bf1a192380a99a3
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Wed, 7 Dec 2016 05:23:38 +0000 (14:23 +0900)]
Fix possible nullpointer issue
- Assume request as unknown when there are no query interface
Change-Id: I88b85982538c34774cf4475243fb2d3bf3a41c8a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Wed, 7 Dec 2016 06:38:11 +0000 (15:38 +0900)]
Adjust to change of support ambient
Requires:
- https://review.tizen.org/gerrit/102774
Change-Id: Idb9a6cae1c61751297f02d1461fffc96926a77fc
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Piotr Ganicz [Wed, 30 Nov 2016 11:54:22 +0000 (12:54 +0100)]
Addition of main attribute for widget-application
This commit repairs the issue with generating proper main attribute
for widget-application element in manifest. Only one attribute can
be set to "true" for list of apps (widget-application).
Submit together:
- https://review.tizen.org/gerrit/#/c/101269/
- https://review.tizen.org/gerrit/#/c/101267/
- https://review.tizen.org/gerrit/#/c/101266/
Change-Id: I8d4688f0fcd779e3c3fab6751290ce051c8c4845
Sangyoon Jang [Tue, 6 Dec 2016 07:54:02 +0000 (16:54 +0900)]
Parse legacy splash screens
Parse legacy splash screens from:
- ui-application's attributes
- metadata
Submit with:
- https://review.tizen.org/gerrit/102617
Change-Id: I6289e1e4798be7111c1f284c50926f2831347600
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 2 Dec 2016 02:53:00 +0000 (11:53 +0900)]
Fix for setting gid properly
data, shared/data directories were not set system share group at undo of
StepBackupCopy and recovery mode.
Run smoke test for verification.
Change-Id: Ia9d035d4caf95ad441eab991b300c09f3cceb964
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeongko [Mon, 5 Dec 2016 13:54:44 +0000 (22:54 +0900)]
apply partial-rw feature to privilege compatibility step.
Change-Id: I09083d680ab71e9df6c0c3e7b1af38cb84b42a7c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Mon, 5 Dec 2016 04:19:28 +0000 (13:19 +0900)]
Add null checking at AssignPackageTags
Change-Id: I06b9b82e7ec3d02a05fce8a9be844a0bc8b36356
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeong ko [Mon, 5 Dec 2016 06:24:08 +0000 (22:24 -0800)]
In case of partial-rw requset, skip labeling of RO paths.
This reverts commit
1d12b640426570bd357d43cbf941377aa0fcf961.
Change-Id: I7d0c14cc54c14dfb1668c255d5cee127f32d36f8
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeong ko [Sun, 4 Dec 2016 08:37:41 +0000 (00:37 -0800)]
Revert "In case of partial-rw requset, register security context for rwdata path only."
This reverts commit
ce81ad87d8f693909724ef479035d975f1506fde.
Change-Id: Icb24e75f22f6761fa5a79e7a6f78765ba25dbc29
jongmyeongko [Sun, 4 Dec 2016 05:56:07 +0000 (14:56 +0900)]
In case of partial-rw requset, register security context for rwdata path only.
Change-Id: I349ba8fce51627f603148b9fdaff1d59e68a7ed1
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Thu, 1 Dec 2016 06:04:48 +0000 (15:04 +0900)]
Adjust to fix of installer error codes
Submit with:
- https://review.tizen.org/gerrit/101411
- https://review.tizen.org/gerrit/101412
Change-Id: I5f2ef1e91af87bb343151490566668a4a1ca0760
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 1 Dec 2016 05:35:48 +0000 (14:35 +0900)]
Remove build warnings
Change-Id: Id4ba809bdc3b67a5160f7448d80b6338ca1e8489
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeongko [Thu, 1 Dec 2016 04:44:51 +0000 (13:44 +0900)]
bugfix pkg_initdb
Change-Id: Ibe24c3c401693da915d858a88be288042426e816
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Wed, 30 Nov 2016 16:25:38 +0000 (01:25 +0900)]
bugfix of making globalapp symlink
Change-Id: I4b816bc2aeee81517cdc7d8bd15e9f342dea0401
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Fri, 11 Nov 2016 06:14:37 +0000 (15:14 +0900)]
Fix for readonly update mode
When try to update preload package RO to RW, installer should keep files
for rollback. This patch introduce new request type(ReadonlyUpdateInstall,
ReadonlyUpdateUninstall) for handling above request.
RO -> RW: keep RO package files, install new RW package at TZ_SYS_RW_APPS.
signal type to send: Update
changed package attributes: preload(true->false), update(false->true)
RW -> RO: remove RW package files at TZ_SYS_RW_APPS, pkgmgr/security
context register using existing RO manifest and files.
signal type to send: Update
changed package attributes: preload(false->true), update(true->false)
Change-Id: Ibeceeffddb00d70f4a75abf8a1376a93e47f02f7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeongko [Sun, 27 Nov 2016 10:58:42 +0000 (19:58 +0900)]
implement some new features
partial install/update feature.
keep-rwdata feature.
clean feature
- if manifest not exist but pkg exists in db.
pkg_initdb option added
Requires :
https://review.tizen.org/gerrit/#/c/100625/
https://review.tizen.org/gerrit/#/c/100891/
Usage:
#tpk-backend -y {pkgid} --preload --partial-rw
#tpk-backend -d {pkgid} --preload --force-remove --partial-rw
#tpk-backend -d {pkgid} --preload-rw --keep-rwdata
#tpk-backend -y {pkgid} --u {userid} --bg-operation
#pkg_initdb --partial-rw (for 2.4 -> 3.0 migration)
#pkg_initdb --ro (for MIC)
Change-Id: Ib6066332fd9e462a3b8afe446c15c94971745ca6
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Thu, 13 Oct 2016 07:45:49 +0000 (16:45 +0900)]
Remove codes related with pkgdir-tool
- Each backend running as app_fw user so
pkgdir-tool don't be needed anymore for directory operations
Change-Id: Ib61c827c35c112fdd7676905872c276ecba3784e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 29 Nov 2016 01:34:03 +0000 (10:34 +0900)]
Ignore external storage error while uninstalling pkg
- If error has happened when acquiring external storage
for uninstall, it will be ignored
Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/100515
[pkgmgr-server] : https://review.tizen.org/gerrit/100647
Change-Id: I30cda542582ea5b166b8df51eeab82f3edac54b4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Tue, 29 Nov 2016 00:50:20 +0000 (09:50 +0900)]
Set write/setgid bit on data, shared/data dir
System daemons who want to access data, shared/data need
CAP_DAC_OVERRIDE, but this cap gives unwanted permissions too much.
So we modify permission bits of writable directories and
make available for system daemons with minimum permission.
Change-Id: I8b53e60686cffa56c0be838312bc16859bc6ee5c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 29 Nov 2016 01:59:13 +0000 (10:59 +0900)]
Send update signal on reinstall mode
Change-Id: I82ebd67ed0dcd9109a5fda0aa2eaf8e5f9828cf4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 28 Nov 2016 04:30:34 +0000 (13:30 +0900)]
Fix for static analyzer issues
Fix memory leak.
Fix null pointer dereference.
Change-Id: Idbb888786ade5716a4e31a6dc592a06f835db10f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Piotr Ganicz [Mon, 14 Nov 2016 15:35:01 +0000 (16:35 +0100)]
Fix StepRecoverExternalStorage
This patch improves that step to handle situation when manifest
does not exists.
To test:
1. Crash app before StepGenerateXML
2. su app_fw
3. run wgt-backend -b <recovery file> -u 5001
4. Check if you can normally install the same app.
Change-Id: I220157a47e8d7bbeef2710b377e7a70763fac999
jongmyeongko [Thu, 24 Nov 2016 16:35:44 +0000 (01:35 +0900)]
fix uninstall and activation issue on disabled package.
Change-Id: I74803684d69a90b4fd68da54aef7a45a4c1d4ebd
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Bartlomiej Kunikowski [Thu, 20 Oct 2016 08:36:05 +0000 (10:36 +0200)]
Fix for MountInstallationMode_Rollback_Hybrid and MountInstallationMode_Rollback
Submit together:
- https://review.tizen.org/gerrit/#/c/97898/
Requires :
- https://review.tizen.org/gerrit/#/c/92560/
- https://review.tizen.org/gerrit/#/c/97577/
To verify run wgt-backend smoke test
Change-Id: I0607995f28f7d0f1c120c13aa81dbf2c14485614
jongmyeongko [Mon, 21 Nov 2016 14:31:34 +0000 (23:31 +0900)]
apply extended concept of package's attribute.
- preload-rw : located in /opt/usr/globalapps/ and preloaded.
- readonly : located in /usr/apps/ and preloaded. (== old preload_request)
some preload-rw package can be not-removable also like as readonly package.
Requires :
https://review.tizen.org/gerrit/#/c/99207/
Change-Id: I8ae7cfdb06467f4e27f1b23f2573d21ad54ee75d
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Hwankyu Jhun [Tue, 22 Nov 2016 07:36:17 +0000 (16:36 +0900)]
Add allowed appid plugin in plugins_list
Change-Id: Ia0e8250a02b049aa0b6b76346b9da0a8fcbf9cb8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghyun Yeon [Wed, 16 Nov 2016 04:44:37 +0000 (13:44 +0900)]
Add routines for converting support-mode
- Add internal functions to be used to convert
support-mode parsed from pkg's manifest
Related changes:
[pkgmgr-info]: https://review.tizen.org/gerrit/98045
Change-Id: Iae1de89f4e3c934019b3268aa8265ab444f2dc23
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 17 Nov 2016 06:58:01 +0000 (15:58 +0900)]
Adjust to privilege verification API change
Requires:
- https://review.tizen.org/gerrit/98161
Change-Id: Ie9a2aef9da888adcfb634c32407e3389ee7c4fb8
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 17 Nov 2016 06:16:25 +0000 (15:16 +0900)]
Implement StepCheckInstallable
The platform does not allow package override.
If the package installed as global package, the user cannot install the
package as local package. Likewise, if the package is installed as local
package, the package cannot be installed as global package.
Change-Id: I7f36c49b00a4d9445024af205387e3ebe6fb6962
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 16 Nov 2016 07:46:20 +0000 (16:46 +0900)]
Fix CMakeLists.txt
To make extendible for adding source & header files.
Change-Id: I75df264d02402ddd9c9292a16646d0946fd906a3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Tue, 15 Nov 2016 02:38:19 +0000 (11:38 +0900)]
Implement for support-mode
Related changes:
[tpk-manifest-handlers] : https://review.tizen.org/gerrit/97699
[pkgmgr-info] : https://review.tizen.org/gerrit/97508/
Change-Id: I32f3ec5bc440782ad674fcb458c9c825629099ca
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
jongmyeongko [Mon, 14 Nov 2016 10:27:34 +0000 (19:27 +0900)]
apply setting hybrid flag for security-manager
Change-Id: I6c861effe8632766c1659f160afa3dafc2daab52
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Fri, 11 Nov 2016 12:28:06 +0000 (21:28 +0900)]
Add retry logic at calling gum api
This is temporary fix. It should be removed.
Change-Id: Ibcb27a18f2c14c1d9126fb2dfeeac8697cb0d09e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Hwankyu Jhun [Mon, 7 Nov 2016 05:58:34 +0000 (14:58 +0900)]
Add aul-parser plugin lib in plugins_list
Change-Id: I91d22fc6683cde405fb75d691d4c0c84e2c3790f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Sangyoon Jang [Tue, 8 Nov 2016 02:11:25 +0000 (11:11 +0900)]
Fix a bug in registering certificates
Correct cert map, add missing certificate type.
Fix some namings.
Change-Id: I896e05a2392467b43b105ee946bdc01bd8761d46
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Piotr Ganicz [Fri, 21 Oct 2016 11:11:53 +0000 (13:11 +0200)]
Refactoring
Change-Id: Ia18a60b030852dfba346c7bae092553e13ea0e87
Tomasz Iwanek [Thu, 15 Sep 2016 09:36:49 +0000 (11:36 +0200)]
Fixing rollback
This patch should fix:
1) Situation when backup files are not fully restored when
file that has been backed up wasn't removed yet -> file
is not restored (new flag: FS_MERGE_OVERWRITE)
2) Situation when backup file was not fully copied and we
restore broken copy (new flag: FS_COMMIT_COPY_FILE)
Submit together:
- https://review.tizen.org/gerrit/88235
- https://review.tizen.org/gerrit/88236
Change-Id: I269e6f95c5b3cab0a9b775cbf7b41bc74231bf3c
Tomasz Iwanek [Thu, 29 Sep 2016 14:25:57 +0000 (16:25 +0200)]
Reworking handling privileges for hybrid application
This patch keeps single list of privileges (stored in
manifest_x) and filters privileges when registring
security rules of applications. Following changed:
- generated platform manifest xml contains <privilege>
tags with 'type' atttibute set to 'tpk' or 'wgt',
- in case of absence of attribute, its default value
is 'tpk',
- manifest_x changes privilege type from GList of char*
to GList of privilege_x. Structure named 'privilege_x'
contain parsed privilege type,
- although there is one privilege list, given the fact
that privilege now have type, native and web privileges
should be registered in native or web apps only.
Verification:
- no regression in tpk/wgt smoke tests,
- install hybrid app with native and web privileges
and check generated manifest file for privileges,
- install web app with privileges and check generated
manifest file,
- install web app without privileges and check generated
manifest file -> default privileges should be added.
Submit together:
- https://review.tizen.org/gerrit/#/c/90540/
- https://review.tizen.org/gerrit/#/c/90543/
- https://review.tizen.org/gerrit/#/c/90544/
- https://review.tizen.org/gerrit/#/c/90546/
- https://review.tizen.org/gerrit/#/c/90561/
Change-Id: I16a0ec57d48c615f58aa8bada27073fb26208298
Junghyun Yeon [Wed, 12 Oct 2016 08:29:33 +0000 (17:29 +0900)]
Fix installer behavior
- Add routine which remove unnecessary file
- Change install location to internal when initialization
of external storage has failed, instead of install fail
Change-Id: Id4ae2ad3b06334770354fe991ab3531b451cd04f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 17 Oct 2016 11:51:42 +0000 (20:51 +0900)]
Temporary fix for hybrid pkg installation
Submit together:
- https://review.tizen.org/gerrit/92582
- https://review.tizen.org/gerrit/92583
- https://review.tizen.org/gerrit/92584
Change-Id: I7c384edb28e298b6eb7484ee604a03bf686a6684
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Tomasz Iwanek [Fri, 7 Oct 2016 07:52:36 +0000 (09:52 +0200)]
Patch reinstall/RDS according to SDK behaviour
Commit changes reinstall request argument. Now pkgid
is expected instead of path to directory. What is more,
if package manifest is not in the directory supplied by
reinstall/RDS then it will be copied from install location.
Application installer expects that SDK will put files into:
- local installation:
/home/$USERNAME/apps_rw/tmp/$PKGID/
- global installation:
/opt/apps/tmp/$PKGID/
Requires:
- https://review.tizen.org/gerrit/91412
Submit together:
- https://review.tizen.org/gerrit/91430
- https://review.tizen.org/gerrit/91431
- https://review.tizen.org/gerrit/91432
Verification:
- run smoke tests,
- run reinstall from SDK,
- run RDS from SDK.
Change-Id: I5194dd0a850a62b8712d75e62676c4ee9eebab9f
Sangyoon Jang [Fri, 30 Sep 2016 05:15:11 +0000 (14:15 +0900)]
Don't create mount path in StepMountUnpacked
Mount path will be created by deviced as a symlink.
Change-Id: Ibe2804a9abcc0491836f3115517db52d9a80d202
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 7 Oct 2016 06:16:06 +0000 (15:16 +0900)]
Fix finding mainfest location
This patch fixes issue when the installer try to find location of
installed manifest of global package.
Added pkgmgr query helper functions:
QueryIsGlobalPackage, QueryIsPreloadPackage
Change-Id: I6284dfe61515b937fbcda234b978feba897a8221
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 30 Sep 2016 08:06:02 +0000 (17:06 +0900)]
Fix AppQueryInterface
Make argv, argc are not needed.
Change-Id: I1c5a62b5a22a82d4a1d4101623e64bd14cef3a28
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 6 Oct 2016 09:43:13 +0000 (18:43 +0900)]
Fix sending appid signal
Send user signal together.
Requires:
- https://review.tizen.org/gerrit/91223
Change-Id: Ifa045948a025aef238fe6a674da26376b1b9c3df
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Wed, 5 Oct 2016 04:29:39 +0000 (13:29 +0900)]
Remove unused parameter and related codes
Related change:
[pkgmgr-info] https://review.tizen.org/gerrit/#/c/90930/
Change-Id: I515923cc827535e8c42d4dadadf7149a87b98224
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Piotr Ganicz [Fri, 30 Sep 2016 09:18:06 +0000 (11:18 +0200)]
Coding style
Change-Id: I629d463d84b8834d7824d8c995bf36f7efa00d17
Junghyun Yeon [Wed, 28 Sep 2016 04:52:26 +0000 (13:52 +0900)]
Remove unused parameter
Change-Id: If497955cbd55ed8b7b09835dca4d5f9d242e55c6
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Wed, 28 Sep 2016 06:05:36 +0000 (15:05 +0900)]
Support legacy content directory path
The installer cannot access properly at legacy content directory
because this path is a mount point for TZ_USER_CONTENT and seperated by
namespace.
Change-Id: I87a0c6671c2f539b34beee6fa3f685399c984f01
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Wed, 28 Sep 2016 01:54:09 +0000 (10:54 +0900)]
Fix possible nullptr issue
- GError will be set if GDBusConnection is null,
according to reference guide docs.
- 'or' should be change into 'and' to resolve static analysis
problem.
Change-Id: I82ece65c0b8eb74a69ca2cd540cc72860c11720d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Tomasz Iwanek [Mon, 26 Sep 2016 08:52:13 +0000 (10:52 +0200)]
Make method virtual for extending StepCheckSignature
Change-Id: I15133f35e8e5f6bab2bc52375064f378b42ad52b
Sangyoon Jang [Tue, 27 Sep 2016 07:49:47 +0000 (16:49 +0900)]
Add tts-engine-parser, stt-engine-parser to list
Change-Id: Iee8504716fc3cfe1f4ee2a6eba8fc4f69707e2c1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Piotr Dabrowski [Thu, 22 Sep 2016 13:34:03 +0000 (15:34 +0200)]
Remove unnecessary error message in RDS and Recovery modes
Error:
file_util.cc:376:
Failed to open the source dir: /opt/usr/home/owner/apps_rw/...
This condition is not an error but a test in certain situations,
i.e. RDS and Recovery modes.
Change-Id: I2f21925d6e43e9a546873ef99308ee3ab43d1e57
Tomasz Iwanek [Fri, 16 Sep 2016 08:26:26 +0000 (10:26 +0200)]
Removing TODO that was done
Fixed in:
-
08b5fdedd010e5dfa432fa1304670390f4e45a29
Change-Id: I160fc75c08c22b1447c1ea46338de4abfcdfbaa5
jongmyeongko [Mon, 19 Sep 2016 07:41:24 +0000 (16:41 +0900)]
remove the profile macro in the spec file. it's not used.
Change-Id: I8cb16da9d6b49bfc0fa2ccc6aa52e2c64713ce61
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghoon Park [Fri, 9 Sep 2016 07:33:42 +0000 (16:33 +0900)]
Add app type handler for widget-application
- require : https://review.tizen.org/gerrit/#/c/87713/
Change-Id: I13f30ec983a6cc2fa03eaf8ada0fc383a10cda3c
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Tomasz Iwanek [Fri, 9 Sep 2016 08:13:44 +0000 (10:13 +0200)]
Unittests for pkgmgr plugins management code
Run new tests:
$ /usr/bin/app-installers-ut/plugins_unittest
This test requires several helper libraries to test
if plugins are called in correct way. Commit implements
3 test plugins and test assessor library. Test assessor
library is used by plugins and test code to set and get
results of plugin execution.
Change-Id: Idc30b953d6e5453c0e8fde94e1eea6d691225ea3
Tomasz Iwanek [Fri, 9 Sep 2016 12:35:49 +0000 (14:35 +0200)]
CRTP singleton
Singletons are vicious brainless test-resilient beasts.
Don't use this header unless it is really justified.
This header will be used in following changes for test
library to control execution of pkgmgr plugin while
testing. Assessor class will be required to exist only
once.
Change-Id: Ia608bfcd5fbb831a649e468e83970ff4e58a73ca
Tomasz Iwanek [Fri, 9 Sep 2016 12:35:02 +0000 (14:35 +0200)]
Adjustment in pkgmgr plugin code
Run testcases from next changes.
Change-Id: I143cfc1955b478e2eff3c80eb949cc580e01f046
Bartlomiej Kunikowski [Fri, 9 Sep 2016 08:38:27 +0000 (10:38 +0200)]
Step recovery change owner
Needed to correct setting ownership of files in recovery mode
Change-Id: I11a8034d1089e2671db5928123121b2895e8ffc5
Tomasz Iwanek [Thu, 8 Sep 2016 08:10:48 +0000 (10:10 +0200)]
Fix rollback of mount update request
Rollback operation for mount update should just unmount new content
and restore old zip file to right location.
Check with smoke tests from: https://review.tizen.org/gerrit/#/c/87494/
Change-Id: I6c6d664d3a015919b9d5e67356ee4685b53f65e0
Sangyoon Jang [Fri, 9 Sep 2016 04:52:44 +0000 (13:52 +0900)]
Fix coding style in user_util.cc
Change-Id: I1df1c801b3fb260ded801d7534acf896034d2a2a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 9 Sep 2016 04:48:30 +0000 (13:48 +0900)]
Fix null pointer dereference issue
Change-Id: I4832409e95a1766eae921917cf4910bb5ca00981
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Fri, 9 Sep 2016 05:54:21 +0000 (14:54 +0900)]
Add return ok statement
Change-Id: I9d4f916f5c775c757a6d39eac47096c9fbce6c27
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 5 Sep 2016 02:02:33 +0000 (11:02 +0900)]
Fix for platform upgrade
Related changes
[pkgmgr-tool] : https://review.tizen.org/gerrit/#/c/83327/
[tpk-backend] : https://review.tizen.org/gerrit/#/c/86846/
[wgt-backend] : https://review.tizen.org/gerrit/#/c/87472/
Change-Id: I7e44bb7233ca4318fe8bb11c81e8d69c06e56da1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>