platform/core/appfw/app-installers.git
8 years agorefactor setting installed_storage 08/72908/1 accepted/tizen/common/20160606.141715 accepted/tizen/ivi/20160606.040558 accepted/tizen/mobile/20160606.035159 accepted/tizen/tv/20160606.035900 accepted/tizen/wearable/20160606.040103 submit/tizen/20160603.030057
jongmyeongko [Fri, 3 Jun 2016 04:18:36 +0000 (13:18 +0900)]
refactor setting installed_storage

Change-Id: Iaa29a44bf3639bde4d02a727969da04e5a66f240
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agochecking 'apps' existence of external storage. 36/72736/1 accepted/tizen/common/20160606.141604 accepted/tizen/ivi/20160602.230743 accepted/tizen/mobile/20160602.230724 accepted/tizen/tv/20160602.230706 accepted/tizen/wearable/20160602.230641 submit/tizen/20160602.040935
jongmyeongko [Thu, 2 Jun 2016 08:11:51 +0000 (17:11 +0900)]
checking 'apps' existence of external storage.

Change-Id: I613723e71183177aaaeebb9b94afb06858ea6880
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agofix wrong return type. 36/72536/2 accepted/tizen/common/20160602.140049 accepted/tizen/ivi/20160602.022900 accepted/tizen/mobile/20160602.023032 accepted/tizen/tv/20160602.022608 accepted/tizen/wearable/20160602.022747 submit/tizen/20160531.024853
jongmyeongko [Wed, 1 Jun 2016 10:34:26 +0000 (19:34 +0900)]
fix wrong return type.

Change-Id: I6f2ec8e22baf253c8f2d89137b7414bbcda78789
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoExternal installation 80/61680/23
Tomasz Iwanek [Fri, 2 Oct 2015 09:01:32 +0000 (11:01 +0200)]
External installation

This patch implements installation of package in external sd card storage.
Tpk and wgt applications may declare preference of being installed on external
storage. If so and space requirement is satisified then their resource directory
is installed in sd card with use of app2sd API.

Following patchsets should be submitted together:
 - https://review.tizen.org/gerrit/61678
 - https://review.tizen.org/gerrit/61679
 - https://review.tizen.org/gerrit/61680

Verify by:
 - running smoke tests,
 - running installation, update, deinstallation for package that prefers external
   installation (SD card must be inserted).

Requires:
 - https://review.tizen.org/gerrit/#/c/64796/

Change-Id: I3c49eaa3c65ce318b2e1ce6ccf049d285a83e58b
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoAdd plugins for NFC parser 12/71612/4
Junghyun Yeon [Thu, 26 May 2016 07:11:08 +0000 (16:11 +0900)]
Add plugins for NFC parser

Change-Id: I887aa9ed97bf4237e2bebd1d8afc5631a082c295
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agofix additional '/' character in plugin_list path. 25/72025/1
jongmyeongko [Mon, 30 May 2016 08:38:04 +0000 (17:38 +0900)]
fix additional '/' character in plugin_list path.

plus, log manifest name when pkg_initdb is doing.

Change-Id: I37fbc83f52f7432717762595873d3996fdf7648c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoFix update failure 01/71201/4
Sangyoon Jang [Tue, 24 May 2016 11:12:13 +0000 (20:12 +0900)]
Fix update failure

