platform/core/appfw/launchpad.git
4 years agoFix wrong implementation 62/239462/1
Hwankyu Jhun [Mon, 27 Jul 2020 02:34:19 +0000 (11:34 +0900)]
Fix wrong implementation

Change-Id: I9629c44391733c43ef8d9ff00cf428cb68fdec52
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix Launchpad Library 32/239132/3
Hwankyu Jhun [Wed, 22 Jul 2020 04:46:18 +0000 (13:46 +0900)]
Fix Launchpad Library

- Removes calling _launchpad_plugin_prepare_app()

Change-Id: I9f4d1737c446c4749f4a7e454add23145487fd68
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.11 49/239149/1 accepted/tizen/5.5/unified/20200724.222808 accepted/tizen/unified/20200723.161057 submit/tizen/20200722.061159 submit/tizen/20200722.224348 submit/tizen_5.5/20200722.225143
Hwankyu Jhun [Wed, 22 Jul 2020 06:01:09 +0000 (15:01 +0900)]
Release version 0.15.11

Changes:
 - Fix Memory Monitor

Change-Id: I280478744858d4e95e5bb27ec929e5e9fe4be1c8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix Memory Monitor 28/239128/1
Hwankyu Jhun [Wed, 22 Jul 2020 03:56:07 +0000 (12:56 +0900)]
Fix Memory Monitor

If previous memory status is equal to current memory status,
the callback function is not called.

Change-Id: Ie5c96ef10e19a4f0614b33ec6331ef0db01349c5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.10 80/238880/2 accepted/tizen/unified/20200721.042537 submit/tizen/20200720.051026
Changgyu Choi [Mon, 20 Jul 2020 04:54:56 +0000 (13:54 +0900)]
Release version 0.15.10

Changes:
 - Add to check pid from __accept_candidate_process()

Change-Id: I297cd5cb2a16f32fef93a4d1536e9325a5f2c7f5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 years agoAdd to check pid from __accept_candidate_process() 59/238859/7
Changgyu Choi [Mon, 20 Jul 2020 01:36:31 +0000 (10:36 +0900)]
Add to check pid from __accept_candidate_process()

Check whether different cpc and received socket pid,
when accept client socket.
If they are different, It is invalid accept.

Change-Id: I2f2a3e9896fc07fc6ee77d4ca77d47042fa6d958
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 years agoRelease version 0.15.9 27/238327/1 accepted/tizen/unified/20200715.002112 submit/tizen/20200713.010215 submit/tizen/20200714.042458
Changgyu Choi [Mon, 13 Jul 2020 00:56:13 +0000 (09:56 +0900)]
Release version 0.15.9

Changes:
 - Fix Launchpad Recovery Feature

Change-Id: I318cfd0a3f062ce0305c8551c98437d0b7fcb884
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 years agoFix Launchpad Recovery Feature 46/238246/5
Changgyu Choi [Fri, 10 Jul 2020 02:45:03 +0000 (11:45 +0900)]
Fix Launchpad Recovery Feature

Add to select ".launchpad-process-pool-sock".
".luanchpad-recovery-sock" is just used socket activation for recovery.

Change-Id: I73e5dd59bbb99b2e24f25a84437284742dc337fe
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 years agoRelease version 0.15.8 08/237408/1 accepted/tizen/unified/20200702.141807 submit/tizen/20200630.222212
Hwankyu Jhun [Tue, 30 Jun 2020 06:12:45 +0000 (15:12 +0900)]
Release version 0.15.8

Changes:
 - Include missing header file

Change-Id: I2e260900474094b74e5299754864b6a190234da3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoInclude missing header file 04/237404/1
Hwankyu Jhun [Tue, 30 Jun 2020 05:38:01 +0000 (14:38 +0900)]
Include missing header file

Change-Id: I5c671b8fc280457632fdf163104b2bf1de8626f6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.7 93/237393/1 accepted/tizen/unified/20200701.032316 submit/tizen/20200630.042116
Hwankyu Jhun [Tue, 30 Jun 2020 04:19:16 +0000 (13:19 +0900)]
Release version 0.15.7

