platform/core/appfw/launchpad.git
5 years agoRefactor Launchpad Hydra Loader 34/216234/17
Hwankyu Jhun [Tue, 22 Oct 2019 10:25:53 +0000 (19:25 +0900)]
Refactor Launchpad Hydra Loader

- Add a new API to exit the main loop of hydra loader
- Use sd-event loop instead of custom loop

Change-Id: If5030933db38ecca12bb46cb81c3ec448fc9ad08
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.9.6 84/215884/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.024112 accepted/tizen/5.5/unified/mobile/hotfix/20201027.064738 accepted/tizen/unified/20191021.071942 accepted/tizen/unified/20191021.220248 submit/tizen/20191018.031913 submit/tizen/20191018.041751 submit/tizen/20191018.073749 submit/tizen/20191020.234119 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185102 tizen_5.5.m2_release
Hwankyu Jhun [Thu, 17 Oct 2019 06:58:01 +0000 (15:58 +0900)]
Release version 0.9.6

Changes:
 - Add missing function call

Change-Id: I738b48c50b42dcd76ae00e7b0466985510c07d27
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoAdd missing function call 52/215852/1
Hwankyu Jhun [Thu, 17 Oct 2019 01:50:14 +0000 (10:50 +0900)]
Add missing function call

To separate mount namespace, security_manager_prepare_app_candidate()
has to be called.

Change-Id: Ie3a5d7e6f35b82694fd8760b4839e0e9deffec6c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.9.5 87/215687/1 accepted/tizen/unified/20191015.011957 submit/tizen/20191014.093558
Hwankyu Jhun [Mon, 14 Oct 2019 08:18:04 +0000 (17:18 +0900)]
Release version 0.9.5

Changes:
 - Fix a bug about hydra loader

Change-Id: Iee9c52e1b5b739f7e0e1c6946e2a6966e554545c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoFix a bug about hydra loader 66/215666/2
Hwankyu Jhun [Mon, 14 Oct 2019 05:54:08 +0000 (14:54 +0900)]
Fix a bug about hydra loader

After a new package is installed, the launchpad has to send SIGKILL
signal to the running hydra loaders.

Change-Id: Ia44e768c893fb8ffe1680452b3688e8fd3ccb552
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.9.4 93/215593/1 accepted/tizen/unified/20191014.005007 submit/tizen/20191011.075130
Hwankyu Jhun [Fri, 11 Oct 2019 07:50:35 +0000 (16:50 +0900)]
Release version 0.9.4

Changes:
 - Fix candidate start bug on hydra mode

Change-Id: If0822da887f8293ddc4aa780f4413964c57ca118
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoFix candidate start bug on hydra mode 85/215585/1
Hyungju Lee [Fri, 11 Oct 2019 07:05:31 +0000 (16:05 +0900)]
Fix candidate start bug on hydra mode

Change-Id: I3d71eeb7606cd73b8b251dd6bbc0f52fce3651da

5 years agoRelease version 0.9.3 83/215383/1 accepted/tizen/unified/20191008.101542 submit/tizen/20191007.234536
Hwankyu Jhun [Mon, 7 Oct 2019 23:29:41 +0000 (08:29 +0900)]
Release version 0.9.3

Changes:
 - Add AUL_HWACC variable to the environment
 - Check if the main loop is stopped properly

Change-Id: Ief4583d89d068ace81ca8d6c0023a2eb8cd2b944
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoCheck if the main loop is stopped properly 57/215357/2
Hwankyu Jhun [Mon, 7 Oct 2019 09:18:21 +0000 (18:18 +0900)]
Check if the main loop is stopped properly

If the main loop is stopped forcedly, the loader_terminate_cb callback
function must not be called.

Change-Id: Idb1e253e4be5a46fa1b954221f0d083bce7761a3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoAdd AUL_HWACC variable to the environment 58/215358/1
Hwankyu Jhun [Mon, 7 Oct 2019 09:39:00 +0000 (18:39 +0900)]
Add AUL_HWACC variable to the environment

Change-Id: I1f3b9e3444d41a5a6123ac6a1874eddebacc7e8b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.9.2 34/215134/1 accepted/tizen/unified/20191004.003613 submit/tizen/20191002.022728
Hwankyu Jhun [Wed, 2 Oct 2019 02:24:07 +0000 (11:24 +0900)]
Release version 0.9.2

Changes:
 - Print HW clock logs for performance measurement

Change-Id: I6e851e6e1643b6cba3a4547701822124828a009e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoPrint HW clock logs for performance measurement 29/215129/1
Hwankyu Jhun [Wed, 2 Oct 2019 01:42:17 +0000 (10:42 +0900)]
Print HW clock logs for performance measurement

Change-Id: I69f247fcd08e4a03912f0e2257912a8f234187bc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.9.1 25/214625/1 accepted/tizen/unified/20190925.220358 submit/tizen/20190925.002954
Hwankyu Jhun [Wed, 25 Sep 2019 00:20:55 +0000 (09:20 +0900)]
Release version 0.9.1

Changes:
 - Add a logic to specify the app id while forking

