platform/core/appfw/app-installers.git
8 years agochange default value of nodisplay_setting for 59/63459/1 submit/tizen/20160324.062236
Junghyun Yeon [Thu, 24 Mar 2016 05:59:44 +0000 (14:59 +0900)]
change default value of nodisplay_setting for
widget/watch app to 'false'

Change-Id: I8c5029608afd9c34f428b148a0d48641f784fc0e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agomodify log message not to be understood as an error. 27/63327/1 accepted/tizen/common/20160324.084226 accepted/tizen/common/20160325.134917 accepted/tizen/ivi/20160324.131630 accepted/tizen/mobile/20160324.132912 accepted/tizen/tv/20160324.132735 accepted/tizen/wearable/20160324.132658 submit/tizen/20160323.065638 submit/tizen/20160323.235918
jongmyeongko [Wed, 23 Mar 2016 07:44:38 +0000 (16:44 +0900)]
modify log message not to be understood as an error.

Change-Id: Iaf4d6a3277b65a07bcb252d83a424e54eeb7d1f7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoremove privilege plugin for the list. 39/63239/2 accepted/tizen/common/20160323.184343 submit/tizen/20160323.020400
jongmyeongko [Wed, 23 Mar 2016 01:39:52 +0000 (10:39 +0900)]
remove privilege plugin for the list.

this is not necessary, anymore.

Change-Id: I9cb4e9c80fb9563660e6ecba25a4f18bd2364def
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoadd force-remove feature for installer 24/63124/6
jongmyeongko [Tue, 22 Mar 2016 07:22:09 +0000 (16:22 +0900)]
add force-remove feature for installer

usage(root only):
tpk-backend -d {pkgid} --preload --force-remove

Change-Id: I705cada8e5d41055371cb97101197d8b44f4074f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoSet uid to globalappuser when running as root 01/63001/2
Sangyoon Jang [Mon, 21 Mar 2016 12:04:07 +0000 (21:04 +0900)]
Set uid to globalappuser when running as root

Change-Id: I3aa7e1071d5abc92c8c7a8b2eca83b2f429c27c3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoskip checking blacklist in case of offline installation. 87/62887/4 accepted/tizen/ivi/20160323.010803 accepted/tizen/mobile/20160323.010700 accepted/tizen/tv/20160323.010726 accepted/tizen/wearable/20160323.010746 submit/tizen/20160322.002805
jongmyeongko [Mon, 21 Mar 2016 04:27:54 +0000 (13:27 +0900)]
skip checking blacklist in case of offline installation.

Change-Id: I3d6cf7c6a7b1c8d812e151cfe26729b2fd044279
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoRework step/ directory structure 97/61797/6 accepted/tizen/common/20160322.145746 accepted/tizen/ivi/20160322.003613 accepted/tizen/mobile/20160322.003528 accepted/tizen/tv/20160322.003549 accepted/tizen/wearable/20160322.003558 submit/tizen/20160321.131614 submit/tizen/20160321.153043
Tomasz Iwanek [Thu, 10 Mar 2016 12:08:12 +0000 (13:08 +0100)]
Rework step/ directory structure

Steps are moved to subdirectories according to their namespace.

Submit together with:
 - https://review.tizen.org/gerrit/61795
 - https://review.tizen.org/gerrit/61796
 - https://review.tizen.org/gerrit/61797

Build to verify, no logic changes were made.

Change-Id: I52132e9bff5efa6ede8f43c3ef6cd6bbd3064097

8 years agoAdd 'splash-screen-display' attribute for uiapplication 97/61997/4 accepted/tizen/common/20160321.150444 accepted/tizen/mobile/20160321.113352 accepted/tizen/tv/20160321.113419 accepted/tizen/wearable/20160321.113438 submit/tizen/20160321.014821
Hwankyu Jhun [Sat, 12 Mar 2016 07:32:40 +0000 (16:32 +0900)]
Add 'splash-screen-display' attribute for uiapplication

Requires:
https://review.tizen.org/gerrit/#/c/61996/
https://review.tizen.org/gerrit/#/c/61995/

Change-Id: Iddcb25177182348fcff9644a9dc4d7a1af61a939
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoapply new security api related to TZ_SYS_APP_RO/RW seperation. 04/62604/4
jongmyeongko [Thu, 17 Mar 2016 01:14:54 +0000 (10:14 +0900)]
apply new security api related to TZ_SYS_APP_RO/RW seperation.

Change-Id: I596e0b94b180c71b6379a8a5379c30d8558d749f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agocreate error file if the installation of preloaded tpks is failed. 86/61686/5
jongmyeongko [Thu, 10 Mar 2016 00:54:45 +0000 (09:54 +0900)]
create error file if the installation of preloaded tpks is failed.

this works in offline mode only.
mic script will detect this error directory.

Change-Id: I77b65d85d55ecbeff8fbf8a7051c4aa4555f3314
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoMerge "skip copying RW directoires in case of GLOBAL-app update" into tizen
jongmyeongko [Mon, 21 Mar 2016 01:41:50 +0000 (18:41 -0700)]
Merge "skip copying RW directoires in case of GLOBAL-app update" into tizen

8 years agoskip copying RW directoires in case of GLOBAL-app update 03/62803/1
jongmyeongko [Fri, 18 Mar 2016 10:15:23 +0000 (19:15 +0900)]
skip copying RW directoires in case of GLOBAL-app update

