platform/core/appfw/launchpad.git
4 days agoRelease version 0.44.6 76/325376/1 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20250611.024021 accepted/tizen/unified/x/20250611.044710
Changgyu Choi [Tue, 10 Jun 2025 01:49:08 +0000 (10:49 +0900)]
Release version 0.44.6

Changes:
 - Delete loader .ready file on context disposal

Change-Id: Icdd4bcac6291f0e8ff076eeaf0bd40f520c4b2a4
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
5 days agoDelete loader .ready file on context disposal 20/325320/5
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>
10 days agoRelease version 0.44.5 71/325171/1
Hwankyu Jhun [Wed, 4 Jun 2025 06:27:41 +0000 (15:27 +0900)]
Release version 0.44.5

Changes:
 - Fix setting enviornment variable about GCOV

Change-Id: Icb26baa631cb5735d941fd569dfe9f4752eabcee
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 days agoFix setting enviornment variable about GCOV 64/325164/2
Hwankyu Jhun [Wed, 4 Jun 2025 05:20:35 +0000 (14:20 +0900)]
Fix setting enviornment variable about GCOV

If the GCOV_PREFIX is already set, the launchpad skips to set it to
the environment variable.

Change-Id: I1bf3bc90abea2748e2de45a207a95847bd5b583e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 weeks agoRelease version 0.44.4 51/324951/1 accepted/tizen/unified/20250602.101226 accepted/tizen/unified/x/20250603.105801
Changgyu Choi [Thu, 29 May 2025 07:39:34 +0000 (16:39 +0900)]
Release version 0.44.4

Changes:
 - Modify default debugger file
 - Remove BSD license boilerplate
 - Add LSAN_OPTIONS extra env to default.debugger

Change-Id: I74c4aade26d9c5bd522b9280eb3024b099a244d5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 weeks agoMerge "Add LSAN_OPTIONS extra env to default.debugger" into tizen
Changgyu Choi [Thu, 29 May 2025 07:39:16 +0000 (07:39 +0000)]
Merge "Add LSAN_OPTIONS extra env to default.debugger" into tizen

2 weeks agoAdd LSAN_OPTIONS extra env to default.debugger 50/324950/1
Changgyu Choi [Thu, 29 May 2025 07:36:42 +0000 (16:36 +0900)]
Add LSAN_OPTIONS extra env to default.debugger

lsan option has been added to default.debugger:ASAN.

Change-Id: Id2d2bb8288d394a0c82ccfacc914799b24a4e5ee
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 weeks agoRemove BSD license boilerplate 13/324313/2
Sangyoon Jang [Thu, 15 May 2025 08:31:06 +0000 (17:31 +0900)]
Remove BSD license boilerplate

This project uses Apache-2.0 license.

Change-Id: Id6ae4c1ef14ff6e72f64abbab65f9f588a041cbd
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 weeks agoModify default debugger file 33/324533/1
Hwankyu Jhun [Tue, 20 May 2025 06:59:26 +0000 (15:59 +0900)]
Modify default debugger file

The following extra environments are added for unit test option:
- GCOV_PREFIX
- GCOV_PREFIX_STRIP

Change-Id: I56b716ebcdebe6fcdcb2a3266959d5137914fea0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 weeks agoRelease version 0.44.3 03/324103/1 accepted/tizen/unified/20250515.075530 accepted/tizen/unified/x/20250515.094134
Jihoi Kim [Tue, 13 May 2025 05:27:42 +0000 (14:27 +0900)]
Release version 0.44.3

Changes:
 - Fix launchpad log to rotate correctly

Change-Id: Ic992fbdbdd6eea2e32b9d0a9670fad75137d4642
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
4 weeks agoFix launchpad log to rotate correctly 98/324098/2
Jihoi Kim [Tue, 13 May 2025 04:57:29 +0000 (13:57 +0900)]
Fix launchpad log to rotate correctly

- Use std::ios::ate instead of std::ios::app
- Make index be initialized into 0 when log file reach threshold
- Add single character flag to indicate border of log

Change-Id: I242b721bc2e7e582bc51564343801f450d06ba69
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
6 weeks agoRelease version 0.44.2 57/323357/1 accepted/tizen/unified/20250429.071353 accepted/tizen/unified/x/20250429.203605
Changgyu Choi [Mon, 28 Apr 2025 00:20:51 +0000 (09:20 +0900)]
Release version 0.44.2

Changes:
 - Fix static analysis issue

Change-Id: Ie946fe1db4c28c7b4cc76429f3fc24eeabde3be1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 weeks agoFix static analysis issue 48/323048/1
Jihoi Kim [Tue, 22 Apr 2025 08:19:01 +0000 (17:19 +0900)]
Fix static analysis issue

- Add log when file IO api failed
- Using const& to avoid copy operation