Change-Id: I731f7de141e70819c5ece3ba4a617a194b0f9f3c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoAdd a logic to specify the app id while forking 09/214109/4
Wonki Kim [Wed, 18 Sep 2019 06:40:42 +0000 (15:40 +0900)]
Add a logic to specify the app id while forking

Application runs by forking a launchpad process in Tizen.
A forked application process inherits whole information of launchpad
including atspi application name that is specified by calling elm_app_name_set.

this patch adds a logic to have the own name for each forked applications
in atspi point of view.

Change-Id: I42c892e4c8c15a67ddc5fac0bdd435305fcababe

5 years agoRelease version 0.9.0 99/214299/1 accepted/tizen/unified/20190921.125420 submit/tizen/20190920.040655
Hwankyu Jhun [Fri, 20 Sep 2019 03:44:05 +0000 (12:44 +0900)]
Release version 0.9.0

Changes:
 - Introduce new API for hydra mode:

Change-Id: If3882a81163100c9ad51215daa4c0092690f2579
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoMerge "Introduce new API for hydra mode:" into tizen
HwanKyu Jhun [Fri, 20 Sep 2019 03:43:48 +0000 (03:43 +0000)]
Merge "Introduce new API for hydra mode:" into tizen

5 years agoIntroduce new API for hydra mode: 61/212861/6
Gleb Balykov [Tue, 19 Feb 2019 14:09:18 +0000 (17:09 +0300)]
Introduce new API for hydra mode:

typedef void (*hydra_precreate_cb)(void *user_data);
typedef void (*hydra_create_cb)(void *user_data);
typedef void (*hydra_fork_cb)(void *user_data);
typedef int (*hydra_terminate_cb)(void *user_data);

typedef struct {
        hydra_precreate_cb precreate;
hydra_create_cb create;
hydra_fork_cb fork;
hydra_terminate_cb terminate;
} hydra_lifecycle_callback_s;

int launchpad_hydra_main(int argc, char **argv,
hydra_lifecycle_callback_s *hydra_callbacks,
loader_lifecycle_callback_s *callbacks,
loader_adapter_s *adapter, void *user_data);

In this mode candidates fork from one "hydra" candidate
that allows to share memory between them:

     Launchpad
 |
 | (fork initial loader in hydra mode)
                 |
 +----+
      |
   loader (hydra-mode)
      |
      | launchpad_hydra_main
      |
      | precreate (hydra callback)
      |
      | (decide run in hydra mode or call launchpad_loader_main)
      |
      | create (hydra callback)
      |
      | (initial hydra fork)
                      |
      +-------+-------+ <- initial candidate
      |               |
              |               | fork (hydra callback)
              |               |
      |               | launchpad_loader_main
      |               |
      |      (loader event loop)
      |
      |
      | _connect_to_launchpad_hydra
      |
     (hydra event loop) <- waits commands from launchpad
              |
              | (fork on request)
              |
              +-------+ <- new candidate
                      |
                      | fork (hydra callback)
                      |
                      | quit from hydra loop
                      |
                      | terminate (hydra callback)
                      |
                      | launchpad_loader_main
                      |
             (loader event loop)

Change-Id: I68566cb0e45031b9f4f8039ca2f1de09bb6dafe9

5 years agoRelease version 0.8.2 63/213963/1 submit/tizen/20190917.043123
Hwankyu Jhun [Tue, 17 Sep 2019 04:56:16 +0000 (13:56 +0900)]
Release version 0.8.2

Changes:
 - Bump up efl module version.

Change-Id: I472dc34df1afff50de5428449e24585247022602
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoMerge "Bump up efl module version." into tizen
HwanKyu Jhun [Tue, 17 Sep 2019 04:55:51 +0000 (04:55 +0000)]
Merge "Bump up efl module version." into tizen

5 years agoRelease version 0.8.1 30/213930/1 accepted/tizen/unified/20190917.110607 submit/tizen/20190917.001106
Hwankyu Jhun [Mon, 16 Sep 2019 23:45:13 +0000 (08:45 +0900)]
Release version 0.8.1

Changes:
 - Remove unnecessary setting
 - Validate a custom loader process

Change-Id: I5dc23690e8e983b8439b7b79a44077480754ae9e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoValidate a custom loader process 25/213925/1
Hwankyu Jhun [Mon, 16 Sep 2019 23:11:38 +0000 (08:11 +0900)]
Validate a custom loader process

Before sending a launch request, the launchpad checks whether the custom
loader is prepared or not. If it's not prepared, the application will be
launched by exec().

Change-Id: Ibcd04f8506c41d493f1afd35bbe5c90337eb6443
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoBump up efl module version. 13/213913/1
Yeongjong Lee [Mon, 16 Sep 2019 02:07:34 +0000 (11:07 +0900)]
Bump up efl module version.

efl version is updated to 1.23,
efl module patch should be synchronized with it.

Change-Id: I1246299e92f637baec950f5680d9e500e58983af

5 years agoRemove unnecessary setting 74/212774/2
INSUN PYO [Tue, 27 Aug 2019 00:22:53 +0000 (09:22 +0900)]
Remove unnecessary setting