Changes:
 - Change size method to 'sizeof'
 - Remove unused CMakeLists.txt file
 - Revert "Change size method to 'sizeof'"
 - Handle returned events
 - Add a file log for debugging launchpad
 - Change SMACK label of the log file

Change-Id: I06a676ee851b0a678496c1f4b4c53843328187f5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoChange SMACK label of the log file 90/237390/2
Hwankyu Jhun [Tue, 30 Jun 2020 03:53:53 +0000 (12:53 +0900)]
Change SMACK label of the log file

Change-Id: Ib07f8c8b69065a817626557c2f1dc18698ff9941
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoAdd a file log for debugging launchpad 31/237231/5
Hwankyu Jhun [Fri, 26 Jun 2020 06:31:58 +0000 (15:31 +0900)]
Add a file log for debugging launchpad

"/var/log/appfw/launchpad/launchpad.log" is added.

Change-Id: I280d010bb048671c66f4fe0eed698977335a4a61
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoHandle returned events 24/237224/2
Hwankyu Jhun [Fri, 26 Jun 2020 05:33:53 +0000 (14:33 +0900)]
Handle returned events

When IO_ERR, IO_HUP or IO_NVAL is delivered, Launchpad tries to recover
the socket. If it's failed, Launchpad uses abort() to terminate itself
abnormally.

Change-Id: I0680c5a6b1899d3dac22459361a927a2591478fc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRevert "Change size method to 'sizeof'" 45/237145/5
changyu.choi [Thu, 25 Jun 2020 08:55:03 +0000 (17:55 +0900)]
Revert "Change size method to 'sizeof'"

This reverts commit 6813b19565277ac4102d3b97bc0e5039ad1cc5f5.

Change-Id: I242026d861b6f9dcc6a3fc847ffdb9aad68682a0
Signed-off-by: changyu-choi <changyu.choi@samsung.com>
4 years agoRemove unused CMakeLists.txt file 55/237155/2
Hwankyu Jhun [Thu, 25 Jun 2020 09:57:56 +0000 (18:57 +0900)]
Remove unused CMakeLists.txt file

Change-Id: I1c27ed409b9cffe24cef5362e83a0df8cdfe3265
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoChange size method to 'sizeof' 09/237109/1
changyu.choi [Thu, 25 Jun 2020 05:35:49 +0000 (14:35 +0900)]
Change size method to 'sizeof'

Change-Id: I22ae01445be913c5c4b8c890bd899bad56f71f1a
Signed-off-by: changyu-choi <changyu.choi@samsung.com>
4 years agoRelease version 0.15.6 73/236973/1 accepted/tizen/unified/20200624.130155 submit/tizen/20200623.235138
Hwankyu Jhun [Tue, 23 Jun 2020 23:36:50 +0000 (08:36 +0900)]
Release version 0.15.6

Changes:
 - Check the error value Before printing error logs
 - Fix SMACK error

Change-Id: I9d40a9bd655b421d2e71e9e74247b8847a56a408
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix SMACK error 72/236972/3
Hwankyu Jhun [Tue, 23 Jun 2020 22:33:45 +0000 (07:33 +0900)]
Fix SMACK error

When calling sd_journal_stream_fd() is failed, the child process used
the fds of the parent. It causes SMACK errors.
To prevent SMACK errors, the child process uses "/dev/null" for standard I/O
redirection if calling sd_journal_stream_fd() is failed.

Change-Id: Ia1816c552c8d417317d031d3945c9f89a86edb40
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoCheck the error value Before printing error logs 54/236854/1
Hwankyu Jhun [Tue, 23 Jun 2020 01:21:15 +0000 (10:21 +0900)]
Check the error value Before printing error logs

If the error value is -ENOENT(No such file or directory), the process
doesn't print the error logs.

Change-Id: I15548f966b4c28928f0f460c4be5a611df57503d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.5 13/236613/1 accepted/tizen/unified/20200619.121748 submit/tizen/20200618.233503
Hwankyu Jhun [Thu, 18 Jun 2020 23:33:49 +0000 (08:33 +0900)]
Release version 0.15.5

