platform/core/appfw/app-installers.git
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

8 years agoadd new errors and error_message handlings 74/55174/12 accepted/tizen/mobile/20160108.010032 accepted/tizen/tv/20160108.010106 accepted/tizen/wearable/20160108.010133 submit/tizen/20160107.103810
jongmyeongko [Tue, 22 Dec 2015 05:28:26 +0000 (14:28 +0900)]
add new errors and error_message handlings

To offer more detailed information to developer.

dependency : https://review.tizen.org/gerrit/#/c/56333/

Change-Id: Id156eaf0eb03b73f9a66fbb27d599a95da952da6
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoRemove BSD license clausure from app-installers 93/56193/1
Arkadiusz Szulakiewicz [Tue, 5 Jan 2016 08:30:52 +0000 (09:30 +0100)]
Remove BSD license clausure from app-installers

Change-Id: I9fe991e760cf71d083ec38ac8bac4c418e0a8055

8 years agofix codes to manifest direct install works properly for preload apps 08/55108/3 accepted/tizen/mobile/20151224.063315 accepted/tizen/tv/20151224.063348 accepted/tizen/wearable/20151224.063429 submit/tizen/20151224.015514 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
Junghyun Yeon [Tue, 22 Dec 2015 02:59:38 +0000 (11:59 +0900)]
fix codes to manifest direct install works properly for preload apps

[app-installers][tpk-backend]

Change-Id: Ifc7137dc54e0c926595e1b84f8d143eebbeb6b92
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoRemove tpk and wgt backend code 91/54291/6 accepted/tizen/mobile/20151219.044136 accepted/tizen/tv/20151219.044547 accepted/tizen/wearable/20151219.044844 submit/tizen/20151218.151823
Tomasz Iwanek [Mon, 14 Dec 2015 15:19:55 +0000 (16:19 +0100)]
Remove tpk and wgt backend code

Source code is being transfered to separate git repositories.
This repository will export devel package for those backends.

Requires to be submitted together with commits moving source
code of backends to repositories:
 - platform/appfw/wgt-backend,
 - platform/appfw/tpk-backend.

Submit with:
 - https://review.tizen.org/gerrit/#/c/54291/,
 - https://review.tizen.org/gerrit/#/c/54886/.

Change-Id: I7a4ba6f6dd732418ae896130010d22c99ceb8e30

8 years agoCoding style fixes 81/54881/2
Pawel Sikorski [Fri, 18 Dec 2015 10:44:20 +0000 (11:44 +0100)]
Coding style fixes

Coding style fixes after running check-coding-style

Change-Id: I74919eb62527ff7f23949a0983fd286c9e366767

8 years agoPass error message from StepCheckSignature to AppInstaller 11/54611/10
Arkadiusz Szulakiewicz [Wed, 16 Dec 2015 12:18:46 +0000 (13:18 +0100)]
Pass error message from StepCheckSignature to AppInstaller

Change-Id: I422e111195249ac2db9668ad14013071af7dce40

8 years agoDevelopement package for common app-installers library 88/54288/3
Tomasz Iwanek [Mon, 14 Dec 2015 12:25:39 +0000 (13:25 +0100)]
Developement package for common app-installers library

Change-Id: I1c2740fb315b4a6b4a5a71e287382e5f7e6e32cf

8 years agoMove StepGenerateXml to wgt/ 07/54707/3
Tomasz Iwanek [Thu, 17 Dec 2015 08:37:47 +0000 (09:37 +0100)]
Move StepGenerateXml to wgt/

Following to changes in: https://review.tizen.org/gerrit/#/c/54607/

StepGenerateXml will be used only for wgt.

Change-Id: I689b6a1f39fde81fe4214acec4f2bd5f3648d251

8 years agoAdd StepConvertXml for tpk backend 07/54607/4 accepted/tizen/mobile/20151217.223533 accepted/tizen/tv/20151217.223547 accepted/tizen/wearable/20151217.223602 submit/tizen/20151217.070232
Sangyoon Jang [Wed, 16 Dec 2015 11:58:50 +0000 (20:58 +0900)]
Add StepConvertXml for tpk backend

StepConvertXml copies tpk packages manifest file with some modification.
replace StepGenerateXml with StepConvertXml in tpk-backend.

current manifest generation cannot generate some elements/attributes for
plugin-parsers, because manifest-parser and app-installer don't handle
all of elements/attributes.

Change-Id: I743050a47d4b21150a82a760e7717ced97fa4886
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoAllow single widget-application package 41/54641/3
Sangyoon Jang [Thu, 17 Dec 2015 01:18:14 +0000 (10:18 +0900)]
Allow single widget-application package