Change-Id: I5836bf2a21239e8416ea02d8b72b1c5d6ccf3450
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
5 years agoRelease version 0.8.0 81/212781/1 accepted/tizen/unified/20190828.011040 submit/tizen/20190826.095036
Hwankyu Jhun [Tue, 27 Aug 2019 01:21:44 +0000 (10:21 +0900)]
Release version 0.8.0

Changes:
 - Add candidate process preparation

Change-Id: I2d2ba1ca6269cf56150f1c394c5a36e80f4c744b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoAdd candidate process preparation 12/212712/2
Tomasz Swierczek [Thu, 22 Aug 2019 12:02:45 +0000 (14:02 +0200)]
Add candidate process preparation

Setting up security context of new application requires
some actions to be done in single-threaded environment
(currently, this comes down to setting up per-app mount
namespace). This requires to be done before custom
app loader is exec'ed.

Change-Id: I90735052e8cb60d49f402dbe8c8977d14aecb875

5 years agoRelease version 0.7.1 49/212549/1 accepted/tizen/unified/20190826.113225 submit/tizen/20190826.012820
Hwankyu Jhun [Fri, 23 Aug 2019 00:22:42 +0000 (09:22 +0900)]
Release version 0.7.1

Changes:
 - Fix error log message
 - Revert "tizen: Add additional unit for "unified" user session"

Change-Id: Ie9184d61bce168277418f9ab85a852d6c127ed30
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRevert "tizen: Add additional unit for "unified" user session" 21/212321/3
Yunmi Ha [Tue, 20 Aug 2019 08:12:37 +0000 (08:12 +0000)]
Revert "tizen: Add additional unit for "unified" user session"

This reverts commit 371f1ade513b56bb89b8ecedbef16d6c3d7392c3.

We've optimized systemd-user without unified system/session.
So, we revert the patch for unified system/session.

Change-Id: I9102ccb19b82e3321c4e67d5f30c09643a85e585

5 years agoFix error log message 70/212470/1
Hwankyu Jhun [Thu, 22 Aug 2019 01:46:01 +0000 (10:46 +0900)]
Fix error log message

Change-Id: I39ca41aeb806388c4e8a37ccf1c4c913668d133e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.7.0 71/212271/1 accepted/tizen/unified/20190820.115039 submit/tizen/20190820.014631
Hwankyu Jhun [Tue, 20 Aug 2019 01:23:49 +0000 (10:23 +0900)]
Release version 0.7.0

Changes:
 - Add a configuration file to mofidy memory status key-value pairs

Change-Id: I08eba77d99e3bea1a5bf70c27b3cb759ec7488ec
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoAdd a configuration file to mofidy memory status key-value pairs 02/212102/6
Hwankyu Jhun [Wed, 14 Aug 2019 07:34:25 +0000 (16:34 +0900)]
Add a configuration file to mofidy memory status key-value pairs

Change-Id: Iae9639085294824841d73b18ee2ba6c2dfece364
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.6.2 71/209671/1 accepted/tizen/unified/20190710.103456 submit/tizen/20190710.040203
Hwankyu Jhun [Wed, 10 Jul 2019 03:15:52 +0000 (12:15 +0900)]
Release version 0.6.2

Changes:
 - Change the config value of the systemd service ("false" -> "no")

Change-Id: I31f7407749786f8f7318d1701b8c75efce01150c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoChange the config value of the systemd service ("false" -> "no") 69/208369/2
INSUN PYO [Mon, 24 Jun 2019 02:06:09 +0000 (11:06 +0900)]
Change the config value of the systemd service ("false" -> "no")

"no" and "false" have the same meaning, but the document has "no".
Also, since the parsing order is "no" first, there is some performance gain.

Change-Id: Icd678619d7c3d475fd081b463046bfd2277256fd

5 years agoRelease version 0.6.1 83/205283/1 accepted/tizen/unified/20190503.075035 submit/tizen/20190502.044046
Junghoon Park [Thu, 2 May 2019 04:18:04 +0000 (13:18 +0900)]
Release version 0.6.1

Changes:
 - tizen: Add additional unit for "unified" user session
 - Merge "tizen: Add additional unit for "unified" user session" into tizen

Change-Id: I09338a3aba3f5c21d3e986db3735112f6f7dbc0f
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
5 years agoMerge "tizen: Add additional unit for "unified" user session" into tizen
Junghoon Park [Thu, 2 May 2019 04:15:32 +0000 (04:15 +0000)]
Merge "tizen: Add additional unit for "unified" user session" into tizen

5 years agoRelease version 0.6.0 59/205159/1 accepted/tizen/unified/20190430.113456 submit/tizen/20190430.020617
Hwankyu Jhun [Tue, 30 Apr 2019 01:13:36 +0000 (10:13 +0900)]
Release version 0.6.0

Changes:
 - Send child process info

Change-Id: If3d1e7b6e0ea0b0030d4a4809120e342bebd7f14
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agotizen: Add additional unit for "unified" user session 36/204136/2
Mateusz Moscicki [Fri, 19 Apr 2019 11:48:48 +0000 (13:48 +0200)]
tizen: Add additional unit for "unified" user session

The unified user session is about moving user session units, managed by
systemd --user, to main systemd, where it's managed as part of newly
created user@.target.