Add FS_COPY_XATTR flag to copy smack label only when installer has permission.
(normally installer doesn't have permission to copy smack label)

Change-Id: Icb4d6219ba9d7085b72e2779bf17d01d63fd6c73
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoAdd StepCheckTizenVersion 43/71143/10
Sangyoon Jang [Tue, 24 May 2016 08:35:29 +0000 (17:35 +0900)]
Add StepCheckTizenVersion

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

Change-Id: Id0d838a9244395f4b996f17391ee1dbdfed2c77a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoCoding style patch 51/71151/1
Piotr Ganicz [Tue, 24 May 2016 08:22:54 +0000 (10:22 +0200)]
Coding style patch

This patch provides 0 errors in check-coding-style script.

Change-Id: I46795f5ce502616116e330d126b2e0f5fbf079ba

8 years agoRework pkgdir-tool 33/67933/26
Sangyoon Jang [Fri, 29 Apr 2016 08:10:31 +0000 (17:10 +0900)]
Rework pkgdir-tool

For several issue(performace, code consistency, ...), the pkgdir-tool is
reworked.

The app-installer calls security-manager api just once for labeling
skel directories, not for each users.
And the pkgdir-tool copies those labeled directories to each user's home
directory.

The pkgdir-tool doesn't have setuid bit no more(because of security issue),
so it will be launched by dbus activation.
(It still needs root privilege for writing permission to user directories)

Requires:
 - https://review.tizen.org/gerrit/68140
 - https://review.tizen.org/gerrit/68294

Change-Id: Ib96c41f08d681443c5993bedd3fcf4f1c91db8c3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRevert "Don't create skel dirs for packages" 76/67676/13
Sangyoon Jang [Mon, 16 May 2016 10:41:33 +0000 (19:41 +0900)]
Revert "Don't create skel dirs for packages"

This reverts commit cc661b012078be469db6b60cd2e8926d770c7a52.

The way of making per user directory will be changed.
Installer will create skel directories when install global app, and
the pkgdir-tool will copy those skel directories to each users home.

Change-Id: Ifd538689825cb019558222ecef1cd532b0c22922

8 years agoRevert "Add user option at pkgdir-tool" 75/67675/14
Sangyoon Jang [Mon, 16 May 2016 10:40:21 +0000 (19:40 +0900)]
Revert "Add user option at pkgdir-tool"

This reverts commit 58b27b575dd085ef13c05f8c452266d5ce0e6933.

Conflicts:
packaging/app-installers.spec
src/common/shared_dirs.cc

Change-Id: I3e45b7dc8050a199c08b57057c817008d19fa4a7

8 years agoRevert "Revert "Revert "remove privilege plugin for the list.""" 46/70646/2 accepted/tizen/common/20160520.171351 accepted/tizen/ivi/20160520.134533 accepted/tizen/mobile/20160520.134123 accepted/tizen/tv/20160520.134237 accepted/tizen/wearable/20160520.134423 submit/tizen/20160520.050106 submit/tizen/20160520.060844
jongmyeong ko [Fri, 20 May 2016 04:22:05 +0000 (21:22 -0700)]
Revert "Revert "Revert "remove privilege plugin for the list."""

Security needs privilege plugin again.

This reverts commit 3ca7391c234dc880825455052cbef2f70862caf9.

Change-Id: I592f8db6b3ebf6d21313eaefbd7e7551134edf72

8 years agoFix rollback in mount update 05/69305/2
Tomasz Iwanek [Thu, 12 May 2016 12:05:30 +0000 (14:05 +0200)]
Fix rollback in mount update

To verify, check that you still cannot update mount-installed
package in normal manner and vice-versa. Run smoke tests.

Change-Id: I5de71a59c92b7f1ae8d0ab612ed5784911ece083

8 years agoRemove blacklist feature 47/69947/2 accepted/tizen/common/20160518.125117 accepted/tizen/ivi/20160518.090804 accepted/tizen/mobile/20160518.090832 accepted/tizen/tv/20160518.090739 accepted/tizen/wearable/20160518.090725 submit/tizen/20160518.054712
Junghyun Yeon [Tue, 17 May 2016 09:45:14 +0000 (18:45 +0900)]
Remove blacklist feature

Blacklist feature is integrated with restriction mode.
It will be added when its done.

Change-Id: Ie3346e1b39ce9164e6308ad985ce54ee760a44c8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoFix style 64/69764/2 submit/tizen/20160518.002620
Tomasz Iwanek [Mon, 16 May 2016 14:12:46 +0000 (16:12 +0200)]
Fix style

Change-Id: I4d2477093ec0f6e865f988c6de9e61af53d9d3fd

8 years agoFix StepDeltaPatch 66/69066/4
Tomasz Iwanek [Wed, 11 May 2016 08:50:51 +0000 (10:50 +0200)]
Fix StepDeltaPatch

This patch modifies StepDeltaPatch step that it will remove
installer generated icons for web applications from temporary
directory before it applies patch and checks signature.

Reference package content for applying delta changes is taken
from installation location of package so we copy not only package
files but also installer generated files that are not in signature.

Problematic directory is /shared/res/ where there are package files
and installer generated files.

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

To verify, run:
 $ /usr/bin/wgt-backend-ut/smoke-test --gtest_filter=SmokeTest.DeltaMode_Hybrid

Change-Id: Iee5a6561164e9cfb161e8e41a65aedec71b85e54

8 years agoadd move request type at app-installers 55/66255/6
Junghyun Yeon [Mon, 18 Apr 2016 06:03:32 +0000 (15:03 +0900)]
add move request type at app-installers

Change-Id: I52a024a804da5e66460b53435520f9c3230d46b6
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoChange implementation of step kill apps 32/69032/12 submit/tizen/20160517.005404
Junghyun Yeon [Wed, 11 May 2016 07:12:33 +0000 (16:12 +0900)]
Change implementation of step kill apps

Change implementation of step_kill_apps
to work properly on multi-user scenario
such as kill global apps, etc.

Change-Id: I48a7953d2f1ae72f6671f588697e56d8cb5de2df
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoStyle & build warning fix 81/69681/1
Sangyoon Jang [Mon, 16 May 2016 10:14:13 +0000 (19:14 +0900)]
Style & build warning fix

- use nullptr instead of NULL
- one variable per one line
- return false when setuid failed

Change-Id: I8f23d9c52da418110cb41cc7f11e4b186fff2ff2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agochange the base-path for external rw dirs to 'SDCardA1/apps' 69/68269/7
jongmyeongko [Tue, 3 May 2016 07:25:16 +0000 (16:25 +0900)]
change the base-path for external rw dirs to 'SDCardA1/apps'

the mount path of sdcard was changed (sdcard -> SDCardA1)

Change-Id: I371ec1f66c8d98fe5ca1306657799d2b8e816b45
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoadd PROJECT_TAG as 'APP_INSTALLERS' 83/69183/2 accepted/tizen/common/20160513.123344 accepted/tizen/ivi/20160513.004708 accepted/tizen/mobile/20160513.004736 accepted/tizen/tv/20160513.004652 accepted/tizen/wearable/20160513.004625 submit/tizen/20160512.083806
jongmyeongko [Thu, 12 May 2016 05:49:39 +0000 (14:49 +0900)]
add PROJECT_TAG as 'APP_INSTALLERS'

Change-Id: Iee5512c198c3e5d97ef81725c014ec0c6c97a271
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoStore zip file location in manifest_x 40/68540/3 accepted/tizen/common/20160513.123135 submit/tizen/20160511.132536
Tomasz Iwanek [Thu, 5 May 2016 14:13:50 +0000 (16:13 +0200)]
Store zip file location in manifest_x

Requires:
 - https://review.tizen.org/gerrit/#/c/68001/

Change-Id: I73bfdf5bfd92261e0fc324759a5b30d9b37daad1

8 years agoAdjusted setters 66/68566/3
Piotr Ganicz [Fri, 6 May 2016 13:04:28 +0000 (15:04 +0200)]
Adjusted setters

This commit adjust setters in code to take by value with std::move.

Change-Id: Ib034ed8379be68fa620298eede8f122a18416c1f

8 years agoReorder the header files 17/68917/3
Piotr Ganicz [Tue, 10 May 2016 10:25:17 +0000 (12:25 +0200)]
Reorder the header files

This commit reorders the header files to provide better coding style.
The patch provides zero errors in /tools/check-coding-style app.

Change-Id: I5269a2eb68b93eb245491f2f3608844861e38cb1

8 years agoRemove pkg-install-manifest helper binary 43/64543/7
Tomasz Iwanek [Fri, 1 Apr 2016 14:42:17 +0000 (16:42 +0200)]
Remove pkg-install-manifest helper binary

In situation pkg-initdb is moved to app-installers repository,
this binary is not needed.

pkg-initdb should be able to restore pkgmgr database:
1) for user:
 $ pkg-initdb --uid 5001