Change-Id: I3b4d1dd1f3e76a251f983c4a7d95930e46507ecc
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
8 weeks agoRelease version 0.44.1 50/322950/1
Changgyu Choi [Fri, 18 Apr 2025 09:18:45 +0000 (18:18 +0900)]
Release version 0.44.1

Changes:
 - [United Service App] Set service packages enviornments
 - Do not override DALI_DISABLE_PARTIAL_UPDATE environment variable

Change-Id: Iea6061b5fa45793466fa0ca7de354f5730076ee7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
8 weeks agoDo not override DALI_DISABLE_PARTIAL_UPDATE environment variable 34/322934/1
Changgyu Choi [Fri, 18 Apr 2025 06:03:59 +0000 (15:03 +0900)]
Do not override DALI_DISABLE_PARTIAL_UPDATE environment variable

If DALI_DISABLE_PARTIAL_UPDATE variable is set before setting in launchpad,
launchpad does not override it.

Change-Id: I1226e92bb7b2d15ed0cb61d877e58c3b87d64f5c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 months ago[United Service App] Set service packages enviornments 37/319637/3
Hwankyu Jhun [Fri, 14 Feb 2025 01:14:33 +0000 (10:14 +0900)]
[United Service App] Set service packages enviornments

Before executing an application, the launchpad sets the service packages
to the environment variables.

Change-Id: Ie2d8fcbbf31dfce6d5f296beb131793d0a6dc406
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 months agoRelease version 0.44.0 73/320273/2 accepted/tizen/unified/20250228.005541 accepted/tizen/unified/x/20250228.033205
Jihoi Kim [Wed, 26 Feb 2025 05:39:19 +0000 (14:39 +0900)]
Release version 0.44.0

Changes:
 - Support UID Sandbox feature

Change-Id: I0888ff13e95b283fb8251fcf28f9254b56808b1f
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
3 months agoSupport UID Sandbox feature 08/319608/6
Jihoi Kim [Thu, 13 Feb 2025 10:56:50 +0000 (19:56 +0900)]
Support UID Sandbox feature

- Change app socket path info /run/aul/apps/{pid}
- Change function name for readability,
  Using unified expression: 'socket path' and 'socket directory path'

Change-Id: Iff0f496e7d88c44f61ffae89becdb16c4bdf1d0f
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
3 months agoRelease version 0.43.7 61/320161/2
Hwankyu Jhun [Tue, 25 Feb 2025 05:48:27 +0000 (14:48 +0900)]
Release version 0.43.7

Changes:
 - Change mount dest path of gadget & library resources
 - Set command line to the environment variable

Change-Id: I97e091d83dc473bbb54590e26007c9241ebfbb3c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 months agoSet command line to the environment variable 86/320186/1
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>
3 months agoChange mount dest path of gadget & library resources 95/320095/2
Hwankyu Jhun [Mon, 24 Feb 2025 04:43:11 +0000 (13:43 +0900)]
Change mount dest path of gadget & library resources

The destination path of mounting the gadget resources will be changed to
"bin/.res_mount/gadget". The destination path of mounting the library resources
will be changed to "bin/.res_mount/lib".

Change-Id: Iae8761e5340ea75076ecd6602e746ca4ce93058a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 0.43.6 00/318800/1 accepted/tizen_unified_x_asan accepted/tizen/unified/20250203.113936 accepted/tizen/unified/x/20250212.043834 accepted/tizen/unified/x/asan/20250211.003439
Jihoi Kim [Fri, 24 Jan 2025 07:00:40 +0000 (16:00 +0900)]
Release version 0.43.6

Changes:
 - Change variable name to check socket existence
 - Move CloseAllFds() call after printing logs.
 - Fix static analysis issue
 - Recreate AppSocket directory to handle permission

Change-Id: I462c4e6bfc450482fc79352b65e16b97dce5ac5a
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
4 months agoRecreate AppSocket directory to handle permission 94/318794/2
Jihoi Kim [Fri, 24 Jan 2025 06:45:05 +0000 (15:45 +0900)]
Recreate AppSocket directory to handle permission

- Remove AppSocket directory before create socket for app
- It will ensure the path to have correct permission

Change-Id: I5a827d2ecc467a84667937961f54a7086aaa522c
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
4 months agoRelease version 0.43.5 98/318698/1
Changgyu Choi [Wed, 22 Jan 2025 08:49:35 +0000 (17:49 +0900)]
Release version 0.43.5

Changes:
 - Fix static analysis issue

Change-Id: I827f4c512a3650dc6b15eb1bf7d8176206a58ed6
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 months agoFix static analysis issue 19/318619/4
Changgyu Choi [Tue, 21 Jan 2025 07:21:48 +0000 (16:21 +0900)]
Fix static analysis issue

Change:
 - Fix fd leak.
 - Change fs::exists() method to access().
 - Add missing target include directory.

Change-Id: I1ddce8e3566fd2296a95ee5e70ab9d02eb16cf5b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 months agoRelease version 0.43.4 89/318489/2
Jihoi Kim [Fri, 17 Jan 2025 08:14:43 +0000 (17:14 +0900)]
Release version 0.43.4