Change-Id: Ia36c632f79678ec20bc44eaeac24cf96087d2f72
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoskip checking reference-hash in case of direct-install by privileged user. 35/62335/3
jongmyeongko [Tue, 15 Mar 2016 11:36:44 +0000 (20:36 +0900)]
skip checking reference-hash in case of direct-install by privileged user.

Change-Id: I35b278a8e93000100690b56142264d01f4d69d3e
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoSet main app id for watch application 97/62497/3
Tomasz Iwanek [Wed, 16 Mar 2016 10:12:40 +0000 (11:12 +0100)]
Set main app id for watch application

Test:
 /usr/bin/tpk-backend-ut/manifest-test --gtest_filter="ManifestTest.WatchApplicationElement_Set*"
shouldn't crash.

Change-Id: I1a3b0ab29481c259ae3ab2688d176fbffd0c2c45

8 years agofix failure of creation per-user directories. 79/62579/1 accepted/tizen/common/20160317.160204 accepted/tizen/ivi/20160317.010149 accepted/tizen/mobile/20160317.010056 accepted/tizen/tv/20160317.010114 accepted/tizen/wearable/20160317.010130 submit/tizen/20160317.004720
jongmyeongko [Thu, 17 Mar 2016 00:30:10 +0000 (09:30 +0900)]
fix failure of creation per-user directories.

Change-Id: I4acb6699499ad52d112bc5c063c393abf2732fae
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoset nodispay value as 'true' for watch-application 59/62459/1 accepted/tizen/common/20160316.161035 accepted/tizen/ivi/20160316.134840 accepted/tizen/mobile/20160316.134747 accepted/tizen/tv/20160316.135040 accepted/tizen/wearable/20160316.134824 submit/tizen/20160316.081836
jongmyeongko [Wed, 16 Mar 2016 07:40:59 +0000 (16:40 +0900)]
set nodispay value as 'true' for watch-application

Change-Id: I94d66bbd8a46e12f6d1473193a905912a512d18c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoRevert "Rework main app detection for widget-application" 05/62405/3
Sangyoon Jang [Wed, 16 Mar 2016 02:52:05 +0000 (19:52 -0700)]
Revert "Rework main app detection for widget-application"

This reverts commit 65451b2b903a5b786d053e197c285f976f0777f2.

Change-Id: I509c61d921d259e6795df124685e33c69dc370ec

8 years agouse tizen-platform metadata for "/home" 85/62085/3
jongmyeongko [Mon, 14 Mar 2016 08:27:13 +0000 (17:27 +0900)]
use tizen-platform metadata for "/home"

Change-Id: Id200c785b466f8472aa3aaaa824bb29a9012ac8c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoFix formatting/double free() 72/61972/2
Tomasz Iwanek [Fri, 11 Mar 2016 14:52:20 +0000 (15:52 +0100)]
Fix formatting/double free()

manifest->tep_name is freed in pkgmgr.

Change-Id: Ic6720169d01262fb0089a90759d072d448af9bbc

8 years agoAdd StepCheckRemovable 99/61899/2
Sangyoon Jang [Fri, 11 Mar 2016 05:47:05 +0000 (14:47 +0900)]
Add StepCheckRemovable

This step checks the given package is removable or not.

Change-Id: I63ddfcfd8dbd2f100e413c2c5c6b1290842ac590
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoMetadata/category plugin calling convention of tizen 2.4 97/61397/5 accepted/tizen/common/20160315.220748 accepted/tizen/ivi/20160312.015509 accepted/tizen/mobile/20160312.015417 accepted/tizen/tv/20160312.015429 accepted/tizen/wearable/20160312.015446 submit/tizen/20160311.224311
Tomasz Iwanek [Mon, 7 Mar 2016 12:11:59 +0000 (13:11 +0100)]
Metadata/category plugin calling convention of tizen 2.4

Change-Id: I0d8c332d6b95261b846da9509d2942c18472ce2e

8 years agoAdd missing return statement 40/61840/2
Sangyoon Jang [Fri, 11 Mar 2016 02:26:51 +0000 (11:26 +0900)]
Add missing return statement

Change-Id: If6d64157b8f981d54b3901a9aa04a6d0f3bc3238
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agofix build error 42/61842/1 accepted/tizen/common/20160311.050240 accepted/tizen/ivi/20160311.043354 accepted/tizen/mobile/20160311.043302 accepted/tizen/tv/20160311.043320 accepted/tizen/wearable/20160311.043339 submit/tizen/20160311.024723
jongmyeongko [Fri, 11 Mar 2016 02:42:30 +0000 (11:42 +0900)]
fix build error

Change-Id: I56a13532073aab7efb974c29d1b63759a29667bd
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoAdd missing default values for manifest_x structure 85/61385/2
Tomasz Iwanek [Mon, 7 Mar 2016 09:50:08 +0000 (10:50 +0100)]
Add missing default values for manifest_x structure

Change-Id: Ie5724900241b3678fc2b3e50b2764473bb392074

8 years agoRework main app detection for widget-application 81/61181/3
Tomasz Iwanek [Fri, 4 Mar 2016 09:47:15 +0000 (10:47 +0100)]
Rework main app detection for widget-application

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

Change-Id: I5ac527b6bcb3307b2e58090f6e8828d560e605be

8 years agoSet manifest->multiple, manifest->taskamange for service application 64/61064/3
Tomasz Iwanek [Thu, 3 Mar 2016 15:22:20 +0000 (16:22 +0100)]
Set manifest->multiple, manifest->taskamange for service application

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

Change-Id: I4bb8e3f759e94d8fd8e843f6e367f180bf20bd2f