2) globaly:
 $ pkg-initdb

Change-Id: Ic4305b440f25f6b7170e4e6c9134e013544e4f22

8 years agoMove pkg_initdb implementation to app-installers 04/64204/17
Tomasz Iwanek [Wed, 30 Mar 2016 10:00:22 +0000 (12:00 +0200)]
Move pkg_initdb implementation to app-installers

New binary name is: /usr/bin/pkg-initdb

Scripts that creates image should switch to new binary when ready
by changing called binary to given one (then old one may be removed).

/usr/bin/pkg-install-manifest will be removed in next patches.

pkg-initdb should be able to restore pkgmgr database:
 1) for user:
 $ pkg_initdb --uid 5001
 2) globaly:
 $ pkg_initdb

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

Change-Id: If58d9326c5afcc877ac6ff3ae86924083b764f1c

8 years agoStore distributor2 certificates 45/68645/3
Sangyoon Jang [Mon, 9 May 2016 05:49:07 +0000 (14:49 +0900)]
Store distributor2 certificates

Change-Id: Ibdc88d3cddc5245f6bd42c47625d478660cb5106
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoIME info extra manifest data 03/67903/6
Kamil Rojewski [Tue, 19 Apr 2016 08:37:47 +0000 (10:37 +0200)]
IME info extra manifest data

