platform/core/appfw/launchpad.git
4 days agoRelease version 0.42.16 75/325375/1 accepted/tizen_9.0_unified tizen_9.0 accepted/tizen/9.0/unified/20250611.103243
Changgyu Choi [Tue, 10 Jun 2025 01:48:48 +0000 (10:48 +0900)]
Release version 0.42.16

Changes:
 - Delete loader .ready file on context disposal

Change-Id: I2bbe2978808e0b54947b92ad473c441c3ae21351
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 days agoDelete loader .ready file on context disposal
Changgyu Choi [Mon, 9 Jun 2025 01:55:01 +0000 (10:55 +0900)]
Delete loader .ready file on context disposal

The .ready file signals that the loader is active and ready.
This change ensures the .ready file is removed when the LoaderContext is disposed.
By doing so, the presence or absence of the .ready file accurately
indicates the loader's current availability, allowing its operational
status to be determined by checking for the file's existence.

Change-Id: If4826b981c278e6a93750766e671a00e6c0efd1b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 months agoRelease version 0.42.15 87/320187/1 accepted/tizen/9.0/unified/20250226.133025
Hwankyu Jhun [Tue, 25 Feb 2025 05:49:15 +0000 (14:49 +0900)]
Release version 0.42.15

Changes:
 - Set command line to the environment variable

Change-Id: I53b2798c47340ca3c901d6c8937152f4cc59a176
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 months agoSet command line to the environment variable
Hwankyu Jhun [Tue, 25 Feb 2025 05:40:40 +0000 (14:40 +0900)]
Set command line to the environment variable

While creating the constructor of the launchpad-loader,
"TIZEN_LOADER" variable is set to the environment variable for
the application core. If it exists, the application core sets the
application info for enlightenment.

Change-Id: Ie1c7e184ab7bb2ff8c85b4c31019bae12c8c07f7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 0.42.14 88/318488/1 accepted/tizen/9.0/unified/20250120.133721
Changgyu Choi [Fri, 17 Jan 2025 08:14:44 +0000 (17:14 +0900)]
Release version 0.42.14

Changes:
 - Move CloseAllFds() call after printing logs.

Change-Id: I4569d73cd19817c74bf3b3dbf9b57bdfb8bccd43
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 months agoMove CloseAllFds() call after printing logs.
Changgyu Choi [Fri, 17 Jan 2025 04:39:18 +0000 (13:39 +0900)]
Move CloseAllFds() call after printing logs.

CloseAllFds() can close dlog fd.

  F/LIBDLOG  (P 4762, T 2650): libdlog's internal state has been destroyed! The user application closed libdlog's file descriptor.

Change-Id: Ia5eec4b1ad1c91a050ad3fe9193f088628ed4810
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 months agoRelease version 0.42.13 55/318355/1 accepted/tizen/9.0/unified/20250118.074058
Hwankyu Jhun [Thu, 16 Jan 2025 03:47:43 +0000 (12:47 +0900)]
Release version 0.42.13

Changes:
 - Set request ID to environment variable

Change-Id: I92fb02d5962e5b7bd8b3081df15274445cd8e829
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoSet request ID to environment variable
Hwankyu Jhun [Mon, 6 Jan 2025 23:23:21 +0000 (08:23 +0900)]
Set request ID to environment variable

While executing the application, the launchpad sets the request ID to
the environment variable. It will be used by the AUL library for the app
registration.

Change-Id: I0f029579c3382356f286010b96699006d16aa58f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 0.42.12 66/318266/1 accepted/tizen/9.0/unified/20250116.154252
Hwankyu Jhun [Wed, 15 Jan 2025 02:22:03 +0000 (11:22 +0900)]
Release version 0.42.12

Changes:
 - Fix build break issue

Change-Id: I188654ce0ccb0488d40e09164737d4fef398449d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoFix build break issue 65/318265/1
Hwankyu Jhun [Wed, 15 Jan 2025 02:14:42 +0000 (11:14 +0900)]
Fix build break issue

This patch modifies the implementation about removing the element
from the std::vector.

Change-Id: I8e38a5cbe373325491e27319bedfab1cc2ae6afb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 0.42.11 50/318250/1
Hwankyu Jhun [Wed, 15 Jan 2025 00:27:10 +0000 (09:27 +0900)]
Release version 0.42.11

Changes:
 - Mark and close created file descriptors in process pool
 - Fix segmentation fault

Change-Id: Iba3909091c13320012e41df40dcfb0ec14c83f50
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoFix segmentation fault
Hwankyu Jhun [Mon, 13 Jan 2025 23:15:58 +0000 (08:15 +0900)]
Fix segmentation fault

Before calling the method of the Client instance, we should check
whether the instance is nullptr or not.

Change-Id: I8f3baf2e09a07cfa4c5929e0f9fdd815da9be0de
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoMark and close created file descriptors in process pool
Hwankyu Jhun [Mon, 13 Jan 2025 00:15:39 +0000 (09:15 +0900)]
Mark and close created file descriptors in process pool

This patch marks the created file descriptor to the closeabe fds.
When initialzing the process pool, it closes file descriptors.