user@.target will contain same units as previously available in user/,
with same UID and environment setup.  systemd instance is used for unit
to be able to specify UID (inherited from user@.target).

The rationale behind this work is following:

* TV profile would benefit from remove user session support
* boot time optimization requirements, due to:

   + 'systemd --user' taking 1s its own startup that could be used for
     unit startup
   + ability to better rearrange units if these managed by one systemd
     instance

Unit installed by this commit will not be used till user login mechanism
will be changed in systemd package (via changing pam_systemd to start
user@.target, rather than user@.service).

Change-Id: If68bb07b8de2a66356d13c8999126c4387ddd3bc

5 years agoSend child process info 12/203112/6
Hwankyu Jhun [Wed, 10 Apr 2019 04:31:30 +0000 (13:31 +0900)]
Send child process info

Whild creating a child process, the child process sends the signal
to amd. To manage window size, this is needed for window-manager.

Change-Id: I616906062920657d948293c34a64adc07561073a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.5.30 76/203176/1 accepted/tizen/unified/20190411.040524 submit/tizen/20190410.100752
Hwankyu Jhun [Wed, 10 Apr 2019 10:06:00 +0000 (19:06 +0900)]
Release version 0.5.30

Changes:
 - Add access label on launchpad-process-pool

Change-Id: If8c1baf721ae97c6e3993416c77f10bac8951714
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoAdd access label on launchpad-process-pool 67/203167/1
Hwankyu Jhun [Wed, 10 Apr 2019 08:37:17 +0000 (17:37 +0900)]
Add access label on launchpad-process-pool

Change-Id: If6a18fba774f77d4e4ac2f2218ab4ecbdeaa6752
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.5.29 22/202822/1 accepted/tizen/unified/20190406.011026 submit/tizen/20190405.011027
Hwankyu Jhun [Thu, 4 Apr 2019 23:30:03 +0000 (08:30 +0900)]
Release version 0.5.29

Changes:
 - Fix wrong log message

Change-Id: I43518ba931bda4e7fc4f2b68e729844d2615432e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoFix wrong log message 40/202640/1
Hwankyu Jhun [Tue, 2 Apr 2019 06:13:25 +0000 (15:13 +0900)]
Fix wrong log message

Change-Id: I673a1d3512c3d83d560d9e89ff0adb5c9bc30bfa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.5.28 20/202620/1 accepted/tizen/unified/20190402.144740 submit/tizen/20190402.065552
Hwankyu Jhun [Tue, 2 Apr 2019 01:13:15 +0000 (10:13 +0900)]
Release version 0.5.28

Changes:
 - Add a print for library loading start and end time

Change-Id: Ic73ff89841c4752f5a8d14f1922d2bb9e3a8adcb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoAdd a print for library loading start and end time 65/202565/1
Junghoon Park [Mon, 1 Apr 2019 02:53:35 +0000 (11:53 +0900)]
Add a print for library loading start and end time

Change-Id: I760bcaa3ceb2e7a745993610e5ef17d3c44ca229
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
5 years agoRelease version 0.5.27 14/202514/1 accepted/tizen/unified/20190401.224953 submit/tizen/20190401.000056
Hwankyu Jhun [Fri, 29 Mar 2019 08:14:13 +0000 (17:14 +0900)]
Release version 0.5.27

Changes:
 - Bump up efl module version.

Change-Id: Ie3dce2b70bfe9ba65b43f7e74873976c66a29023
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoBump up efl module version. 69/202469/1
Hermet Park [Fri, 29 Mar 2019 02:19:33 +0000 (11:19 +0900)]
Bump up efl module version.

efl version is updated to 1.22,
efl module patch should be synchronized with it.

Change-Id: I2894143b8e40c1d28d70296a7b81526a63e09170

5 years agoRelease version 0.5.26 86/201086/1 accepted/tizen/unified/20190311.072529 submit/tizen/20190308.063707
Hwankyu Jhun [Fri, 8 Mar 2019 06:34:49 +0000 (15:34 +0900)]
Release version 0.5.26

Changes:
 - Add exceptions for debugging
 - Add a logger socket for printing errors

Change-Id: Iecf6e71d2faea67fbfcdef66f6cc097290e4b452
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoAdd a logger socket for printing errors 32/200832/2
Hwankyu Jhun [Tue, 5 Mar 2019 01:07:57 +0000 (10:07 +0900)]
Add a logger socket for printing errors

If execv() call is failed, the child process sends messages to
launchpad. And then, launchpad prints the messages by secure dlog.

Change-Id: I55be076dd095efb9d7addfa36b84dc2362d9daf7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoAdd exceptions for debugging 87/200687/1
Hwankyu Jhun [Thu, 28 Feb 2019 07:19:31 +0000 (16:19 +0900)]
Add exceptions for debugging

Change-Id: Iad5fccc7f0b8f88347691c6598339fc1e7c52741
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.5.25 94/198894/1 accepted/tizen/unified/20190131.161435 submit/tizen/20190131.010812
Hwankyu Jhun [Thu, 31 Jan 2019 01:00:46 +0000 (10:00 +0900)]
Release version 0.5.25