Change-Id: I92d6b830d5b75cf09e892bb1c8ae8b6ac0af731e

8 years agoFix TEP copying 78/68678/4
Tomasz Iwanek [Mon, 9 May 2016 08:57:20 +0000 (10:57 +0200)]
Fix TEP copying

To verify, install/update package with tep. Tep can be any file.
 $ backend -i ${package} -e ${tep_file}
tep file must be copied to ${package_root}/tep/

Change-Id: Ie28a94ba8b32606fa29fb7c6309e697f2e1bca7e

8 years agohandle E_SIG_DISREGARDED like E_SIG_NONE 91/68191/4
Cho Woongsuk [Tue, 3 May 2016 02:25:27 +0000 (11:25 +0900)]
handle E_SIG_DISREGARDED like E_SIG_NONE

cert-svc handle exceptional case of signature validation.
so, installer can handle E_SIG_DISREGARDED error code like E_SIG_NONE

Change-Id: I4e8dcc8b31f641b8447539fab318603fafcda347
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoChange maximum length of filepath to PATH_MAX 37/68637/4
Junghyun Yeon [Mon, 9 May 2016 05:20:50 +0000 (14:20 +0900)]
Change maximum length of filepath to PATH_MAX

When length of file name is reaches 256,
package which has it failed to install due to it.
So set maximum length of filepath higher than
maximum filename length to prevent it.

Change-Id: I45465ace401feaecc60dfa0c7ba9e1e703a44b13
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoMerge "Add color-depth attribute on splash screen" into tizen accepted/tizen/common/20160511.141652 accepted/tizen/ivi/20160512.045926 accepted/tizen/mobile/20160512.045711 accepted/tizen/tv/20160512.045804 accepted/tizen/wearable/20160512.045742 submit/tizen/20160510.044059
Hwankyu Jhun [Tue, 10 May 2016 06:21:55 +0000 (23:21 -0700)]
Merge "Add color-depth attribute on splash screen" into tizen

8 years agoAdd color-depth attribute on splash screen 74/68674/1
Hwankyu Jhun [Mon, 9 May 2016 08:55:47 +0000 (17:55 +0900)]
Add color-depth attribute on splash screen

- Requires:
[pkgmgr-info] https://review.tizen.org/gerrit/#/c/68656/
[manifest-parser] https://review.tizen.org/gerrit/#/c/68658/