Change-Id: If8b18ab3d4ed653f19e34c74cf9be600290b2fe5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRelease version 0.42.10 03/317603/1 accepted/tizen/9.0/unified/20250114.041557
Changgyu Choi [Mon, 6 Jan 2025 00:51:40 +0000 (09:51 +0900)]
Release version 0.42.10

Changes:
 - Fix static analysis issue
 - Compare process IDs

Change-Id: I66dc5e893d6f1ccefe52c04c022ce13d9295b21a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
5 months agoCompare process IDs
Hwankyu Jhun [Sun, 5 Jan 2025 22:39:13 +0000 (07:39 +0900)]
Compare process IDs

The launchpad should check whether the caller is the executed process or
not. If it's not, we should reject the connection request.

Change-Id: I5d87310a3986bccedba2fe0c98383056d7ed5804
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoFix static analysis issue
Jihoi Kim [Fri, 3 Jan 2025 06:34:01 +0000 (15:34 +0900)]
Fix static analysis issue

- Fix UNINIT_CTOR
- Fix AUTO_CAUSES_COPY
- Fix COMPARE_RESULT_OF_NEW

Change-Id: I4dda5ce91d04101513b2821dc4ca9951a3f154d4
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
6 months agoRelease version 0.42.9 76/315976/1 accepted/tizen/9.0/unified/20241210.020002 accepted/tizen/unified/20241209.180257 accepted/tizen/unified/x/20241218.032711 accepted/tizen/unified/x/asan/20241224.004435
Hwankyu Jhun [Mon, 9 Dec 2024 00:18:36 +0000 (09:18 +0900)]
Release version 0.42.9

Changes:
 - Fix a bug about debug launch mode

Change-Id: Ie64615f202bd3a9cdf45f4bdb1d66f872fedcdce
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoFix a bug about debug launch mode 75/315975/1
Hwankyu Jhun [Sun, 8 Dec 2024 23:30:02 +0000 (08:30 +0900)]
Fix a bug about debug launch mode

The TIZEN_ASAN_ACTIVATION environment must be set if the target
application is included in the asan app list.

Change-Id: I3a24213e712ff914aeb59c6028ecff1044626aec
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoRelease version 0.42.8 27/315627/1 accepted/tizen/9.0/unified/20241205.174728 accepted/tizen/unified/20241204.183316 accepted/tizen/unified/20241205.060754 accepted/tizen/unified/x/20241207.045425
Hwankyu Jhun [Wed, 4 Dec 2024 00:02:27 +0000 (09:02 +0900)]
Release version 0.42.8

Changes:
 - Fix debug mode launch

Change-Id: Ia17d8d8637128b353d8c8ba26c90532cb3add9e2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoFix debug mode launch 95/315595/3
Hwankyu Jhun [Tue, 3 Dec 2024 09:10:39 +0000 (18:10 +0900)]
Fix debug mode launch

If the launch request is for debugging, the launchpad-process-pool
should not send the launch request to the process-pool.
And, if the extra env list is empty, the launchpad-process-pool should
not set the data to the bundle object.

Change-Id: I40ca23e80b918fdd0ff29b6a17490ca9d6d7e453
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoRelease version 0.42.7 92/315592/1 accepted/tizen/unified/20241204.030613
Ilho Kim [Tue, 3 Dec 2024 09:17:23 +0000 (18:17 +0900)]
Release version 0.42.7

Changes:
 - Add dev_wos build option for permissive mode

Change-Id: I128814fd391b137440aa70e36b87e23de990bb2d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
6 months agoAdd dev_wos build option for permissive mode 86/315586/1
Ilho Kim [Tue, 3 Dec 2024 09:00:06 +0000 (18:00 +0900)]
Add dev_wos build option for permissive mode

Change-Id: Id2fecd305ae0b1970b67cf0e1fe911c4bf866721
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
6 months agoRelease version 0.42.6 92/315492/1
Changgyu Choi [Mon, 2 Dec 2024 09:13:12 +0000 (18:13 +0900)]
Release version 0.42.6

Changes:
 - Use shared ptr for sigaction
 - Add exception handler for vconf_notify_key_changed()

Change-Id: I4a6bcbc515566734fea1c2f014aab3d707bf2407
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
6 months agoAdd exception handler for vconf_notify_key_changed() 47/315447/5
Changgyu Choi [Mon, 2 Dec 2024 06:52:21 +0000 (15:52 +0900)]
Add exception handler for vconf_notify_key_changed()

vconf_notify_key_changed() API can return errors.
So, in this case, launchpad can't receive vconf key changed event.
This patch adds retry logic.

Change-Id: I8291c1a26878a7fc05d4ef13dbdb0240f399e2a7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
6 months agoUse shared ptr for sigaction 58/320758/3
Hwankyu Jhun [Fri, 22 Nov 2024 04:06:04 +0000 (13:06 +0900)]
Use shared ptr for sigaction

To decrease parameter size of the constructor of the SignalAction,
this patch uses shared_ptr instead of raw data.

Change-Id: I92946f89494253f48ffd378d1859ddad70c2e0cf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoRelease version 0.42.5 76/320776/1 accepted/tizen/9.0/unified/20241125.071618 accepted/tizen/unified/20241125.062705
Hwankyu Jhun [Fri, 22 Nov 2024 06:37:17 +0000 (15:37 +0900)]
Release version 0.42.5

