platform/core/appfw/amd.git
9 months agoRelease version 1.66.8 08/298008/1
Hwankyu Jhun [Wed, 30 Aug 2023 04:39:01 +0000 (13:39 +0900)]
Release version 1.66.8

Changes:
 - Modify setting auto restart handler

Change-Id: I8814989c28d24280d18c6237889e576ae45d6800
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoModify setting auto restart handler 06/298006/1
Hwankyu Jhun [Wed, 30 Aug 2023 03:46:51 +0000 (12:46 +0900)]
Modify setting auto restart handler

After this patch is applied, amd sends the notification message when
the registration or deregistration of setting auto restart is successful.

Change-Id: I71b8c060ae93bcd43216785b1012754674168a46
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoRelease version 1.66.7 82/297482/1 accepted/tizen/unified/20230821.103316
Hwankyu Jhun [Mon, 21 Aug 2023 00:31:14 +0000 (09:31 +0900)]
Release version 1.66.7

Changes:
 - Remove timeout setting of applying cpu boosting

Change-Id: Iaa79e67cc97fa19f5da71f03bb8a6d2f80c4cef7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoRemove timeout setting of applying cpu boosting 27/297427/2
Hwankyu Jhun [Fri, 18 Aug 2023 05:01:18 +0000 (14:01 +0900)]
Remove timeout setting of applying cpu boosting

Unfortunately, the plugin module of the resource API does not support
timeout feature properly. According to the guide, if the timeout setting
exists, we must not call the resource_clear_cpu_boosting() function.
This patch changes the timeout argument to -1 from the 5000 (milliseconds).
The RESET_ON_FORK flag is also removed.

Change-Id: I390c5ec3dd6f8ae0d5ac87303e1378ba17411f68
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoRelease version 1.66.6 21/297321/1 accepted/tizen/unified/20230818.054556
Changgyu Choi [Thu, 17 Aug 2023 00:59:30 +0000 (09:59 +0900)]
Release version 1.66.6

Changes:
 - Fix a static analysis issue
 - Remove duplicated Update() calling

Change-Id: Ib0c191f811e0b1d08fb645fc2972ae2d02858252
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
9 months agoRemove duplicated Update() calling 75/297275/1
Changgyu Choi [Wed, 16 Aug 2023 06:37:50 +0000 (15:37 +0900)]
Remove duplicated Update() calling

_terminate_app_local() is calling Update() method.
This patch removes them.

Change-Id: I08543992cca622c127ed50ab2e7ecce8b2484f37
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
9 months agoFix a static analysis issue 64/297264/4
Changgyu Choi [Wed, 16 Aug 2023 05:36:27 +0000 (14:36 +0900)]
Fix a static analysis issue

Adds app_status nullptr checking.

Change-Id: I473c9c9a752641410ce21124bc2ec86bda2b8e6a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
9 months agoRelease version 1.66.5 71/296771/1 accepted/tizen/unified/20230808.011400
Hwankyu Jhun [Fri, 4 Aug 2023 05:34:30 +0000 (14:34 +0900)]
Release version 1.66.5

Changes:
 - Modify handling pending requests

Change-Id: I969e122dce529de3bec1663750b1f8e6eb628c66
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoModify handling pending requests 41/296741/3
Hwankyu Jhun [Fri, 4 Aug 2023 02:22:33 +0000 (11:22 +0900)]
Modify handling pending requests

The SetTimer() method is added to the Request class. The method sets
a timer using the interval that is calculated with the timeout variable.
And, the log is added for debugging.

Change-Id: Ibb0636f8f3fc174948ae57e9b987c9ad13d4f6e1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoRelease version 1.66.4 34/296734/1 accepted/tizen/unified/20230807.014652
Hwankyu Jhun [Fri, 4 Aug 2023 00:21:15 +0000 (09:21 +0900)]
Release version 1.66.4

Changes:
 - Fix wrong implementation of ClientChannel

Change-Id: Ie356e037f2e84a7b45dcb99832c170dcf006b13c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoFix wrong implementation of ClientChannel 33/296733/1
Hwankyu Jhun [Thu, 3 Aug 2023 23:55:13 +0000 (08:55 +0900)]
Fix wrong implementation of ClientChannel

The once_ member variable must be set while calling constructor.

Change-Id: I1207d0b9c87b5e7ac2a0c68671583dc777f75c83
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoRelease version 1.66.3 07/296707/1
Hwankyu Jhun [Thu, 3 Aug 2023 08:07:39 +0000 (17:07 +0900)]
Release version 1.66.3

Changes:
 - Fix memory leak
 - Fix memory leak
 - Modify AMD database API

Change-Id: I90acb561d1c54693dc867a7bf48b03f48f6d54f3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoModify AMD database API 86/296686/4
Hwankyu Jhun [Thu, 3 Aug 2023 05:32:44 +0000 (14:32 +0900)]
Modify AMD database API

To reduce memory usage, amd opens and closes the database repeatedly
in the loop.

Change-Id: I6db87bbbe38ad7b2b08e237d005bda4b8a4a3ed5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoFix memory leak 94/296694/1
Hwankyu Jhun [Thu, 3 Aug 2023 06:47:00 +0000 (15:47 +0900)]
Fix memory leak