Changes:
 - Limit error log from __get_connection
 - Reduce printing logs
 - Fix bugs about sending dbus signal
 - Fix standard I/O redirection

Change-Id: If8157766ddc65e2c9ca55f61be76e825faacb6c5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix standard I/O redirection 84/236584/8
Hwankyu Jhun [Thu, 18 Jun 2020 08:18:39 +0000 (17:18 +0900)]
Fix standard I/O redirection

If calling sd_journal_stream_fd() is failed, the child process uses
the interitance of file descriptors.

Change-Id: Ia37c1ca586d735280cc07298088c00c93815b2aa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix bugs about sending dbus signal 10/236610/3
Hwankyu Jhun [Thu, 18 Jun 2020 22:07:43 +0000 (07:07 +0900)]
Fix bugs about sending dbus signal

If flushing a pending signal is failed, launchpad should not create and
store a new pending item from it.

Change-Id: Ieb72efd4c16d92610f1aa7a20dc741cd16e0998b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoReduce printing logs 12/236612/3
Hwankyu Jhun [Thu, 18 Jun 2020 22:45:36 +0000 (07:45 +0900)]
Reduce printing logs

Change-Id: I8da9db42385a395aaf4a36d83ff27d48ffe1f7e8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoLimit error log from __get_connection 86/236586/4
changyu-choi [Thu, 18 Jun 2020 08:16:37 +0000 (17:16 +0900)]
Limit error log from __get_connection

Change-Id: I29bbbe56296a2ede7a8cb7f0422d9318ccf7b917
Signed-off-by: changyu-choi <changyu.choi@samsung.com>
4 years agoRelease version 0.15.4 01/236001/1 accepted/tizen/unified/20200615.135423 submit/tizen/20200612.013314
Hwankyu Jhun [Fri, 12 Jun 2020 01:32:09 +0000 (10:32 +0900)]
Release version 0.15.4

Changes:
 - Fix setting LC_ALL env
 - Fix hydra sigchld handler

Change-Id: If4b202bcb6687612df5e533c4d71352eb3fea7ba
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix hydra sigchld handler 17/235817/11
Hwankyu Jhun [Tue, 9 Jun 2020 11:53:46 +0000 (20:53 +0900)]
Fix hydra sigchld handler

When the child process of the hydra loader is dead, the hydra loader
sends the signal to the launchpad-process-pool.
This patch separates launchpad_signal.c file.

Change-Id: Idaddf9c963b331e1257fbeb8d8f1f985adbd9b0a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix setting LC_ALL env 00/236000/2
Hwankyu Jhun [Fri, 12 Jun 2020 01:25:22 +0000 (10:25 +0900)]
Fix setting LC_ALL env

Change-Id: Ifb0e2fc6da3a425fafdb771b900d270b540ba0bb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.3 41/235141/1 accepted/tizen/unified/20200603.150148 submit/tizen/20200602.074750
Hwankyu Jhun [Tue, 2 Jun 2020 07:32:49 +0000 (16:32 +0900)]
Release version 0.15.3

Changes:
 - Add logs for debugging launching performance

Change-Id: I7a033eabe7046a5d46499e34427e527033f7aa78
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoAdd logs for debugging launching performance 28/234928/1
Hwankyu Jhun [Mon, 1 Jun 2020 01:22:06 +0000 (10:22 +0900)]
Add logs for debugging launching performance

Change-Id: Ide2343c0b9e2aebcbc1c4d75e2c04584008f960e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.2 23/234923/1 accepted/tizen/unified/20200601.140124 submit/tizen/20200601.003533
Hwankyu Jhun [Mon, 1 Jun 2020 00:34:13 +0000 (09:34 +0900)]
Release version 0.15.2

Changes:
 - Remove getting vconf values

Change-Id: Ia5f07f8b63337fbecd989461d57649b85982ef3e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRemove getting vconf values 19/234919/2
Hwankyu Jhun [Mon, 1 Jun 2020 00:15:28 +0000 (09:15 +0900)]
Remove getting vconf values