Change-Id: Ibfc33ed793305f0bc73f204a083c8dafd2799d2e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoParse and fill widget-application tag 53/54353/5
Sangyoon Jang [Tue, 15 Dec 2015 04:56:22 +0000 (13:56 +0900)]
Parse and fill widget-application tag

Change-Id: I7cb53a1834e87f70c8af47e8895ecbd0c756a486
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agodefault, apply public privilege to untrusted application 58/54558/1 accepted/tizen/mobile/20151216.111526 accepted/tizen/tv/20151216.111132 accepted/tizen/wearable/20151216.111335 submit/tizen/20151216.071058
jongmyeongko [Wed, 16 Dec 2015 06:27:12 +0000 (15:27 +0900)]
default, apply public privilege to untrusted application

Change-Id: I7c376bc5d2b72edc42e6f3fd077066c0aced3de9
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoMerge "privilege will mapped even api_version is 3.0" into tizen accepted/tizen/mobile/20151215.054928 accepted/tizen/tv/20151215.054954 accepted/tizen/wearable/20151215.055011 submit/tizen/20151215.023632
Junghyun Yeon [Tue, 15 Dec 2015 01:29:03 +0000 (17:29 -0800)]
Merge "privilege will mapped even api_version is 3.0" into tizen

8 years agoFix issue with missing xml:lang attribute 53/54253/2
Lukasz Wysocki [Mon, 14 Dec 2015 10:04:33 +0000 (11:04 +0100)]
Fix issue with missing xml:lang attribute

Change-Id: Id9bebf76e6e1f71796d74d80655618751f7ccede

8 years agoprivilege will mapped even api_version is 3.0 19/54219/1 accepted/tizen/mobile/20151215.054105 submit/tizen/20151215.012934
Junghyun Yeon [Mon, 14 Dec 2015 07:23:04 +0000 (16:23 +0900)]
privilege will mapped even api_version is 3.0

Change-Id: I646b41072b53b0fef71f11e8485a653747ca41bf
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoPass manifest_x directly to pkgmgr_parser API 53/51953/20 accepted/tizen/mobile/20151212.071403 accepted/tizen/tv/20151212.072839 accepted/tizen/wearable/20151212.074754 submit/tizen/20151211.155929
Tomasz Iwanek [Tue, 17 Nov 2015 09:57:59 +0000 (10:57 +0100)]
Pass manifest_x directly to pkgmgr_parser API

manifest_x structure is prepared inside app-installers and
passed to API (according to changes) to prevent extra parsing
of xml file.

Each lang member is now assigned with value of DEFAULT_LOCALE macro as
pkgmgr-info expects this.

Application exec attribute was fixed to contain full path.

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

Requires submission together with: https://review.tizen.org/gerrit/51972

Change-Id: I480d1905b4e885756f8140210e56f8fcca58f455

8 years agoRemove redundant code 52/53052/5
Lukasz Wysocki [Tue, 1 Dec 2015 09:05:57 +0000 (10:05 +0100)]
Remove redundant code

This is due to change made in this following commit
- https://review.tizen.org/gerrit/#/c/52917/

This change depend on following change:
- https://review.tizen.org/gerrit/#/c/53081/

please merge it first.

Change-Id: I8dc188c3af27f42396187b7ef44e2cfe2545857d

8 years agoAdd handling for background-category element in TPK. 81/53081/20
Lukasz Wysocki [Tue, 1 Dec 2015 15:07:18 +0000 (16:07 +0100)]
Add handling for background-category element in TPK.

Refactoring - remove ISpecification from the solution.

This commit depend on:
- https://review.tizen.org/gerrit/#/c/53072/
- https://review.tizen.org/gerrit/#/c/50502/

changes should be submitted together.

Fix code review from:
- https://review.tizen.org/gerrit/#/c/50502/

Fix issue from:
- https://review.tizen.org/gerrit/#/c/53835/

Change-Id: I8ca81da641e724822c96b6606343a619673b63a2

8 years agohotfix to create cache, data directory for skel. 65/54065/1 accepted/tizen/mobile/20151212.071149 accepted/tizen/tv/20151212.072642 accepted/tizen/wearable/20151212.073247 submit/tizen/20151211.080717
Junghyun Yeon [Fri, 11 Dec 2015 06:51:24 +0000 (15:51 +0900)]
hotfix to create cache, data directory for skel.

temporary fix to create cache, data directory when using pkgdir-tool.
Should find other way to apply smack label to skel folders