This patch fixes the following case:
+------------------------------------------------------------------------------+
  25 bytes in 1 blocks are definitely lost in loss record 1,476 of 3,015
  ==513==    at 0x4848A14: malloc (vg_replace_malloc.c:307)
  ==513==    by 0x49C6F77: strdup (strdup.c:42)
  ==513==    by 0x4C46F97: vconf_get_str (vconf.c:1203)
  ==513==    by 0x48EB983: amd::AppStatusManager::InitVconf()
                           (app_status_manager.cc:901)
  ==513==    by 0x48EBACF: amd::AppStatusManager::Init()::{lambda(void*)#4}::
                           _FUN(void*) (app_status_manager.cc:1061)
  ==513==    by 0x4B8D247: g_timeout_dispatch (gmain.c:4933)
  ==513==    by 0x4B8C8EB: g_main_dispatch (gmain.c:3381)
  ==513==    by 0x4B8C8EB: g_main_context_dispatch (gmain.c:4099)
  ==513==    by 0x4B8CB6F: g_main_context_iterate.isra.0 (gmain.c:4175)
  ==513==    by 0x4B8CDD7: g_main_loop_run (gmain.c:4373)
  ==513==    by 0x48B7D79: amd_main (amd_main.cc:282)
+------------------------------------------------------------------------------+

Change-Id: Icdb2f3b294e12d794d877f040f768e7991fa0d4e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoFix memory leak 57/296657/3
Hwankyu Jhun [Thu, 3 Aug 2023 00:25:19 +0000 (09:25 +0900)]
Fix memory leak

If the callee application does not use tizen main loop function,
the ResultCb instance is not released.
To release the allocated memory properly, this patch adds a new method to
the ClientChannel. When calling the OnTimedOut, amd releases the ResultCb.

Change-Id: Ia29e7ba632296c56ae95d9fd5febc14ecfcd9e22
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoRelease version 1.66.2 58/296558/1 accepted/tizen/unified/20230803.034059
Changgyu Choi [Tue, 1 Aug 2023 04:45:44 +0000 (13:45 +0900)]
Release version 1.66.2

Changes:
 - Change multiple instance appid aul key

Change-Id: Iaf17e79125ebba0407bfbc4490ffae6bd9c860e5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
10 months agoChange multiple instance appid aul key 52/296552/1
Changgyu Choi [Tue, 1 Aug 2023 02:24:02 +0000 (11:24 +0900)]
Change multiple instance appid aul key

AUL_K_ORG_APPID is already used as alias appid.
this patch changes the aul key to AUL_K_MULTIPLE_INSTANCE_APPID.

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/aul-1/+/296550

Change-Id: I20a5a395d7f2b5a66f557bc333e6b06fefdc7909
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
10 months agoRelease version 1.66.1 41/296541/1 accepted/tizen/unified/20230801.174228
Hwankyu Jhun [Mon, 31 Jul 2023 23:40:27 +0000 (08:40 +0900)]
Release version 1.66.1

Changes:
 - Modify dying timeout handler

Change-Id: I0c8806677a2cb71944108139c1d97074f0d4b814
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoModify dying timeout handler 39/296539/1
Hwankyu Jhun [Mon, 31 Jul 2023 22:57:07 +0000 (07:57 +0900)]
Modify dying timeout handler

If the package is uninstalling or there is no appinfo, amd does not send
SIGKILL signal to the running process. It causes the SMACK error.

Change-Id: Ifbccef62c91cfd69047df2872506e25cd06de6a5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoRelease version 1.66.0 82/296282/1
Hwankyu Jhun [Tue, 25 Jul 2023 01:30:36 +0000 (10:30 +0900)]
Release version 1.66.0

Changes:
 - Handle new AUL commands related to proc group

Change-Id: I08ac1a565254659b41588ab958e00a12a608dd5e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoHandle new AUL commands related to proc group 50/296250/4
Hwankyu Jhun [Mon, 24 Jul 2023 09:47:28 +0000 (18:47 +0900)]
Handle new AUL commands related to proc group

The amd-mod-proc-group module handles PROC_GROUP_FOREACH and
PROC_GROUP_GET commands.

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/296246/

Change-Id: I8b87fc67be3e754569a6e68c4887dbaedd82ada6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoRelease version 1.65.9 45/296245/1 accepted/tizen/unified/20230726.020635
Hwankyu Jhun [Mon, 24 Jul 2023 07:20:42 +0000 (16:20 +0900)]
Release version 1.65.9

Changes:
 - Modify amd launchpad implementation

Change-Id: Iaeed59d4c7fc8579399089327cf28897a9a3105a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoModify amd launchpad implementation 38/296238/1
Hwankyu Jhun [Mon, 24 Jul 2023 06:43:31 +0000 (15:43 +0900)]
Modify amd launchpad implementation

To prevent timing issue related to getting app dead signal, this patch
changes the priority of the GIOChannel. Even if the launchpad sends the
result to the amd, amd does not handle it immediately. Sometimes, the
amd handles the dead signal before handling the result of the launch request.

Change-Id: I298c9a6937f386532428ffa73d85aa0569c06bfa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoRelease version 1.65.8 58/295958/1 accepted/tizen/unified/20230718.162216
Hwankyu Jhun [Tue, 18 Jul 2023 00:32:35 +0000 (09:32 +0900)]
Release version 1.65.8

Changes:
 - Modify file monitor initialization of wayland-core

Change-Id: I672a29136638bf097f003039d9cbfad9a53bcf16
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoModify file monitor initialization of wayland-core 50/295950/1
Hwankyu Jhun [Mon, 17 Jul 2023 22:40:43 +0000 (07:40 +0900)]
Modify file monitor initialization of wayland-core

The inotify event should be added before checking file existence.
If the file has created after checking whether the file exists or not
using access() function, AMD does not know the file creation.

Change-Id: I795b5dc206bb3fae0ebde8056e4df5e6395b34db
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRelease version 1.65.7 45/295145/1 accepted/tizen_unified_dev accepted/tizen/unified/20230705.063718 accepted/tizen/unified/dev/20230726.115724
Hwankyu Jhun [Mon, 3 Jul 2023 08:29:21 +0000 (08:29 +0000)]
Release version 1.65.7

Changes:
 - Fixed the build error using gcc 13

Change-Id: Ic55b3864bb399a003bea52c934dbaa81f2b92ec3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoFixed the build error using gcc 13 34/295134/1
Hwankyu Jhun [Mon, 3 Jul 2023 07:16:21 +0000 (07:16 +0000)]
Fixed the build error using gcc 13

- Change 'requires' variable to 'requires_dep'
- Remove unnecessary std::move call

Change-Id: I0620e9601429c69ee45e55e3c159e1c6f0eec1e0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRelease version 1.65.6 23/294923/1
Changgyu Choi [Thu, 29 Jun 2023 01:56:08 +0000 (10:56 +0900)]
Release version 1.65.6

Changes:
 - Fix gcov build failure issue

Change-Id: Ib18c3b25e7ae2d720026afa24207a692f61004e0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoFix gcov build failure issue 22/294922/1
Changgyu Choi [Thu, 29 Jun 2023 01:42:24 +0000 (10:42 +0900)]
Fix gcov build failure issue

This patch is for the below issue.

error logs:
[   86s] /home/abuild/rpmbuild/BUILD/amd-1.65.3/src/lib/amd_launch.cc: In function 'int DispatchAppResult(request_h)':
[   86s] /home/abuild/rpmbuild/BUILD/amd-1.65.3/src/lib/amd_launch.cc:761:31: error: 'caller_uid' may be used uninitialized in this function [-Werror=maybe-uninitialized]
[   86s]   761 |     ret = aul_sock_send_bundle(caller_pid, caller_uid,
[   86s]       |           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
[   86s]   762 |         req->GetCmd(), b->GetHandle(), AUL_SOCK_NOREPLY);
[   86s]       |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Change-Id: I4323afdc83da200e89cb76f846474c41e105c1cf
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoRelease version 1.65.5 72/294872/1
Changgyu Choi [Wed, 28 Jun 2023 04:34:39 +0000 (13:34 +0900)]
Release version 1.65.5

Changes:
 - Fix wrong implementation
 - Change AppStatus handle name

Change-Id: I8685909555c01feab17bb55f68af707af1334060
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoChange AppStatus handle name 68/294868/3
Changgyu Choi [Wed, 28 Jun 2023 03:46:02 +0000 (12:46 +0900)]
Change AppStatus handle name

The name "app" is ambiguous in meaning.
This patch changes the name of the AppStatus handle from "app" to
"app_status".

Change-Id: I078c4c4c6baff74c03967d2fb4578606a8676f8c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoFix wrong implementation 59/294859/1
Changgyu Choi [Wed, 28 Jun 2023 00:35:22 +0000 (09:35 +0900)]
Fix wrong implementation

This patch fixes the wrong modification in the previous patch.

Change-Id: Ia1d83ec8246b1edbf3ddcb3cacc588df6a7b02ee
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoRelease version 1.65.4 24/294824/1
Changgyu Choi [Tue, 27 Jun 2023 06:27:00 +0000 (15:27 +0900)]
Release version 1.65.4

Changes:
 - Reduce amd_app_status C function dependencies
 - Fix static analysis issues

Change-Id: I1bad2c36839a44382af02574e6df174f0a345082
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoFix static analysis issues 16/294816/5
Changgyu Choi [Tue, 27 Jun 2023 05:28:12 +0000 (14:28 +0900)]
Fix static analysis issues

Changes:
 - nullptr checks.
 - Uses std::move() instead of copy.
 - Removes wrong used std::move().

Change-Id: I71f98f104fc2b3f4da6e8cbabe9f4c812822dd8c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoReduce amd_app_status C function dependencies 69/294769/8
Changgyu Choi [Mon, 26 Jun 2023 09:29:11 +0000 (18:29 +0900)]
Reduce amd_app_status C function dependencies

amd has been refactored to C++.
So using C interface inside amd creates unnecessary overhead.
This patch reduces amd_app_status C function dependencies.

Change-Id: I5b94336e0ec1d762cfd23d8983adf334143a7250
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoRelease version 1.65.3 63/294763/1 accepted/tizen/unified/20230628.023649
Changgyu Choi [Mon, 26 Jun 2023 08:13:05 +0000 (17:13 +0900)]
Release version 1.65.3

Changes:
 - Reduce amd_request C function dependencies

Change-Id: I44a5ee46d90455dc17135081f38a28e60617dbb6
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoReduce amd_request C function dependencies 77/294677/8
Changgyu Choi [Mon, 26 Jun 2023 01:17:18 +0000 (10:17 +0900)]
Reduce amd_request C function dependencies

amd has been refactored to C++.
So using C interface inside amd creates unnecessary overhead.
This patch reduces amd_request C function dependencies.

Change-Id: Ie63ee96c9c4bd70e4aa377c2c8ed64ae1916fec4
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoRelease version 1.65.2 85/294685/1
Hwankyu Jhun [Fri, 23 Jun 2023 07:16:16 +0000 (07:16 +0000)]
Release version 1.65.2

Changes:
 - Add a fallback about finding appinfo

Change-Id: I145bf3990b42c9f79bcac85418c1eac158cec84c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoAdd a fallback about finding appinfo 78/294678/2
Hwankyu Jhun [Fri, 23 Jun 2023 06:26:53 +0000 (06:26 +0000)]
Add a fallback about finding appinfo

If finding appinfo is failed, amd tries to insert the appinfo using
pkgmgr-info API. If it's failed, amd returns -ENOENT error.

Change-Id: Ifb0b5cfb97f9fdd0e6aa4ee6b6460c0b06f3a617
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRelease version 1.65.1 74/294674/1 accepted/tizen/unified/20230623.160705 accepted/tizen/unified/20230627.025429
Hwankyu Jhun [Fri, 23 Jun 2023 01:58:06 +0000 (01:58 +0000)]
Release version 1.65.1

Changes:
 - Modify pkgmgr event handler

Change-Id: I5a30ca6c81c46f39cffa6b0ee7af90442915f3b3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoModify pkgmgr event handler 72/294672/1
Hwankyu Jhun [Fri, 23 Jun 2023 01:21:26 +0000 (01:21 +0000)]
Modify pkgmgr event handler

If the event name is 'uninstall', AMD sends the SIGKILL signal to
the running application of the uinstalling package.

Change-Id: I7a23a85f968cde83bb7862dfa7b8eaa79ccf6fb3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRelease version 1.65.0 37/294437/1 accepted/tizen/unified/20230621.023238
Changgyu Choi [Mon, 19 Jun 2023 08:07:53 +0000 (17:07 +0900)]
Release version 1.65.0

Changes:
 - Change restart policy

Change-Id: I57c41be8d588cfc2c85df4667c75f42904731c78
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoChange restart policy 23/294323/7
Changgyu Choi [Fri, 16 Jun 2023 05:05:00 +0000 (14:05 +0900)]
Change restart policy

If the app sets the auto-restart option and terminates abnormally, there
is an unintended possibility of infinite restart.
This patch does not perform a restart if an app terminates with a crash
three times in a row.
However, for launch requests with a  "__K_RESET_RESTART_CRASH_COUNT"
key values, the count is reset.

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/aul-1/+/294246

Change-Id: Idf6288e800c9d4c19831deffd4abe9274621307a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoRelease version 1.64.3 99/294299/1 accepted/tizen/unified/20230616.172416
Hwankyu Jhun [Fri, 16 Jun 2023 00:54:49 +0000 (00:54 +0000)]
Release version 1.64.3

Changes:
 - Revert "Send real-time signal to print backtrace of application"

Change-Id: I53fa2d24041770e8bf71eebaefe3fb5e93886fab
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRevert "Send real-time signal to print backtrace of application" 97/294297/1
Hwankyu Jhun [Fri, 16 Jun 2023 00:50:06 +0000 (00:50 +0000)]
Revert "Send real-time signal to print backtrace of application"

This reverts commit 8b8605b7c07318003f5ff681d5a217f547a7c5d5.

Change-Id: I91c762f83d5be37a913d085038b516e56b96b7a6

11 months agoRelease version 1.64.2 96/294196/1
Hwankyu Jhun [Wed, 14 Jun 2023 06:47:04 +0000 (06:47 +0000)]
Release version 1.64.2

Changes:
 - Fix fd leak issue

Change-Id: I0762aedf67869ce8e27f2e9fad5b4b8b65babc73
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoFix fd leak issue 40/294140/1
Hwankyu Jhun [Wed, 14 Jun 2023 02:37:32 +0000 (02:37 +0000)]
Fix fd leak issue

If the application does not use app main function, amd does not flush
the pending items. It makes the fd leak and memory leak issues.
This patch adds a timer to solve the issue. If the application does not
create the aul socket, the caller will get the timed out error.

Change-Id: I7011303d6159d6e90ebb848feee8045876f3d7f9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRelease version 1.64.1 63/293863/1 accepted/tizen/unified/20230608.164332
Changgyu Choi [Wed, 7 Jun 2023 07:26:18 +0000 (16:26 +0900)]
Release version 1.64.1

Changes:
 - Check whether app com socket exists

Change-Id: I9148af711adb9a52aa73fe707c384b72a33c3cd2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
11 months agoCheck whether app com socket exists 55/293855/1
Changgyu Choi [Wed, 7 Jun 2023 06:31:21 +0000 (15:31 +0900)]
Check whether app com socket exists

If the socket does not exist, connet() failure is obvious.
This causes unnecessary amd block.
This patch is to prevent this.

Change-Id: I03cfef1178da1e5ada7b0e7fadeb16af8e422b02
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
12 months agoRelease version 1.64.0 99/293599/1 accepted/tizen/unified/20230601.163005
Hwankyu Jhun [Thu, 1 Jun 2023 00:37:53 +0000 (00:37 +0000)]
Release version 1.64.0

Changes:
 - Add a new module for monitoring cpu usage

Change-Id: I499fb61896fe0575f041df804c33867dee4e91d5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoAdd a new module for monitoring cpu usage 10/293410/7
Hwankyu Jhun [Fri, 26 May 2023 07:00:52 +0000 (07:00 +0000)]
Add a new module for monitoring cpu usage

To monitor cpu usage of AMD, the amd-mod-cpu-monitor module is added.

Change-Id: I6f44af705923ac2f77f6c384a549d5121bdcd932
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoRelease version 1.63.0 48/293548/2
Hwankyu Jhun [Wed, 31 May 2023 07:39:27 +0000 (07:39 +0000)]
Release version 1.63.0

Changes:
 - Fix static analysis issues
 - Send real-time signal to print backtrace of application
 - Modify watchdog module

Change-Id: I74f393a76643e40eb8fc12024f79fc36208987a4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoModify watchdog module 29/293529/1
Hwankyu Jhun [Wed, 31 May 2023 06:36:55 +0000 (06:36 +0000)]
Modify watchdog module

Unfortunately, the operation of resourced is not constant for each device and
has different characteristics for each product.
To detect the deadlock state of the application properly, the amd-mod-watchdog
should send the SIGABRT signal to the running process.

Change-Id: Ie6331dbef825d455fa85e262df8166b3a6b305a9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoSend real-time signal to print backtrace of application 97/293497/2
Hwankyu Jhun [Wed, 31 May 2023 00:56:01 +0000 (00:56 +0000)]
Send real-time signal to print backtrace of application

To debug the main thread of the application, AMD sends the signal to
the running application when the application was not responding.

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-core/+/293496/

Change-Id: I43b01df621fea987fa3be2a6a2dea90744f1fcfd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoFix static analysis issues 53/293353/1
Changgyu Choi [Thu, 25 May 2023 01:53:40 +0000 (10:53 +0900)]
Fix static analysis issues

Changes:
 - Initializes an uninitialized value.

Change-Id: If42120f2712782edfaa4aa0b83e959b33e761ea3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
12 months agoRelease version 1.62.5 47/293347/1
Changgyu Choi [Thu, 25 May 2023 00:36:26 +0000 (09:36 +0900)]
Release version 1.62.5

Changes:
 - Add a timeout handler on first launch request
 - Fix duplicate execution
 - Add missing error handling
 - Improve boot sequence load error

Change-Id: Ia645894035c8a71e3d15b401779f779a98270e39
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
12 months agoImprove boot sequence load error 14/293314/2
Changgyu Choi [Wed, 24 May 2023 09:29:03 +0000 (18:29 +0900)]
Improve boot sequence load error

In rare cases, appsvc db update may not be performed normally while package db is updated.
To compensate for this, this patch is temporarily queued by checking once more
whether it exists within AppInfo chunk during boot sequence load process.

Change-Id: If86742ef49ba5eb671107429a91a654682c34638
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
12 months agoAdd missing error handling 22/293222/3
Changgyu Choi [Tue, 23 May 2023 02:36:41 +0000 (11:36 +0900)]
Add missing error handling

When uid is invalid, chunck is nullptr.
This patch is for protecting this error exception.

Change-Id: I3300ce15800d1327fe9959d0c7d546e144bcb791
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
12 months agoFix duplicate execution 16/292716/2
Hwankyu Jhun [Thu, 11 May 2023 22:47:02 +0000 (22:47 +0000)]
Fix duplicate execution

If the onboot option is activated while AMD executes the application,
the application will run in duplicate. To prevent the duplicate execution,
AMD checks whether the request status is pending or not.

Change-Id: Id538d5e4508d0d6c1fd0d13871be95d679cc8d79
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoAdd a timeout handler on first launch request 37/292237/9
Changgyu Choi [Tue, 2 May 2023 05:41:04 +0000 (14:41 +0900)]
Add a timeout handler on first launch request

Rarely, launchpad can terminate abnormally before returning the pid.
In this case, the first request remains in memory.
This patch is prepared to prepare for this problem.

Change-Id: Icd8c548c8018ad6289311ccc108030d301694bb3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
13 months agoRelease version 1.62.4 03/291903/1 accepted/tizen/unified/20230425.175849
Hwankyu Jhun [Tue, 25 Apr 2023 02:32:47 +0000 (02:32 +0000)]
Release version 1.62.4

Changes:
 - Improve amd initialization

Change-Id: I3f7345ed141791d753414301d566ecffd8ec0fec
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoImprove amd initialization 76/291876/2
Hwankyu Jhun [Mon, 24 Apr 2023 09:43:45 +0000 (09:43 +0000)]
Improve amd initialization

To improve amd initialization, amd applies to do boost in the process itself.

Change-Id: Iac9f56cf5741353eaea404f501d52e2c699246d5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoRelease version 1.62.3 65/291765/1 accepted/tizen/unified/20230424.185358
Hwankyu Jhun [Fri, 21 Apr 2023 04:35:08 +0000 (04:35 +0000)]
Release version 1.62.3

Changes:
 - Fix crash issue
 - Fix build error for gcc 12.2.0

Change-Id: I62329cac008f08e30369b3b5caa869638d79cd5f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoFix build error for gcc 12.2.0 44/291744/1
Hwankyu Jhun [Fri, 21 Apr 2023 00:26:57 +0000 (00:26 +0000)]
Fix build error for gcc 12.2.0

- Use std::mem_fn instead of std::mem_fun_ref

Change-Id: Id2e0fb8017457fa3ec1e4f142ae4ae6175f47806
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoFix crash issue 39/291739/1
Hwankyu Jhun [Thu, 20 Apr 2023 21:59:29 +0000 (21:59 +0000)]
Fix crash issue

When the app_info argument is nullptr, calling the enable_shared_from_this()
makes a crash issue. To prevent invalid access, this patch adds
the nullptr check before calling the enable_shared_from_this().

Change-Id: I6ec4acc979eb794c9d07b259658134ad793744a7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoRelease version 1.62.2 13/291513/1 accepted/tizen/unified/20230419.044945
Hwankyu Jhun [Tue, 18 Apr 2023 02:13:28 +0000 (02:13 +0000)]
Release version 1.62.2

Changes:
 - Fix static analysis issue

Change-Id: I199cd1313600985d5ad5db34a4c1f0d9c4a7e29a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoFix static analysis issue 12/291512/1
Hwankyu Jhun [Tue, 18 Apr 2023 02:08:14 +0000 (02:08 +0000)]
Fix static analysis issue

Type:
 - Forward null

Change-Id: I97b2abd061728ca23ec3f15a331bf466bd5c8015
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoRelease version 1.62.1 59/291459/1 accepted/tizen/unified/20230417.140311
Hwankyu Jhun [Mon, 17 Apr 2023 07:03:33 +0000 (07:03 +0000)]
Release version 1.62.1

Changes:
 - Separate NUIGadgetViewer package from amd package

Change-Id: I48be769f158c5c844f1d7832d8f22290327d0ef2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoSeparate NUIGadgetViewer package from amd package 56/291456/1
Hwankyu Jhun [Mon, 17 Apr 2023 06:40:57 +0000 (06:40 +0000)]
Separate NUIGadgetViewer package from amd package

The org.tizen.NUIGadgetViewer rpm is added.

Change-Id: I7640d5bda4e52eed9930bba50058924247019e86
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoRelease version 1.62.0 62/291362/1 accepted/tizen/unified/20230414.125222
Hwankyu Jhun [Fri, 14 Apr 2023 00:49:48 +0000 (00:49 +0000)]
Release version 1.62.0

Changes:
 - Support NUIGadgetViewer

Change-Id: I4c66fa2ce6415809f6d869f80a5bdaf0c2837fd5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoSupport NUIGadgetViewer 03/290203/6
Hwankyu Jhun [Tue, 21 Mar 2023 09:35:07 +0000 (09:35 +0000)]
Support NUIGadgetViewer

When the target application ID is "org.tizen.NUIGadgetViewer", AMD assigns
the mount information for NUIGadget to the bundle object.
This patch includes the "org.tizen.NUIGadgetViewer" tpk file for installation.

Change-Id: Iab29b2ec86818794c048b3b9f004439228018592
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRelease version 1.61.0 22/290722/1 accepted/tizen/unified/20230401.142034
Hwankyu Jhun [Fri, 31 Mar 2023 07:43:28 +0000 (07:43 +0000)]
Release version 1.61.0

Changes:
 - Refactor screen resolution module
 - Support auto placement feature

Change-Id: I28bb70559b7783d759ac6aa66892f2c3f2b8a910
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoSupport auto placement feature 13/290513/4
Hwankyu Jhun [Tue, 28 Mar 2023 01:49:01 +0000 (01:49 +0000)]
Support auto placement feature

If the application has metadata named 'http://tizen.org/metadata/auto-placement',
or the execution request includes '__K_USE_AUTO_PLACEMENT',
we call tizen_launch_appinfo_set_auto_placement() to inform enlightenment.

Change-Id: I28ae3c38980025836e0e316d36f9f6f90f5cdb3a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRefactor screen resolution module 07/290507/7
Hwankyu Jhun [Mon, 27 Mar 2023 23:49:35 +0000 (23:49 +0000)]
Refactor screen resolution module

The module is implemented using C++ language.

Change-Id: I19b9af1c0ebca0006721f735b34f3308af476d55
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRelease version 1.60.7 01/289601/1
Hwankyu Jhun [Fri, 10 Mar 2023 07:05:09 +0000 (07:05 +0000)]
Release version 1.60.7

Changes:
 - Consider appinfo reload

Change-Id: I47fc4caff1e13000b15b6f62b78369fc395f98af
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoConsider appinfo reload 83/289583/1
Hwankyu Jhun [Fri, 10 Mar 2023 04:02:27 +0000 (04:02 +0000)]
Consider appinfo reload

When the application information is loading again, AMD removes all
app infos. If the application information is reloaded, AMD will be crashed.
To avoid the crash issue, this patch changes the member variable of
the LaunchContext class to the shared_ptr.

Change-Id: If5e231eb570fcfd7980b24c45e2d81271ca6f359
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 1.60.6 63/288163/1 accepted/tizen/unified/20230215.100700
Changgyu Choi [Mon, 13 Feb 2023 01:33:01 +0000 (10:33 +0900)]
Release version 1.60.6

Changes:
 - Add initializing an uninitialized variable

Change-Id: I41c489a1223e2d1cfce72279371507bf3c54c381
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoAdd initializing an uninitialized variable 54/288154/3
Changgyu Choi [Mon, 13 Feb 2023 00:47:37 +0000 (09:47 +0900)]
Add initializing an uninitialized variable

Change-Id: Ic0e9f952af05e65d0bd2191a5298e4e32d136e80
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoRelease version 1.60.5 53/288153/1
Changgyu Choi [Mon, 13 Feb 2023 00:43:49 +0000 (09:43 +0900)]
Release version 1.60.5

Changes:
 - Modify app status setting logic in RegisterPID

Change-Id: I3200cc904cb2904881bb5540dc1840e49e67f21b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoModify app status setting logic in RegisterPID 70/288070/3
Changgyu Choi [Fri, 10 Feb 2023 04:56:19 +0000 (13:56 +0900)]
Modify app status setting logic in RegisterPID

Among the apps registered as RegisterPID(),
there is a problem that the status does not change to BG sometimes.
This patch fixes the status setting logic to prevent these issues.

Change-Id: I4fcc7d1bb5f57bdf6d4cdb916bd5023cb2ff44c1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoRelease version 1.60.4 12/287812/2 accepted/tizen/unified/20230207.165826
Changgyu Choi [Tue, 7 Feb 2023 02:09:56 +0000 (11:09 +0900)]
Release version 1.60.4

Changes:
 - Revert "Change journal mode to wal"
 - Change priority of wayland init
 - Add amd priority enum values

Change-Id: I7b1bc5ccde7a5058e8af151599b5cd3603089391
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoAdd amd priority enum values 16/287816/3
Changgyu Choi [Tue, 7 Feb 2023 01:41:20 +0000 (10:41 +0900)]
Add amd priority enum values

Some values were added to clarify the priority relationship of amd jobs.

Change-Id: Ibd740ddaf812bfcebcd873ef8f3f7b4859d73bb7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoChange priority of wayland init 83/287783/7
Changgyu Choi [Mon, 6 Feb 2023 05:51:57 +0000 (14:51 +0900)]
Change priority of wayland init

there is a case of accessing the display handle before the wayland init is completed.
  e.g., __splash_screen_create_image()

This patch increases the priority of the __init_wl() call to reduce this problem.

Change-Id: I8b2bdb2e50a218894d6b9e951793e4b5aa4e957a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoRevert "Change journal mode to wal" 23/287723/2
HwanKyu Jhun [Fri, 3 Feb 2023 05:51:38 +0000 (05:51 +0000)]
Revert "Change journal mode to wal"

This reverts commit ba73de1e25265d03f6530ccf99e1fed4bbd8c949.
Calling fdatasync() is not effected to the performance. Because, the database exists i n the tmpfiles(ramdisk).

Change-Id: I2871c9ff09edb436009d44fa4eee7641a4cd2626

15 months agoRelease version 1.60.3 11/287711/1
Hwankyu Jhun [Fri, 3 Feb 2023 01:31:08 +0000 (01:31 +0000)]
Release version 1.60.3

Changes:
 - Change journal mode to wal

Change-Id: I8faf974c6cff12ef71d699b166e98621b81bb7a4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoChange journal mode to wal 08/287708/2
Hwankyu Jhun [Fri, 3 Feb 2023 00:00:33 +0000 (00:00 +0000)]
Change journal mode to wal

To reduce calling fsync(), this patch changes the journal mode to
WAL.

Change-Id: I842f01b05070915a63a4ad7fa33e702c7794c1e1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 1.60.2 46/287646/1 accepted/tizen/unified/20230206.093826 accepted/tizen/unified/20230206.093943
Hwankyu Jhun [Thu, 2 Feb 2023 03:06:08 +0000 (03:06 +0000)]
Release version 1.60.2

Changes:
 - Fix wrong if statement about setting bg launch

Change-Id: I33b93f9ccdcb55f1a49e24e76aa68933a001aa0c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoFix wrong if statement about setting bg launch 45/287645/1
Hwankyu Jhun [Thu, 2 Feb 2023 03:01:30 +0000 (03:01 +0000)]
Fix wrong if statement about setting bg launch

The default value of the background launch option is 'true'.
If the background launch is not set, AMD sets the background launch is 'true'.

Change-Id: I24f4ccccd718e1497181f87eb4c6cc06399edd40
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoRelease version 1.60.1 41/287541/1 accepted/tizen/unified/20230202.015304
Changgyu Choi [Tue, 31 Jan 2023 06:40:07 +0000 (15:40 +0900)]
Release version 1.60.1

Changes:
 - Change request scheduling policy

Change-Id: Ia73a861ebf8b9280a28e4770aa71f2feb8f3254f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
16 months agoChange request scheduling policy 35/287535/2
Changgyu Choi [Tue, 31 Jan 2023 05:15:40 +0000 (14:15 +0900)]
Change request scheduling policy

In some low specification environments, g_idle_add() causes performance degradation.
This patch modifies the scheduling policy to reduce
g_idle_add() and resource_get_cpu_boosting_level() calls.

Change-Id: I37d3c1214ac0166c97077b860c096c97be641361
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
16 months agoRelease version 1.60.0 26/287526/3
Hwankyu Jhun [Tue, 31 Jan 2023 03:12:43 +0000 (03:12 +0000)]
Release version 1.60.0

Changes:
 - Support multiple instance launch

Change-Id: I54150d363e0e55d4d5af5523f5b762a7155cdd07
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoSupport multiple instance launch 24/287124/15
Hwankyu Jhun [Fri, 20 Jan 2023 06:11:49 +0000 (06:11 +0000)]
Support multiple instance launch

The feature of the multiple is modified.
If an application has that the multiple is 'true' in the tizen-manifest.xml,
the application is able to the multiple instance launch.
The caller application can set the application ID as below:
+--------------------------------------+
| Format  | "<appid>::<instance_id>"   |
+---------+----------------------------+
| Example | org.tizen.helloworld::test |
+--------------------------------------+
The test is the instance ID of the 'org.tizen.helloworld' application.

Change-Id: Id5028ec645addffbc836befcdbe9475305dcdb40
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoRelease version 1.59.7 67/287367/1
Hwankyu Jhun [Fri, 27 Jan 2023 08:13:14 +0000 (08:13 +0000)]
Release version 1.59.7

Changes:
 - Fix cpu boosting level check

Change-Id: I263b6a66e03797777137ca9f919a9c54bf65dcb0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoFix cpu boosting level check 65/287365/1
Hwankyu Jhun [Fri, 27 Jan 2023 07:59:28 +0000 (07:59 +0000)]
Fix cpu boosting level check

To reduce calling fgets() in the resource API, AMD sets the tid and
the tid_count.

Change-Id: Ie8fddfae91dc9c1cd2501c6237cefad0537b3aac
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoRelease version 1.59.6 78/287278/1 accepted/tizen/unified/20230127.161101
Hwankyu Jhun [Thu, 26 Jan 2023 06:53:42 +0000 (06:53 +0000)]
Release version 1.59.6

Changes:
 - Add log print for debugging

Change-Id: I76578b82905d7269510bf76f8c1ad2e4ca68c5ee
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoAdd log print for debugging 69/287269/1
Hwankyu Jhun [Thu, 26 Jan 2023 05:18:42 +0000 (05:18 +0000)]
Add log print for debugging

This patch is to debug the performance of calling
the resource_get_cpu_boosting_level() function.

Change-Id: Idb26fb50a817a6dfd381b849c2f661433619b397
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoRelease version 1.59.5 14/287214/1 accepted/tizen/unified/20230125.175713
Hwankyu Jhun [Wed, 25 Jan 2023 00:50:52 +0000 (00:50 +0000)]
Release version 1.59.5

Changes:
 - Fix typo of error message
 - Fix invalid access

Change-Id: Idfa171a13e96b210d55c0c948f9779a7be479b91
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoFix invalid access 13/287213/1
Hwankyu Jhun [Wed, 25 Jan 2023 00:01:48 +0000 (00:01 +0000)]
Fix invalid access

The RuaThread+ should not access the app status.
Before pushing the data to the shared queue, AMD adds the needed data to
the rua data.

Change-Id: I5d2509260e3e201457bfa9917bc96d7e40fbc7a2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoFix typo of error message 47/286947/1
Hwankyu Jhun [Tue, 17 Jan 2023 07:47:06 +0000 (07:47 +0000)]
Fix typo of error message

- 'Faled' -> 'Failed'

Change-Id: Ie2901a4ae3eea3d83e9a7c1ec7f78717cc7f7d1d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoRelease version 1.59.4 10/286710/1 accepted/tizen/unified/20230117.140457
Changgyu Choi [Thu, 12 Jan 2023 03:16:42 +0000 (12:16 +0900)]
Release version 1.59.4

Changes:
 - Change error code of _launch_start_app()

Change-Id: Iaff3e887583cac80dba78616af4826456d11a719
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>