8 years agoFix setting privilege level 59/61159/4
Sangyoon Jang [Fri, 4 Mar 2016 08:16:27 +0000 (17:16 +0900)]
Fix setting privilege level

- Set PLATFORM level privilege when install preload package.
- Remove setting PLATFORM level privilege when manifest direct install

Change-Id: Ia7786ba79a9825c2aab2bfbb2b1c1ba6890b21a5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoSkip creating storage directories when install global app 46/61046/3
Sangyoon Jang [Thu, 3 Mar 2016 12:32:56 +0000 (21:32 +0900)]
Skip creating storage directories when install global app

Global applications use storage directories at user's home who runs the
application.

Change-Id: Ie29d636c76cbc0c81cceaf2236b1c5f3746236a5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix creating trusted dir 41/61041/3
Sangyoon Jang [Thu, 3 Mar 2016 12:19:11 +0000 (21:19 +0900)]
Fix creating trusted dir

Make it more clearly.

Change-Id: I07f05550a144e2a7a307db0dbad32d071383d861
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoSkip validating privilege level when install preload package 89/60789/6
Sangyoon Jang [Wed, 2 Mar 2016 08:16:21 +0000 (17:16 +0900)]
Skip validating privilege level when install preload package

Change-Id: I93af86d01c20bdb58605d0b639183fccde556352
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agocheck author_id before set-up paths for security api. 56/60956/2 accepted/tizen/common/20160307.153138 accepted/tizen/ivi/20160304.105553 accepted/tizen/mobile/20160304.105436 accepted/tizen/tv/20160304.105455 accepted/tizen/wearable/20160304.105524 submit/tizen/20160304.063157 submit/tizen/20160304.063745
jongmyeongko [Thu, 3 Mar 2016 06:40:53 +0000 (15:40 +0900)]
check author_id before set-up paths for security api.

Change-Id: Ia6b5c161f247caf4e3730c297d5f712b458554e4
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoImplement launching 'metadata' and 'category' plugin 28/59028/9 accepted/tizen/common/20160304.194918 submit/tizen/20160303.090142
Tomasz Iwanek [Fri, 5 Feb 2016 12:39:21 +0000 (13:39 +0100)]
Implement launching 'metadata' and 'category' plugin

Implementation of loading other types of plugins of
pkgmgr than 'tag':
 - DynamicLibHandle was reworked to be base class of all plugins types,
 - add factory for plugin and common interface for them.

Following changes should be submitted together:
 - https://review.tizen.org/gerrit/#/c/59029/
 - https://review.tizen.org/gerrit/#/c/59028/
 - https://review.tizen.org/gerrit/#/c/59030/
 - https://review.tizen.org/gerrit/#/c/59031/

Change-Id: I7f6bd50e364bedac2ee18626db0b02cda4865e31

8 years agoFix pkgdir-tool 53/60953/1 accepted/tizen/common/20160304.194337 accepted/tizen/ivi/20160303.093923 accepted/tizen/mobile/20160303.093809 accepted/tizen/tv/20160303.093832 accepted/tizen/wearable/20160303.093904 submit/tizen/20160303.064856
Sangyoon Jang [Thu, 3 Mar 2016 06:23:11 +0000 (15:23 +0900)]
Fix pkgdir-tool

- Don't create trusted dir if the package is not signed.
- Continue process even if error occurred.

Change-Id: I489ce0a804783ae4e62720055edad75727e5d193
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agomove checking pkg_path code to new step 71/60471/3
jongmyeongko [Fri, 26 Feb 2016 10:07:37 +0000 (19:07 +0900)]
move checking pkg_path code to new step

Requires:
https://review.tizen.org/gerrit/#/c/60470/

Change-Id: Ia81399b6312c4b1473b5e921d119d46c70756fd1
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoremove pkgdir_maker link 33/60433/3
jongmyeongko [Fri, 26 Feb 2016 07:17:49 +0000 (16:17 +0900)]
remove pkgdir_maker link

Change-Id: Ic6aaeabd3f48b46ecc5f7ca9f2c3754ef5a26ccf
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoAdd WatchApplication support to parse step 04/60604/12
Arkadiusz Szulakiewicz [Mon, 29 Feb 2016 08:49:05 +0000 (09:49 +0100)]
Add WatchApplication support to parse step

Change-Id: Ia309c649263a20733a0c4b1abfa1282702248545

8 years agoCreate per user directories only for users in 'users' group 59/60459/2
Tomasz Iwanek [Fri, 26 Feb 2016 08:36:12 +0000 (09:36 +0100)]
Create per user directories only for users in 'users' group

Change-Id: I2fa649ffc31979794f3a7d130be9a212dfdf3609

8 years agoFix description parsing in StepParseManifest 81/60481/3 accepted/tizen/common/20160301.025441 accepted/tizen/common/20160301.120648 accepted/tizen/common/20160302.193747 accepted/tizen/ivi/20160302.224040 accepted/tizen/mobile/20160302.223953 accepted/tizen/tv/20160302.224006 accepted/tizen/wearable/20160302.224025 submit/tizen/20160229.102401 submit/tizen/20160302.020013 submit/tizen/20160302.065807 submit/tizen_common/20160229.190608
Tomasz Iwanek [Fri, 26 Feb 2016 11:03:31 +0000 (12:03 +0100)]
Fix description parsing in StepParseManifest

Requires to be submitted with:
 - https://review.tizen.org/gerrit/60480

Change-Id: I353b47bb554f189ce84c7e191c0fa4ea80984669