This patch removes getting vconf values while launching an application.
Sometimes, calling vconf API in the child process is failed by timed out error.
If the environment variable is already set, the child process uses it to set.
If it's not, the child process uses "en_US.UTF-8".

Change-Id: I8b630a3c3874d00bd3120fb0f2c7e689d3574818
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.1 05/234805/1 submit/tizen/20200529.041354
Hwankyu Jhun [Fri, 29 May 2020 02:27:37 +0000 (11:27 +0900)]
Release version 0.15.1

Changes:
 - Support ASAN debug mode
 - Set environment variables before executing the application

Change-Id: Id6beb8ce372038a015e040cf5f0319bf7e71c4b3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoSet environment variables before executing the application 00/234800/1
Hwankyu Jhun [Fri, 29 May 2020 02:07:02 +0000 (11:07 +0900)]
Set environment variables before executing the application

To avoid thread-safe issue of setenv() / getenv(), the child process
adds the environment variables to increase buffer size of __environ.

Change-Id: Ia656b8c4cbc2fb5014a1fe399e78dfc9475dbf6d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoSupport ASAN debug mode 22/234622/1
Hwankyu Jhun [Wed, 27 May 2020 11:13:15 +0000 (20:13 +0900)]
Support ASAN debug mode

Change-Id: I5ff27faf3ea93c478ff5fcb22845455787300dba
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.0 34/233734/2 accepted/tizen/unified/20200520.041846 submit/tizen/20200519.004536
Hwankyu Jhun [Tue, 19 May 2020 00:16:34 +0000 (09:16 +0900)]
Release version 0.15.0

Changes:
 - Change project name of launchpad library
 - Fix loader management
 - Support plugin module
 - Fix resource leak

Change-Id: I3245c3b75c6bc090c790809c5fd0f58826ffc0fb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix resource leak 35/233735/1
Hwankyu Jhun [Tue, 19 May 2020 00:39:37 +0000 (09:39 +0900)]
Fix resource leak

Change-Id: If9de9ee89410b7cf27162be3d878d9035a30653b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoSupport plugin module 32/233632/4
Hwankyu Jhun [Mon, 18 May 2020 03:09:41 +0000 (12:09 +0900)]
Support plugin module

Before dropping capabilities of child process, the plugin module is called
to prepare changing the application.

Change-Id: I18600b383a3c7a87e8f0df012b7fda219bccbd6f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix loader management 18/233718/8
Hwankyu Jhun [Mon, 18 May 2020 11:50:19 +0000 (20:50 +0900)]
Fix loader management

If the cpu check count has exceeded 10 times, the loader context is queuing and
the next loader context will be checked. The platform developer can adjust
the maximum CPU check count by modifying launchpad.conf file.

Change-Id: I0e0917cff2b88cbf6d1a6ea2b0e2fedb983d9ebf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoChange project name of launchpad library 30/233730/1
Hwankyu Jhun [Mon, 18 May 2020 23:29:07 +0000 (08:29 +0900)]
Change project name of launchpad library

Change-Id: I20640bb7e230e823388548748ebbbe4279dc9798
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.14.5 49/233649/1 submit/tizen/20200518.050618
Hwankyu Jhun [Mon, 18 May 2020 04:45:32 +0000 (13:45 +0900)]
Release version 0.14.5

Changes:
 - Fix ASAN build issue

Change-Id: Id141f6e85ed86de829437f5a83b678ee70589495
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix ASAN build issue 31/233631/1
Hwankyu Jhun [Mon, 18 May 2020 03:38:26 +0000 (12:38 +0900)]
Fix ASAN build issue

Change-Id: Ife64bd725926ffac0b1cb4581b1b917ca3dd93bc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.14.4 60/233560/1 submit/tizen/20200515.095050
Hwankyu Jhun [Fri, 15 May 2020 09:39:34 +0000 (18:39 +0900)]
Release version 0.14.4

Changes:
 - Check loader id validation

Change-Id: Ibc5a4184c79c42f3148f7f57627b8ab4d0f6c826
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoCheck loader id validation 33/233533/1
Hwankyu Jhun [Fri, 15 May 2020 07:47:46 +0000 (16:47 +0900)]
Check loader id validation