Change-Id: I56c165d1467340e1dc15e8e568d354c4ca340bac
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix crash while freeing privilege 60/54060/1 accepted/tizen/mobile/20151212.071024 accepted/tizen/tv/20151212.072528 accepted/tizen/wearable/20151212.073123 submit/tizen/20151211.064411
Semun Lee [Fri, 11 Dec 2015 06:19:55 +0000 (15:19 +0900)]
Fix crash while freeing privilege

Change-Id: I12c5c5b17dcf59c3b3797984f1d8075eaf35df12
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
8 years agoMerge "Apply changed security APIs" into tizen accepted/tizen/mobile/20151210.230750 accepted/tizen/tv/20151210.230805 accepted/tizen/wearable/20151210.230830 submit/tizen/20151210.104410
Junghyun Yeon [Thu, 10 Dec 2015 10:42:57 +0000 (02:42 -0800)]
Merge "Apply changed security APIs" into tizen

8 years agoParse extra elements in tpk::parse::StepParse 79/53679/4
Tomasz Iwanek [Tue, 8 Dec 2015 12:44:29 +0000 (13:44 +0100)]
Parse extra elements in tpk::parse::StepParse

Added parsing for elements:
 - manifest/uiapplication/image,
 - manifest/label.

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

Change-Id: I955ce05b99ecdb0bcc336d300f66538d5331a7fa

8 years agoGenerate application_x attributes 39/53639/9
Tomasz Iwanek [Fri, 4 Dec 2015 14:04:56 +0000 (15:04 +0100)]
Generate application_x attributes

application attributes:
 - uigadget,
 - process-pool,
 - submode,
 - submode-mainid,
 - indicatordisplay,
 - portrait-effectimage,
 - landscape-effectimage,
 - effectimage-type,
 - hwacceleration.

package attributes:
 - nodisplay-setting.

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

Change-Id: Idbf8f7d570914becc1a4145b1359abb700ee60fd

8 years agoTemporary fix for background-category. 35/53835/3
Pawel Sikorski [Wed, 9 Dec 2015 15:07:43 +0000 (16:07 +0100)]
Temporary fix for background-category.

Error: cannot install normal application (without background-category)
Log:
| DEBUG | CheckBackgroundCategory : Installation fail caused by background-cat.
| ERROR | AppInstaller         : Error during processing
| ERROR | AppInstaller         : Failure occurs

Change-Id: I03f2bc6c424ed7e11ab7e7a66bc1b1cfc4452ae0

8 years agoPass xml namespace from tizen-manifest.xml in tpk::StepParse 82/53282/9
Tomasz Iwanek [Thu, 3 Dec 2015 09:28:00 +0000 (10:28 +0100)]
Pass xml namespace from tizen-manifest.xml in tpk::StepParse

Change-Id: I7b18abd8876d695a38cd5b99e7efb7e2de9871aa

8 years agoGenerate deviceprofile list for tpk 81/53281/8
Tomasz Iwanek [Thu, 3 Dec 2015 08:52:40 +0000 (09:52 +0100)]
Generate deviceprofile list for tpk

Requires:
 - https://review.tizen.org/gerrit/53280
 - https://review.tizen.org/gerrit/53288

Change-Id: Ic166436b24531b42166328e5651876db7f938850

8 years agoApply changed security APIs 46/53346/2
Junghyun Yeon [Fri, 4 Dec 2015 06:34:05 +0000 (15:34 +0900)]
Apply changed security APIs

now privilege-check will manage privilege mapping
instead of security-manager

Change-Id: I5d84dbfdccd9fd8a68123f6184bde3fbf8b20596
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoCoding style fixes. 89/53789/1
Pawel Sikorski [Wed, 9 Dec 2015 09:57:09 +0000 (10:57 +0100)]
Coding style fixes.

Fixing coding style issues found by check-coding-style tool.

Change-Id: I09bce980b003506d281f0bf8b91d547d328971b2

8 years agoFix privileges of globally installed applications 90/53490/5
Arkadiusz Szulakiewicz [Mon, 7 Dec 2015 09:18:04 +0000 (10:18 +0100)]
Fix privileges of globally installed applications

Change-Id: I44076b5defdd60899352046d9e990b5ea9f4a14a

8 years agoAdd handling for background-category element. 02/50502/18
Lukasz Wysocki [Thu, 29 Oct 2015 10:19:16 +0000 (11:19 +0100)]
Add handling for background-category element.

This commit depend on:
 - https://review.tizen.org/gerrit/#/c/50500/
 - https://review.tizen.org/gerrit/#/c/52917/

changes should be submitted together.

Created sperated header files for classes that
belong to ExtraManifestData.

Change-Id: Ia487d33b9c83977852a292256499077cf805ee83

