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

8 years agoRemove old pkgdir_maker symlink for backward compatibility 03/51203/2
Youmin Ha [Thu, 5 Nov 2015 07:36:12 +0000 (16:36 +0900)]
Remove old pkgdir_maker symlink for backward compatibility

Now meta-generic script is fixed to call pkgdir-tool, not pkgdir_maker.
So the symlink is not needed anymore.

Change-Id: Iff3e796b3a21c6e1b603be99ccc61d8ab1af02cf

8 years agoProper native implementation for directory creator tool 37/47937/15 accepted/tizen/mobile/20151104.082908 accepted/tizen/tv/20151104.082925 accepted/tizen/wearable/20151104.082934 submit/tizen/20151104.073832
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.

Change-Id: I717db44b6472a79409dbcf88709cb4d38678e218

8 years agoCheck icon->text in StepBackupIcons::process() 42/50742/3
Wojciech Kosowicz [Fri, 30 Oct 2015 12:27:22 +0000 (13:27 +0100)]
Check icon->text in StepBackupIcons::process()

Change-Id: I136184068797442e643442a2c5ce1d0777b22ed6

8 years agoCreate manifest_x in parse steps 38/50538/5
Tomasz Iwanek [Thu, 29 Oct 2015 13:43:31 +0000 (14:43 +0100)]
Create manifest_x in parse steps

Change-Id: I458fa86e48d1511df365152f30f580767ad25d19

8 years agoAdded missing comments 37/50537/1
Lukasz Wysocki [Thu, 29 Oct 2015 13:49:52 +0000 (14:49 +0100)]
Added missing comments

Change-Id: Ie8f77811dbf18147203ce15cadfd736d695a2683

8 years agoRemoved manifest_keys namespace 26/50026/4 accepted/tizen/mobile/20151029.231518 accepted/tizen/mobile/20151106.010315 accepted/tizen/tv/20151029.231530 accepted/tizen/tv/20151106.010324 accepted/tizen/wearable/20151029.231550 accepted/tizen/wearable/20151106.010337 submit/tizen/20151029.161945 submit/tizen/20151106.005030
Lukasz Wysocki [Fri, 23 Oct 2015 07:20:04 +0000 (09:20 +0200)]
Removed manifest_keys namespace

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

Changes should be submitted together.

Change-Id: I276646d4db201afc828aa77242954a5c61a752e7

8 years agoAdding Comments to step classes. 15/50515/2
Pawel Sikorski [Thu, 29 Oct 2015 10:37:42 +0000 (11:37 +0100)]
Adding Comments to step classes.
The quality requirement for comments rate is >20%

Change-Id: Ic075f6435a061bdf55e6381b4e283b7c70eafcd1

8 years agoGenerate XML fixes: 92/50492/2
Pawel Sikorski [Thu, 29 Oct 2015 08:59:51 +0000 (09:59 +0100)]
Generate XML fixes:
* Removal of permission-type attribute from generated xml
  (no such attribute in specification).
* Adding taskmanage="false" to service application
* launch_mode attribture strlen check added

Change-Id: I3c88acf4cbae7fc6393d206943f10b8c77bf8611

8 years agoAdded attribute launch_mode in generated xml. 29/50029/4
Lukasz Wysocki [Fri, 23 Oct 2015 07:42:09 +0000 (09:42 +0200)]
Added attribute launch_mode in generated xml.
This change was made for tpk and wgt installers.

Change-Id: I1d937f51dcdb95103af71ec7eaa72be7b9c803e3

8 years agoSetting launch_mode attribute into manifest_x 23/48523/6
Pawel Sikorski [Tue, 20 Oct 2015 16:01:23 +0000 (18:01 +0200)]
Setting launch_mode attribute into manifest_x

TODO: add to generate xml

Change-Id: I10d8726b6d7387d382f99a8a5d03156e7150976b

8 years agoFix binary symlink for service applications 32/50032/3
Tomasz Iwanek [Fri, 23 Oct 2015 09:40:15 +0000 (11:40 +0200)]
Fix binary symlink for service applications

Change-Id: I0de6cb3811722e01131d1a049eec826b6e140642

8 years agoCreate icon files for service applications 30/50030/2
Tomasz Iwanek [Fri, 23 Oct 2015 09:29:05 +0000 (11:29 +0200)]
Create icon files for service applications