Changes:
 - Shortening input argument log of app exec/loader
 - Fix library and gadget mount
 - Fix build error due to format string for size_t
 - Modify LoaderContext::Activate() method

Change-Id: I1caba5736cc0ed27d705d2480b5f26d616f4607c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoModify LoaderContext::Activate() method 72/320772/1
Hwankyu Jhun [Fri, 22 Nov 2024 06:30:59 +0000 (15:30 +0900)]
Modify LoaderContext::Activate() method

To activate the loader, we should check Timeout flag with the detection
method.

Change-Id: I02659483613537cd9a83604dce200f6ad61e397c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoFix build error due to format string for size_t 09/320709/1
newb1e [Thu, 21 Nov 2024 06:26:01 +0000 (15:26 +0900)]
Fix build error due to format string for size_t

- Change specifier from "%lu" into "%zu"
- Fix some spaces to fit coding style

Change-Id: Iac5aade52ea1ec477cbf88d378d459929bf58b0a
Signed-off-by: newb1e <jihoi.kim@samsung.com>
6 months agoFix library and gadget mount 59/320659/3
Hwankyu Jhun [Wed, 20 Nov 2024 11:01:16 +0000 (20:01 +0900)]
Fix library and gadget mount

The library and gadget resources should be mounted to '/bin/.res_mount'.

Change-Id: I47082f8b81b96ad0dce3abbbfd02e58db80e7e66
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoShortening input argument log of app exec/loader 62/320662/3
newb1e [Wed, 20 Nov 2024 11:50:12 +0000 (20:50 +0900)]
Shortening input argument log of app exec/loader

- Fix to log only size of each bundle argument, not whole string

Change-Id: I133eef1a2d5cc1265e82ad5d87245003f44eb42b
Signed-off-by: newb1e <jihoi.kim@samsung.com>
7 months agoRelease version 0.42.4 76/319976/1 accepted/tizen/9.0/unified/20241108.065605 accepted/tizen/unified/20241108.105437
Changgyu Choi [Wed, 6 Nov 2024 01:13:32 +0000 (10:13 +0900)]
Release version 0.42.4

Changes:
 - Change resource mount directory name

Change-Id: I81a4f7920985fdc0d025bf886c6d65819c5306f1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoChange resource mount directory name 75/319975/1
Changgyu Choi [Wed, 6 Nov 2024 00:42:06 +0000 (09:42 +0900)]
Change resource mount directory name

This patch changes the resource mount directory name to "/bin/.res_mount"

Change-Id: I9138643f38ada3d2dff9370084af41f210061ea9
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoRelease version 0.42.3 28/319728/1
Hwankyu Jhun [Thu, 31 Oct 2024 04:55:14 +0000 (13:55 +0900)]
Release version 0.42.3

Changes:
 - Check source directory existence

Change-Id: I2b90600559e18e03b2d3be66283bd71569c915ca
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoCheck source directory existence 26/319726/2
Hwankyu Jhun [Thu, 31 Oct 2024 04:15:52 +0000 (13:15 +0900)]
Check source directory existence

Before mounting the resource directories to the directory of the application,
the process checks whether the directory exists or not.

Change-Id: I264c17c855a56f4cdbb52d2ac6803b5afb0dde53
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 0.42.2 82/319682/1 accepted/tizen/9.0/unified/20241104.170054 accepted/tizen/unified/20241105.042040
Hwankyu Jhun [Wed, 30 Oct 2024 06:21:03 +0000 (15:21 +0900)]
Release version 0.42.2

Changes:
 - Modify destination of library and gadget mount

Change-Id: I70bcc056f7b2ddfe44a989767e8a9d90562ddf9f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoModify destination of library and gadget mount 67/319667/3
Hwankyu Jhun [Tue, 29 Oct 2024 22:48:34 +0000 (07:48 +0900)]
Modify destination of library and gadget mount

Currently, the library package is mounted to 'lib/' directory.
If the app type of the application is 'dotnet', the resources
should be mounted to 'bin/.rpk/' directory.
If the destination is not existed, we should try to mount resources to
'bin/' directory.

Change-Id: Ia2b3dfd2ae852441eb6bbeddd357696916850463
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 0.42.1 69/319669/1
Hwankyu Jhun [Wed, 30 Oct 2024 00:40:24 +0000 (09:40 +0900)]
Release version 0.42.1

Changes:
 - Modify AppExecutor and LaunchpadLoader impl

Change-Id: Id75355f9cac8fe596e8586cd3a8cc65d99595c95
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoModify AppExecutor and LaunchpadLoader impl 68/319668/2
Hwankyu Jhun [Wed, 30 Oct 2024 00:29:34 +0000 (09:29 +0900)]
Modify AppExecutor and LaunchpadLoader impl

The Util::RemoveAulKeys() is added. It used by AppExecutor and LaunchpadLoader.
And, a missing implemenation is added related to the lang & region changed events.

Change-Id: I47591fc10f686a7cb5142ae4a7b6f6c7d8bda4ab
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 0.42.0 96/319596/1
Hwankyu Jhun [Mon, 28 Oct 2024 08:02:11 +0000 (17:02 +0900)]
Release version 0.42.0

Changes:
 - Modify arguments for debug mode
 - Modify launchpad-process-pool