Change-Id: I74f713afdd4ba9c367f4b4a7f9c0a9c2871e3c6c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.14.3 28/233328/1 submit/tizen/20200514.223705
Hwankyu Jhun [Thu, 14 May 2020 02:17:06 +0000 (11:17 +0900)]
Release version 0.14.3

Changes:
 - Print PSS usage after loading preload libraries

Change-Id: I8ce772cc17fd0ccfa9f0dc3c25a1d6379f5fa5ef
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoPrint PSS usage after loading preload libraries 44/233244/1
Hwankyu Jhun [Wed, 13 May 2020 07:28:49 +0000 (16:28 +0900)]
Print PSS usage after loading preload libraries

Change-Id: I48fb1ee0266ed3624302a8e0f4cfcc7e06c37c40
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.14.2 68/233168/1 accepted/tizen/unified/20200514.050633 submit/tizen/20200513.063205
Hwankyu Jhun [Tue, 12 May 2020 23:51:16 +0000 (08:51 +0900)]
Release version 0.14.2

Changes:
 - Fix default debugger config file

Change-Id: Ib0e6bf9f58568a98e606cc2c3c82b01701910375
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix default debugger config file 59/233059/1
Hwankyu Jhun [Tue, 12 May 2020 01:17:42 +0000 (10:17 +0900)]
Fix default debugger config file

Adds:
 - gdb

Change-Id: Ie2465a4732ecc0aeb1122d0c418c373c5f21a156
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.14.1 01/232601/1 accepted/tizen/unified/20200508.045029 submit/tizen/20200507.013009 submit/tizen/20200507.063529
Hwankyu Jhun [Thu, 7 May 2020 01:20:14 +0000 (10:20 +0900)]
Release version 0.14.1

Changes:
 - Fix Logger Handler

Change-Id: I6cea08feaf187ecac0c7976d7be5e2a2390d0c5f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix Logger Handler 83/232183/1
Hwankyu Jhun [Wed, 29 Apr 2020 03:30:30 +0000 (12:30 +0900)]
Fix Logger Handler

- Uses LOGE() instead of SECURE_LOGE() for debugging errors

Change-Id: Ifa8d3bc631bd94b27ed49a8aa21a7261e5a4b272
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.14.0 02/230102/1 accepted/tizen/unified/20200429.032941 submit/tizen/20200408.034535 submit/tizen/20200410.051840 submit/tizen/20200414.001251 submit/tizen/20200417.051505 submit/tizen/20200428.112231
Hwankyu Jhun [Wed, 8 Apr 2020 03:33:46 +0000 (12:33 +0900)]
Release version 0.14.0

Changes:
 - Check EFL module version in build time
 - Add a new tag for loader

Change-Id: Ia450474d6f518670b603040cc3764616e47fe817
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoAdd a new tag for loader 11/230011/2
Hwankyu Jhun [Tue, 7 Apr 2020 06:26:43 +0000 (15:26 +0900)]
Add a new tag for loader

If "APP_CHECK" is "OFF", the launchpad doesn't check whether the
application is installed or not.

Change-Id: I74aa5c02429c945194113a8a29649d71bf068256
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoCheck EFL module version in build time 77/230077/1
Jongmin Lee [Wed, 8 Apr 2020 00:08:23 +0000 (09:08 +0900)]
Check EFL module version in build time

EFL module path depend on its version. This commit makes it possible
to read EFL module version and generate EFL module path in build time.

Change-Id: I8bcf33dc814878bd0e8900b7c29105a07c2208d9

4 years agoRelease version 0.13.1 85/225985/1 accepted/tizen/unified/20200302.125808 submit/tizen/20200226.043822 submit/tizen/20200226.104853 submit/tizen/20200227.032613 submit/tizen/20200301.232044
Jusung Son [Wed, 26 Feb 2020 04:32:26 +0000 (13:32 +0900)]
Release version 0.13.1

 Changes:
  - Modify candidate process creation rule for app-defined loader
  - Fix resource leak
  - Apply time-to-live range for app-defined loader