Changes:
 - Move CloseAllFds() call after printing logs
 - Change variable name to check socket existence

Change-Id: I2d64740825c055dcfc14b32f58119827b09a1be7
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
4 months agoMove CloseAllFds() call after printing logs. 52/318452/2
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 agoChange variable name to check socket existence 78/318478/1
Jihoi Kim [Fri, 17 Jan 2025 07:25:16 +0000 (16:25 +0900)]
Change variable name to check socket existence

- This patch is to avoid confusion in variable name
- Change variable names to distinguish socket ready file and socket itself

Change-Id: Icb1bbfee2bb143540fcd64fbe6a34687c0ad845b
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
4 months agoRelease version 0.43.3 50/318350/1 accepted/tizen/unified/20250117.152500 accepted/tizen/unified/x/20250117.125244
Hwankyu Jhun [Thu, 16 Jan 2025 03:38:16 +0000 (12:38 +0900)]
Release version 0.43.3

Changes:
 - Set request ID to environment variable

Change-Id: Icd4e3a79c6a006a63e01b4f47c0becfe713c6c46
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoSet request ID to environment variable 81/317681/3
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.43.2 69/318169/1 accepted/tizen/unified/20250114.104255 accepted/tizen/unified/x/20250114.211235
Hwankyu Jhun [Tue, 14 Jan 2025 00:30:38 +0000 (09:30 +0900)]
Release version 0.43.2

Changes:
 - Fix segmentation fault

Change-Id: I7bbe3441a40e4e32830ba144e081e8b969faf758
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoFix segmentation fault 66/318166/1
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 agoRelease version 0.43.1 94/318094/1
Hwankyu Jhun [Mon, 13 Jan 2025 06:11:22 +0000 (15:11 +0900)]
Release version 0.43.1

Changes:
 - Remove build warning messages
 - Change socket file name
 - Mark and close created file descriptors in process pool

Change-Id: I5a38a6a06be2d789e2dfa9fa68e1ab4f4e3a41af
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoMark and close created file descriptors in process pool 53/318053/3
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 agoChange socket file name 93/317993/2
Hwankyu Jhun [Fri, 10 Jan 2025 10:32:27 +0000 (19:32 +0900)]
Change socket file name

This patch changes the file name to the previous socket file for
backward compatibility.

Change-Id: I53fcd09cb7a00fd2082a0ca870f42bbbe0e8ee80
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRemove build warning messages 54/318054/2
Hwankyu Jhun [Mon, 13 Jan 2025 00:29:07 +0000 (09:29 +0900)]
Remove build warning messages

This patch add the type casting to remove build warning messages.

Change-Id: I3f3ed51f5a1713385178588ab0fdb0eaf84583bb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRelease version 0.43.0 55/317855/1
Changgyu Choi [Thu, 9 Jan 2025 03:49:44 +0000 (12:49 +0900)]
Release version 0.43.0

Changes:
 - Change permission checking logic

Change-Id: Ie7badb6d098133606ac92a49e5c53a35352e62f2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
5 months agoChange permission checking logic 43/317743/6
Changgyu Choi [Tue, 7 Jan 2025 09:42:59 +0000 (18:42 +0900)]
Change permission checking logic

The permission checking logic can be simply changed to check the uid.

Change-Id: Ia12c6330b09ae0348961e346e67ceadf177c4ad3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
5 months agoRelease version 0.42.11 02/317602/1
Changgyu Choi [Mon, 6 Jan 2025 00:49:04 +0000 (09:49 +0900)]
Release version 0.42.11

Changes:
 - Fix static analysis issue
 - Compare process IDs

Change-Id: Icb4072193a97c547722acd7fad34a370e12c4b73
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
5 months agoMerge "Fix static analysis issue" into tizen
Changgyu Choi [Mon, 6 Jan 2025 00:48:13 +0000 (00:48 +0000)]
Merge "Fix static analysis issue" into tizen

5 months agoCompare process IDs 97/317597/1
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 74/317574/1
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>
5 months agoRelease version 0.42.10 02/317402/1
Changgyu Choi [Thu, 2 Jan 2025 00:41:27 +0000 (09:41 +0900)]
Release version 0.42.10

Changes:
 - Change to use abstract socket in amd,launchpad

Change-Id: I50d0dfa76607b28e7a20df93fb178742ff949fc7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
5 months agoChange to use abstract socket in amd,launchpad 86/317286/5
newb1e [Mon, 30 Dec 2024 05:08:22 +0000 (14:08 +0900)]
Change to use abstract socket in amd,launchpad

- Change socket names: ex) @org.tizen.appfw.amd
- Path name starts with '@' will be abstract sockets
- Change connect(), bind() wrapper classes to handle '@' path

Change-Id: Id782fa1d31f206f71efe6c7ab7bd4e71bcb87698
Signed-off-by: newb1e <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>