Change-Id: I3c36e7ee6d06378e82cff46819b5238e938e9fef
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoModify launchpad-process-pool 65/319565/4
Hwankyu Jhun [Fri, 25 Oct 2024 11:09:32 +0000 (20:09 +0900)]
Modify launchpad-process-pool

- The lux is removed.
- The sub threads of the launchpad-process-pool are removed.
- Some features are moved to the amd.

Change-Id: Ic7ee8e73aa3a54aa09e330307f4a36f224b4b68b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoModify arguments for debug mode 42/319442/1
Hwankyu Jhun [Wed, 23 Oct 2024 06:49:02 +0000 (15:49 +0900)]
Modify arguments for debug mode

If the executable file is 'gdbserver', the '' is needed for passing the
bundle tag. Otherwise it's not needed.

Change-Id: Ia719600fd924ddac3cde29a97c25ff550c357f21
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 0.41.12 23/319423/1 accepted/tizen/9.0/unified/20241030.232902 accepted/tizen/unified/20241023.092809 accepted/tizen/unified/20241023.161728 accepted/tizen/unified/x/20241023.091608 tizen_9.0_m2_release
Hwankyu Jhun [Wed, 23 Oct 2024 03:25:37 +0000 (12:25 +0900)]
Release version 0.41.12

Changes:
 - Fix a timing issue of app labels changed event

Change-Id: I3d1c0719b893801c56d6e0598ac8c22ff22acbdb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoFix a timing issue of app labels changed event 15/319415/4
Hwankyu Jhun [Wed, 23 Oct 2024 01:11:34 +0000 (10:11 +0900)]
Fix a timing issue of app labels changed event

If the launchpad-process-pool receives app labels changed event before the lux,
it causes the failure issue of calling the security_manager_prepare_app2().
When getting the app labels changed event, the lux notifies that to the
launchpad-process-pool. And then, the launchpad-process-pool kills and
executes the loader processes.

Change-Id: Idb8fb7e812a1467c8702e07c2fb06e09a3ff963b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 0.41.11 47/319347/1
Hwankyu Jhun [Tue, 22 Oct 2024 00:23:05 +0000 (09:23 +0900)]
Release version 0.41.11

Changes:
 - Add logs for debug
 - Change default launch mode

Change-Id: I77b14187a6bf1f0a7992ec1a1cbfd4bba9f81869
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoChange default launch mode 45/319345/1
Hwankyu Jhun [Mon, 21 Oct 2024 23:23:18 +0000 (08:23 +0900)]
Change default launch mode

The launch mode is changed to the previous operation.
Currently, some device was very slow. There is a problem about CPU scheduling.
If a launch request is delivered to the loader process while the loader is
initializing, the loader will be blocked by the CPU scheduling in some devices.
It causes the crash issue of the application.

Change-Id: Ia9f91a98b011ed675a7d70dd3ec08c65e8ce55c5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoAdd logs for debug 06/319106/3
Changgyu Choi [Tue, 15 Oct 2024 08:39:03 +0000 (17:39 +0900)]
Add logs for debug

In some case, blocks may occur in the child process immediately after fork().

Change-Id: Ibd55bdccc7c089f372b96e024070b78475e7591e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
8 months agoRelease version 0.41.10 88/318988/1
Hwankyu Jhun [Fri, 11 Oct 2024 11:43:02 +0000 (20:43 +0900)]
Release version 0.41.10

Changes:
 - Fix loader termination issues

Change-Id: I95d5ad50db4908d46ac6333c80561a9c5a761cbd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoFix loader termination issues 87/318987/1
Hwankyu Jhun [Fri, 11 Oct 2024 11:40:01 +0000 (20:40 +0900)]
Fix loader termination issues

The loader context's reference count is only set to zero in case of
a low memory event, which will result in terminating
the currently running loader process.
This modification aims to fix the issue where the loader process responsible for
handling launch requests gets terminated during an out-of-memory (OOM) situation.

Change-Id: Iaa3c961d29ef1a8726ff53af8cd911ab4504bc27
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.41.9 72/318472/1 accepted/tizen_unified_toolchain accepted/tizen/unified/20241004.041858 accepted/tizen/unified/toolchain/20241022.122520 accepted/tizen/unified/toolchain/20241022.122943 accepted/tizen/unified/x/20241006.082006 accepted/tizen/unified/x/asan/20241014.000121
Hwankyu Jhun [Mon, 30 Sep 2024 07:59:39 +0000 (16:59 +0900)]
Release version 0.41.9

Changes:
 - Fix a bug related to NUIGadget resource mount

Change-Id: If03c772cb27ed8d7f7083b81cb2bd8cb498ad01d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoFix a bug related to NUIGadget resource mount 62/318462/2
Hwankyu Jhun [Mon, 30 Sep 2024 06:31:35 +0000 (15:31 +0900)]
Fix a bug related to NUIGadget resource mount

Before calling ValidateAndModifyGadgetPaths(), the library checks
whether the path exists or not. If the gadget developer uses the previous SDK,
the resources of the gadget is packed using the res/allowed path.
The previous patch of the launchpad does not consider it.

Change-Id: I91cc89dd64e74bac70f3e294bb9ddfbb2fc3ae02
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.41.8 54/318454/1
Hwankyu Jhun [Mon, 30 Sep 2024 04:44:22 +0000 (13:44 +0900)]
Release version 0.41.8