Change-Id: I2bd0fae505bee9ed5c64c7ff04fdfcf5fdb90a49
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
4 years agoApply time-to-live range for app-defined loader 06/225906/1
Jusung Son [Tue, 25 Feb 2020 08:15:32 +0000 (17:15 +0900)]
Apply time-to-live range for app-defined loader

 - min : 30sec, max 60sec

Change-Id: Id31bc158a6841ee3240552e9bc8ccddd91973bc1
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
4 years agoFix resource leak 60/225860/3
Jusung Son [Tue, 25 Feb 2020 05:26:08 +0000 (14:26 +0900)]
Fix resource leak

Change-Id: I480ea356548a4ce25a4e6ebb6028474bd011a950
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
4 years agoModify candidate process creation rule for app-defined loader 59/225859/2
Jusung Son [Tue, 25 Feb 2020 05:21:58 +0000 (14:21 +0900)]
Modify candidate process creation rule for app-defined loader

 - Create only one candidate process for each loader

Change-Id: If4a17d2574a8068620eda7e8621c39df5dc38ff0
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
4 years agoRelease version 0.13.0 56/225856/1 accepted/tizen/unified/20200225.224452 submit/tizen/20200225.050505
Hwankyu Jhun [Tue, 25 Feb 2020 04:27:50 +0000 (13:27 +0900)]
Release version 0.13.0

Changes:
 - Add app_defined_loader
 - Support memory management feature
 - Add memory management feature on app-defined-loader
 - Fix memory management feature
 - Adjust coding style
 - Fix char overflow

Change-Id: Ib77043876d29015c78253717c0a15ea90373b7b4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix char overflow 37/225837/3
Jusung Son [Tue, 25 Feb 2020 02:30:47 +0000 (11:30 +0900)]
Fix char overflow

 char type_str[0] = '0' + LAUNCHPAD_LOADER_TYPE_DYNAMIC  = 48 + 100 = -108

Change-Id: Ifebba27e34d303fcdbaf5205471d39c91c1dbcbc
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
4 years agoAdjust coding style 28/225828/3
Hwankyu Jhun [Tue, 25 Feb 2020 01:46:17 +0000 (10:46 +0900)]
Adjust coding style

- Uses static_cast<...>(...) instead of C-style cast
- Uses left alignment style
- Adds C++ coding style check tool

Change-Id: I5b0a7817fe9f523027b1a8ee4c2fe4eb5b05d236
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix memory management feature 25/225825/5
Hwankyu Jhun [Tue, 25 Feb 2020 01:12:43 +0000 (10:12 +0900)]
Fix memory management feature

Change-Id: Icff15a3b5e9b16e3e3e0572a1cbdb8daa673e2b9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoAdd memory management feature on app-defined-loader 21/225821/5
Hwankyu Jhun [Tue, 25 Feb 2020 00:43:15 +0000 (09:43 +0900)]
Add memory management feature on app-defined-loader

If PSS of app-defined-loader process is over the threshold,
app-defined-loader process stops loading the libraries.
The platform developer can change the threshold using
app-defined-loader.conf file.

Change-Id: Id2476dbcfbce5d3c272028a883ec6a509cfa310f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoSupport memory management feature 64/225564/10
Hwankyu Jhun [Fri, 21 Feb 2020 03:34:13 +0000 (12:34 +0900)]
Support memory management feature

To manage memory usage, the launchpad checks the proc filesystem.
If the percentage of memory usage is over the threshold value, the
launchpad terminates the running slots. In this time, the running slots
are managed by the score and the memory usage(PSS). (exclude hydra loader)
The score of the candidate slot is decided by the amount of usage.

Change-Id: Ie8678be7dc6dfb346b4523b996bfa39d02b006f5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoAdd app_defined_loader 34/225434/13
hyunho [Thu, 20 Feb 2020 02:11:36 +0000 (11:11 +0900)]
Add app_defined_loader