8 years agoFix author parsing in StepParseManifest 64/60464/3
Tomasz Iwanek [Fri, 26 Feb 2016 08:29:20 +0000 (09:29 +0100)]
Fix author parsing in StepParseManifest

Requires to be submitted with:
 - https://review.tizen.org/gerrit/60463

Change-Id: Ic714815a7ff86ee54d1082041c40bfd113cf138d

8 years agoEncode author id in base64 20/60420/3 submit/tizen/20160229.062110
Sangyoon Jang [Fri, 26 Feb 2016 06:13:49 +0000 (15:13 +0900)]
Encode author id in base64

To use for smack label.

Change-Id: I6f5230de79c99e1371daef00e2c2184e2a838134
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoAdd app-control-operation attribute on splash screen 97/60197/3 submit/tizen/20160229.005700
Hwankyu Jhun [Tue, 23 Feb 2016 23:26:28 +0000 (08:26 +0900)]
Add app-control-operation attribute on splash screen

Requires:
https://review.tizen.org/gerrit/#/c/60185/
https://review.tizen.org/gerrit/#/c/60192/

Change-Id: I44f746e4739f786eb06bfdcdda6b22a2ad4683de
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agomodification for seperation of RO/RW location 00/60200/4
jongmyeongko [Wed, 24 Feb 2016 05:51:38 +0000 (14:51 +0900)]
modification for seperation of RO/RW location

Requires:
https://review.tizen.org/gerrit/#/c/60194/

Change-Id: I5aa89822e81c36586d978e25539cc95c7365a772
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoSet permission at shared/data, shared/trusted 28/59928/9
Sangyoon Jang [Fri, 19 Feb 2016 11:30:58 +0000 (20:30 +0900)]
Set permission at shared/data, shared/trusted

Change-Id: I3b1db63961ee331ff6c3265f7b40a8a3457e7715
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoset 'rpm' type to rpm packed application packages 04/60104/6 accepted/tizen/ivi/20160225.081531 accepted/tizen/mobile/20160225.081439 accepted/tizen/tv/20160225.081503 accepted/tizen/wearable/20160225.081516 submit/tizen/20160224.000443 submit/tizen/20160224.092603
jongmyeongko [Tue, 23 Feb 2016 09:38:53 +0000 (18:38 +0900)]
set 'rpm' type to rpm packed application packages

to support the old behaviors use 'type' information(like as 'rpm') for their own purpose.
we can't not figure out which modules use 'type' info in previous entire models and,
it not easy to make them fix the behavior to other way.
so, now we realive the 'rpm' type.
only rpm packed application package can be 'rpm' type.

Change-Id: I7c7e40e5fc925e1daff5629a36e7ba47acddb8e7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoImplement creating shared directories 52/59452/28
Arkadiusz Szulakiewicz [Mon, 15 Feb 2016 13:16:53 +0000 (14:16 +0100)]
Implement creating shared directories

This patch has dependency on the following change:
https://review.tizen.org/gerrit/#/c/59696/

Change-Id: If34c3c5e91ca3c485bb8c99c169e59c9fdd2959d

8 years agoFix StepRecoverStorageDirectories 64/59764/3
Tomasz Iwanek [Thu, 18 Feb 2016 08:38:58 +0000 (09:38 +0100)]
Fix StepRecoverStorageDirectories

Recovery will be broken if update installation breaks before
coping files. This step was breaking directory structure in
this case because of wrong check.

Change-Id: Ica3875f52b045163e8e169fd7ea296636c4aa89c

8 years agoCode cleanup 07/59907/2
Tomasz Iwanek [Fri, 19 Feb 2016 10:27:51 +0000 (11:27 +0100)]
Code cleanup

Removes comments that will not be fixed and "empty method" comment
that gives no information at all.

Change-Id: I299a7fe88a0f1bab2d336c462e0dc7cb13f92217

8 years agoStore distributor certificates 95/59895/3
Sangyoon Jang [Fri, 19 Feb 2016 08:01:07 +0000 (17:01 +0900)]
Store distributor certificates

Change-Id: I14b032ed9de823f98fcff23783ba5480dfc9fb4e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoStore author root/intermediate certificates 67/59867/3
Sangyoon Jang [Fri, 19 Feb 2016 05:26:04 +0000 (14:26 +0900)]
Store author root/intermediate certificates

Change-Id: I04191af01959f376395d55b5a92f2551f8896f01
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoclear 'rpm' related code 33/59733/2 accepted/tizen/ivi/20160222.011634 accepted/tizen/mobile/20160222.011423 accepted/tizen/tv/20160222.011510 accepted/tizen/wearable/20160222.011549 submit/tizen/20160219.102650
jongmyeongko [Thu, 18 Feb 2016 03:48:50 +0000 (12:48 +0900)]
clear 'rpm' related code

Change-Id: Ic99216d87ba5764dd80679084fc11a598f5e466f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agomodify AssignPackageTags 54/59554/6
jongmyeongko [Tue, 16 Feb 2016 11:00:37 +0000 (20:00 +0900)]
modify AssignPackageTags

Change-Id: I14028a15d94d542011001caa59507c1e1e76bb0e
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agosupport installation of TPK as preload app. 13/59513/5
jongmyeongko [Tue, 16 Feb 2016 07:10:01 +0000 (16:10 +0900)]
support installation of TPK as preload app.

Usage : (root-shell)#tpk-backend -i {path of tpk} --preload