Changes:
 - Fix a bug about handling loader info

Change-Id: Ifce07a71e86a39b79a79aafc5623590920196893
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoFix a bug about handling loader info 87/198887/1
Hwankyu Jhun [Thu, 31 Jan 2019 00:21:47 +0000 (09:21 +0900)]
Fix a bug about handling loader info

If there is a loader that has not been used even once, it can be executed
with the wrong loader at re-run. Because, the default value of the type
is zero and the first loader is also zero.
This patch changes the reference value.

Change-Id: I2df4d632cb1e8a3268ef0edf53a65b8cfe475513
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.5.24 40/198040/1 accepted/tizen/unified/20190128.061245 submit/tizen/20190118.025628
Hwankyu Jhun [Fri, 18 Jan 2019 02:45:14 +0000 (11:45 +0900)]
Release version 0.5.24

Changes:
 - Fix static analysis issues
 - Prepare ID file

Change-Id: I6c70eae7bc35fdc1f32df7a5633be8ebfa8182b7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoPrepare ID file 03/197903/1
Hwankyu Jhun [Thu, 17 Jan 2019 04:41:27 +0000 (13:41 +0900)]
Prepare ID file

Before executing an application, the child process creates the ID file.
If's for Application Manager.

Change-Id: I4e561b80071c12fb786ca89cab8a968d25e159ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoFix static analysis issues 59/197759/2
Hwankyu Jhun [Wed, 16 Jan 2019 06:27:36 +0000 (15:27 +0900)]
Fix static analysis issues

- Checks return values
- Checks the file descriptor

Change-Id: Id9bc94e63b44e959f8c1cfeb20965b44724fa592
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.5.23 73/197373/1 accepted/tizen/5.0/unified/20190111.055300 accepted/tizen/unified/20190111.055243 submit/tizen/20190111.014100 submit/tizen_5.0/20190111.014305
Junghoon Park [Fri, 11 Jan 2019 01:37:33 +0000 (10:37 +0900)]
Release version 0.5.23

Changes:
 - Add exception handler

Change-Id: I00bad815a119a3239dd4433c527958cfa194defe
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
5 years agoAdd exception handler 64/197364/1
Junghoon Park [Fri, 11 Jan 2019 01:27:25 +0000 (10:27 +0900)]
Add exception handler

Change-Id: Ifeef5d88ee8596fea184cbbf0bd7f4802baa5461
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
5 years agoRelease version 0.5.22 56/195756/1 accepted/tizen/5.0/unified/20181218.063148 accepted/tizen/unified/20181218.063144 submit/tizen/20181218.022921 submit/tizen_5.0/20181218.022944
Hwankyu Jhun [Tue, 18 Dec 2018 02:05:13 +0000 (11:05 +0900)]
Release version 0.5.22

Changes:
 - Remove calling signal finalization

Change-Id: I950f5dba655dc9352d372651ce16aa2b38e5abfa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRemove calling signal finalization 41/195741/2
Hwankyu Jhun [Mon, 17 Dec 2018 23:10:19 +0000 (08:10 +0900)]
Remove calling signal finalization

Sometimes, the app process is deadlock while calling the g_object_unref().
While calling fork(), gdbus thread of the parent process has a mutex
locked. In the child, the mutex is in the locked state.
(locked by a nonexistent thread and thus can never be unlocked.)

Backtrace:
 - #0  0xb6132900 in syscall () from /usr/lib/libc-2.24.so
 - #1  0xb63aab90 in g_mutex_lock_slowpath () from /usr/lib/libglib-2.0.so.0.5200.2
 - #2  0xb635bbe4 in g_source_destroy_internal () from /usr/lib/libglib-2.0.so.0.5200.2
 - #3  0xb657f510 in _g_kdbus_worker_stop () from /usr/lib/libgio-2.0.so.0.5200.2
 - #4  0xb65365d4 in g_dbus_connection_dispose () from /usr/lib/libgio-2.0.so.0.5200.2
 - #5  0xb6434720 in g_object_unref () from /usr/lib/libgobject-2.0.so.0.5200.2
 - #6  0x004e1361 in _signal_fini () from /usr/bin/launchpad-process-pool
 - #7  0x004dac9d in __exec_app_process () from /usr/bin/launchpad-process-pool
 - #8  0x004d9f0f in __fork_app_process () from /usr/bin/launchpad-process-pool
 - #9  0x004dc01b in __handle_launch_event () from /usr/bin/launchpad-process-pool

Change-Id: Iaad316621111f2494381f440c3a7fe0ab4473731
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.5.21 41/194141/1 accepted/tizen/5.0/unified/20181130.064833 accepted/tizen/unified/20181130.064954 submit/tizen/20181129.075910 submit/tizen_5.0/20181129.075929
Hwankyu Jhun [Thu, 29 Nov 2018 08:49:39 +0000 (17:49 +0900)]
Release version 0.5.21

Changes:
 - Remove vc elm initialization

Change-Id: Iadacf5f319d71f0f54337f39c9d4306b594376f4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRemove vc elm initialization 71/193971/1
Hwankyu Jhun [Wed, 28 Nov 2018 04:12:20 +0000 (13:12 +0900)]
Remove vc elm initialization