Change-Id: I9ec6d2202ec3e6596a19b787a204703771996669
Signed-off-by: hyunho <hhstark.kang@samsung.com>
4 years agoRelease version 0.12.1 18/225418/1 accepted/tizen/unified/20200221.093509 submit/tizen/20200220.012315
Hwankyu Jhun [Thu, 20 Feb 2020 00:32:33 +0000 (09:32 +0900)]
Release version 0.12.1

Changes:
 - Fix log format

Change-Id: I7fdd6ddf39a2b876d53312ba8e4e5ef26b4c6a59
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix log format 17/225417/1
Hwankyu Jhun [Thu, 20 Feb 2020 00:32:19 +0000 (09:32 +0900)]
Fix log format

Change-Id: I7105f7057dc81bb6d40b3bfd5c7ad62f14a57058
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.12.0 07/225407/1 submit/tizen/20200219.234543
Hwankyu Jhun [Wed, 19 Feb 2020 23:14:35 +0000 (08:14 +0900)]
Release version 0.12.0

Changes:
 - Add a plugin for app-defined loader
 - Add app-defined loader
 - Fix return values of __dispatch_cmd_add_app_defined_loader()
 - Separate codes into directories

Change-Id: I0e76ec5d9493acc58e41b88dc0b7559de79ef81f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoSeparate codes into directories 33/225233/2
Hwankyu Jhun [Tue, 18 Feb 2020 08:22:08 +0000 (17:22 +0900)]
Separate codes into directories

Change-Id: I497213884beecebe3d532f4d4ece55dbcf5fd329
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix return values of __dispatch_cmd_add_app_defined_loader() 62/225162/1
Hwankyu Jhun [Tue, 18 Feb 2020 01:47:14 +0000 (10:47 +0900)]
Fix return values of __dispatch_cmd_add_app_defined_loader()

Change-Id: Ia7504d0a4b4078cc932af2094dddc174d82df123
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoAdd app-defined loader 61/224161/5
Jusung Son [Fri, 7 Feb 2020 00:10:57 +0000 (09:10 +0900)]
Add app-defined loader

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/224466/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/224634/
 - https://review.tizen.org/gerrit/#/c/platform/core/api/app-control/+/224798/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/launchpad/+/224161/

Change-Id: I66ea0abec98fd387e91cf67a7f5db94e5d0234d0
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
4 years agoAdd a plugin for app-defined loader 77/223677/8
hyunho [Mon, 3 Feb 2020 02:29:49 +0000 (11:29 +0900)]
Add a plugin for app-defined loader

Change-Id: I73f527421a98bc619266171553280acd9029c61d
Signed-off-by: hyunho <hhstark.kang@samsung.com>
4 years agoRelease version 0.11.0 41/223541/1 accepted/tizen/unified/20200204.125901 submit/tizen/20200130.235742 submit/tizen/20200131.002833 submit/tizen/20200131.010826 submit/tizen/20200131.034958
Hwankyu Jhun [Thu, 30 Jan 2020 23:50:07 +0000 (08:50 +0900)]
Release version 0.11.0

Changes:
  - Support launching service app with dynamic loader

Change-Id: I568521232e4d1fcaf6797f67bd40f961bbdc4b79
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoSupport launching service app with dynamic loader 08/223008/3
Hwankyu Jhun [Wed, 22 Jan 2020 06:02:40 +0000 (15:02 +0900)]
Support launching service app with dynamic loader

Change-Id: If385128a84a89e2e75d038ef5abe7ab6181c7402
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.10.5 33/223433/1 accepted/tizen/unified/20200131.050552 submit/tizen/20200129.232701
Hwankyu Jhun [Wed, 29 Jan 2020 22:39:28 +0000 (07:39 +0900)]
Release version 0.10.5

Changes:
 - Fix static anlysis issue
 - Fix fd event handling

Change-Id: I9e0900116218b2a46bd3bc7ea4dbf43d50b9181e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix fd event handling 06/223106/2
Hwankyu Jhun [Thu, 23 Jan 2020 02:04:14 +0000 (11:04 +0900)]
Fix fd event handling

- Uses GIOChannel instead of GSource

