framework/web/wrt-installer.git
10 years ago[Release] wrt-installer_0.1.148.1 tizen_2.2 2.2.1_release submit/tizen_2.2/20131107.063257
sung-su.kim [Thu, 31 Oct 2013 23:55:06 +0000 (08:55 +0900)]
[Release] wrt-installer_0.1.148.1

Merge branch 'master' into tizen_2.2

Change-Id: I098e16e414a2daf0e92047f35e56b9e54a6c6d34

10 years ago[Release] wrt-installer_0.1.148.1
Soyoung Kim [Thu, 31 Oct 2013 12:56:43 +0000 (21:56 +0900)]
[Release] wrt-installer_0.1.148.1

Change-Id: I92a5328a4df58818234d3a49818c86bcb3732b3d

10 years agoFixed build break about vconf key
Soyoung Kim [Thu, 31 Oct 2013 12:52:33 +0000 (21:52 +0900)]
Fixed build break about vconf key

[Issue#] N/A
[Problem] occured build break
[Cause] vconf key isn't in RSA.
[Solution] modify vconf key to "db/setting/default_memory/download_application"
[Verification] success build.
[SCMRequest] N/A

Change-Id: I431abf2ab1f788e09b9824cf36c0278a20c12c0b

10 years ago[Release] wrt-installer_0.1.148
sung-su.kim [Thu, 31 Oct 2013 11:53:17 +0000 (20:53 +0900)]
[Release] wrt-installer_0.1.148

Change-Id: Ib13fdeca8d1e43f37cdec6642a22ca96445674e3

10 years ago[Install Location: Part 3] Implement about install location (auto, internal only...
Soyoung Kim [Fri, 25 Oct 2013 06:09:58 +0000 (15:09 +0900)]
[Install Location: Part 3] Implement about install location (auto, internal only prefer-external)

[Issue#]   P130919-00555
[Problem]  web app install to internal storage even if install location is set
           "SD card" from setting menu.
[Cause]    There is an issue to process getting install location.
           (Before parsing config.xml, installer cannot get install location info.)
[Solution] - Parsing config.xml should be done before unzip wgt.
           - So parsing config.xml is separated before unzip.
[Remarks] Installer, therefore, should implement below install location spec.
    * Auto: Get setting value about default storage at setting menu.
      - If user set "Device memory" try internal storage.
        If fails, try external storage.
      - If user set "SD card" try SD card.
        If fails, try internal storage.
    * Internal-only: Try internal storage.
      - If there is no space in internal memory, installation is failed.
    * Prefer-external: Try external storage.
      - If SD card is not available, try internal storage.

    There are three parts for implementation.
     * Part 1: This patch is for separating parse config.xml before unzipping wgt file.
     * Part 2: WGT file unzip to directory package directory
               (/opt/usr/apps/[pkgid]) instead of temporary directory.
     * Part 3: Implement about install location (auto, internal only prefer-external)

[Verification]
    SD card should be attached in the device for this feature.
    -  First> Normal and Hybrid web app can be installed without error.
    - Second> WebApp should be installed into device memory or SD card depending
              on install-location

    1. Install-location: internal-only
          => should be installed into device memory
    2. Install-location: prefer-external
          1) SD card is enabled => into SD card.
          2) SD card is disabled => into device memory.
    3. Install-location:
       * Auto and default storage is "Device Memory"
          1) into device memory.
          2) If device Memory is full = > into SD card.
       * Auto and default storage is "SD card"
          1) into SD card
          2) If SD card isn't available => into device memory.
[SCMRequest] N/A

Change-Id: I77a08bcae3709ff68a540ae50ea235df7230d81d

10 years ago[Install Location: Part 2] WGT file unzip to package directory (/opt/usr/apps/[pkgid...
Soyoung Kim [Fri, 18 Oct 2013 09:19:55 +0000 (18:19 +0900)]
[Install Location: Part 2] WGT file unzip to package directory (/opt/usr/apps/[pkgid]) instead of temporary directory

[Issue#]   P130919-00555
[Problem]  web app install to internal storage even if install location is set
           "SD card" from setting menu.
[Cause]    There is an issue to process getting install location.
           (Before parsing config.xml, installer cannot get install location info.)
[Solution] - Parsing config.xml should be done before unzip wgt.
           - So parsing config.xml is separated before unzip.
[Remarks] Installer, therefore, should implement below install location spec.
    * Auto: Get setting value about default storage at setting menu.
      - If user set "Device memory" try internal storage.
        If fails, try external storage.
      - If user set "SD card" try SD card.
        If fails, try internal storage.
    * Internal-only: Try internal storage.
      - If there is no space in internal memory, installation is failed.
    * Prefer-external: Try external storage.
      - If SD card is not available, try internal storage.

    There are three parts for implementation.
     * Part 1: This patch is for separating parse config.xml before unzipping wgt file.
     * Part 2: WGT file unzip to directory package directory
               (/opt/usr/apps/[pkgid]) instead of temporary directory.
     * Part 3: Implement about install location (auto, internal only prefer-external)

[Verification]
    SD card should be attached in the device for this feature.
    -  First> Normal and Hybrid web app can be installed without error.
    - Second> WebApp should be installed into device memory or SD card depending
              on install-location

    1. Install-location: internal-only
          => should be installed into device memory
    2. Install-location: prefer-external
          1) SD card is enabled => into SD card.
          2) SD card is disabled => into device memory.
    3. Install-location:
       * Auto and default storage is "Device Memory"
          1) into device memory.
          2) If device Memory is full = > into SD card.
       * Auto and default storage is "SD card"
          1) into SD card
          2) If SD card isn't available => into device memory.
[SCMRequest] N/A

Change-Id: Iffbd7f35e3c9e9d03feeb987d4d7762f61c6c15d

10 years ago[Install Location: Part 1] Separate parsing config.xml before unzip wgt file
Soyoung Kim [Thu, 17 Oct 2013 10:47:35 +0000 (19:47 +0900)]
[Install Location: Part 1] Separate parsing config.xml before unzip wgt file

[Issue#]   P130919-00555
[Problem]  web app install to internal storage even if install location is set
           "SD card" from setting menu.
[Cause]    There is an issue to process getting install location.
           (Before parsing config.xml, installer cannot get install location info.)
[Solution] - Parsing config.xml should be done before unzip wgt.
           - So parsing config.xml is separated before unzip.
[Remarks] Installer, therefore, should implement below install location spec.
    * Auto: Get setting value about default storage at setting menu.
      - If user set "Device memory" try internal storage.
        If fails, try external storage.
      - If user set "SD card" try SD card.
        If fails, try internal storage.
    * Internal-only: Try internal storage.
      - If there is no space in internal memory, installation is failed.
    * Prefer-external: Try external storage.
      - If SD card is not available, try internal storage.

    There are three parts for implementation.
     * Part 1: This patch is for separating parse config.xml before unzipping wgt file.
     * Part 2: WGT file unzip to directory package directory
               (/opt/usr/apps/[pkgid]) instead of temporary directory.
     * Part 3: Implement about install location (auto, internal only prefer-external)

[Verification]
    SD card should be attached in the device for this feature.
    -  First> Normal and Hybrid web app can be installed without error.
    - Second> WebApp should be installed into device memory or SD card depending
              on install-location

    1. Install-location: internal-only
          => should be installed into device memory
    2. Install-location: prefer-external
          1) SD card is enabled => into SD card.
          2) SD card is disabled => into device memory.
    3. Install-location:
       * Auto and default storage is "Device Memory"
          1) into device memory.
          2) If device Memory is full = > into SD card.
       * Auto and default storage is "SD card"
          1) into SD card
          2) If SD card isn't available => into device memory.
[SCMRequest] N/A

Change-Id: I93c4811ab06babaafbe09a1feefb41323d43b656

10 years ago[Release] wrt-installer_0.1.147
sung-su.kim [Thu, 31 Oct 2013 09:12:26 +0000 (18:12 +0900)]
[Release] wrt-installer_0.1.147