Changes:
 - [Lux] Add language and region format config

Change-Id: Iad23b4e5f92eefebc5fe78e7b3b3f8daa81ced2e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months ago[Lux] Add language and region format config 51/318451/2
Hwankyu Jhun [Mon, 30 Sep 2024 01:05:45 +0000 (10:05 +0900)]
[Lux] Add language and region format config

To monitor language & region format changed events, lux should use vconf API.
When the language or the region format is changed, lux should be set
the environment variable for applications. Before executing an application,
the process-pool should set the environments for the application.
After this patch is applied, the process-pool  adds to set 'LANG' and 'LC_CTYPE'
to the environement variables.

Change-Id: I0229867a63598133921fee058b0a276d60c30bc5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.41.7 29/318229/1
Hwankyu Jhun [Thu, 26 Sep 2024 00:04:50 +0000 (09:04 +0900)]
Release version 0.41.7

Changes:
 - Check amd socket existence before sending a request

Change-Id: I603c58c52626d5a657463ab4a6625c64caffbffc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoCheck amd socket existence before sending a request 24/318224/1
Hwankyu Jhun [Wed, 25 Sep 2024 23:29:31 +0000 (08:29 +0900)]
Check amd socket existence before sending a request

Before sending the request to amd, launchpad checks whether the socket
exists or not. If it does not exist, launchpad does not connect to amd.

Change-Id: I1912d5f477843d73fc68e4d0d458dbd8d6f51528
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.41.6 26/318126/1 accepted/tizen/unified/20240926.050019 accepted/tizen/unified/toolchain/20241004.101749 accepted/tizen/unified/x/20240926.095735
Hwankyu Jhun [Wed, 25 Sep 2024 01:07:45 +0000 (10:07 +0900)]
Release version 0.41.6

Changes:
 - Set CPU boosting for executing lux
 - Modify mount-related logic

Change-Id: Ieac4cd7328d76c965c993f0e140cbcf6c6d36d73
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoModify mount-related logic 60/318060/1
Hwankyu Jhun [Tue, 24 Sep 2024 06:21:14 +0000 (15:21 +0900)]
Modify mount-related logic

- Check whether the source directory exists or not
- Remove extra datas related to mount from the bundle object

Change-Id: Iea25ce22cbbb05c673eb879abb6df0556784446f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoSet CPU boosting for executing lux 29/318029/2
Hwankyu Jhun [Tue, 24 Sep 2024 01:46:41 +0000 (10:46 +0900)]
Set CPU boosting for executing lux

To improve launching performance of lux, this patch adds setting CPU
boosting to lux.

Change-Id: I1f209dd41aec7b8d68106b04d42c9c842b907863
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.41.5 62/317862/1 accepted/tizen_unified_dev accepted/tizen/unified/20240920.050209 accepted/tizen/unified/dev/20240924.080601 accepted/tizen/unified/x/20240920.102419
Hwankyu Jhun [Thu, 19 Sep 2024 11:29:34 +0000 (20:29 +0900)]
Release version 0.41.5

Changes:
 - Remove extra data from loader configuration
 - Add a new sub moudle for creating children processes
 - Fix build error
 - Fix dependencies
 - Fix a bug related to debug mode
 - Modify dependencies
 - Remove setting capabilities from lux

Change-Id: Ie0563a23bb0c8322c765912292dc9861cd5f01c5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRemove setting capabilities from lux 61/317861/1
Hwankyu Jhun [Thu, 19 Sep 2024 11:27:57 +0000 (20:27 +0900)]
Remove setting capabilities from lux

After the following patchset is applied, the set_capability script sets
capabilities to the lux:
 - https://review.tizen.org/gerrit/#/c/platform/core/security/security-config/+/317805/

Change-Id: I590e41312beab99bbcddd870b2f4f7faa150323d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.41.4 54/317854/1
Hwankyu Jhun [Thu, 19 Sep 2024 10:02:28 +0000 (19:02 +0900)]
Release version 0.41.4

Changes:
 - Remove extra data from loader configuration
 - Add a new sub moudle for creating children processes
 - Fix build error
 - Fix dependencies
 - Fix a bug related to debug mode
 - Modify dependencies

Change-Id: Ie1225b477c86946c8af2346efa70d4cf7365275f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoModify dependencies 53/317853/1
Hwankyu Jhun [Thu, 19 Sep 2024 10:01:41 +0000 (19:01 +0900)]
Modify dependencies

- Requires rust-std-shared

Change-Id: I6fdaf5e357fed8599c0df5c97c0c3619f6785e80
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.41.3 37/317837/1
Hwankyu Jhun [Thu, 19 Sep 2024 06:57:56 +0000 (15:57 +0900)]
Release version 0.41.3

Changes:
 - Remove extra data from loader configuration
 - Add a new sub moudle for creating children processes
 - Fix build error
 - Fix dependencies
 - Fix a bug related to debug mode

Change-Id: I60f87d2459b21950eab87b48ba6af1f60100dfab
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoFix a bug related to debug mode 36/317836/1
Hwankyu Jhun [Thu, 19 Sep 2024 06:57:14 +0000 (15:57 +0900)]
Fix a bug related to debug mode

To remove debug argv, the launchpad should call PrepareDebugger() method.