Change-Id: I8db4123c3d8d4969635644e358c294cbd3d90b71

8 years agoParse and generate service application element in wgt-backend 81/49881/3
Tomasz Iwanek [Tue, 20 Oct 2015 14:44:06 +0000 (16:44 +0200)]
Parse and generate service application element in wgt-backend

wgt::parse::StepParse should use ServiceInfo from manifest handler
to generate information for <service-application> tag in platform
manifest file.

Requires submit: https://review.tizen.org/gerrit/49880

Change-Id: I1e83ef5800c1b335e0845adb5a5d39b306cc3748

8 years agoUse GList in manifest_x structures 67/49167/8 accepted/tizen/mobile/20151027.055537 accepted/tizen/tv/20151027.055543 accepted/tizen/wearable/20151027.055551 submit/tizen/20151027.011246
Tomasz Iwanek [Wed, 7 Oct 2015 08:13:43 +0000 (10:13 +0200)]
Use GList in manifest_x structures

This is adjustment to following commit:
 - https://review.tizen.org/gerrit/#/c/49085/

Changes should be submitted together.

Change-Id: I0834960bf882e1335109d9208b4970dbc03ede1e

8 years agoRemove sorting of privileges for security_manager 84/49884/2
Tomasz Iwanek [Wed, 21 Oct 2015 07:10:38 +0000 (09:10 +0200)]
Remove sorting of privileges for security_manager

According to security team, sorting is not needed:

 "This requirement is now removed. You can safely call
  security_manager_app_inst_req_add_privilege in
  arbitrary order and even with duplicates"

Change-Id: I19b1300e5558832d362ae538a354f1018674cb26

8 years agoGenerate <category> in platform manifest 83/49983/2
Tomasz Iwanek [Thu, 22 Oct 2015 08:56:26 +0000 (10:56 +0200)]
Generate <category> in platform manifest

Category generation was missing.

Change-Id: Ie9e478047d6bd95f180fd891dd724bdc00e80250