8 years agoDon't encrypt empty files because libwebappenc doesn't support it 63/53263/2 accepted/tizen/mobile/20151203.230802 accepted/tizen/tv/20151203.230817 accepted/tizen/wearable/20151203.230837 submit/tizen/20151203.083855
Kamil Chłodnicki [Tue, 24 Nov 2015 13:09:53 +0000 (14:09 +0100)]
Don't encrypt empty files because libwebappenc doesn't support it

Change-Id: I78b0cd8ffd430527c2eeb6deabf97ce73ce10dce
Signed-off-by: Kamil Chłodnicki <k.chlodnicki@samsung.com>
8 years agoFix rollback for StepRemoveEncryptionData 75/52575/2
Kamil Chłodnicki [Tue, 24 Nov 2015 11:36:39 +0000 (12:36 +0100)]
Fix rollback for StepRemoveEncryptionData

Removing the encryption key is now done in clean(), so that it does not
affect rollback.

Change-Id: I629373fbaff6585e92581e48b97763cc6d374a28
Signed-off-by: Kamil Chłodnicki <k.chlodnicki@samsung.com>
8 years agoMerge "allows to add db information of manifest direct installed apps" into tizen accepted/tizen/mobile/20151201.225926 accepted/tizen/tv/20151201.225947 accepted/tizen/wearable/20151201.230007 submit/tizen/20151201.085942
Junghyun Yeon [Mon, 30 Nov 2015 06:33:35 +0000 (22:33 -0800)]
Merge "allows to add db information of manifest direct installed apps" into tizen

8 years agoProper native implementation for directory creator tool 69/51969/7
Tomasz Iwanek [Mon, 7 Sep 2015 12:07:53 +0000 (14:07 +0200)]
Proper native implementation for directory creator tool

Implementing tool for creating directories for global applications data
based on previous script.

This is fixed reverted commit of: https://review.tizen.org/gerrit/#/c/47937
This version do not uses gumd API which was failing during image creation time.

Change-Id: I318515dbbd1b21d3b1e801e8eab68ca6354efabd

8 years agoallows to add db information of manifest direct installed apps 70/51870/9 accepted/tizen/mobile/20151130.094229 accepted/tizen/tv/20151130.094245 accepted/tizen/wearable/20151130.094305 submit/tizen/20151130.063415
Junghyun Yeon [Tue, 17 Nov 2015 01:07:54 +0000 (10:07 +0900)]
allows to add db information of manifest direct installed apps

[app-installers][slp-pkgmgr]

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Change-Id: I10064d27e16be380a7cc0ce17084597f5925b77c

8 years agoFix permission for applications installed in global path 72/52172/3
Arkadiusz Szulakiewicz [Thu, 19 Nov 2015 12:45:09 +0000 (13:45 +0100)]
Fix permission for applications installed in global path

Change-Id: I778a2104db654c6d9409b534e9bb7d38ec6a5a78

8 years agocert-svc-vcore sig validator API changed (2.0.0) 32/51832/2 accepted/tizen/mobile/20151120.070845 accepted/tizen/tv/20151120.070856 accepted/tizen/wearable/20151120.070911 submit/tizen/20151120.024645
Kyungwook Tak [Mon, 16 Nov 2015 11:37:44 +0000 (20:37 +0900)]
cert-svc-vcore sig validator API changed (2.0.0)

Change-Id: I94c65faa0e8bc0a31ee736353a4db6b8d49bfed4
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoChange smack label of smoke tests 47/51947/3
Tomasz Iwanek [Tue, 17 Nov 2015 11:32:52 +0000 (12:32 +0100)]
Change smack label of smoke tests

Change-Id: I87d6562d19493a99f67364b680309ca445f6bdd5

8 years ago[cleanup] fix source files attributes 27/51327/2
Pawel Sikorski [Fri, 6 Nov 2015 14:31:21 +0000 (15:31 +0100)]
[cleanup] fix source files attributes

Change-Id: I0797c735f6a1715a81273984131b4f437613b6df

8 years agoMerge "Avoid referencing inexistant object to fix crash" into tizen accepted/tizen/mobile/20151117.232435 accepted/tizen/tv/20151117.232445 accepted/tizen/wearable/20151117.232449 submit/tizen/20151117.105121
Semun Lee [Tue, 17 Nov 2015 10:49:07 +0000 (02:49 -0800)]
Merge "Avoid referencing inexistant object to fix crash" into tizen

8 years agoMerge "implement TEP install, update" into tizen accepted/tizen/mobile/20151117.005616 accepted/tizen/tv/20151117.005630 accepted/tizen/wearable/20151117.005639 submit/tizen/20151116.110857
VBS [Mon, 16 Nov 2015 11:06:12 +0000 (03:06 -0800)]
Merge "implement TEP install, update" into tizen