Change-Id: Ic4bd182b44311fe0515d516d084dd2857d20c369
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.5.20 83/193083/1 accepted/tizen/5.0/unified/20181115.063638 accepted/tizen/unified/20181120.061317 submit/tizen/20181114.082424 submit/tizen/20181115.070951 submit/tizen/20181119.114804 submit/tizen_5.0/20181114.082508
Hwankyu Jhun [Wed, 14 Nov 2018 09:45:27 +0000 (18:45 +0900)]
Release version 0.5.20

Changes:
 - Remove duplicated pkgconfig file installation

Change-Id: Ib6f44e36dd409a39be454480b60b331343a65cc4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRemove duplicated pkgconfig file installation 63/193063/1
Hwankyu Jhun [Wed, 14 Nov 2018 07:53:38 +0000 (16:53 +0900)]
Remove duplicated pkgconfig file installation

Change-Id: I23644821bc2cf44a0db5ffbeb75112c663492dbe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.5.19 21/193021/1 submit/tizen/20181113.235226 submit/tizen_5.0/20181114.004421
Hwankyu Jhun [Wed, 14 Nov 2018 03:05:41 +0000 (12:05 +0900)]
Release version 0.5.19

Changes:
 - Separate launchpad libary from launchpad package

Change-Id: I33c21653b2b643c9d6361a75849931b83c271079
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoSeparate launchpad libary from launchpad package 33/192933/2
Hwankyu Jhun [Tue, 13 Nov 2018 05:01:01 +0000 (14:01 +0900)]
Separate launchpad libary from launchpad package

Adds packages:
 - liblaunchpad
 - liblaunchpad-devel

Change-Id: Id83f2dd87dffa16990d7654ad2ea2f12d27985a8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoRelease version 0.5.18 82/192682/1 accepted/tizen/5.0/unified/20181109.062726 accepted/tizen/unified/20181108.074612 submit/tizen/20181108.041110 submit/tizen_5.0/20181108.041133
Hwankyu Jhun [Thu, 8 Nov 2018 01:53:55 +0000 (10:53 +0900)]
Release version 0.5.18

Changes:
 - Update preload list

Change-Id: Ibfea84f8e36c6cc958e2bf839fdf70e7c19735b4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoUpdate preload list 49/191149/3
Hwankyu Jhun [Fri, 12 Oct 2018 01:32:42 +0000 (10:32 +0900)]
Update preload list

EFL version is updated to 1.21.

Change-Id: Ic86ac1149d3525f142c82f9fef41625a0c4b3582
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.17 34/189734/1 accepted/tizen/5.0/unified/20181102.013525 accepted/tizen/unified/20180920.155204 submit/tizen/20180920.055701 submit/tizen_5.0/20181101.000002
Hwankyu Jhun [Thu, 20 Sep 2018 05:53:01 +0000 (14:53 +0900)]
Release version 0.5.17

Changes:
 - Adjust checking cap list

Change-Id: Ibb4f850caf8b3d8e09e9a7f770a5f281598f5e91
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoAdjust checking cap list 31/189731/1
Hwankyu Jhun [Thu, 20 Sep 2018 05:44:01 +0000 (14:44 +0900)]
Adjust checking cap list

- Removes checking cap_sys_admin existence

Change-Id: Iae1da549f9fb0d379e02ecf11abeb83815ebbc8b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.16 42/189042/1 accepted/tizen/unified/20180914.073039 submit/tizen/20180913.014955
Hwankyu Jhun [Thu, 13 Sep 2018 03:17:22 +0000 (12:17 +0900)]
Release version 0.5.16

Changes:
 - Prevent loader execution by any process

Change-Id: I59025b26274580e6e6eb0dd590d86468b6115343
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoPrevent loader execution by any process 31/188931/1
Hwankyu Jhun [Wed, 12 Sep 2018 02:59:02 +0000 (11:59 +0900)]
Prevent loader execution by any process

The loader library checks capabilities to checks
whether the process is executed by launchpad-process-pool or not.
The access smack label is added on loader executable file.

Change-Id: I1943ff4076a8296a78891fc4eb3434b4578c6057
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.15 03/188203/1 accepted/tizen/unified/20180904.180617 submit/tizen/20180903.090516
Hwankyu Jhun [Mon, 3 Sep 2018 04:46:55 +0000 (13:46 +0900)]
Release version 0.5.15

Changes:
 - Add log messages

Change-Id: Iec3c5efaa49ce1dd9065770221aa4f2f14dc2513
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoAdd log messages 18/188018/1
Junghoon Park [Thu, 30 Aug 2018 10:08:40 +0000 (19:08 +0900)]
Add log messages

Change-Id: I05bde3a891f7603d4aa4607abef920b1898f825a
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
6 years agoRelease version 0.5.14 84/187984/1 accepted/tizen/unified/20180831.061605 submit/tizen/20180830.062806
Junghoon Park [Thu, 30 Aug 2018 06:21:38 +0000 (15:21 +0900)]
Release version 0.5.14

Changes:
 - Adjust timeout value