Change-Id: Ibc548e7dd7511afad15fea43a84433a86052a254
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoSupport splash screen 53/59353/14 accepted/tizen/ivi/20160218.083926 accepted/tizen/mobile/20160218.005905 accepted/tizen/tv/20160218.005918 accepted/tizen/wearable/20160218.005939 submit/tizen/20160217.221050 submit/tizen_common/20160218.142243
Hwankyu Jhun [Fri, 12 Feb 2016 11:49:30 +0000 (20:49 +0900)]
Support splash screen

Add <splash-screens> tag parsing in tpk manifest

Requires:
https://review.tizen.org/gerrit/#/c/59354/
https://review.tizen.org/gerrit/#/c/59363/

Change-Id: I111557eaae69f4472fbbb550ae3408accb66d317
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoMerge "remove not-used attribute (name of icon, name of image)" into tizen
jongmyeongko [Wed, 17 Feb 2016 04:27:34 +0000 (20:27 -0800)]
Merge "remove not-used attribute (name of icon, name of image)" into tizen

8 years agoFix code style (add missing cv qualifiers) 57/59457/4
Arkadiusz Szulakiewicz [Mon, 15 Feb 2016 14:31:33 +0000 (15:31 +0100)]
Fix code style (add missing cv qualifiers)

Change-Id: Ia57ad56abc0b0f46f59d124f263698f29c1fb4ce

8 years agoCreate interface defining strategy of initialization of pkgmgr_installer object 42/59442/2
Tomasz Iwanek [Mon, 15 Feb 2016 09:34:51 +0000 (10:34 +0100)]
Create interface defining strategy of initialization of pkgmgr_installer object

Smoke tests are randomly crashing since some changes with dbus
connection closing in slp-pkgmgr. It seems to be some time hazard (?)
on closing connection.

Anyway, tests are setting up and closing connection repeatingly.
Introduced interface will allow to customize creation of pkgmgr_installer
object in smoke tests.

Following changes need to be submitted together:
     - https://review.tizen.org/gerrit/59442
     - https://review.tizen.org/gerrit/59443
     - https://review.tizen.org/gerrit/59444

Change-Id: I69f5972c09a593cfe9a282f2120845f85aa65b52

8 years agoremove not-used attribute (name of icon, name of image) 09/59509/1
jongmyeongko [Tue, 16 Feb 2016 07:02:47 +0000 (16:02 +0900)]
remove not-used attribute (name of icon, name of image)

Requires:
https://review.tizen.org/gerrit/#/c/59508/

Change-Id: I37b6ae310a478d32df766c3abc150311033ca02f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agofor widgetapp, some attributes should be set with fixed value. 88/59288/1 accepted/tizen/common/20160217.170708 accepted/tizen/ivi/20160218.023253 accepted/tizen/mobile/20160216.001702 accepted/tizen/tv/20160216.001734 accepted/tizen/wearable/20160216.001743 submit/tizen/20160215.041648 submit/tizen_common/20160217.131930 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000002
jongmyeongko [Fri, 12 Feb 2016 06:28:52 +0000 (15:28 +0900)]
for widgetapp, some attributes should be set with fixed value.

Change-Id: I7687ab3ac86e15d54e0db7fadcec1ca5e5b14836
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoMove plugin management code to plugins/ directory 60/58960/5 accepted/tizen/mobile/20160212.050018 accepted/tizen/tv/20160212.050036 accepted/tizen/wearable/20160212.050042 submit/tizen/20160212.012608
Tomasz Iwanek [Fri, 5 Feb 2016 09:28:36 +0000 (10:28 +0100)]
Move plugin management code to plugins/ directory

Build to verify.

Change-Id: I8fe1d060872ea376c8abc8c6808591d38b4386d9

8 years agoAdd <category> tag parsing in tpk manifest 47/59047/2
Tomasz Iwanek [Tue, 9 Feb 2016 09:00:56 +0000 (10:00 +0100)]
Add <category> tag parsing in tpk manifest

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

Change-Id: If3ebcd9f126d2f165a3820249b321054eb63c12f

8 years agoIntegrating StepRunParserPlugin with PluginsLauncher/DynamicLibHandle 63/58363/17 accepted/tizen/mobile/20160212.002400 accepted/tizen/tv/20160212.002415 accepted/tizen/wearable/20160212.002442 submit/tizen/20160211.093134
Lukasz Wartalowicz [Fri, 29 Jan 2016 14:17:59 +0000 (15:17 +0100)]
Integrating StepRunParserPlugin with PluginsLauncher/DynamicLibHandle

Change-Id: Iaaf1c62250d01573d1960cb1ff5ecdb9cfcf3850

8 years agoStylecheck fix 01/59101/1
Tomasz Iwanek [Wed, 10 Feb 2016 14:15:41 +0000 (15:15 +0100)]
Stylecheck fix

Change-Id: I7196d4c8ef0a26e79bcbd8757941b38b564caf81

8 years agoMove step remove manifest to app-installer 34/59034/8
Arkadiusz Szulakiewicz [Mon, 8 Feb 2016 10:49:33 +0000 (11:49 +0100)]
Move step remove manifest to app-installer

Change-Id: Ic13e3fea135eab0aad2ccb872b9aaf1b162549d7

8 years agoMinor improvements for force-uninstall step 07/58907/5
Arkadiusz Szulakiewicz [Thu, 4 Feb 2016 16:34:27 +0000 (17:34 +0100)]
Minor improvements for force-uninstall step

Change-Id: If2fe882812653272f2b5724e5a37e2f01a914214