Change-Id: I2f04a1afa9c0e808a5c49bc9d60ddff80698e11f

10 years agoFixed uninstall web app installed in SD card when it has been removed
Soyoung Kim [Thu, 31 Oct 2013 07:58:18 +0000 (16:58 +0900)]
Fixed uninstall web app installed in SD card when it has been removed

[Issue#]   N_SE-56822
[Problem]  Uninstall web app failed which was installed in SD card
           when it is removed.
[Cause]    Error in check condition about install location.
[Solution] Fixed conditions about installed app location.

[Verification]
    1. WebApp is installed SD card (install-location is prefer-external)
    2. Detach SD card and modify install-location to auto.
    3. excute "Run-As" on IDE.
    WebApp uninstall and install should be successful.
[SCMRequest] N/A

Change-Id: I6636688dc7e8df278112e3686b16500e46795c32

10 years agoFixed uninstall-update error
Soyoung Kim [Thu, 31 Oct 2013 05:52:01 +0000 (14:52 +0900)]
Fixed uninstall-update error

[Issue#]   N/A
[Problem]  Failed uninstall-update about system app.
[Cause]    Missing set pkgId during uninstall-update.
[Solution] Set pkgId when uninstall-update.

[Verification]
    - Update system app before test.
    - Try uninstall-update system app.
    - Should success uninstall-update.
[SCMRequest] N/A

Change-Id: I7aed204a73ab7c60295deee70fba38fff0f9f910

10 years agoAdd privilege level check for "nodisplay" attribute
sung-su.kim [Wed, 30 Oct 2013 07:11:30 +0000 (16:11 +0900)]
Add privilege level check for "nodisplay" attribute

[Issue#]   N/A
[Problem]  All privileges were available for "nodisplay" attribute.
[Cause]    N/A
[Solution] Verify privilege level for using "nodisplay" attribute.
           Only available when "PARTNER" privilege level or above.

[SCMRequest] N/A
[Verification]
    1. Add "<tizen:setting nodisplay="true"/>" attribute in config.xml
    2. Try to install web app with "unknown" or "public" privilege level
    3. Widget should not be installed with privilege level violation error

Change-Id: I9d5283eca6efc2ace6b29b6cb9e3648856a724b8

10 years agoAdd send signal if there is not enough memory during web app installation
Soyoung Kim [Fri, 13 Sep 2013 13:38:53 +0000 (22:38 +0900)]
Add send signal if there is not enough memory during web app installation

[Issue#]   WGL-299
[Problem]  Unable to get low memory popup when installing widgets.
[Cause]    There is no way to send out of memory signal to package manager.
[Solution]
    1. Add step to check condition of low memory before unzip.
    2. Add to send signal low memory if there aren't enough memory.

[SCMRequest] Depends on https://review.tizendev.org/gerrit/#/c/90132/
[Verification] Check the steps described in http://goo.gl/mgATi1

Change-Id: I57ee5dc4d981a6ecdc54759fd7bdb0ee36e87935

10 years agoRemove references to Inter Context Delegates.
Zbigniew Kostrzewa [Tue, 29 Oct 2013 09:15:43 +0000 (10:15 +0100)]
Remove references to Inter Context Delegates.

[Issue#]   LINUXWRT-1061
[Problem]  Unnecessary references to Inter Context Delegates.
[Cause]    Smack and AceCheck tasks inherit after ICDelegateSupport but don't make use of it.
[Solution] Remove the references.

[Verification]
    1. Build repository with tests
    2. Run `wrt-installer-tests-general --output=text` (the same number of
       tests should pass before and after applying this change).

[Remarks]
This change is connected to removal of FastDelegate library task.

Change-Id: Ie35d2882ecab7bc49827b5e32fb096d26629aaa9

10 years ago[Release] wrt-installer_0.1.146
sung-su.kim [Tue, 29 Oct 2013 08:58:36 +0000 (17:58 +0900)]
[Release] wrt-installer_0.1.146

Merge branch 'master' into tizen_2.2

Change-Id: Ifaa39a39715f31d0d8e7283c0a700125118cf1c7

10 years ago[Release] wrt-installer_0.1.146
sung-su.kim [Tue, 29 Oct 2013 08:57:40 +0000 (17:57 +0900)]
[Release] wrt-installer_0.1.146

Change-Id: Ia098f4d637cc22812c9a26f15f135b7f3c76e6c8

10 years agoAdd to privilege level for install hybrid app.
Soyoung Kim [Mon, 28 Oct 2013 14:27:44 +0000 (23:27 +0900)]
Add to privilege level for install hybrid app.

[Issue#] N/A
[Problem] If hybrid app singined public app, installation success like having platform privilege.
[Cause] wrt-installer doesn't pass signature info when service app install.
[Solution] add to pass parameter about privilege level during install hybrid app.

0: NP, 1: Public, 2: Partner, 3: Platform
wrt-installer -iv [path] -p 1

[SCMRequest] N/A

Change-Id: Ib8d8148a0e7479b869e08c9d4a9425f577bc5fb4

10 years agoRevert "Add to pass rivilege level when installing service app."
HOSEON LEE [Tue, 29 Oct 2013 07:36:26 +0000 (07:36 +0000)]
Revert "Add to pass rivilege level when installing service app."

Commit is not tested.
And commit message is wrong.

This reverts commit ab85306f76669ef4f8b29a959360bff28e5e100f.

Change-Id: I34e5471cc3b76bab7f7369b932fb55487d0b5caa

10 years agoAdd to pass rivilege level when installing service app.
Soyoung Kim [Mon, 28 Oct 2013 14:27:44 +0000 (23:27 +0900)]
Add to pass rivilege level when installing service app.

[Issue#] N/A
[Problem] If hybrid app singined public app, installation success like having platform privilege.
[Cause] wrt-installer doesn't pass signature info when service app install.
[Solution] add to pass parameter about privilege level during install hybrid app.

0: NP, 1: Public, 2: Partner, 3: Platform
wrt-installer -iv [path] -p 1

[SCMRequest] N/A

Change-Id: I4d288f7d346fafe77eebbd6cb548c5ae5284b085

10 years ago[Release] wrt-installer_0.1.145
sung-su.kim [Tue, 29 Oct 2013 06:47:42 +0000 (15:47 +0900)]
[Release] wrt-installer_0.1.145

Merge branch 'master' into tizen_2.2

Change-Id: I5bc46a24ae94b6b842f10671f4413357f6d60d54

10 years ago[Release] wrt-installer_0.1.145
sung-su.kim [Tue, 29 Oct 2013 02:18:35 +0000 (11:18 +0900)]
[Release] wrt-installer_0.1.145

Change-Id: Ifa9bdac9779c8a2b72976b2487bc4edb9ae51c35

10 years agosupport NPRuntime for smack
Soyoung Kim [Thu, 26 Sep 2013 08:13:29 +0000 (17:13 +0900)]
support NPRuntime for smack

[Issue#]   N/A
[Feature]  Add label and soft link for NPRuntime.
[Cause]    N/A
[Solution]
        1. Add symbolc link for NPRuntime for npplugins.
             - /usr/bin/PluginProcess -> package root/bin/[appid].npruntime
        2. Add smack label to symbolic link  : [pkgid].npruntime

[SCMRequest] Needed by https://review.tizendev.org/gerrit/#/c/245402/

Change-Id: I414f1cbfc913dfc73bea1d308d80a21fe28d7fe4

10 years agoAdd SMACK check signal for transaction.
sung-su.kim [Thu, 24 Oct 2013 06:35:10 +0000 (15:35 +0900)]
Add SMACK check signal for transaction.

[Issue#]   N/A
[Problem]  N/A
[Cause]    Changed SMACK policy from rule file to db.
[Solution] Add send start/end signal for smack db transaction.
[SCMRequest] N/A

Change-Id: I8727ccc7c9254cd56bfd361fddb7b2238c60128c

10 years ago[Release] wrt-installer_0.1.144
sung-su.kim [Mon, 28 Oct 2013 05:21:45 +0000 (14:21 +0900)]
[Release] wrt-installer_0.1.144

Change-Id: I0aea4f99d775f718b16852437fa072a6f6e7fbbc

10 years agoRevert "Locking launching of widget during reinstallation/uninstallation"
sung-su.kim [Mon, 28 Oct 2013 04:40:54 +0000 (13:40 +0900)]
Revert "Locking launching of widget during reinstallation/uninstallation"

Launch is blocked by reinstallation or deinstallation
For this reason, the app is not launched.
Please check again it and make a commit.

This reverts commit 3b7e85cfbc7948b0327cba3b827d9efd9a131d53.

Change-Id: I809195fcad5246f0a5a6d9230813896e26c580b2

10 years ago[Release] wrt-installer_0.1.143
sung-su.kim [Sun, 27 Oct 2013 23:48:02 +0000 (08:48 +0900)]
[Release] wrt-installer_0.1.143

Change-Id: Ifd590e028c868e7af47ff3b2eccd8b3caa816c89

10 years agoLocking launching of widget during reinstallation/uninstallation
Tomasz Iwanek [Thu, 24 Oct 2013 10:57:00 +0000 (12:57 +0200)]
Locking launching of widget during reinstallation/uninstallation

[Issue#]   N_SE-55833
[Problem]  Installer should block launching widget during installation
[Cause]    N/A
[Solution] Reinstallation/deinstallation is making exclusive file lock on /tmp/.dpl_lock.[tizenId] file.
           Lock of this file is used to check by wrt-client if launching is possible.

[Remarks]
    - lock is destroyed if wrt-installer finished (destrcutor of std::unique_ptr<>)
    - lock is destroyed if wrt-installer crashed,
    - if file is already lock that means:
        - another installation of this widget is proceeded,
        - wrt-client check if it can launch -> wait for freeing

[SCMRequest]  This requires wrt-commons change: "[DPL] FileLock"
[Verification] N/A
    - try to run widget while widget is being resinstalled -> widget should not run (insert sleep code after kill runnign app),
    - try to run widget while widget is being uninstalled -> widget should not run,
    - install two different apps similtonously (both should be installed and able to be run)

Change-Id: Iedf3f954536d35085ae90eb3a58386abcab7f9ac

10 years agoFix Mismatched free (iri_t)
Jihoon Chung [Fri, 25 Oct 2013 01:38:35 +0000 (10:38 +0900)]
Fix Mismatched free (iri_t)

[Issue#]   LINUXWRT-1065
[Problem]  As a result of valgrind, memory mismatched free detected.
[Cause]    Iri data structure, "iri_t", should be alloc by iri_parse and released by iri_destory.
           Some part doesn't use "iri_destory" when release "iri_t".
[Solution] Change use case from DPL::ScropedPtr to unique_ptr with deleter(iri_destory).

[Verification] Retest valgrind.
[SCMRequest] N/A

Change-Id: Icbd1e741a1a6545980afc8e4650767309fdf14e1

10 years agoReplace "GlobalDAO::GetDeviceCapability" to "FeatureDAO::GetDeviceCapability"
Jihoon Chung [Mon, 21 Oct 2013 12:19:13 +0000 (21:19 +0900)]
Replace "GlobalDAO::GetDeviceCapability" to "FeatureDAO::GetDeviceCapability"

[Issue#]   LINUXWRT-1020
[Problem]  GlobalDAO has unnecessary API.
           As GlobalDAO is deprecated, all use cases should be cleaned-up.
[Cause]    N/A
[Solution] Replace "GlobalDAO::GetDeviceCapability" to "FeatureDAO::GetDeviceCapability"

[Verification] Build repos.
[SCMRequest] N/A

Change-Id: I27ac401457741faa7c2c84d741a285255af6af8f

10 years ago[Release] wrt-installer_0.1.142
sung-su.kim [Thu, 24 Oct 2013 10:38:33 +0000 (19:38 +0900)]
[Release] wrt-installer_0.1.142

Merge branch 'master' into tizen_2.2

Change-Id: Idf658fc6137a885e139575955326f8d49d8d214a

10 years ago[Release] wrt-installer_0.1.142
sung-su.kim [Thu, 24 Oct 2013 07:29:47 +0000 (16:29 +0900)]
[Release] wrt-installer_0.1.142

Change-Id: Ia0d0735711ea290932c1d9062c2d0dffca4686c9

10 years agoRevert "Clean up duplications with Dir operation"
HOSEON LEE [Wed, 23 Oct 2013 08:53:53 +0000 (08:53 +0000)]
Revert "Clean up duplications with Dir operation"

The permission of some files is changed when the app is updated.
(app -> root)
For this reason, the app is not launched after updated.
Please check again it and make a commit.

This reverts commit af8ac24f7ac6d6ecef023da2503cafbbc854d18a.

Change-Id: I46ddb01b0b4531662328f7e092e7b1658183d00e

10 years agoChanged web app version format
sung-su.kim [Wed, 23 Oct 2013 04:49:03 +0000 (13:49 +0900)]
Changed web app version format

[Issue#]   N_SE-55615
[Problem]  Different version format between native and web app.
[Cause]    N/A
[Solution] Sync version format between native and web app.
           - [0-9]{1,3}\.[0-9]{1,3}(\.[0-9]{1,5})?
[SCMRequest] N/A

Change-Id: I44364d47441f73a629a3b56406420e89531d2768

10 years ago[Release] wrt-installer_0.1.141
sung-su.kim [Wed, 23 Oct 2013 00:10:47 +0000 (09:10 +0900)]
[Release] wrt-installer_0.1.141

Change-Id: Ibed81ab01b72f35d3d7783063d77fc224b713e7f

10 years agoRevert "Add send signal if there is not enough memory during web app installation"
Soo-Hyun Choi [Wed, 23 Oct 2013 01:41:08 +0000 (10:41 +0900)]
Revert "Add send signal if there is not enough memory during web app installation"

This reverts commit 7a182e91c2ce7bbc7b325ddddee182f2b2909482.

[Remarks] This patch causes wrt-installer crash with IDE installation.

Change-Id: I690ed20948be7d75f3fec5356b85f373223c359b

10 years agoException handling regarding NFC app-control declaration.
Tae-Jeong Lee [Tue, 22 Oct 2013 07:34:53 +0000 (16:34 +0900)]
Exception handling regarding NFC app-control declaration.

*** This is a workaroud patch that should be retained for Tizen 2.2 only ***

[Issue#]   N/A
[Problem]  Request from Tizen Device Web API team regarding NFC.
[Cause]    To support 'GSMA-NFC-Handset-APIs-Requirements' of  'Samsung Wallet',
           webapi team requested following exception processing from wrt side.

           When a webapp defined the app-control declaration in config.xml as below,
            - operation: http://tizen.org/appcontrol/operation/nfc/transaction
            - uri: nfc://secure/aid/<aid>
            - mime: NULL

           Its uri will be diverted based on the following rule.
            - nfc://secure/aid/<aid>  ->  nfc://secure/<SEName>/aid/<aid>

[Solution] This exception processing should be retained to tizen 2.2 only.

Change-Id: I052845742fb57f21f38981bba040b14cf4ed95e1

10 years agoCheck MDM policy before uninstalling
Soyoung Kim [Mon, 21 Oct 2013 10:34:51 +0000 (19:34 +0900)]
Check MDM policy before uninstalling

[Issue#]   N/A
[Problem]  installation success even though web app is blocked by MDM policy.
[Cause]    installer did not check MDM policy.
[Solution] add pkgmgr_parser_check_MDM_policy_for_uninstallation() to get MDM policy

[SCMRequest] N/A

Change-Id: I4eeda3119b151cf2db21ceac946c16828e4a940d

10 years agoAdd send signal if there is not enough memory during web app installation
Soyoung Kim [Fri, 13 Sep 2013 13:38:53 +0000 (22:38 +0900)]
Add send signal if there is not enough memory during web app installation

[Issue#]   WGL-299
[Problem]  Unable to get low memory popup when installing widgets.
[Cause]    There is no way to send out of memory signal to package manager.
[Solution]
    1. Add step to check condition of low memory before unzip.
    2. Add to send signal low memory if there aren't enough memory.

[SCMRequest] Depends on https://review.tizendev.org/gerrit/#/c/90132/
[Verification] Check the steps described in http://goo.gl/mgATi1

Change-Id: I77f468427312909a48f0989bd08ee5d6532b7571

10 years ago[Release] wrt-installer_0.1.140.1
sung-su.kim [Tue, 22 Oct 2013 07:36:22 +0000 (16:36 +0900)]
[Release] wrt-installer_0.1.140.1

Change-Id: If2707930a0829f41f243724cd563b897c11111e3

10 years agoClean-up GlobalDAO
Jihoon Chung [Mon, 21 Oct 2013 13:07:04 +0000 (22:07 +0900)]
Clean-up GlobalDAO

[Issue#]   LINUXWRT-1056
[Problem]  GlobalDAO has unnecessary API.
[Cause]    N/A
[Solution] Remove unnecessary header include
           - "global_dao_read_only.h" and "global_dao.h" are used
              even there is no use case of GlobalDAO or GlobalDAOReadOnly.

[Verification] build repo
[SCMRequest] N/A

Change-Id: I2b7fac7f774581c11736bf9f6a62fa6d3de54f4e

10 years agoWidget gets corrupted if device battery is removed while uninstalling it.
Tomasz Iwanek [Fri, 4 Oct 2013 15:25:25 +0000 (17:25 +0200)]
Widget gets corrupted if device battery is removed while uninstalling it.

 *** This patch is just a temporary fix. See [Remarks] section. ***

[Issue#]   WGL-580
[Problem]  Uninstallation is broken if battery is removed when uninstalling.
[Cause]    Db is cleaned up but files are still present.
[Solution] Ignore existing files for new installation.

[Remarks]
 If widget was uninstalled (no db information).
 Source of problem is that installation/uninstalaltion is not fully transactional
 and there is no information that something is to be fixed.
 This is just a temporary fix. This is currently losing disc space
 for widgets that will not be installed again.

Separate solution (daemon/boot time/...) for fixing unfinshed jobs should be proposed.

[Verification] Build repo and (as in issue):
 1) Install a heavy widget.
 2) Uninstall the same the widget.
 3) While uninstalling the widget, remove battery.
 4) Again install the same widget.( on step 3, widget is un-installed)

* Use widget attached in https://bugs.tizendev.org/jira/browse/WGL-580

Change-Id: I3e840cc5c508fe9951c77cabfceb377fb996a927

10 years ago[Release] wrt-installer_0.1.140
sung-su.kim [Mon, 21 Oct 2013 10:47:01 +0000 (19:47 +0900)]
[Release] wrt-installer_0.1.140

Merge branch 'master' into tizen_2.2

Change-Id: I1d792940a7f7917351916d410a0397755972a96b

10 years agoClean up duplications with Dir operation
Maciej Piotrowski [Tue, 27 Aug 2013 11:50:46 +0000 (13:50 +0200)]
Clean up duplications with Dir operation

[Issue#]   LINUXWRT-717
[Problem]  Dir operation duplications.
[Cause]    N/A
[Solution] Functionality from
            - wrt-installer/src/jobs/widget_install/directory_api.*
            - wrt-installer/src/jobs/widget_install/task_common.*
            was transferred to wrt-commons/modules/utils/src/path.cpp

It was checked if wrt-installer/src/jobs/widget_install/task_file_manipulation.cpp
contains any duplicate code, and small changes were applied to it.

[SCMRequest] Depends on https://review.tizendev.org/gerrit/#/c/86370/

[Verification] 1. Build repository
               2. Normal installation [wgt]
               3. Normal installation update [wgt]
               4. install wrt-extra on target and run:
                  wrt-installer -i /opt/share/widget/tests/widgetstest/config.xml

Change-Id: If39cf5b184f97fdec2b49908873a2cc6b27f1d5d

10 years ago[Release] wrt-installer_0.1.140
sung-su.kim [Thu, 17 Oct 2013 08:25:14 +0000 (17:25 +0900)]
[Release] wrt-installer_0.1.140

Change-Id: Ifdaaf4403bc32b92f3c4054ea8ca819c9c0b85c9

10 years agofixed wrong api called when install writable prealod app encrypted.
Soyoung Kim [Tue, 15 Oct 2013 06:19:50 +0000 (15:19 +0900)]
fixed wrong api called when install writable prealod app encrypted.

[Issue#] N/A
[Problem] can't install writable preload app during building image.
[Cause] failed to encrypt resource because wrong api was called at encryption.
[Solution]
- There are encryption api separated with preload and download.
(ssm_encrypt_preloaded_application(), ssm_encrypt_application())
- So preload encryption api is called when installing writable preload app.
[SCMRequest] N/A

Change-Id: I67fa5721c317b5a5fb9a1c2d881bf3fa522d8a03

10 years ago[Release] wrt-installer_0.1.139
sung-su.kim [Thu, 17 Oct 2013 01:12:21 +0000 (10:12 +0900)]
[Release] wrt-installer_0.1.139

Change-Id: Id5da95fa65683c9f32a976e6b929e5bbcd70ba6e

10 years agoRemoved unused "i18n-dao-ro" header
sung-su.kim [Tue, 15 Oct 2013 23:03:37 +0000 (08:03 +0900)]
Removed unused "i18n-dao-ro" header

[Issue#]     N/A
[Problem]    Still remains unused header
[Cause]      N/A
[Solution]   Unused "i18n-dao-ro" header removed
[Verification] Build wrt-insatller repo
[SCMRequest] N/A

Change-Id: Ifc1be6d510287adf6c2f84daf3acaeaaf4f5020a

10 years agoFix installation of widgets with defaultlocale
Zbigniew Kostrzewa [Tue, 8 Oct 2013 10:01:16 +0000 (12:01 +0200)]
Fix installation of widgets with defaultlocale

[Issue#]   WGL-560, WGL-563
[Problem]  Installation of test widgets (with defaultlocale attribute in
configuration file) fails
[Cause] Installer application does not have access to WRT I18N DB and
backendlib does not attach to WRT I18N DB
[Solution] Restore LanguageSubtagRstTreeSingleton used for checking
language tag validity

[Verification]
1. Build repository
2. Run test widgets from WGL-560
(https://bugs.tizendev.org/jira/browse/WGL-560)

[SCMRequest] Depends on: https://review.tizendev.org/gerrit/92271

Change-Id: I3c8d97e62c5f292b00b71874fe73a56aaedbea44

10 years ago[Release] wrt-installer_0.1.138
sung-su.kim [Tue, 15 Oct 2013 04:59:16 +0000 (13:59 +0900)]
[Release] wrt-installer_0.1.138

Merge branch 'master' into tizen_2.2

Change-Id: I8a5dd171272ce82c002edea0aca2582806328fca

10 years ago[Release] wrt-installer_0.1.138
sung-su.kim [Tue, 15 Oct 2013 00:40:17 +0000 (09:40 +0900)]
[Release] wrt-installer_0.1.138

Change-Id: I54bf804769fd0b377f9fc8d72ed1d748050a00a9

10 years agoInitialize exception value for decide success.
sung-su.kim [Mon, 14 Oct 2013 07:47:38 +0000 (16:47 +0900)]
Initialize exception value for decide success.

[Issue#]   N_SE-55213
[Problem]  Sometimes uninstall fail pop up is shown even uninstall is success.
[Cause]    For determining success the exception value was not initialized.
[Solution] Initialize to exception value for decide success.
           In current wrt-installer structure, installer verify this exception value
           at the end of uninstallation. If uninstallation fail, the value is changed
           to error code. If not, this value was initial value.
[Verification] N/A (Not always issue and logical issue)
[SCMRequest] N/A

Change-Id: I8a4bb3bdec871b291fc8d5cd6911bf19720798f5

10 years agoReplace "dpl/unused.h" to "dpl/availability.h"
Jihoon Chung [Mon, 14 Oct 2013 01:41:04 +0000 (10:41 +0900)]
Replace "dpl/unused.h" to "dpl/availability.h"

[Issue#]     LINUXWRT-1015
[Problem]    To create common header for various macro, "dpl/availability.h" is added.
             Old macro usage case should replace to use new header.
[Cause]      N/A
[Solution]   DPL_UNUSED and DPL_UNUSED_PARAM macro move to "dpl/availability.h"
[Verification] Build package.
[SCMRequest] N/A

Change-Id: I7b9e7cba103189517c70c29da0f012c2ff21d65b

10 years ago[Release] wrt-installer_0.1.137
sung-su.kim [Fri, 11 Oct 2013 08:32:14 +0000 (17:32 +0900)]
[Release] wrt-installer_0.1.137

Merge branch 'master' into tizen_2.2

Change-Id: I03f6dc2a0799f2545b74e2460453599525a1490d

10 years ago[Release] wrt-installer_0.1.137
sung-su.kim [Fri, 11 Oct 2013 01:40:15 +0000 (10:40 +0900)]
[Release] wrt-installer_0.1.137

Change-Id: I2d5c05aa61200e7a8aec198c56357da8350bd0c4

10 years agoMerge "Change account icon path from resource directory to shared directory"
HOSEON LEE [Fri, 11 Oct 2013 01:22:55 +0000 (01:22 +0000)]
Merge "Change account icon path from resource directory to shared directory"

10 years agoChange account icon path from resource directory to shared directory
sung-su.kim [Thu, 10 Oct 2013 07:36:02 +0000 (16:36 +0900)]
Change account icon path from resource directory to shared directory

[Issue#]   N_SE-54764
[Problem]  "Account" application cannot show icon.
[Cause]    SMACK access is denied when "Account" application process touch
           account icon which is in other application resource directory.
[Solution] Copy account icon to application shared directory.
             - Resource directory : [package]/res/wgt/
             - Shared directory : [package]/shared/res/
           Shared directory is assigned "*" label.
           Changed account icon path in manifest file.

Change-Id: I08f0dfbc42b3754780996d80a9bed8980743dc6c

10 years ago[Release] wrt-installer_0.1.136
sung-su.kim [Wed, 9 Oct 2013 23:30:51 +0000 (08:30 +0900)]
[Release] wrt-installer_0.1.136

Change-Id: Id07a679780396d0078ce8868b8b88765aeb2187c

10 years agoBuild Fix
Adam Banasiak [Wed, 9 Oct 2013 09:05:23 +0000 (11:05 +0200)]
Build Fix

[Issue#]   N/A
[Problem]  Build break.
[Cause]    Missing ; at the end.
[Solution] Fixed

Change-Id: Ibcdb80d224e1235c012d7af35a64c641c67fd603

10 years agoSet default launguage for display name of account
Soyoung Kim [Tue, 8 Oct 2013 12:04:56 +0000 (21:04 +0900)]
Set default launguage for display name of account

[Issue#]   N_SE-54261
[Problem]  The default language in account menu is not showing in Settings.
[Cause]    The default language is not specified in the manifest file.
[Solution] - If there is "en-gb" in display name of account, installer set
             "en-gb" as default language.
           - If there is not "en-gb" in display name, installer set the first
             value from display name as defalt language.

[Verification] Install the attached widget.
https://bugs.tizendev.org/jira/secure/attachment/164604/Emptyui.zip

[SCMRequest] N/A

Change-Id: I438ec0cd6fb16da9fd182138853bbeef63ccbd30

10 years agoFix Prevent issue
Zbigniew Kostrzewa [Mon, 7 Oct 2013 08:41:53 +0000 (10:41 +0200)]
Fix Prevent issue

[Issue#]   CID: 30986
[Problem]  Unchecked return value
[Cause]    Returned value from a function is not checked
[Solution] Check return value

[Verification] Build repository

Change-Id: I512a0848ea5325bf1a7a8d6aa487346f486e19ee

10 years ago[Release] wrt-installer_0.1.135
sung-su.kim [Tue, 8 Oct 2013 09:11:41 +0000 (18:11 +0900)]
[Release] wrt-installer_0.1.135

Merge branch 'master' into tizen_2.2

Change-Id: Id5a993f5650125cd1cc691accfd50a7354a413fc

10 years ago[Release] wrt-installer_0.1.135
sung-su.kim [Tue, 8 Oct 2013 06:17:28 +0000 (15:17 +0900)]
[Release] wrt-installer_0.1.135

Change-Id: Ia34363906d6382a09f604243d872dd2ac7f258af

10 years agoModify uninstall steps in case app is installed on an external memory
sung-su.kim [Mon, 7 Oct 2013 09:21:23 +0000 (18:21 +0900)]
Modify uninstall steps in case app is installed on an external memory

[Issue#]   N_SE-53790
[Problem]  Re-install fails after uninstall app which was installed on external memory.
[Cause]    When uninstalling an app on external memory, unexpected error occurred.
            : SD card isn't inserted or unmounted
           In this case, wrt-installer skips to remove directory in internal memory.
           The remaining internal directory caused "application already existed" error.
[Solution] Change uninstall work-flow.
           Before : Remove the information to only an external memory (e.g., SD card).
           After  : Remove the information on both internal and external memory.

Change-Id: If7a4fe063b80ecdb6a6f5b60f2d95bd48e9cb284

10 years agoClean up pkgmgr_installer API usage
Tomasz Iwanek [Thu, 3 Oct 2013 15:54:36 +0000 (17:54 +0200)]
Clean up pkgmgr_installer API usage

[Issue#]   LINUXWRT-894
[Problem]  Pkgmgr refactoring
[Cause]    N/A
[Solution] Refactoring - minor fixes:
           - hiding sending signals -> adding extra methods
           - hiding pkgmgr_installer types in pkgmgr_signal.h header

[Verification] Build repository. Review that logic is the same.

Change-Id: Iac7a229628af072974500724f38fc7efd95eb6e1

10 years agoTaskConfiguration refactoring - part 3/3
Tomasz Iwanek [Thu, 5 Sep 2013 08:02:31 +0000 (10:02 +0200)]
TaskConfiguration refactoring - part 3/3

[Issue#]   LINUXWRT-820
[Problem]  Refatoring - CheckAppRunningStateStep for TaskConfiguration
[Cause]    N/A
[Solution] Refactoring.

[Verification] Install successfully any app. Try update app when it's running.
               App should be killed before installation start.

Change-Id: Ie15cbbb6736be9b7ae30e8547ee8f7b5b3abb85c

10 years agoAdded new target file extension of encryption, ".htm", with consideration of capital...
Tae-Jeong Lee [Mon, 7 Oct 2013 04:38:32 +0000 (13:38 +0900)]
Added new target file extension of encryption, ".htm", with consideration of capital letters.

[Issue#]   LINUXWRT-983
[Problem]  Some html files included in encryption widget are not encrypted after installation.
[Cause]    wrt-installer decides target files of encryption by refering to each filename extension.
           However, ".htm" was omitted in target list.
[Solution] Added new extension define, ".htm", for encryption.
           Additionally, consideration of capital letter was also added.

Change-Id: If6efdf3f54ead6085631bdd37fec1e23ae10b7ee

10 years agoRemove unused code
Tomasz Iwanek [Fri, 4 Oct 2013 14:37:42 +0000 (16:37 +0200)]
Remove unused code

[Issue#]   LINUXWRT-995
[Problem]  Unused code
[Cause]    N/A
[Solution] Remove it.

[Verification] Build repository.

Change-Id: Icfdf81acbfce565c87f429af93da323be70b86b8

10 years ago[Release] wrt-installer_0.1.134
Jihoon Chung [Sat, 5 Oct 2013 08:31:12 +0000 (17:31 +0900)]
[Release] wrt-installer_0.1.134

Change-Id: Ib83f6fb6f08ccaa4af05b4e694c8583012fa90db

10 years agoThe order of ui-application element in manifest.xml is changed
Hoseon LEE [Sat, 5 Oct 2013 06:38:46 +0000 (15:38 +0900)]
The order of ui-application element in manifest.xml is changed

[Issue#] P131004-00766
[Problem] The dbox execution file is selected to the main UI application by package manager
[Cause] The order of ui-application element is wrong.
        The dbox execution file is first. And the main web application execution is second.
        The first is set to main ui-application by package manager.
[Solution] The order of ui-application element in manifest.xml is changed.
           But this is the temporary solution.
           The final solution is that the 'mainapp=true' is set in to the main ui-application element.
           Therefore, this commit must be updated with the final solution.

Change-Id: I34445ce0571453cc9c554efb2cabc8d245117cdf

10 years ago[Release] wrt-installer_0.1.133
Jihoon Chung [Sat, 5 Oct 2013 03:37:19 +0000 (12:37 +0900)]
[Release] wrt-installer_0.1.133

Change-Id: Ifc290c42a712ae926094206e1e41ccaa961bcee1

10 years agoFixed build break
Jihoon Chung [Sat, 5 Oct 2013 03:27:28 +0000 (12:27 +0900)]
Fixed build break

[Issue#]     N/A
[Problem]    Build break is occurred
[Cause]      N/A
[Solution]   Fixed build break
[SCMRequest] N/A

Change-Id: I04674d6c240ad37dc4c2b1479137e7b9e7bda2c6

10 years agoMerge "[Release] wrt-installer_0.1.132"
HOSEON LEE [Fri, 4 Oct 2013 12:37:10 +0000 (12:37 +0000)]
Merge "[Release] wrt-installer_0.1.132"

10 years agoInstaller check setting value, if install-location is auto.
Soyoung Kim [Mon, 23 Sep 2013 11:30:32 +0000 (20:30 +0900)]
Installer check setting value, if install-location is auto.

[Issue#]   P130919-00555
[Problem]  WebApp install to internal storage
           even if installation storage set to external on setting menu.
[Cause]    Installer doesn't check setting value about installation storage.
[Solution] Installer will check setting value about install-location.
[Description]
           Two values to determine the location of the installation
           1. install location element value in config.xml, internal-only|auto|preper-external
           2. install location setting menu in target, internal|SD card
           Installed on SD card conditions
           1. config type sets preper_external & inserted MMC
           2. config type sets auto & target type sets SD card
           3. config type sets auto & target type sets internal & out of internal memory

Change-Id: I7dfb193a72e3e765b9d908574246f2212a5e6c4e

10 years ago[Release] wrt-installer_0.1.132
sung-su.kim [Fri, 4 Oct 2013 04:36:10 +0000 (13:36 +0900)]
[Release] wrt-installer_0.1.132

Change-Id: I95eea0203dc5a90f352665740072ce24ea3b2b5a

10 years ago2nd config.xml parsing removal
Tomasz Iwanek [Wed, 4 Sep 2013 12:14:00 +0000 (14:14 +0200)]
2nd config.xml parsing removal

[Issue#]   LINUXWRT-820
[Problem]  Config.xml parsed twice
[Cause]    N/A
[Solution] TaskProcessConfig fixture.

[Verification] Install, update. uninstall widgets attached in:
               http://cam.sprc.samsung.pl/browse/LINUXWRT-820

Change-Id: I3a3923b4bbd6d81feeecd1e4ac1f21f93e3f26df

10 years ago[Release] wrt-installer_0.1.131
sung-su.kim [Wed, 2 Oct 2013 04:21:57 +0000 (13:21 +0900)]
[Release] wrt-installer_0.1.131

Merge branch 'master' into tizen_2.2

Change-Id: Ic06b5495c4d770c5626c82a46a173e780606acef

10 years ago[Release] wrt-installer_0.1.131
sung-su.kim [Wed, 2 Oct 2013 00:04:18 +0000 (09:04 +0900)]
[Release] wrt-installer_0.1.131

Change-Id: Ief3f88c01b94a0878a99694479e4633fe1d2472f

10 years agoId in <tizen:app-widget> element should begin with <TIZEN_APPLICATION_ID>
Karol Pawlowski [Tue, 1 Oct 2013 12:21:01 +0000 (14:21 +0200)]
Id in <tizen:app-widget> element should begin with <TIZEN_APPLICATION_ID>

[Issue#]   WGL-573
[Problem]  Valid Id of <tizen:app-widget> element should be in format of
           <TIZEN_APPLICATION_ID>.<STRING>
[Cause]    Missing proper routine to check this condition.
[Solution] Add routine to check app-widget id.

[Verification]
    * Install widget attached to issue, which should fail:
      https://bugs.tizendev.org/jira/browse/WGL-573
    * Install correct widget, which should pass:
      https://bugs.tizendev.org/jira/browse/WGL-574

Change-Id: I07c408f192aab083cd0513e73bc35ffab7ed870d

10 years agoTaskConfiguration refactoring - part 2/3
Tomasz Iwanek [Tue, 3 Sep 2013 12:05:07 +0000 (14:05 +0200)]
TaskConfiguration refactoring - part 2/3

[Issue#]       LINUXWRT-820
[Problem]      Refactoring
[Cause]        Code needs clean up
[Solution]     This change is solving:
 - "Stepifying" TaskConfiguration (identification of sub-problems of this task)

This change makes clean up/reordering in TaskConfiguration,
(now called) TaskProcessWidget is just to be fixed.

[Verification] Walk through following procedure:
1. Testing SetupTempDirStep & DetectUpdateInstallationStep
   (run app after each installation, uninstall successfully app if not needed):
 1.1. Install any new widget for first time
 1.2. Update widget several times
 1.3. Test installtion from browser installation:
       wrt-installer -i /opt/share/widget/tests/widgetstest/config.xml (wrt-extra)
 1.4. hybrid app -> test new installation
       (hybrid app can be found in "HybridApplication/res" directory
        in TCT behavioural tests; change extension to .wgt)
 1.5. hybrid app -> test update installation (run it again)
2. Testing ResourceEncryptionStep:
 2.1 Check points 1.1 and 1.2 for encrypted widget.
3. (optional if possible) Testing InstallationFSLocationSte:
 3.1 Check installation on external card
      (sets setting in widget config: install-location="prefer-external")
      (make sure it's really installed on card)
4. Testing CheckRDSSupportStep:
 4.1 Install widget without encryption using SDk and update it (reinstall).
     SDK should run RDS deployment (check console for succesfull installation messages)
 4.2 Install widget encryption using SDK and update it (reinstall).
     SDK should run normal installation.
     SDK may try to install it with RDS. wrt-installer should prompt then about error (RDS not supported).
     SDK shoudl recognized message and run normal installation automatically if RDS fails.
5. Testing pkgmgr interaction (pkgmgr should display proper type of instalaltion, notifications and icons):
 5.1. Run new isntallation through Installer app on phone (access .wgt from myfiles)
 5.2. Run update installation through Installer app on phone (access .wgt from myfiles)
 5.3. Run new isntallation through Installer app on phone (access .wgt from myfiles) of hybrid app
 5.4. Run update installation through Installer app on phone (access .wgt from myfiles) of hybrid app

---

Update may be tested (1.2.):
 wrt-installer-tests-general --output=text --regexp="Update"
Hosted app may be tested (1.3.):
 wrt-extra-tests-widgets --output=text --regexp="hosted_app_simple_install"
Encrypted widget is located:
 /opt/share/widget/tests/misc/widgets/encrypted.wgt (wrt-extra).

---

This change is also fixing hosted app installation as it was broken.

---

Change-Id: Idd1bfba88d3c8569fcbbc80eda1462cf7dfc9f16

10 years agoAdd i18n database attach and detach code
sung-su.kim [Tue, 1 Oct 2013 12:11:43 +0000 (21:11 +0900)]
Add i18n database attach and detach code

[Issue#]   N/A
[Problem]  Installation fail to TCT.
[Cause]    Fail to database access for IANA locale check.
[Solution] Add i18n database attach and detach code.

[SCMRequest] N/A

Change-Id: I83648a1438e700ff63bba32cde34a8bb28b19d60

10 years agoChanged header inclusion format
sung-su.kim [Tue, 1 Oct 2013 11:58:41 +0000 (20:58 +0900)]
Changed header inclusion format

[Issue#]   N/A
[Problem]  Was used " " when header include
[Cause]    Violation coding rule
[Solution] Changed header include from " " to < >

[SCMRequest] N/A

Change-Id: Ibb069856c87bd9b654b776014248e0c6fc116960

10 years agoFixed account icon path to manifest file
Soyoung Kim [Fri, 27 Sep 2013 06:44:30 +0000 (15:44 +0900)]
Fixed account icon path to manifest file

[Issue#]   N/A
[Problem]  Can't loaded account icon.
[Cause]    Account icon path is wrong to manifest file.
[Solution] Changed account icon path from relative path to absolute path.

[Remarks]
- config.xml path: <tizen:icon section="Account">icon.png</tizen:icon>
- old manifest: <icon section="account">icon.png</icon>
- new manifest: <icon section="account">/opt/usr/apps/[package]/res/wgt/icon.png</icon>

Change-Id: I75a531e1da1f737fbe474adc0cdedfc89cf30284

10 years agoFixed installer couldn't add account to manifest file
Soyoung Kim [Fri, 27 Sep 2013 06:44:30 +0000 (15:44 +0900)]
Fixed installer couldn't add account to manifest file

[Issue#]   N_SE-53213
[Problem]  Can't add account to manifest file
           even if account information is in config.xml.
[Cause]    Wrt-installer did not create the account information
           to manifest file when parsing config.xml.
[Solution] Fixed parsing context to create the account information.

[SCMRequest] N/A

Change-Id: I51f2b3b7f1d6ff5a0593714c15e20cc64e09cdd9

10 years ago[Release] wrt-installer_0.1.130
sung-su.kim [Mon, 30 Sep 2013 04:23:50 +0000 (13:23 +0900)]
[Release] wrt-installer_0.1.130

Change-Id: Ibf89e0c6b88f39ad5b177670815cfc856e9b3a69

10 years agoFix bug on checking error conditions when calling dlsym()
Soo-Hyun Choi [Wed, 25 Sep 2013 16:20:31 +0000 (01:20 +0900)]
Fix bug on checking error conditions when calling dlsym()

[Issue#]   N/A
[Problem]  A bug on checking error conditions when calling dlsym()
[Cause]    Missed to call dlerror() to clear any old error conditions.
[Solution] Added dlerror() before calling dlsym().
           Also, separated error conditions:
           one for dlsym related error and another for DRM API related error.

[Remarks] DLOPEN(3)
    The function dlsym() takes a "handle" of a dynamic library returned by
    dlopen() and the null-terminated symbol name, returning the address where
    that  symbol is loaded into memory.  If the symbol is not found, in the
    specified library or any of the libraries that were automatically loaded
    by dlopen() when that library was loaded, dlsym() returns NULL.  (The
    search performed by dlsym() is breadth first through the  dependency  tree
    of  these libraries.)  Since the value of the symbol could actually be
    NULL (so that a NULL return from dlsym() need not indicate an error), the
    correct way to test for an error is to call dlerror() to clear any old
    error conditions, then call dlsym(), and then call dlerror() again,  sav‐
    ing its return value into a variable, and check whether this saved value
    is not NULL.

Change-Id: Idee1834fbdcfee184d07f757c871994e9832d7d4

10 years agoError thrown when the same appControl element is present more than once in config.xml
Tomasz Iwanek [Thu, 26 Sep 2013 15:35:58 +0000 (17:35 +0200)]
Error thrown when the same appControl element is present more than once in config.xml

[Issue#]   N_SE-53206
[Problem]  Instalaltion should fail in a proper way if the same elements of
           appControl are specified twice.
[Cause]    N/A
[Solution] Check for appControl similarity..

[Verification]
    * Try to reproduce steps described in the issue tracker.
    * Issue should not be reproduced.

Change-Id: I86e0e7754657a112e373c408a677293811c164ee

10 years ago<tizen:box-icon /> element's occurrence should be 0 or 1
Tomasz Iwanek [Thu, 26 Sep 2013 14:41:00 +0000 (16:41 +0200)]
<tizen:box-icon /> element's occurrence should be 0 or 1

[Issue#]   WGL-572
[Problem]  Valid <tizen:box-icon /> element should occur as 0 or 1 time.
[Cause]    Missing proper routine to check this condition.
[Solution] Add routine to check the previous occurrence.

[Verification]
    * Install widget attached to issue: https://bugs.tizendev.org/jira/browse/WGL-572
    * Installation should fail at parsing config.xml.

Change-Id: I9fccb31f77974cfe379d697622d57b4766d49398

10 years agoFix a common mistake about errno(3) usage
Soo-Hyun Choi [Thu, 26 Sep 2013 05:52:30 +0000 (14:52 +0900)]
Fix a common mistake about errno(3) usage

[Issue#]   N/A
[Problem]  errno may have been changed by other system call.
[Cause]    errno should be preserved.
[Solution] Save errno to a local variable

[Remarks] ERRNO(3)

A common mistake is to do

    if (somecall() == -1) {
        printf("somecall() failed\n");
        if (errno == ...) { ... }
    }

where  errno  no  longer  needs  to have the value it had upon return from somecall()
(i.e., it may have been changed by the printf(3)).
If the value of errno should be preserved across a library call, it must be saved:

if (somecall() == -1) {
    int errsv = errno;
    printf("somecall() failed\n");
    if (errsv == ...) { ... }
}

Change-Id: Ib407b8a7b1cd13d37c3f182c4c28f059bb1749ea

10 years ago[Release] wrt-installer_0.1.129
sung-su.kim [Fri, 27 Sep 2013 02:41:33 +0000 (11:41 +0900)]
[Release] wrt-installer_0.1.129

Change-Id: I3a520cb9059492dd860e22769d5348a36b53e8ae

10 years ago[Release] wrt-installer_0.1.128
sung-su.kim [Fri, 27 Sep 2013 00:51:23 +0000 (09:51 +0900)]
[Release] wrt-installer_0.1.128

Merge branch 'master' into tizen_2.2

Conflicts:
configuration/feature-wrt.properties
packaging/wrt-installer.spec
src/CMakeLists.txt
src/configuration_parser/widget_parser.cpp
src/jobs/plugin_install/job_plugin_install.cpp
src/jobs/plugin_install/plugin_install_task.cpp
src/jobs/widget_install/job_widget_install.cpp
src/jobs/widget_install/job_widget_install.h
src/jobs/widget_install/task_ace_check.cpp
src/jobs/widget_install/task_certify.cpp
src/jobs/widget_install/task_certify_level.cpp
src/jobs/widget_install/task_commons.cpp
src/jobs/widget_install/task_configuration.cpp
src/jobs/widget_install/task_configuration.h
src/jobs/widget_install/task_database.cpp
src/jobs/widget_install/task_encrypt_resource.cpp
src/jobs/widget_install/task_file_manipulation.cpp
src/jobs/widget_install/task_install_ospsvc.cpp
src/jobs/widget_install/task_manifest_file.cpp
src/jobs/widget_install/task_pkg_info_update.cpp
src/jobs/widget_install/task_prepare_files.cpp
src/jobs/widget_install/task_prepare_reinstall.cpp
src/jobs/widget_install/task_recovery.cpp
src/jobs/widget_install/task_remove_backup.cpp
src/jobs/widget_install/task_smack.cpp
src/jobs/widget_install/task_update_files.cpp
src/jobs/widget_install/task_widget_config.cpp
src/jobs/widget_install/widget_install_context.h
src/jobs/widget_install/widget_unzip.cpp
src/jobs/widget_uninstall/job_widget_uninstall.cpp
src/jobs/widget_uninstall/task_check.cpp
src/jobs/widget_uninstall/task_db_update.cpp
src/jobs/widget_uninstall/task_delete_pkginfo.cpp
src/jobs/widget_uninstall/task_remove_custom_handlers.cpp
src/jobs/widget_uninstall/task_remove_files.cpp
src/jobs/widget_uninstall/task_smack.cpp
src/jobs/widget_uninstall/task_uninstall_ospsvc.cpp
src/logic/installer_logic.cpp
src/misc/feature_logic.cpp
src/pkg-manager/backendlib.cpp
src/pkg-manager/pkgmgr_signal.cpp
src/wrt-installer/installer_callbacks_translate.cpp
src/wrt-installer/plugin_utils.cpp
src/wrt-installer/wrt-installer.cpp
src/wrt-installer/wrt_installer_api.cpp
tests/general/CMakeLists.txt
tests/general/TestInit.cpp

Change-Id: I1f5de63cb4237da48523dc60e4c56a7bfad5e179

10 years agoMerge "[Release] wrt-installer_0.1.128"
HOSEON LEE [Thu, 26 Sep 2013 04:41:13 +0000 (04:41 +0000)]
Merge "[Release] wrt-installer_0.1.128"

10 years agoCreate symbolic link to /usr/bin/WebProcess for app with dynamic box
Yunchan Cho [Mon, 26 Aug 2013 09:04:58 +0000 (18:04 +0900)]
Create symbolic link to /usr/bin/WebProcess for app with dynamic box

- Tizen application is registered to app_info DB on installation time, hence
  this change needs to be done in wrt-installer

[Issue]    N/A
[Problem]  wrt-plugins (or external root daemon) cannot retrieve appid properly
           based on the pid of Box WebProcess.
[Cause]    app_manager API which gets appid from pid considers only
           registered executable path on app_info DB.
           (app_manager gets executable path from /proc/<pid>/cmdline
             matched to pid of WebProcess)
[Solution] WebProcess associated with the box needs to be registered to
           app_info DB on installation time.
           1. Register symbolic link (/usr/bin/WebProcess) per box
           2. Register the box's new appid to app_info DB on installation time

Change-Id: Ic6b59de89d6428b83f705da51c791806ac94e3ce

10 years agoRevert "Register a new appid for dynamic box and its symbolic link to /usr/bin/WebPro...
Soo-Hyun Choi [Wed, 25 Sep 2013 14:45:02 +0000 (23:45 +0900)]
Revert "Register a new appid for dynamic box and its symbolic link to /usr/bin/WebProcess"

This reverts commit 03dd9db6f0df82df0df091321467fceedd22199f.

Conflicts:
src/jobs/widget_install/task_manifest_file.cpp

[Remarks]
    * If setting root_path of app manifest is enabled, a web api plugin
      using dummy root_path doesn' work well.
    * Even if wrt-installer has not set 'root_path', the web api plugin
      have been using 'root_path',
      hoping prefix of the path is /opt/usr/apps
    * In the case of preload app that has /usr/apps base path, the web api
      doesn't work well.
    * Therefore, emove code regarding root_path of app manifest,
      because there are other way to find root path of web apps.

Change-Id: Ia365aec499a5973d874114481f6be1b9b94ede93

10 years ago[Release] wrt-installer_0.1.128
sung-su.kim [Wed, 25 Sep 2013 23:58:51 +0000 (08:58 +0900)]
[Release] wrt-installer_0.1.128

Change-Id: I37ebf05d50bec5e6eda9ed643f80b89708d1d4d5

10 years agoFix Prevent issue
Tomasz Iwanek [Wed, 25 Sep 2013 07:32:19 +0000 (09:32 +0200)]
Fix Prevent issue

[Issue#]   CID: 30993, 30994, LINUXWRT-906
[Bug]      Prevent issues.
[Cause]    Dereference of null pointer
[Solution] Small fixes

[Verification] Build repository.

Change-Id: I50a21a13f31593330ca5893ff5412ed392773599

10 years agoFix build warning
Soo-Hyun Choi [Thu, 19 Sep 2013 06:22:07 +0000 (15:22 +0900)]
Fix build warning

* warning: deprecated conversion from string constant to 'char*'

[Issue#]   N/A
[Problme]  Build warning
[Cause]    deprecated conversion from string constant to 'char*'
[Solution] cast to char pointer

Change-Id: I70e7289fdde412fa1d6bc786e10dec0ed38fbcbc

10 years agoMerge "TaskConfiguration refactoring - part 1/3"
Zbigniew Kostrzewa [Mon, 23 Sep 2013 08:11:10 +0000 (08:11 +0000)]
Merge "TaskConfiguration refactoring - part 1/3"

10 years agoUse local variable 'pkgId' instead of member variable 'm_pkgId'
Soo-Hyun Choi [Thu, 19 Sep 2013 05:52:47 +0000 (14:52 +0900)]
Use local variable 'pkgId' instead of member variable 'm_pkgId'

[Issue#]   N/A
[Problem]  'm_pkgId' is given as a parameter, pkgId, of setLabelForSharedDir(),
           but it still uses 'm_pkgId' inside of setLabelForSharedDir() function.
[Cause]    Declared a local variable which was not used correctly.
[Solution] Changed 'm_pkgId' to 'pkgId'.

Change-Id: If361b7481b49ab23b69ea947d01293f93105b0e3

10 years agoTaskConfiguration refactoring - part 1/3
Tomasz Iwanek [Tue, 3 Sep 2013 12:05:07 +0000 (14:05 +0200)]
TaskConfiguration refactoring - part 1/3

[Issue#]       LINUXWRT-820
[Feature]      Refactoring
[Cause]        Useless code in form of rethroing expections in failure task.
[Solution]     This change is solving:
 - JobWidgetInstall context clean up
 - removal of ConfigureResult type from TaskConfiguration (it was addded due to eceptions out of task scope)
 - removal task_installer_failure - this was step just to throw exceptions (exception have no need to be rethrown now)

This change makes clean up/reordering in TaskConfiguration, (now called) TaskProcessWidget is just to be fixed.

[Verification] Test installation for widget:
1. Widget with invalid config.xml -> see installation fail, notification from pkmgr if installed from myfiles.
2. Widget with malformed zip file -> see installation fail, notification from pkmgr if installed from myfiles.
3. Correct instalaltion and update of widget (widget have to has version for update if using same widget).

Change-Id: I035fb917004ffdb1a2fad0e201dc1f43a1c9a8f3

10 years ago[Release] wrt-installer_0.1.127
sung-su.kim [Mon, 23 Sep 2013 01:08:05 +0000 (10:08 +0900)]
[Release] wrt-installer_0.1.127

Change-Id: Id53f8f4b583dd6664dcb84827cf905fd83a9cab1

10 years agoRemove print guid log
sung-su.kim [Tue, 17 Sep 2013 10:23:09 +0000 (19:23 +0900)]
Remove print guid log

[Issue#]   N/A
[Problem]  Not exist guid value.
[Cause]    Try to print guid before set guid.
[Solution] Remove print guid log.
   Because configuration task run before get guid value from config file.
[SCMRequest] N/A

Change-Id: Ic0e88a1fd3564b16756a78c75d9cd7ce7e947554