Change-Id: Iaf999693e8da5b0830f015435d0ebf37accab91a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix static anlysis issue 24/223024/3
Hwankyu Jhun [Wed, 22 Jan 2020 08:13:13 +0000 (17:13 +0900)]
Fix static anlysis issue

Change-Id: I8672a904fae3b77f158b4955f0383b76465d468b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.10.4 76/222976/1 accepted/tizen/unified/20200123.005048 submit/tizen/20200121.102120
Hwankyu Jhun [Wed, 22 Jan 2020 00:51:45 +0000 (09:51 +0900)]
Release version 0.10.4

Changes:
 - Fix type

Change-Id: I20100e2f21d6b708e4199703bd9fd0764e12681c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix type 73/222973/3
Hwankyu Jhun [Wed, 22 Jan 2020 00:45:28 +0000 (09:45 +0900)]
Fix type

The return value type of iniparser_getstring() is changed to "const char *".

Change-Id: I85ad74f7019d6fdc9f861e894e29fd81263e2da6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.10.3 70/221270/2 accepted/tizen/unified/20200101.120553 submit/tizen/20191231.004832
Hwankyu Jhun [Mon, 30 Dec 2019 23:07:14 +0000 (08:07 +0900)]
Release version 0.10.3

Changes:
 - Remove compile warning messages
 - Fix wrong implementation

Change-Id: I67c9ece883875cbb7579110812ac84df1a8f145b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix wrong implementation 73/221273/2
Hwankyu Jhun [Tue, 31 Dec 2019 00:14:46 +0000 (09:14 +0900)]
Fix wrong implementation

Change-Id: Ie65ecbb277f13df6102236748d8709e7a4ff2090
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRemove compile warning messages 95/221195/1
Hwankyu Jhun [Mon, 30 Dec 2019 05:26:20 +0000 (14:26 +0900)]
Remove compile warning messages

Change-Id: I94eca9e33a0776784ae0cae1a52c5781eff84ce1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.10.2 19/220619/1 accepted/tizen/5.5/unified/20191230.212317 accepted/tizen/unified/20191223.060202 submit/tizen/20191220.045359 submit/tizen_5.5/20191220.045305 submit/tizen_5.5/20191220.045333
Hwankyu Jhun [Fri, 20 Dec 2019 04:45:12 +0000 (13:45 +0900)]
Release version 0.10.2

Changes:
 - Use monotonic time

Change-Id: Ie2c454ff5823f8b94db0b88dffff73c8f059b2f2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoUse monotonic time 00/220600/4
Hwankyu Jhun [Fri, 20 Dec 2019 01:17:04 +0000 (10:17 +0900)]
Use monotonic time

To measure launching time properly, we should use monotonic time.

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/220595/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/220598/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/launchpad/+/220600/

Change-Id: I3df67a01234fcd5cb54248bbfc0519d9564a08d6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.10.1 56/217856/1 accepted/tizen/5.5/unified/20191118.084756 submit/tizen/20191115.033000 submit/tizen_5.5/20191115.033304
Hwankyu Jhun [Fri, 15 Nov 2019 03:22:57 +0000 (12:22 +0900)]
Release version 0.10.1

Changes:
 - Support prelink feature

Change-Id: I8c6c1b11f1e6541cd78a37b44b1818e25a52373f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoSupport prelink feature 42/217842/1
Hwankyu Jhun [Fri, 15 Nov 2019 02:24:32 +0000 (11:24 +0900)]
Support prelink feature

If the `_prelink_enable` is defined, launchpad-process-pool and launchpad-loader
will be compiled without -pie and -fPIE option.

Change-Id: I91c2743b781121b1862d4b567e875c0d4da62943
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.10.0 58/217358/1 accepted/tizen/5.5/unified/20191111.105452 accepted/tizen/unified/20191111.105539 submit/tizen/20191111.004932 submit/tizen_5.5/20191111.005001
Hwankyu Jhun [Mon, 11 Nov 2019 00:47:51 +0000 (09:47 +0900)]
Release version 0.10.0

Changes:
 - Refactor Launchpad Hydra Loader

Change-Id: I93e611f010745e3efbe6f23f6428a75cf85b7596
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
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