8 years agoapply the concept of TPK insatllation as 'preload' 63/58863/3 accepted/tizen/mobile/20160205.064211 accepted/tizen/tv/20160205.064226 accepted/tizen/wearable/20160205.064246 submit/tizen/20160205.051501
jongmyeongko [Wed, 3 Feb 2016 12:23:01 +0000 (21:23 +0900)]
apply the concept of TPK insatllation as 'preload'

And, modify the way of preload decision.

Requires:
https://review.tizen.org/gerrit/#/c/58866

Change-Id: I90a698a721ac58a132862eba7f6e960686b9d152
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoMerge "Support localized/multi-resolution app icons" into tizen submit/tizen/20160203.065729
Junghyun Yeon [Wed, 3 Feb 2016 06:56:04 +0000 (22:56 -0800)]
Merge "Support localized/multi-resolution app icons" into tizen

8 years agoAdd RequestType::Clear 45/58245/4
Tomasz Iwanek [Thu, 28 Jan 2016 12:50:42 +0000 (13:50 +0100)]
Add RequestType::Clear

Add single step that will be run for wgt and tpk backend to
clear data/ directory of package in pkgmgr clear request.

Requires:
 - https://review.tizen.org/gerrit/58243,
 - https://review.tizen.org/gerrit/58244.

Change-Id: I273cbde462588b43584e4c5aa49d3f590eb73715

8 years agoSupport localized/multi-resolution app icons 86/58486/3
Junghyun Yeon [Mon, 1 Feb 2016 11:39:37 +0000 (20:39 +0900)]
Support localized/multi-resolution app icons

Changes applied at
[manifest-parser][app-installer][pkgmgr-info]

Change-Id: I89d2554681a459e2e5d9d40cd5fd00f1cac3785d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoDo not send pkgmgr signals in offline 76/58476/4 accepted/tizen/mobile/20160203.051929 accepted/tizen/tv/20160203.051946 accepted/tizen/wearable/20160203.052016 submit/tizen/20160203.003555
Tomasz Iwanek [Mon, 1 Feb 2016 09:53:58 +0000 (10:53 +0100)]
Do not send pkgmgr signals in offline

No one waits for signals in offline mode as dbus
is not working. Error logs should not show up.

Change-Id: I5502ca0ef67c18c14c4b42537948d6f28e16cefb

8 years agoAdd StepCheckBlacklist 57/58457/6
Sangyoon Jang [Mon, 1 Feb 2016 08:08:09 +0000 (17:08 +0900)]
Add StepCheckBlacklist

This step checks the given package is blacklisted or not

Change-Id: I082105b70a37db5220a546ed837ef9658382f884
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoDo not fail uninstall process if step error occurred 20/58620/3
Arkadiusz Szulakiewicz [Tue, 2 Feb 2016 08:31:04 +0000 (09:31 +0100)]
Do not fail uninstall process if step error occurred

Change-Id: Id4dc962699d08e202cbd84670b6265f2cfc9d4d3

8 years agoAdd PrivilegeLevel::PLATFORM for direct manifest installation 13/58113/4 devel/ivi submit/devel/ivi/20160202.071226
Tomasz Iwanek [Wed, 27 Jan 2016 13:35:59 +0000 (14:35 +0100)]
Add PrivilegeLevel::PLATFORM for direct manifest installation

This commit fixes installation of preload package with background
category set.

Change-Id: I018ea4f8d3eaa88fe4a91eb6f8f7a74b24b18a01

8 years agoAccept absolute icon path in tpk manifest 60/58360/3
Tomasz Iwanek [Thu, 28 Jan 2016 14:16:51 +0000 (15:16 +0100)]
Accept absolute icon path in tpk manifest

StepTpkPatchIcons will try to look for icon in alternative
location only if source path do not exist.

Requires to be submitted with:
 - https://review.tizen.org/gerrit/#/c/58358/

Change-Id: I4b1a60a8aaab9fa0018d05b8ebbdcd79efc9aef6

8 years agocreate empty package directory in direct_install mode. 93/58093/4
jongmyeongko [Wed, 27 Jan 2016 11:24:25 +0000 (20:24 +0900)]
create empty package directory in direct_install mode.

this is a way to cover such a lack of initial condition \
which is needed for backend's working.
following:
- preload ui-gadget only package does not have pkg_path.

Change-Id: Iab9568de9396f98c1f98bdfff963a9024281ee53
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoAdd step StepRunParserPlugin 34/57334/26
Lukasz Wartalowicz [Mon, 18 Jan 2016 14:56:59 +0000 (15:56 +0100)]
Add step StepRunParserPlugin

Change-Id: Ib644cf44a47879750c99026974f8c83909eb8a66

8 years agoAdd PluginsLauncher and DynamicLibHandle 41/57241/10
Kamil Chlodnicki [Mon, 18 Jan 2016 10:19:07 +0000 (11:19 +0100)]
Add PluginsLauncher and DynamicLibHandle

This change adds the class PluginsLauncher which is to be used by
StepRunParserPlugin. The DynamicLibHandle class is used by PluginsLauncher
to manage plugins which are in the form of dynamic libraries.
This commit can be submitted independently, however to launch plugins
(via PluginLauncher class) StepRunParserPlugin needs to be submitted too.

Change-Id: I55daa5f8d8867e4716530db5d6c9319526bf02fe

8 years agosmall fixes 94/58094/3
Pawel Sikorski [Wed, 27 Jan 2016 11:36:52 +0000 (12:36 +0100)]
small fixes

* fix cppcheck warnings
* fix compilation warnings
* removing some old TODOs