8 years agocomments added into src/common/*.h header files 96/49996/1
Pawel Sikorski [Tue, 20 Oct 2015 13:59:07 +0000 (15:59 +0200)]
comments added into src/common/*.h header files

Change-Id: I83fa85da37937589dea6388931d7427e0e87f2d8

8 years agoParse and generate shortcut information in platform manifest 00/49700/1 accepted/tizen/mobile/20151021.013217 accepted/tizen/tv/20151021.013227 accepted/tizen/wearable/20151021.013236 submit/tizen/20151020.153751
Tomasz Iwanek [Fri, 16 Oct 2015 14:19:43 +0000 (16:19 +0200)]
Parse and generate shortcut information in platform manifest

Shortcut information is not present in manifest_x structure.
Therefore, additional data member is introduced in context
(same case as for accounts).

Requires submit: https://review.tizen.org/gerrit/49699

Change-Id: I0a814933d08a926ba9b3484ee67fc8bf00363ab7

8 years agoStylecheck. Unused/commented out code. 54/49654/3
Tomasz Iwanek [Fri, 16 Oct 2015 12:12:33 +0000 (14:12 +0200)]
Stylecheck. Unused/commented out code.

Change-Id: I85782fe902563df1992fdcc4c16dcb7d153537d3

8 years agoMerge "Add default privileges for each certificates level" into tizen accepted/tizen/mobile/20151016.043604 accepted/tizen/tv/20151016.043616 accepted/tizen/wearable/20151016.043625 submit/tizen/20151015.090000 submit/tizen/20151015.122946 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
WonYoung Choi [Thu, 15 Oct 2015 09:01:24 +0000 (02:01 -0700)]
Merge "Add default privileges for each certificates level" into tizen

8 years agoAdd default privileges for each certificates level 12/48212/4
WonYoung Choi [Wed, 16 Sep 2015 08:35:46 +0000 (17:35 +0900)]
Add default privileges for each certificates level

Add some privileges as default in next cases.
If the package is wgt,
  add 'http://tizen.org/privilege/internal/webappdefault'.
If the package has public cert,
  add 'http://tizen.org/privilege/internal/default/public'.
If the package has partner cert,
  add 'http://tizen.org/privilege/internal/default/partner'.
If the package has platform cert,
  add 'http://tizen.org/privilege/internal/default/platform'.
These default privileges will be converted to mapped privileges by
the security-manager.

NOTE: api version 3.0 is not considered yet. should be fixed later.

Change-Id: I70d0ec09efbcd8c80e6189412c8bdbac84ef438a

8 years agoFix wrong element name 97/49497/1 accepted/tizen/mobile/20151014.092839 accepted/tizen/tv/20151014.092856 accepted/tizen/wearable/20151014.092909 submit/tizen/20151014.053207
Youmin Ha [Wed, 14 Oct 2015 05:18:01 +0000 (14:18 +0900)]
Fix wrong element name

Changed svc-application to service-application

Change-Id: I58a319c00d8e4b5acb2cd0675060c2e7eee95b28

8 years agoDatacontrol element generation in StepGenerateXml 53/49153/1 accepted/tizen/mobile/20151008.052056 accepted/tizen/tv/20151008.052120 accepted/tizen/wearable/20151008.052147 submit/tizen/20151008.031154
Tomasz Iwanek [Wed, 7 Oct 2015 08:42:19 +0000 (10:42 +0200)]
Datacontrol element generation in StepGenerateXml

This adds generation of datacontrol element in platform manifest file.

Change-Id: I8a1b3ac4af0788b1b1096400c2de29bdfc4d0d1f

8 years agoRename ContextInstaller to InstallerContext 83/48983/3
Tomasz Iwanek [Fri, 2 Oct 2015 12:10:45 +0000 (14:10 +0200)]
Rename ContextInstaller to InstallerContext

Class is a context, not installer.

Change-Id: I63d31467b768de76ffb00212196ae869005bc5e0

8 years agoRemove unused xml_parser 87/48987/2
Tomasz Iwanek [Fri, 2 Oct 2015 13:13:08 +0000 (15:13 +0200)]
Remove unused xml_parser

It was replaced by tpk manifest handlers.

Change-Id: Ic9d56952b8ed4206eb659ab5ff4c08e658d008bc

8 years agoAdjustment to application_x unification 05/48905/2 accepted/tizen/mobile/20151005.055456 accepted/tizen/tv/20151005.055510 accepted/tizen/wearable/20151005.055525 submit/tizen/20151005.030714
Tomasz Iwanek [Thu, 1 Oct 2015 07:55:07 +0000 (09:55 +0200)]
Adjustment to application_x unification

This patchset reworks app-installers according to changes in:
 - https://review.tizen.org/gerrit/#/c/48804/

Change-Id: I5cb319681b12d6f290f83d2f121c18bf3ef4fa88

8 years agoRevert "Do not pass app_id in security-manager registration" 64/48964/1
Tomasz Iwanek [Fri, 2 Oct 2015 07:01:50 +0000 (09:01 +0200)]
Revert "Do not pass app_id in security-manager registration"

Application fails to launch due to this commit. Keep multiple
requests.

This reverts commit 4358ccd901a8ca0ebcf9261d323e49e71ca9f94c.

Change-Id: I0cab889ab8d3550ee2766d67fb0b3e465509f3ba

8 years agoUnify StepGenerateXml 71/46971/6
Tomasz Iwanek [Thu, 27 Aug 2015 08:35:48 +0000 (10:35 +0200)]
Unify StepGenerateXml

There should be one way of generating platform xml as
format of this is same for any backend.

Change-Id: I691e161653b8d8b35933b79deb318eb17bd5e71f

8 years agoTpk StepParse fixes 94/48394/4
Tomasz Iwanek [Wed, 16 Sep 2015 07:20:58 +0000 (09:20 +0200)]
Tpk StepParse fixes

Requires submit: https://review.tizen.org/gerrit/#/c/48393/

Fixes to previous commit: https://review.tizen.org/gerrit/#/c/46517/

Change-Id: Ibf81400709392ad6a51960e8f9b221de9413243a

8 years ago[Feature] Integration step_parse for TPK tizen_manifest.xml file with manifest_parser 17/46517/12
Maciej Socha [Thu, 20 Aug 2015 12:25:48 +0000 (14:25 +0200)]
[Feature] Integration step_parse for TPK tizen_manifest.xml file with manifest_parser

Change-Id: I109956932b81e8af4fe2cbe54b5525292754555f

8 years agoDo not pass app_id in security-manager registration 70/47870/4
Tomasz Iwanek [Tue, 1 Sep 2015 09:26:27 +0000 (11:26 +0200)]
Do not pass app_id in security-manager registration

According to directory policies, files is labeled by
pkgid so the appid is not needed. Additionally, it solves
problem which appid to pass. TODO was left to be removed
when possible.

Change-Id: I8087c41416013f9753075837472581bb0d8d33ac

8 years agoMerge "Remove defininition PKGMGR_INSTALLER_ERROR_KEY_STR" into tizen accepted/tizen/mobile/20150925.012518 accepted/tizen/tv/20150925.012530 accepted/tizen/wearable/20150925.012544 submit/tizen/20150924.065914 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620
Sangyoon Jang [Thu, 24 Sep 2015 06:58:20 +0000 (23:58 -0700)]
Merge "Remove defininition PKGMGR_INSTALLER_ERROR_KEY_STR" into tizen

8 years agoFix memory allocation in TranslatePrivilegesForCompatibility 51/48451/2
Tomasz Iwanek [Mon, 21 Sep 2015 13:23:06 +0000 (15:23 +0200)]
Fix memory allocation in TranslatePrivilegesForCompatibility

Change-Id: I03e8b8a1685ef89389ab51a826e0a6f1958da2ef

8 years agoRemove defininition PKGMGR_INSTALLER_ERROR_KEY_STR 88/48488/2
Sangyoon Jang [Tue, 22 Sep 2015 06:18:23 +0000 (15:18 +0900)]
Remove defininition PKGMGR_INSTALLER_ERROR_KEY_STR

pkgmgr_installer now exports this variable

Change-Id: Ib1dbfbcb371bef299b0778cc32fd613936271522
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoSet manifest->installlocation in StepParse 74/48174/3
Tomasz Iwanek [Tue, 15 Sep 2015 13:33:16 +0000 (15:33 +0200)]
Set manifest->installlocation in StepParse

Change-Id: Ic7f458f3d78b82aaf2db09d2274bdac7c2e2638c

8 years agoChange installer label to "User" 29/48329/2 accepted/tizen/mobile/20150920.232323 accepted/tizen/tv/20150920.232334 accepted/tizen/wearable/20150920.232351 submit/tizen/20150918.062932
Sangyoon Jang [Fri, 18 Sep 2015 06:24:51 +0000 (15:24 +0900)]
Change installer label to "User"

Change-Id: I74602aa666814442657c5e8908495d10e517a140
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoWorkaround - sending appid during deinstallation 51/48251/3 accepted/tizen/mobile/20150918.024754 accepted/tizen/mobile/20150918.040323 accepted/tizen/tv/20150918.024810 accepted/tizen/tv/20150918.040335 accepted/tizen/wearable/20150918.024827 accepted/tizen/wearable/20150918.040348 submit/tizen/20150917.081152 submit/tizen/20150918.000000
Tomasz Iwanek [Wed, 16 Sep 2015 12:28:55 +0000 (14:28 +0200)]
Workaround - sending appid during deinstallation

Web application application plugin needs information
about uninstalled application but it cannot get it
from database during uninstallation. Therefore,
this workaround is provided to send appids explicitly.

Submit after: https://review.tizen.org/gerrit/48250

Change-Id: I8138c888c17a0421caf87c29f20599e7eed962ef

8 years agoAdd manifest file for app-installers 38/48138/1
WonYoung Choi [Tue, 15 Sep 2015 02:52:45 +0000 (11:52 +0900)]
Add manifest file for app-installers

Change-Id: Idc5d54280e6ade6533a3c7d10076048633c1778a

8 years agoSort privilege list before call security-manager function. 60/48060/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150911.150711 accepted/tizen/tv/20150911.150722 accepted/tizen/wearable/20150911.150727 submit/tizen/20150911.145534 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
WonYoung Choi [Fri, 11 Sep 2015 14:38:11 +0000 (23:38 +0900)]
Sort privilege list before call security-manager function.

SecurityManager considers the privilege list is always sorted.

Change-Id: Ib5a9632e3d1d310d49aa55d29acca16ea4e3d670

8 years agoMerge "[Bug] Sending "upgrade" signal value to pkgmgr-installer in case of Update... accepted/tizen/mobile/20150910.110318 accepted/tizen/tv/20150910.110329 accepted/tizen/wearable/20150910.110334 submit/tizen/20150910.102543
WonYoung Choi [Thu, 10 Sep 2015 10:22:18 +0000 (03:22 -0700)]
Merge "[Bug] Sending "upgrade" signal value to pkgmgr-installer in case of Update" into tizen

8 years agoAdd special privilege to provide default privileges for webapp. 21/47921/6 submit/tizen/20150910.100451
WonYoung Choi [Thu, 10 Sep 2015 05:09:55 +0000 (14:09 +0900)]
Add special privilege to provide default privileges for webapp.

The privilege(http://tizen.org/privilege/webappdefault) is managed in
security-manager. The security-manager will add default privileges for webapp
to cynara if the privilege is included.

Change-Id: I32da69e356892bbea42e131c2823785785fd682b

8 years ago[Bug] Sending "upgrade" signal value to pkgmgr-installer in case of Update 59/47959/1
Pawel Sikorski [Thu, 10 Sep 2015 09:44:57 +0000 (11:44 +0200)]
[Bug] Sending "upgrade" signal value to pkgmgr-installer in case of Update

pkgmgr-installer must be informed with "upgrade" event value in case
update is performed.

Change-Id: I3af9739f8cde043dc01409003ec26998085ae87c

8 years agoSet the SMACK label of app's root directory to PUBLIC_RO 99/47499/2
Youmin Ha [Fri, 4 Sep 2015 02:08:05 +0000 (11:08 +0900)]
Set the SMACK label of app's root directory to PUBLIC_RO

Change-Id: Iac5d116147208851bad605453a98d5274b7c8e4b

8 years agoAdd --allglobalpkgs option to pkgdir_maker 77/47477/2 accepted/tizen/mobile/20150904.064153 accepted/tizen/tv/20150904.064209 accepted/tizen/wearable/20150904.064217 submit/tizen/20150904.035504 submit/tizen_submit/20150904.030845
Youmin Ha [Thu, 3 Sep 2015 15:07:40 +0000 (00:07 +0900)]
Add --allglobalpkgs option to pkgdir_maker

For kinkstarter script, an option is added, making global app dirs to
all users.

Change-Id: I88c42eeee6170b98d621da42d718799525fe4e9d
Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
8 years agoAdd pkgdir_maker tool for global apps 50/47450/2
Youmin Ha [Tue, 1 Sep 2015 02:32:05 +0000 (11:32 +0900)]
Add pkgdir_maker tool for global apps

Global apps are installed in /usr/apps/, but this path is not allowed for
users to write their data.  To store app data of global apps, the data and
cache directories have to be created.

This tool does two things:
 1. creates the global app package's data and cache directories
   ({pkgid}/data, {pkgid}/cache) into all user's apps_rw/ directories.
   Proper owner, group, permission and SMACK labels are set for those dirs.
 2. For new users in the future, the same directories are create into the
   user home template, /etc/skel/.

NOTE: For prototyping, actual implementation is made as a bash script
(pkgdir_maker_impl.sh), but later it is to be replaced with native code.

Change-Id: I8ca17362a2c33ebe4a051f80a96d9bb4263dabfa
Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
8 years agoRelease 1.8 66/47266/1 accepted/tizen/mobile/20150902.004752 accepted/tizen/tv/20150902.004802 accepted/tizen/wearable/20150902.004809 submit/tizen/20150901.140955
Pawel Sikorski [Tue, 1 Sep 2015 14:08:24 +0000 (16:08 +0200)]
Release 1.8

Main changes:
- manifest-parser alignement; icons fixes; boost namespace cleanup
- package directories update (security policy, tmp and cache dirs)
- apps killing during update/deinstallation

Change-Id: Id9aa4b371e4f74b5da5052486675b49391483c39

8 years ago[Bug] Proper cleaning of StepUnzip 62/47262/2
Tomasz Iwanek [Tue, 1 Sep 2015 11:48:01 +0000 (13:48 +0200)]
[Bug] Proper cleaning of StepUnzip

Change-Id: I37dbeb5c11f88e62f4a2ede1049ed9442648ad20

8 years ago[Refactoring] boost namespaces unification 61/47261/1
Pawel Sikorski [Tue, 1 Sep 2015 12:47:57 +0000 (14:47 +0200)]
[Refactoring] boost namespaces unification

Change-Id: I3abfc7452bba40d9936d5958f03db563a809fa2d

8 years agoFix for icons removal 46/47246/2
Wojciech Kosowicz [Tue, 1 Sep 2015 09:59:35 +0000 (11:59 +0200)]
Fix for icons removal

Change-Id: Ice26c64aa6fe02c9151b9a639ad85a8d95e8088d

8 years agoApply different security policies to package directories 71/47171/5
Tomasz Iwanek [Mon, 31 Aug 2015 10:53:07 +0000 (12:53 +0200)]
Apply different security policies to package directories

Installer should apply different app_install_path_type types to
package installation subdirectories.

Change-Id: I5f0051b1eb932e1314bb54e7dd6f8cfe0c804496

8 years agoCreate tmp/ and cache/ directories in widget package 61/47161/5
Tomasz Iwanek [Mon, 31 Aug 2015 09:48:21 +0000 (11:48 +0200)]
Create tmp/ and cache/ directories in widget package

Wgt package installation should contain directory "tmp"
for temporary widget directory which is accessible as
one of fs roots by tizen API.

"cache" directory should be present for web engine cache.

Change-Id: I910a89ca3fa83e5e598bea0bbaf3a9e878cd71ba

8 years ago[Feature] Kill applications before deinstallation/update 78/46978/4
Tomasz Iwanek [Thu, 27 Aug 2015 13:05:15 +0000 (15:05 +0200)]
[Feature] Kill applications before deinstallation/update

App-manager is used to kill apps.

Change-Id: I2b34b860bfb6b217b6de6190e8b82d1bb25c491c

8 years agoAlignement to the manifest-parser key exposition changes 27/46527/2
Pawel Sikorski [Fri, 21 Aug 2015 09:41:22 +0000 (11:41 +0200)]
Alignement to the manifest-parser key exposition changes

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

Change-Id: I56f60053b47c78a49e0a7b98f6d7848651ee19d2

8 years agoRelease 1.7 25/46925/1 accepted/tizen/mobile/20150828.011739 accepted/tizen/tv/20150828.011753 accepted/tizen/wearable/20150828.011806 submit/tizen/20150827.083556
Pawel Sikorski [Thu, 27 Aug 2015 08:31:26 +0000 (10:31 +0200)]
Release 1.7

Main changes:
- fixes: privileges list length, manifest generation, icon for tpk
- RequestMode introduction

Change-Id: Iefd9dd857bec53823efddb0cce379c575fa4286a

8 years agoRequestMode (Global/User) type introduction 64/46064/4
Pawel Sikorski [Thu, 13 Aug 2015 12:25:16 +0000 (14:25 +0200)]
RequestMode (Global/User) type introduction

Change-Id: I862d7c7df1ceb0f41b4daf4e34490ef21fb480ab

8 years ago[Bug] Fix generation of multiple entries in platform manifest 16/46816/2
Tomasz Iwanek [Wed, 26 Aug 2015 09:51:13 +0000 (11:51 +0200)]
[Bug] Fix generation of multiple entries in platform manifest

Iteration should start from beginning of the list.
Wrongly generated elements:
 - app-control,
 - ui-application,
 - svc-application.

Change-Id: Idecb65a87059bb8e824e61c24a71bde19c01207d

8 years agoSetting proper icon name in tpk manifest 40/46640/4
Wojciech Kosowicz [Mon, 24 Aug 2015 09:48:50 +0000 (11:48 +0200)]
Setting proper icon name in tpk manifest

Also included style fixes for the project
Change-Id: I2e6ebc71f408e7df91684bc166c435271e27ca73

8 years agoFix getting length of privilege list 14/46614/1 accepted/tizen/mobile/20150824.072105 accepted/tizen/tv/20150824.072116 accepted/tizen/wearable/20150824.072131 submit/tizen/20150824.065629
Sangyoon Jang [Mon, 24 Aug 2015 06:47:13 +0000 (15:47 +0900)]
Fix getting length of privilege list

it should be privilege_x, not privileges_x

Change-Id: Id00a81c42b841a8ae5dcfd4d8de682a4ca975e16
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRelease 1.6-1 65/46565/1 accepted/tizen/mobile/20150822.064642 accepted/tizen/tv/20150822.065226 accepted/tizen/wearable/20150822.065657 submit/tizen/20150821.141612
Pawel Sikorski [Fri, 21 Aug 2015 14:14:29 +0000 (16:14 +0200)]
Release 1.6-1

Main changes:
 - Icons generation fix;
 - Privilege translation for backward compatilibity

Change-Id: Ifa5f991a156b4aec1629acf1e6bf378d58bf3a43

8 years ago[Feature] Privilege translation for backward compatilibity 64/46564/4
Tomasz Iwanek [Thu, 20 Aug 2015 13:46:05 +0000 (15:46 +0200)]
[Feature] Privilege translation for backward compatilibity

ConfigData class was removed because it had only one member
field and it was redundant.

API added to security-manager and used here should be implemented
in privilege-checker instead probably. Security manager and
privilege-checker holds very similar databases now.

Change-Id: I4ee1bfd7a98cf9aecbd291fda9e5c7e1f05ceb20

8 years agoFix for finding proper extension for icon 24/46524/4
Wojciech Kosowicz [Fri, 21 Aug 2015 09:39:37 +0000 (11:39 +0200)]
Fix for finding proper extension for icon

Change-Id: I3336ffccc8dbab996f697d9ecd43eeffca5aa7a2

8 years agoMoving step_generate_xml to wgt directory 95/46495/3
Wojciech Kosowicz [Fri, 21 Aug 2015 07:05:29 +0000 (09:05 +0200)]
Moving step_generate_xml to wgt directory

Change-Id: I07a279f2ca3dc03547808fbfa6d1a96866794b42

8 years agoSmack label for smoke tests 22/46522/1
Tomasz Iwanek [Fri, 21 Aug 2015 09:06:41 +0000 (11:06 +0200)]
Smack label for smoke tests

Installer is now running with 'System' label so the smoke tests.

Change-Id: I685119a8efe4978b8c860399ff2f3f9b20ac256c

8 years agoRelease 1.5-1 08/46508/1 accepted/tizen/mobile/20150821.092256 accepted/tizen/tv/20150821.092308 accepted/tizen/wearable/20150821.092326 submit/tizen/20150821.075339
Pawel Sikorski [Fri, 21 Aug 2015 07:52:01 +0000 (09:52 +0200)]
Release 1.5-1

MainChanges:
* installation/deinstallation fix for SMACK

Change-Id: I844e1da20b4a75ff84015a46c53f6aac6306ad8e

8 years ago[Bug] Fix installation/deinstallation mode with smack 29/46429/7
Tomasz Iwanek [Thu, 20 Aug 2015 07:24:23 +0000 (09:24 +0200)]
[Bug] Fix installation/deinstallation mode with smack

As stated in: https://review.tizen.org/gerrit/#/c/46420/

"""
On uninstall steps, old code runs StepRevokeSecurity before
StepRemoveFiles. With SMACK enabled, once StepRevokeSecurity
is finished, the installer processes(tpk and wgt) don't have
an authority to remove files, so the app
directory($HOME/apps_rw/[pkgid]) is still remained. When the
same app is installed again, the installer process crashes,
as the boost::exists() to the app destination directory raises
an exception on SMACK denial. This patch moves the
StepRevokeSecurity to the end of the list of steps on uninstall,
to give the privilege to delete the app directory to the installers.
"""

Splitting StepRevokeSecurity into two parts so that deinstallation
and deinstallation rollback should work.

Splitting StepRegisterSecurity into 2 steps. Because we need to
remove files before revoking security on rollback.

Change-Id: If597a3c256e09d57aa923566f5c3454d497c0593

8 years agoRelease 1.4-1 41/46441/1 accepted/tizen/mobile/20150820.115728 accepted/tizen/tv/20150820.115854 accepted/tizen/wearable/20150820.115950 submit/tizen/20150820.084129
Pawel Sikorski [Thu, 20 Aug 2015 08:50:58 +0000 (10:50 +0200)]
Release 1.4-1

Main changes:
- WebApp encryption alignement to the libwebappenc API change
- TPK recovery, update; WGT RDS fixup; icon fixes;
- Smoke tests updated

Change-Id: I31095bf673998db2d8dfc56236b8838b1419f51b