Change-Id: Iaf8964548bae452686e75fdd9a0d6efdc02e6620
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.41.2 18/317818/1
Hwankyu Jhun [Thu, 19 Sep 2024 04:56:15 +0000 (13:56 +0900)]
Release version 0.41.2

Changes:
 - Remove extra data from loader configuration
 - Add a new sub moudle for creating children processes
 - Fix build error
 - Fix dependencies

Change-Id: I262f9b27593c2039a9c4ec15782560394345eacb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoFix dependencies 17/317817/1
Hwankyu Jhun [Thu, 19 Sep 2024 04:55:22 +0000 (13:55 +0900)]
Fix dependencies

Required packages are added:
 - rust
 - rust-libc
 - rust-glib-sys

Change-Id: I35d29abaab31829c6d0646fa2cecde54c3bf9ebf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.41.1 15/317815/1
Hwankyu Jhun [Thu, 19 Sep 2024 04:34:00 +0000 (13:34 +0900)]
Release version 0.41.1

Changes:
 - Remove extra data from loader configuration
 - Add a new sub moudle for creating children processes
 - Fix build error

Change-Id: I325e66beab491c908b8f6092fac9e611d3009c06
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoFix build error 14/317814/1
Hwankyu Jhun [Thu, 19 Sep 2024 04:33:06 +0000 (13:33 +0900)]
Fix build error

- Add link option related to launchpad-common library
- Remove unnecessary dependency related to launchpad-glib library

Change-Id: Ifb0221f1a9c6eaa4938e83056cfc17bfb4dca860
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.41.0 13/317813/1
Hwankyu Jhun [Thu, 19 Sep 2024 04:01:51 +0000 (13:01 +0900)]
Release version 0.41.0

Changes:
 - Remove extra data from loader configuration
 - Add a new sub moudle for creating children processes

Change-Id: I1d39f0db996921fc46fdb9305bb8676aff4f2258
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoAdd a new sub moudle for creating children processes 80/317080/28
Hwankyu Jhun [Tue, 3 Sep 2024 23:32:29 +0000 (08:32 +0900)]
Add a new sub moudle for creating children processes

Currently, the launchpad-process-pool has a problem about using threads.
It causes the deadlock issue of children processes.
The 'Lux' is added. It operates as a single thread and is responsible for
creating child processes.

Change-Id: Ie768efba1877069a968f367e2553cd5c0ad6f286
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoRemove extra data from loader configuration 98/317598/1
Hwankyu Jhun [Thu, 12 Sep 2024 06:03:04 +0000 (15:03 +0900)]
Remove extra data from loader configuration

The 'Threads' data is removed. It's for waiting the thread creation.
It's not needed now. Because, the security-manager considers the problem.

Change-Id: Ifa0168db4c5c401ce6491cb397704b1cc029d2eb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoRelease version 0.40.13 94/317494/1 accepted/tizen/unified/20240911.161952 accepted/tizen/unified/dev/20240913.055447 accepted/tizen/unified/x/20240912.013809
Hwankyu Jhun [Wed, 11 Sep 2024 04:39:02 +0000 (13:39 +0900)]
Release version 0.40.13

Changes:
 - Separate the library from the launchpad-process-pool
 - Check directory existence before calling mount
 - Fix Util::PrepareAppSocket() method
 - Fix Util::CloseAllFds() method

Change-Id: Ib9901bd526f9929a55d9f4b5ea5841017b68481b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoFix Util::CloseAllFds() method 91/317491/1
Hwankyu Jhun [Wed, 11 Sep 2024 04:05:58 +0000 (13:05 +0900)]
Fix Util::CloseAllFds() method

To avoid deadlock issue by calling getenv(), this patch uses the global variable.

Change-Id: Ia0dca71f9eb511629562dad1e96df72eaf8e3f86
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoFix Util::PrepareAppSocket() method 87/317487/3
Hwankyu Jhun [Wed, 11 Sep 2024 02:34:39 +0000 (11:34 +0900)]
Fix Util::PrepareAppSocket() method

To avoid throwing the exception, this patch uses the following method:
- bool create_directory( const std::filesystem::path& p,
                         std::error_code& ec ) noexcept;

Change-Id: I2df244b430181c7c9736c87f7a4ab999ecf47d03
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoCheck directory existence before calling mount 33/317233/1
Hwankyu Jhun [Fri, 6 Sep 2024 05:29:02 +0000 (14:29 +0900)]
Check directory existence before calling mount

If the destination directory does not exist, we should skip to call
mount() function. This patch is to reduce printing error logs.

Change-Id: I3d05e303a1940ee88345465399e2280f0a7caafe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoSeparate the library from the launchpad-process-pool 86/316986/6
Hwankyu Jhun [Mon, 2 Sep 2024 07:00:55 +0000 (16:00 +0900)]
Separate the library from the launchpad-process-pool

The launchpad-core library is added. It will be used the sub module.

Change-Id: I57f448e7556743d2cdd73e72256598e56d8d027e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoRelease version 0.40.12 88/316988/1 accepted/tizen/unified/20240903.110728 accepted/tizen/unified/dev/20240910.111441 accepted/tizen/unified/x/20240904.025241
Hwankyu Jhun [Mon, 2 Sep 2024 07:08:32 +0000 (16:08 +0900)]
Release version 0.40.12