Change-Id: I7e72c0218531f6c746b53a2d95e9f6a4a18eb671
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix RegisterCertificate 59/68659/2 accepted/tizen/common/20160510.051058 accepted/tizen/ivi/20160510.070351 accepted/tizen/mobile/20160510.070328 accepted/tizen/tv/20160510.070338 accepted/tizen/wearable/20160510.070311 submit/tizen/20160510.003434
Sangyoon Jang [Mon, 9 May 2016 07:30:51 +0000 (16:30 +0900)]
Fix RegisterCertificate

- Rename to RegisterCertificates.
- Check if each cert infos exists.

Change-Id: Iad3b0027222f8ef2f33bf1f125c977492cd844a5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix a bug on parsing manifest 36/68636/1
Sangyoon Jang [Mon, 9 May 2016 05:17:18 +0000 (14:17 +0900)]
Fix a bug on parsing manifest

Store label at 'text' member. ('name' is not used at pkgmgr-info)

Change-Id: I90e7c24d47ee2c9e066775d0b37da3486c2ac11e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoParse category, metadata, background category for watchapp 52/68452/1
Sangyoon Jang [Wed, 4 May 2016 08:56:04 +0000 (17:56 +0900)]
Parse category, metadata, background category for watchapp

Change-Id: I398f7e1918a894e7abf915ef1976a6b830517e7a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix ValidateSignatures 39/68439/1 accepted/tizen/common/20160505.140359 accepted/tizen/ivi/20160506.035733 accepted/tizen/mobile/20160506.035157 accepted/tizen/tv/20160506.035525 accepted/tizen/wearable/20160506.035624 submit/tizen/20160504.074553
Sangyoon Jang [Wed, 4 May 2016 08:22:17 +0000 (17:22 +0900)]
Fix ValidateSignatures

preload package without signing can be installed.

Change-Id: I7567f4067a376f62b75630fe137f7907a32cbdd3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoMount install steps 61/65361/16
Tomasz Iwanek [Fri, 8 Apr 2016 13:48:53 +0000 (15:48 +0200)]
Mount install steps

Due to mounting res/ directory tep package is copied
to tep/ directory instead of res/.

Requires:
 - https://review.tizen.org/gerrit/65788/
 - https://review.tizen.org/gerrit/66961/
 - https://review.tizen.org/gerrit/67457/
 - https://review.tizen.org/gerrit/67822/

Change-Id: I37974991f0d5fa2248e0a40aa1a999cc389f7485

8 years agoImplement TzipInterface 54/65354/14
Arkadiusz Szulakiewicz [Fri, 8 Apr 2016 14:04:24 +0000 (16:04 +0200)]
Implement TzipInterface

Change-Id: I13b02a17c70c98d27bcf9f9959de90099ceee99a

8 years agoFix getting signature file path 60/68260/1
Sangyoon Jang [Tue, 3 May 2016 07:03:40 +0000 (16:03 +0900)]
Fix getting signature file path

ValidationCore::SignatureFileInfo::getFileName() returns full path.

Change-Id: I32413027381b13727b71057320e515920f447309
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoPrevent installation of unsigned packages 17/66017/7
Arkadiusz Szulakiewicz [Thu, 14 Apr 2016 14:22:27 +0000 (16:22 +0200)]
Prevent installation of unsigned packages

Change-Id: Id4768a04d5b923b9287c0098e3e3fe9775afb0fc

8 years agoFix calculating space for unpacking zip 23/67623/4 accepted/tizen/common/20160427.144540 accepted/tizen/ivi/20160428.003120 accepted/tizen/mobile/20160428.005009 accepted/tizen/tv/20160428.002938 accepted/tizen/wearable/20160428.003303 submit/tizen/20160427.140900
Tomasz Iwanek [Wed, 27 Apr 2016 12:35:38 +0000 (14:35 +0200)]
Fix calculating space for unpacking zip

Change-Id: I83247d0ab716f6fddc250579f06a1bba2c4b353d