Change-Id: I28a45a7a874a354533f811f77f6540479ee41866
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
6 years agoAdjust timeout value 75/187975/1
Junghoon Park [Thu, 30 Aug 2018 05:41:05 +0000 (14:41 +0900)]
Adjust timeout value

Change-Id: I91504fed2a70dac1d0797256dd52b815086da91a
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
6 years agoRelease version 0.5.13 15/187315/1 accepted/tizen/unified/20180823.072107 submit/tizen/20180822.031051
Hwankyu Jhun [Wed, 22 Aug 2018 02:43:52 +0000 (11:43 +0900)]
Release version 0.5.13

Changes:
 - Use strerror_r function
 - Check bundle key

Change-Id: I4de5af89eea14c7a05c9a467bdd5143bbd075235
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoCheck bundle key 01/187301/1
Hwankyu Jhun [Wed, 22 Aug 2018 01:12:56 +0000 (10:12 +0900)]
Check bundle key

If the key of bundle has prefix(AUL or APP_SVC), Launchpad
doesn't add the extra data.

Change-Id: I6396d230b8c2d0309e2a0e35a7436043ce97e0e9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoUse strerror_r function 55/185955/2
Hwankyu Jhun [Sun, 5 Aug 2018 22:46:50 +0000 (07:46 +0900)]
Use strerror_r function

Change-Id: Icd59265066036fc0b4a5417e882ecb57920ab1e9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.12 20/185720/1 accepted/tizen/unified/20180802.090241 submit/tizen/20180801.235658
Hwankyu Jhun [Wed, 1 Aug 2018 23:47:16 +0000 (08:47 +0900)]
Release version 0.5.12

Changes:
 - Send app2sd request

Change-Id: Ia1830fd7c66e90404866f9ee296af43282bd9cda
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoSend app2sd request 88/185488/2
Hwankyu Jhun [Tue, 31 Jul 2018 06:00:42 +0000 (15:00 +0900)]
Send app2sd request

Before launching an application, the child process sends the request to
enable external storage if the application is installed in external
storage.

Change-Id: I956fad859c1fed16a26d734291b2ddb7d670673e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.11 43/184243/2 accepted/tizen/unified/20180717.143431 submit/tizen/20180717.052850
Hwankyu Jhun [Tue, 17 Jul 2018 01:41:48 +0000 (10:41 +0900)]
Release version 0.5.11

Changes:
 - Check received data length
 - Fix a bug about checking slot state

Change-Id: I15f7075ba88b1c798d813dc48e400ae6877899f2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoFix a bug about checking slot state 60/184260/3
Hwankyu Jhun [Tue, 17 Jul 2018 00:09:40 +0000 (09:09 +0900)]
Fix a bug about checking slot state

Change-Id: Ia66d26ca5eb80b2fb820d50c3ff13cb531ccdadd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoCheck received data length 13/184113/3
Hwankyu Jhun [Sun, 15 Jul 2018 23:37:02 +0000 (08:37 +0900)]
Check received data length

Change-Id: Iac54a11517f7919a17fd4edf11b2f9f667495c4e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.9 62/183762/1 accepted/tizen/unified/20180713.160158 submit/tizen/20180711.004229
Hwankyu Jhun [Wed, 11 Jul 2018 00:26:48 +0000 (09:26 +0900)]
Release version 0.5.9

Changes:
 - Fix a bug about loader creation

Change-Id: I7a8a2918bb394c4553d8b291a645158347fdc30c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoFix a bug about loader creation 81/183681/3
Hwankyu Jhun [Tue, 10 Jul 2018 03:09:00 +0000 (12:09 +0900)]
Fix a bug about loader creation

Even though the loader processs is running, a new loader process
is started by the timeout handler.
To prevent duplication, this patch adds exceptions.

Change-Id: If47bad339e88c7d30c346131cb304b61e6d68acd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.8 63/182263/1 accepted/tizen/unified/20180622.122718 submit/tizen/20180622.011102 submit/tizen/20180622.034638
Hwankyu Jhun [Fri, 22 Jun 2018 01:04:35 +0000 (10:04 +0900)]
Release version 0.5.8

Changes:
 - Add sequencer for the loader creation

Change-Id: Iefb1ba3b9eb49803955abd60b00286aecb6bb28f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoAdd sequencer for the loader creation 37/182037/5
Hwankyu Jhun [Wed, 20 Jun 2018 04:26:56 +0000 (13:26 +0900)]
Add sequencer for the loader creation

After this patch is applied, the loader creation is sequential.

Change-Id: I7175f04918bb099c689d4b018103f377ff9a6970
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.7 01/181901/1 accepted/tizen/unified/20180619.142006 submit/tizen/20180619.003614
Hwankyu Jhun [Tue, 19 Jun 2018 00:28:10 +0000 (09:28 +0900)]
Release version 0.5.7

Changes:
 - Add a new dectection method

Change-Id: Idd7be79017fde7792bcebb81ee672d024eb27370
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoAdd a new dectection method 47/181647/2
Hwankyu Jhun [Fri, 15 Jun 2018 08:43:16 +0000 (17:43 +0900)]
Add a new dectection method

METHOD_INSTALL is added to handle slot update events.
The loader creation must be sequential.