Changes:
 - Fix the implementation of IOChannel class

Change-Id: I5bdb061a24ebc7d93e9b256b9d94d662d8781883
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoFix the implementation of IOChannel class 61/316961/3
Hwankyu Jhun [Mon, 2 Sep 2024 03:40:46 +0000 (12:40 +0900)]
Fix the implementation of IOChannel class

- Use g_unix_fd_add() instead of g_io_channel_unix_fd().
- When calling the UnixFdFunc function, the function checks whether
the file descriptor is equal to the file descriptor of the IOChannel instance.
It's not equal, the function will remove the GSource.

Change-Id: I19ce6d18d11d175e33f250748de1f4a129cf7b07
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoRelease version 0.40.11 75/316875/1 accepted/tizen/unified/20240830.163404 accepted/tizen/unified/dev/20240903.220445 accepted/tizen/unified/x/20240901.123225
Changgyu Choi [Fri, 30 Aug 2024 00:28:24 +0000 (09:28 +0900)]
Release version 0.40.11

Changes:
 - Use access() instead of std::filesystem::exists()

Change-Id: Ibe33ab2e065a156bfd2519bebb02069e1e73ee14
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
9 months agoUse access() instead of std::filesystem::exists() 73/316873/1
Hwankyu Jhun [Thu, 29 Aug 2024 22:42:28 +0000 (07:42 +0900)]
Use access() instead of std::filesystem::exists()

This patch uses access() instead of std::filesystem::exists().
The std::filesystem::exists() can throw the exception. And, it use
stat() internally. From a performance point, it's better to use access.

Change-Id: Ifea946bb64d0470ec4a0ecbcb68cf65e12058a99
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoRelease version 0.40.10 81/315481/1 accepted/tizen/unified/20240802.160149 accepted/tizen/unified/dev/20240805.054325 accepted/tizen/unified/toolchain/20240812.133010 accepted/tizen/unified/x/20240805.012844 accepted/tizen/unified/x/asan/20240813.231258
Hwankyu Jhun [Thu, 1 Aug 2024 11:01:24 +0000 (20:01 +0900)]
Release version 0.40.10

Changes:
 - Modify loader handling

Change-Id: I004b7ea30612b5e146a32bb134f0534c8f864e43
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoModify loader handling 79/315479/2
Hwankyu Jhun [Thu, 1 Aug 2024 10:10:39 +0000 (19:10 +0900)]
Modify loader handling

- Calls exit() when getting the I/O error from the socket fd
- Checks whether the disconnected loader process is equal to the current process

Change-Id: I1a1690a0ef188b21ea7a4276d17247d593d57950
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRelease version 0.40.9 95/313695/1 accepted/tizen/unified/20240702.091909 accepted/tizen/unified/dev/20240703.060317 accepted/tizen/unified/x/20240703.013230
Hwankyu Jhun [Mon, 1 Jul 2024 05:31:12 +0000 (14:31 +0900)]
Release version 0.40.9

Changes:
 - Fix static analysis issues

Change-Id: If952e3f582a6cb0fca07e3f074db8955794b6c4f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoFix static analysis issues 57/313657/1
Hwankyu Jhun [Mon, 1 Jul 2024 00:07:23 +0000 (09:07 +0900)]
Fix static analysis issues

Checker:
 - UNREACHABLE_CODE

Change-Id: I55e3bc5de380aeac81bf3220a12d5a4813a65a41
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRelease version 0.40.8 66/313266/1 accepted/tizen/unified/20240624.104733 accepted/tizen/unified/dev/20240701.072826 accepted/tizen/unified/x/20240625.014043
Hwankyu Jhun [Fri, 21 Jun 2024 05:08:17 +0000 (14:08 +0900)]
Release version 0.40.8

Changes:
 - Change log levels

Change-Id: I514d5b9985f8080cf2b827a9e34b766fca7382bc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoChange log levels 61/313261/1
Hwankyu Jhun [Thu, 20 Jun 2024 23:15:10 +0000 (08:15 +0900)]
Change log levels

This patch changes log levels to error level for debugging.

Change-Id: I0cd74abbd2ba001457258f9d9730af4c3ab506e8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoRelease version 0.40.7 37/312237/1 accepted/tizen/unified/20240606.161503
Hwankyu Jhun [Wed, 5 Jun 2024 08:08:10 +0000 (17:08 +0900)]
Release version 0.40.7

Changes:
 - Use upstream _userunitdir macro
 - Fix build error for gcc-14

Change-Id: Ib690ddfc4666b525128325fd272a96602491c186
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoFix build error for gcc-14 34/312234/1 accepted/tizen/unified/20240611.123058 accepted/tizen/unified/dev/20240620.005106 accepted/tizen/unified/toolchain/20240610.172637 accepted/tizen/unified/x/20240610.223224 accepted/tizen/unified/x/asan/20240625.092457
Hwankyu Jhun [Wed, 5 Jun 2024 07:52:01 +0000 (16:52 +0900)]
Fix build error for gcc-14

Change-Id: I93629f9daabf6cde9c5cdf9b1d8730baf4e3f5af
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoUse upstream _userunitdir macro 74/310674/2
Łukasz Stelmach [Mon, 6 May 2024 07:33:52 +0000 (09:33 +0200)]
Use upstream _userunitdir macro