8 years agoExtract cert-svc utility function to separate file 96/66396/4 accepted/tizen/common/20160420.141927 accepted/tizen/ivi/20160421.010848 accepted/tizen/mobile/20160421.010919 accepted/tizen/tv/20160421.010904 accepted/tizen/wearable/20160421.010857 submit/tizen/20160420.054036
Tomasz Iwanek [Mon, 18 Apr 2016 08:08:22 +0000 (10:08 +0200)]
Extract cert-svc utility function to separate file

Change-Id: I0a591e899916ac6642080babc9adf8ae91460b49

8 years agoAdd user option at pkgdir-tool 07/66107/2
Sangyoon Jang [Fri, 15 Apr 2016 07:57:49 +0000 (16:57 +0900)]
Add user option at pkgdir-tool

- pkgdir-tool can be run for specific user only.
- Add a script for useradd scenario.

Change-Id: Ib47b9e1185d6ac243c1f6a8e59dfe23a890e4cd2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoDon't create skel dirs for packages 74/66074/1
Sangyoon Jang [Fri, 15 Apr 2016 05:13:56 +0000 (14:13 +0900)]
Don't create skel dirs for packages

There are two ways for making per user directories for global app.
The first one is using pkgdir-tool and the second is copying from skel.
However, These cause inconsistency because copying from skel doesn't
call security-manager api for labeling.

We need to maintain consistency in creating per user directories, so
just using pkgdir-tool only.

Change-Id: I9d84d80e03ad27ab3992421ae7fca79c147dd076
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoUnregister security context for each user when uninstalling global pkg 76/65976/1
Sangyoon Jang [Thu, 14 Apr 2016 08:44:12 +0000 (17:44 +0900)]
Unregister security context for each user when uninstalling global pkg

Change-Id: I60d6669961d8a2150f23fb2752607bc1d0f0ee8d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix a bug on SendAppids 16/65716/1
Sangyoon Jang [Tue, 12 Apr 2016 08:07:39 +0000 (17:07 +0900)]
Fix a bug on SendAppids

pkgmgr_installer_send_app_uninstall_signal return 0 on success.

Change-Id: Ie60d656f3b391063c084b76e1e25cb099315b9d2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agochange functions for thread-safe 93/65493/6 accepted/tizen/common/20160413.130959 accepted/tizen/ivi/20160413.123452 accepted/tizen/mobile/20160413.123225 accepted/tizen/tv/20160413.123402 accepted/tizen/wearable/20160413.123425 submit/tizen/20160412.075243
Junghyun Yeon [Mon, 11 Apr 2016 09:18:14 +0000 (18:18 +0900)]
change functions for thread-safe

Change-Id: I3d898f3b61d2dbc93a487155ced1bda4081cd7bd
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoRevert "Revert "remove privilege plugin for the list."" 71/65471/2 accepted/tizen/common/20160412.130733 accepted/tizen/ivi/20160412.063704 accepted/tizen/mobile/20160412.063522 accepted/tizen/tv/20160412.063722 accepted/tizen/wearable/20160412.063626 submit/tizen/20160411.223138
jongmyeong ko [Mon, 11 Apr 2016 08:21:04 +0000 (01:21 -0700)]
Revert "Revert "remove privilege plugin for the list.""

This reverts commit 21971ebe94fcf03e7c3a7af85b3762563bc9ae73.

Change-Id: I822b228fb7aeff0d0a2bbcb76e5e6b6d8ad86c83

8 years agoMerge "Fix QueryTepPath" into tizen accepted/tizen/common/20160408.190346 accepted/tizen/ivi/20160411.005446 accepted/tizen/mobile/20160411.005510 accepted/tizen/tv/20160411.005410 accepted/tizen/wearable/20160411.005434 submit/tizen/20160408.115426
Semun Lee [Fri, 8 Apr 2016 11:53:39 +0000 (04:53 -0700)]
Merge "Fix QueryTepPath" into tizen

8 years agoFix QueryTepPath 36/65336/1
Tomasz Iwanek [Fri, 8 Apr 2016 11:39:44 +0000 (13:39 +0200)]
Fix QueryTepPath

Return value causes exception.

Change-Id: Ia79074d06abead1208b18fa6bad68b4c036f3346