Change-Id: I5d8c3f24720cb33d471401784d27e405f4b3fc4b

8 years agofix missing manifest->preload set. 56/58056/2
jongmyeongko [Wed, 27 Jan 2016 07:22:30 +0000 (16:22 +0900)]
fix missing manifest->preload set.

Change-Id: I97abcc3835f208c63ba8ed1bfcd87b4156ef8db5
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoMerge "Revise dependency on privilege-manager" into tizen accepted/tizen/mobile/20160129.083356 accepted/tizen/tv/20160129.083419 accepted/tizen/wearable/20160129.083442 submit/tizen/20160127.110348
jongmyeong ko [Wed, 27 Jan 2016 11:20:11 +0000 (03:20 -0800)]
Merge "Revise dependency on privilege-manager" into tizen

8 years agoRemove root user validation for direct modes 72/57372/4
Lukasz Wysocki [Tue, 19 Jan 2016 12:06:18 +0000 (13:06 +0100)]
Remove root user validation for direct modes

This change is made due to requirements in commit:
- https://review.tizen.org/gerrit/#/c/55679/

Change-Id: I9befa463bd43b6d872e6fd2c8e08b037404d2646

8 years agoAdd InstallationMode to InstallerContext 76/57876/4
Arkadiusz Szulakiewicz [Mon, 25 Jan 2016 13:15:18 +0000 (14:15 +0100)]
Add InstallationMode to InstallerContext

Change-Id: I2cc21d4d79cb2187f65bfa04d152990b67b92333

8 years agoRemove default value for 'preload' attribute 75/57875/3
Arkadiusz Szulakiewicz [Thu, 21 Jan 2016 08:53:54 +0000 (09:53 +0100)]
Remove default value for 'preload' attribute

Change-Id: I4072d329207e07c93def6f5f62c4a7dc2c8bee0e

8 years agoRevise dependency on privilege-manager 45/57945/1 submit/devel/ivi/20160202.091941
Yunjin Lee [Tue, 26 Jan 2016 08:02:58 +0000 (17:02 +0900)]
Revise dependency on privilege-manager

Change-Id: I1f77506afcbad451df5a7a3169896325dcbcebd4
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoInstallation mode and request mode - naming cleanup 81/57881/1
Tomasz Iwanek [Mon, 25 Jan 2016 15:06:31 +0000 (16:06 +0100)]
Installation mode and request mode - naming cleanup

Installation mode:
 - online,
 - offline.

Request mode (type of pkgmgr request):
 - install,
 - update,
 - uninstall,
 - ...

Change-Id: I610062f136c5b7442a7f87be7b556d6848129a1a

8 years agoRemove usage of pkgmgr_parser_usr_process_manifest_xml 52/57752/3 submit/tizen/20160122.140520
Tomasz Iwanek [Fri, 22 Jan 2016 09:42:40 +0000 (10:42 +0100)]
Remove usage of pkgmgr_parser_usr_process_manifest_xml

This patch removes steps that are no longer in use.

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

Change-Id: Idb3e8ee5e20a2b23f57bfe9956ceb6dd0145fa4b

8 years agoStepParseManifest 49/57749/3
Tomasz Iwanek [Thu, 21 Jan 2016 12:47:23 +0000 (13:47 +0100)]
StepParseManifest

StepParseManifest will replace:
 - common::StepOldManifest
 - common::StepParse
 - tpk::StepParse (most of code comes from here)

as tpk-manifest-parser needs to be used instead of pkgmgr-parser
in parsing manifest file in deinstallation and update modes of
tpk-backend as well as wgt-backend.

Change-Id: Ib05249c229d1a73d4c79ed5ebeedf72e783dad78

8 years agoPkg-install-manifest helper binary 25/55225/21
Tomasz Iwanek [Mon, 21 Dec 2015 10:37:34 +0000 (11:37 +0100)]
Pkg-install-manifest helper binary

Requires:
 - https://review.tizen.org/gerrit/#/c/55055/
 - https://review.tizen.org/gerrit/#/c/56244/
 - https://review.tizen.org/gerrit/#/c/56245/

Change-Id: I32402533583a2f7b12705b2d8bb97a977f09e025

8 years agoSet install request type in StepConfigure 47/57647/3
Arkadiusz Szulakiewicz [Thu, 21 Jan 2016 08:53:54 +0000 (09:53 +0100)]
Set install request type in StepConfigure

Change-Id: Iee06603f29460569b0f5cecf9a123132378a1940

8 years agoFix icon copying 57/57257/6 accepted/tizen/mobile/20160122.032611 accepted/tizen/tv/20160122.032659 accepted/tizen/wearable/20160122.032711 submit/tizen/20160120.112210
Tomasz Iwanek [Mon, 18 Jan 2016 09:57:25 +0000 (10:57 +0100)]
Fix icon copying

Icons element are receiving full path in StepParse from now
for both wgt and tpk backend and all modes.

Steps:
 - StepCreateIcons
 - StepBackupIcons
 - StepRecoverIcons
 - StepRemoveIcons