Change-Id: I3d279999ab342b84b2056ac0ce242d24cdb4b8e6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.6 12/181512/1 accepted/tizen/unified/20180615.071908 submit/tizen/20180614.113922
Hwankyu Jhun [Thu, 14 Jun 2018 09:55:24 +0000 (18:55 +0900)]
Release version 0.5.6

Changes:
 - Change TEP mount check function

Change-Id: I06c32d9f3923cfc550f4ac46e44df1444681c5ad
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoChange TEP mount check function 92/181292/2
Hwankyu Jhun [Tue, 12 Jun 2018 01:04:26 +0000 (10:04 +0900)]
Change TEP mount check function

In a child process, the usable gdbus threads cannot be found.
This patch uses libdbus instead of gdbus.

Change-Id: Id8df46a15984c3a38c0725bebd57968fbb147112
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.5 54/180954/1 accepted/tizen/unified/20180611.015335 submit/tizen/20180607.021807
Junghoon Park [Thu, 7 Jun 2018 01:02:22 +0000 (10:02 +0900)]
Release version 0.5.5

Changes:
 - Add an exception handling about debug mode
 - Fix debug mode launch

Change-Id: I35fec49f221e39f9e8deb51e57c590c440363f64
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
6 years agoAdd an exception handling about debug mode 66/180766/1
Hwankyu Jhun [Mon, 4 Jun 2018 05:26:42 +0000 (14:26 +0900)]
Add an exception handling about debug mode

If the launch request is for debugging an application,
the launchpad doesn't prepare the app socket. Some debugger
closes all fds before executing the application.

Change-Id: I3342e8270a4ff552139d6da51b3132ec1a957b6a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoFix debug mode launch 94/180294/3
Hwankyu Jhun [Mon, 28 May 2018 05:39:23 +0000 (14:39 +0900)]
Fix debug mode launch

- Changes new argc size to avoid EFAULT(Badd address) error
- Redirect stdin

Change-Id: I6f875795d3b8f8deec260920e27730d4c8cf3ad3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.4 21/179321/1 accepted/tizen/unified/20180518.060525 submit/tizen/20180517.074158
Hwankyu Jhun [Thu, 17 May 2018 06:32:54 +0000 (15:32 +0900)]
Release version 0.5.4

Changes:
 - Adjust to security_manager_cleanup_app() API change

Change-Id: I53ebcac439a543042110274a8b53334dbdad63b4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoAdjust to security_manager_cleanup_app() API change 93/179093/2
Dariusz Michaluk [Tue, 15 May 2018 15:56:50 +0000 (17:56 +0200)]
Adjust to security_manager_cleanup_app() API change

Change-Id: I58b19f9ba7e9f36f0d8a74656d0d75cc5338c40d

6 years agoRelease version 0.5.3 69/178769/1 accepted/tizen/unified/20180514.094214 submit/tizen/20180514.035338
Hwankyu Jhun [Mon, 14 May 2018 03:52:42 +0000 (12:52 +0900)]
Release version 0.5.3

Changes:
 - Remove voice-control-elm dependency

Change-Id: I0980b7104ab190000261256c11593772d27d7cb6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRemove voice-control-elm dependency 22/178622/2
Hwankyu Jhun [Fri, 11 May 2018 02:21:49 +0000 (11:21 +0900)]
Remove voice-control-elm dependency

Some devices don't support voice-control-elm library.
The launchpad-loader calls dlopen() to use voice-control-elm APIs.

Change-Id: I082f56a67bce519d6a1c15cb0a446683293d46e9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.2 53/178453/1 accepted/tizen/unified/20180511.073912 submit/tizen/20180510.063943
Hwankyu Jhun [Thu, 10 May 2018 06:21:38 +0000 (15:21 +0900)]
Release version 0.5.2

Changes:
 - Fix the result of PAD_CMD_PING

Change-Id: I3e8b7444a3fe0d94fa2467c3a4db66e3a92045d7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoFix the result of PAD_CMD_PING 28/178428/2
Hwankyu Jhun [Thu, 10 May 2018 04:56:26 +0000 (13:56 +0900)]
Fix the result of PAD_CMD_PING

Requires:
 - https://review.tizen.org/gerrit/178427 [amd]
 - https://review.tizen.org/gerrit/178428 [launchpad]

Change-Id: I9cc30b90fb7d8424e53033ef0ec1cf5f7d24e39c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.5.1 19/177819/1 accepted/tizen/unified/20180507.110813 submit/tizen/20180504.054056
Hwankyu Jhun [Fri, 4 May 2018 04:04:40 +0000 (13:04 +0900)]
Release version 0.5.1

Changes:
 - Add an exception handling about socket creation

Change-Id: Ief15e05abc6c9411c5a75b248fa1c5a9dbc1f3f7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoAdd an exception handling about socket creation 76/177676/4
Hwankyu Jhun [Thu, 3 May 2018 00:18:26 +0000 (09:18 +0900)]
Add an exception handling about socket creation

If the path exists when creating a socket, the function returns
a negative error. And then, the child process is terminated.

Change-Id: I4d9c3967bdb851f791a5ec74ef73ca36113d636b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>