8 years agoFix skipping reference checking 08/65108/2 accepted/tizen/common/20160408.184913 accepted/tizen/ivi/20160408.052513 accepted/tizen/mobile/20160408.052451 accepted/tizen/tv/20160408.052423 accepted/tizen/wearable/20160408.052437 submit/tizen/20160408.003820
Sangyoon Jang [Thu, 7 Apr 2016 08:45:55 +0000 (17:45 +0900)]
Fix skipping reference checking

Check the condition using getuid(), instead of uid of installer context.

Change-Id: Ic263a8ef0fa4edd18fbb3fc0032976a2b1eb2944
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRemove UpdateTepInfoInPkgmgr function. Fix preserving tep file through update 14/64814/4
Tomasz Iwanek [Tue, 5 Apr 2016 12:05:39 +0000 (14:05 +0200)]
Remove UpdateTepInfoInPkgmgr function. Fix preserving tep file through update

Submit together:
  https://review.tizen.org/gerrit/64808
  https://review.tizen.org/gerrit/64809
  https://review.tizen.org/gerrit/64814

Change-Id: Ib4a7214246f806fc57a382ed0e03e5fe0f8f3f27

8 years agoFix coding style and warnings 20/63020/3
Tomasz Iwanek [Mon, 21 Mar 2016 12:45:24 +0000 (13:45 +0100)]
Fix coding style and warnings

To verify, run smoke tests.

Change-Id: I8385063372281fe26d67a558bf2f54e48394de3b

8 years agoMove RDS step to app-installers 62/64662/5 accepted/tizen/common/20160406.144153 accepted/tizen/ivi/20160406.071939 accepted/tizen/mobile/20160406.071833 accepted/tizen/tv/20160406.071855 accepted/tizen/wearable/20160406.071916 submit/tizen/20160406.013051
Arkadiusz Szulakiewicz [Fri, 1 Apr 2016 06:38:12 +0000 (08:38 +0200)]
Move RDS step to app-installers

Change-Id: Id9e5a97ba1ef0716e9b1058a67e6fc4b19e086ab

8 years agoCreate shared directories on external storage 41/61541/37
Arkadiusz Szulakiewicz [Tue, 8 Mar 2016 14:12:49 +0000 (15:12 +0100)]
Create shared directories on external storage

Change-Id: I6cbccde9b6f18848c4a6f9bb09bbfbcfb8078412

8 years agoRevert "Revert "Removing proceeding account and shortcut data"" 52/64752/1
Tomasz Iwanek [Tue, 5 Apr 2016 07:50:54 +0000 (09:50 +0200)]
Revert "Revert "Removing proceeding account and shortcut data""

This reverts commit 5c7bc9b9d0ffa17241856ed7728fe2f086066a16.

Change-Id: I31b45f8c4124bc8fb75c552574356e1f9ab7b709

8 years agoFix StepConfigure::precheck() 62/63862/5
Sangyoon Jang [Mon, 28 Mar 2016 06:38:07 +0000 (15:38 +0900)]
Fix StepConfigure::precheck()

Non-root user cannot request manifest direct mode or
preload request mode.

Change-Id: Ic41843e80e4309afe457f955e65e2443fa90c701
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoadd cache folder in shared folder when installing app 02/64002/3 accepted/tizen/common/20160406.143419 accepted/tizen/ivi/20160406.012034 accepted/tizen/mobile/20160406.011911 accepted/tizen/tv/20160406.011952 accepted/tizen/wearable/20160406.012014 submit/tizen/20160405.001024
Junghyun Yeon [Tue, 29 Mar 2016 09:08:11 +0000 (18:08 +0900)]
add cache folder in shared folder when installing app

Change-Id: I84fdd11ed89f2347744d0ae2e0dd3a5906f2e84b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agotemporary fix, wait for termination before proceeding update. 94/64494/2 accepted/tizen/common/20160401.171314 accepted/tizen/ivi/20160402.022203 accepted/tizen/mobile/20160402.022136 accepted/tizen/tv/20160402.022145 accepted/tizen/wearable/20160402.022156 submit/tizen/20160401.130236
jongmyeongko [Fri, 1 Apr 2016 11:29:35 +0000 (20:29 +0900)]
temporary fix, wait for termination before proceeding update.