The _unitdir_user had been defined in Tizen before _userunitdir was
available upstream. The macros are equivalent. Switch to the latter so
the _unitdir_user can be dropped from Tizen.

Change-Id: Ida3bbfc50eddc837defe474b47559e0a4d004f63
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
13 months agoRelease version 0.40.6 05/310805/1 accepted/tizen/unified/20240516.031724 accepted/tizen/unified/x/20240516.064053
Hwankyu Jhun [Wed, 8 May 2024 09:49:24 +0000 (18:49 +0900)]
Release version 0.40.6

Changes:
 - Fix wrong command
 - Add log messages for debugging

Change-Id: I0107710a57a95410e051ea12170c42f8159993c4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoAdd log messages for debugging 04/310804/1
Hwankyu Jhun [Wed, 8 May 2024 09:45:32 +0000 (18:45 +0900)]
Add log messages for debugging

To check a loading time of the executable file, this patch adds log messages.

Change-Id: I4b1ceb722d59ca0156c0896bfde24d69c65a947b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoFix wrong command 99/308899/1
Hwankyu Jhun [Tue, 2 Apr 2024 10:54:38 +0000 (19:54 +0900)]
Fix wrong command

The tool name must be "ln".

Change-Id: I1c4c7ec0f9e9294e80804928450ed31d9d6ff449
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRelease version 0.40.5 30/308830/1 accepted/tizen/unified/20240402.151313 accepted/tizen/unified/20240402.163610 accepted/tizen/unified/x/20240403.102943
Hwankyu Jhun [Tue, 2 Apr 2024 00:21:27 +0000 (09:21 +0900)]
Release version 0.40.5

Changes:
 - Check dependent service file in posttrans

Change-Id: I41f56586a9b29e502f1dadeda7b4a820d7c8b887
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoCheck dependent service file in posttrans 29/308829/2
Hwankyu Jhun [Tue, 2 Apr 2024 00:06:58 +0000 (09:06 +0900)]
Check dependent service file in posttrans

The launchpad.rpm checks whether the enlightenment-user.service exists
or not in posttrans section. If it does not exists, the rpm removes
depenedencies from the launchpad-process-pool.service.

Change-Id: I0e3a28aca6a3410f734a93c5cd68bf590ece9457
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRelease version 0.40.4 91/308791/1 accepted/tizen/unified/20240402.061256 accepted/tizen/unified/x/20240402.093403
Hwankyu Jhun [Mon, 1 Apr 2024 06:20:50 +0000 (15:20 +0900)]
Release version 0.40.4

Changes:
 - Fix passing wrong arguments

Change-Id: Icd74fa6705ff8b64995307d19215b9e7abae18ac
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoFix passing wrong arguments 80/308780/3
Hwankyu Jhun [Mon, 1 Apr 2024 04:09:48 +0000 (13:09 +0900)]
Fix passing wrong arguments

When the application is executed using gdbserver, the export tag of the bundle
is deleted unintentionally. To pass arguments properly, the launchpad encloses
the string with a ''.

Change-Id: Ide6a9624b7cf3d9fdb3ab3441a49a47368aae3bd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 0.40.3 71/306771/1 accepted/tizen/unified/20240304.123034 accepted/tizen/unified/toolchain/20240311.065227 accepted/tizen/unified/x/20240305.021716
Hwankyu Jhun [Tue, 27 Feb 2024 10:27:51 +0000 (19:27 +0900)]
Release version 0.40.3

Changes:
 - Print logs related to app and loader executions
 - Remove log print related to fds

Change-Id: Iae3cd2482b8ab2f1a30052d3e72d3d743819b5fd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRemove log print related to fds 85/306685/1
Hwankyu Jhun [Mon, 26 Feb 2024 06:55:02 +0000 (15:55 +0900)]
Remove log print related to fds

This patch removes the log print from the CloseAllFds().

Change-Id: I51a90345e39242ca4a9dd8ba913d67c28543db46
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoPrint logs related to app and loader executions 14/306614/1
Hwankyu Jhun [Fri, 23 Feb 2024 07:26:59 +0000 (16:26 +0900)]
Print logs related to app and loader executions

Before calling execv(), the process will be printed for debugging.

Change-Id: Id9c0b8c8f0ff87f4aa4c9d75db04b568d4beed25
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 0.40.2 00/306300/1 accepted/tizen/unified/20240220.115640 accepted/tizen/unified/20240220.144642 accepted/tizen/unified/x/20240221.033424
Hwankyu Jhun [Tue, 20 Feb 2024 00:09:55 +0000 (09:09 +0900)]
Release version 0.40.2

Changes:
 - Validate gadget resource paths

Change-Id: I41d63bb24286820a2a6a2cfab8ed6b7b3bb32aca
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoValidate gadget resource paths 98/306298/1
Hwankyu Jhun [Mon, 19 Feb 2024 23:44:55 +0000 (08:44 +0900)]
Validate gadget resource paths

The gadget resource path will be changed to
"/<package root path>/res/allowed/<res-type>".
Before mounting the gadget paths, the launchpad checks whether the path exists
or not. If it does not exist, the gadget path will be modified to remove
the "<res-type>".

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