handles icon files only outside package directory (those in: $HOME/.applications/icons/*)
Icons within application directories are copied together with whole package directory (StepCopy)
and are not managed by those steps.

To handle copying icons within package directory new steps are introduced:
 - StepWgtPatchIcons (copy to $package/shared/res/ from widget content directory)
 - StepTpkPatchIcons (copy to $package/shared/res/ if they are in different location, e.g. preload apps)

Following changes needs to be submitted together:
 - https://review.tizen.org/gerrit/57258 (wgt-backend)
 - https://review.tizen.org/gerrit/57257 (app-installers)
 - https://review.tizen.org/gerrit/57259 (tpk-backend)

Verify by:
 $ /usr/bin/tpk-backend-ut/smoke_test --gtest_filter=SmokeTest.UpdateMode_Tpk
 $ /usr/bin/tpk-backend-ut/smoke_test --gtest_filter=SmokeTest.InstallationMode_Tpk
 $ /usr/bin/tpk-backend-ut/smoke_test --gtest_filter=SmokeTest.DeltaMode_Tpk
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.InstallationMode
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.UpdateMode
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.RDSMode
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.DeltaMode
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.UpdateMode_Rollback
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.InstallationMode_Rollback

Change-Id: I61f30b4306ae31d8e88f08f3a2f7ed646d28ead7

8 years agoremove remaining codes reltated to preload_list.txt 04/57304/1
jongmyeongko [Tue, 19 Jan 2016 00:22:28 +0000 (09:22 +0900)]
remove remaining codes reltated to preload_list.txt

only root-user can use direct-install.

Change-Id: If51dd3f5ad2c7acc5beef4546d8b0f98a9fb8ef8
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoFail installation if certificate comparision fails 29/56929/6
Arkadiusz Szulakiewicz [Wed, 13 Jan 2016 15:04:55 +0000 (16:04 +0100)]
Fail installation if certificate comparision fails

Change-Id: Ie07c7361d057b0d4eabc7e576719fce1152994c3

8 years agoIcons paths parametrization 88/56488/5 accepted/tizen/mobile/20160115.010734 accepted/tizen/mobile/20160115.010911 accepted/tizen/tv/20160115.010746 accepted/tizen/tv/20160115.010928 accepted/tizen/wearable/20160115.010805 accepted/tizen/wearable/20160115.010951 submit/tizen/20160114.141522 submit/tizen/20160114.224350
Lukasz Wysocki [Fri, 8 Jan 2016 11:58:21 +0000 (12:58 +0100)]
Icons paths parametrization

This change is required to allow temporary copy icon into two
destinations in Web apps.

Associated chages:
- https://review.tizen.org/gerrit/#/c/56489/

Change-Id: Id4a02ad34bbb3b8f58cdd229c63562442e178019

8 years agoMerge directories for copying shared/ when installing package 21/56921/6
Tomasz Iwanek [Wed, 13 Jan 2016 13:29:21 +0000 (14:29 +0100)]
Merge directories for copying shared/ when installing package

Tpk package may have shared/ directory. Therefore, in update
we merge directories if possible to:
 - package supplied directories,
 - runtime created files,
 - package supplied directories from previous version.

Change-Id: I23b181ee4b37acb8c08ad53873875a74c46dfe1b

8 years agoFilter apps in StepCreateIcons 20/56920/3
Tomasz Iwanek [Wed, 13 Jan 2016 12:56:36 +0000 (13:56 +0100)]
Filter apps in StepCreateIcons

Method will be overriden in wgt backend.

Needs to be submitted:
 - https://review.tizen.org/gerrit/57017

Change-Id: I566a07d9e5047857928c47cc03afb33abd2fd3cf

8 years agoCheckPathInZipArchive 95/56795/3
Tomasz Iwanek [Tue, 12 Jan 2016 12:20:47 +0000 (13:20 +0100)]
CheckPathInZipArchive

Change-Id: I3ef523eee112202eb306e48cf247c0f05d59508e

8 years agoremove preload_list related API usage. 19/56719/3
jongmyeongko [Tue, 12 Jan 2016 08:53:08 +0000 (17:53 +0900)]
remove preload_list related API usage.

This will be replaced with other way.
Refer to following commit.

Require : https://review.tizen.org/gerrit/56717

Change-Id: Ic721c1372993af02aa1846d31bf331dd0406ad0f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoExpose AppInstaller::context_ for derived classes 06/56506/4
Tomasz Iwanek [Fri, 8 Jan 2016 15:49:02 +0000 (16:49 +0100)]
Expose AppInstaller::context_ for derived classes

Change-Id: If0e5d54d8c4633771dac983fabf0498955578abf

8 years agoSubprocess utility 03/56503/3
Tomasz Iwanek [Fri, 8 Jan 2016 12:58:32 +0000 (13:58 +0100)]
Subprocess utility

Change-Id: I6efadead6c4eed68e38746b3dcbb615fbde5a921

8 years agoDo not fail installation if application has no privileges 19/56419/2
Tomasz Iwanek [Thu, 7 Jan 2016 14:47:14 +0000 (15:47 +0100)]
Do not fail installation if application has no privileges

Change-Id: I5f41e6c243c495127920cbdba4eba2abd777d8c4

8 years agoRework handling PKGMGR_REQ_MANIFEST_DIRECT_INSTALL in StepConfigure 79/55079/6 accepted/tizen/mobile/20160108.064846 accepted/tizen/tv/20160108.064906 accepted/tizen/wearable/20160108.064934 submit/tizen/20160108.020058
Tomasz Iwanek [Mon, 21 Dec 2015 15:31:46 +0000 (16:31 +0100)]
Rework handling PKGMGR_REQ_MANIFEST_DIRECT_INSTALL in StepConfigure

GetRequestInfo() will return pkgid in future and this will provide
all necessary information about ManifestDirectInstall and
ManifestDirectUpdate request type.

Change-Id: If4c58e0fc6c9520c6918c84b735c949fe7d82a97