Change-Id: I37a4dbbc7b6cb8738e65533564f973c751cbd898
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoRevert "Removing proceeding account and shortcut data" 92/64492/1
jongmyeong ko [Fri, 1 Apr 2016 11:26:49 +0000 (04:26 -0700)]
Revert "Removing proceeding account and shortcut data"

This reverts commit 9e24a6eddd0e7ca2bb957d2e2de3d6e0315f5846.

Change-Id: I055aeb9176d6b57a1629c127aeb90417871460ab

8 years agoRemoving proceeding account and shortcut data 08/60508/7
Tomasz Iwanek [Fri, 26 Feb 2016 15:27:59 +0000 (16:27 +0100)]
Removing proceeding account and shortcut data

This data is parsed by plugins in case of tpk and we don't
need to store this information anywhere. Information that
was set by those methods wasn't read anywhere.

There is a different situation in case of wgt backend where
we generate platform xml manifest and we need this information.
Otherwise it may be lost when update is running.

Change-Id: I73a073e0ff252b9cef7445143965d708d7a2c5d4

8 years agoFix the order of security context arguments 46/64046/1 accepted/tizen/common/20160330.120253 accepted/tizen/ivi/20160330.062821 accepted/tizen/mobile/20160330.062706 accepted/tizen/tv/20160330.062730 accepted/tizen/wearable/20160330.062758 submit/tizen/20160330.031019
Krzysztof Jackiewicz [Tue, 29 Mar 2016 13:36:57 +0000 (15:36 +0200)]
Fix the order of security context arguments

Change-Id: Ib1ab6c40b82ee52c8dfbce95e16f408293e82b11

8 years agoRevert "remove privilege plugin for the list." 23/63823/2 accepted/tizen/common/20160329.050434 accepted/tizen/ivi/20160328.070250 accepted/tizen/mobile/20160328.070106 accepted/tizen/tv/20160328.070141 accepted/tizen/wearable/20160328.070218 submit/tizen/20160328.042927
jongmyeong ko [Mon, 28 Mar 2016 04:27:55 +0000 (21:27 -0700)]
Revert "remove privilege plugin for the list."

This reverts commit 3a0dcbd0617ade66037e94940150ccc19b96ed98.

Change-Id: I8d8af52b87e1125ddc2424239f48017b7d2d2240

8 years agochange functions for thread-safe 16/63716/1 accepted/tizen/ivi/20160325.134402 accepted/tizen/mobile/20160325.134315 accepted/tizen/tv/20160325.134252 accepted/tizen/wearable/20160325.134331 submit/tizen/20160325.105248
Junghyun Yeon [Fri, 25 Mar 2016 09:18:19 +0000 (18:18 +0900)]
change functions for thread-safe

Change-Id: Ib0f6ac4d32dc9070783d25738729a2ed74fa8c50
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agobugfix of package installation 17/63617/2 accepted/tizen/common/20160325.135542 accepted/tizen/ivi/20160325.032718 accepted/tizen/mobile/20160325.032625 accepted/tizen/tv/20160325.032654 accepted/tizen/wearable/20160325.032700 submit/tizen/20160325.022215
jongmyeongko [Fri, 25 Mar 2016 02:12:20 +0000 (11:12 +0900)]
bugfix of package installation

Change-Id: I4ad147816a876bc9e0b5e3961d6814baf7e6d3cd
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoRevert "change default value of nodisplay_setting for widget/watch app to 'false'" 16/63616/1
jongmyeong ko [Fri, 25 Mar 2016 02:10:31 +0000 (19:10 -0700)]
Revert "change default value of nodisplay_setting for widget/watch app to 'false'"

This reverts commit b242bf5b02bc595751b27252b4904552fb137194.

Change-Id: I7064db93a5d0a127f61520f6bdf8ec1eda48d00c

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