8 years agoAvoid referencing inexistant object to fix crash 38/51738/1
Youmin Ha [Fri, 13 Nov 2015 09:22:17 +0000 (18:22 +0900)]
Avoid referencing inexistant object to fix crash

When installing an app having only service-applications, there is no
ui-application element in the manifest. In this case, current log
printing code causes crash at runtime.
This commit fixes the crash.

Change-Id: I2aac4bf1a4a38dad3422728eaa85cf05c90602a9
Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
8 years agoimplement TEP install, update 77/50977/13
VBS [Tue, 3 Nov 2015 11:31:08 +0000 (20:31 +0900)]
implement TEP install, update

[app-installer][pkgmgr-info][pkgmgr-server][pkgmgr-tool][slp-pkgmgr]

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Change-Id: Iec6ea9df7dccd2545504ca6944e46e34bcb9676b

8 years agofix stylecheck 94/51294/2
Tomasz Iwanek [Fri, 6 Nov 2015 09:09:11 +0000 (10:09 +0100)]
fix stylecheck

skipping one error as it will be reverted.

Change-Id: I5ff580ba9082a6ba06ff3dc704a66f51245855a6

8 years agoRevert "Remove old pkgdir_maker symlink for backward compatibility" 61/51261/1
Youmin Ha [Fri, 6 Nov 2015 03:59:41 +0000 (12:59 +0900)]
Revert "Remove old pkgdir_maker symlink for backward compatibility"

This reverts commit 2febf9ed97e7c419bb4bde223c12b319cab36daa.

Must be reverted because of the MIC block. (Read the previous revert
commit)

Conflicts:
packaging/app-installers.spec

Change-Id: I2edf2f211d0b7a6318a9369d88c94da5afbfaaaf

8 years agoRevert "Proper native implementation for directory creator tool" 60/51260/1
Youmin Ha [Fri, 6 Nov 2015 03:55:17 +0000 (12:55 +0900)]
Revert "Proper native implementation for directory creator tool"

This reverts commit 87ff328999633522d3b374770e1a287288a216d6.

During running MIC to make the binary image, this pkgdir-tool blocks the
process. In the binary server, this commit is reverted already.
The original commit must be applied again after fixing this problem.

Conflicts:
packaging/app-installers.spec

Change-Id: I65eeaa4dc85b5349b411853e7e815be6b540563c

8 years agoSmoke test of delta package installation 42/50542/5
Tomasz Iwanek [Thu, 29 Oct 2015 15:34:42 +0000 (16:34 +0100)]
Smoke test of delta package installation

Change-Id: Ic23d97126509c3e91c2235b2bfae1a3f5a047527

8 years agoCleanup 51/50751/4
Tomasz Iwanek [Fri, 30 Oct 2015 13:56:14 +0000 (14:56 +0100)]
Cleanup

Remove warnings

Change-Id: I3a447f34758e73cb34a4a3b6f511def171ec0558

8 years agoImplement delta mode for wgt 39/50539/7
Tomasz Iwanek [Thu, 29 Oct 2015 12:18:35 +0000 (13:18 +0100)]
Implement delta mode for wgt

Change-Id: Iec9dd993cdc552ef1bb96e6c70f18ad452b593cc

8 years agoString to request map for recovery mode reading 48/50748/2
Tomasz Iwanek [Fri, 30 Oct 2015 13:24:51 +0000 (14:24 +0100)]
String to request map for recovery mode reading

Change-Id: I2459fff8606ad081d1bbf889556333c294e6a4e4

8 years agoAdd RequestType::Delta and implement delta mode for tpk 21/50521/10
Tomasz Iwanek [Tue, 27 Oct 2015 10:50:59 +0000 (11:50 +0100)]
Add RequestType::Delta and implement delta mode for tpk

Requires:
 - submission of https://review.tizen.org/gerrit/#/c/50418/
 - release of xdelta3 for tizen 3.0

Change-Id: I3066c9457368e9ab229d1500b0cd4a7549edce15

8 years agoAdd exception handling in AppInstaller for exception safety 92/50892/3
Tomasz Iwanek [Tue, 3 Nov 2015 08:13:31 +0000 (09:13 +0100)]
Add exception handling in AppInstaller for exception safety

Although app-installer was designed not to throw exceptions
some code may still throw. This is some failure in design that
we have yet allowed exceptions to exist. Anyway,
rollback should work in cases where exception is thrown.

Change-Id: I0dc54154f7c3a29ce0b1f4dc9c0dda1a98cfd32f