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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Changgyu Choi [Thu, 12 Jan 2023 03:05:10 +0000 (12:05 +0900)]
Change error code of _launch_start_app()
This patch fix to return ENOENT when there is no appid
for backward compatibility with previous versions.
Change-Id: Ie654f952ed87cb8582a21d53f7afcbda57e96919
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Wed, 11 Jan 2023 23:25:48 +0000 (23:25 +0000)]
Release version 1.59.3
Changes:
- Use tizen_base::SharedQueue
Change-Id: I4c2bef95281554d9faac51855349293246ea5c4e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 11 Jan 2023 10:48:20 +0000 (10:48 +0000)]
Use tizen_base::SharedQueue
To remove duplicated codes about shared queue, we add a
tizen-shared-queue library. This patch uses the tizen_base::SharedQueue
and removes duplicated shared queue codes.
Change-Id: If7bea8ec1e4a2887d207c6858fd1cee78056041f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 11 Jan 2023 00:14:26 +0000 (00:14 +0000)]
Release version 1.59.2
Changes:
- Prevent resource package ID duplication
Change-Id: Ic8d5589e0fb128959f57d84b5740c31d169f15da
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 10 Jan 2023 22:54:23 +0000 (22:54 +0000)]
Prevent resource package ID duplication
If the resource pakcage has the allowed resource and the global resource,
the package ID is appended into the vector twice. This patch is to
prevent the duplication of setting the resource package ID.
Change-Id: I15ada94de4719868cb82ee1fa67bf9d7600a733b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 10 Jan 2023 10:10:03 +0000 (10:10 +0000)]
Release version 1.59.1
Changes:
- Add worker thread for rua
Change-Id: I435148cb5c97ae746df1c98b93aea55091ea6e1d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 10 Jan 2023 08:21:00 +0000 (08:21 +0000)]
Add worker thread for rua
When calling rua APIs, amd is delayed. To prevent making delay issues,
the amd-mod-rua creates a new thread for calling rua APIs.
Change-Id: Ie1b4fbdd847e9dffac1d9f6334163835c8d571ba
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 9 Jan 2023 07:41:23 +0000 (07:41 +0000)]
Release version 1.59.0
Changes:
- Add res pkgids to bundle for launching
- Reduce calling AppStatusDao::UpdateAppStatus method
- Fix wrong implementationa
Change-Id: Ie92862c914bbe7c4b3731269232a013522e6587a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Thu, 5 Jan 2023 03:17:29 +0000 (12:17 +0900)]
Fix wrong implementation
This patch fix ToAppStatus() crash caused by missing reading start_time.
Change-Id: Ie794b9227af6d5a6fb9c94915f53112237b20b03
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 5 Jan 2023 02:53:55 +0000 (02:53 +0000)]
Reduce calling AppStatusDao::UpdateAppStatus method
To reduce calling AppStatusDao::UpdateAppStatus() method, AMD doesn't
call it while updating the app status.
When calling the sqlite3_step() and the sqlite3_exec(), calling the fdatasync()
is occurred. This patch is to reduce it for system performance.
Change-Id: I67cfc1c3effd14364e5a7a9086f3fe31f85a76d8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Sangyoon Jang [Fri, 18 Nov 2022 07:10:48 +0000 (16:10 +0900)]
Add res pkgids to bundle for launching
Change-Id: I13ba0b971c815613f545dc5a2593ffc3fff841fb
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Changgyu Choi [Tue, 3 Jan 2023 06:30:36 +0000 (15:30 +0900)]
Release version 1.58.0
Changes:
- Add to set timeout on reply info
Change-Id: I78382c739642d440eb7ee76170640d4aabd9ebc3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 13 Dec 2022 07:55:50 +0000 (16:55 +0900)]
Add to set timeout on reply info
If timeout is set in the request, amd changes the timeout value in the reply info.
Minimum 5000 ms, maximum 30000 ms
Also the pending item's timeout is changed to 30seconds.
Change-Id: Ie4e2d9f8b4fada8202836c92c1f9e5becd3c357b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 30 Dec 2022 04:37:01 +0000 (13:37 +0900)]
Release version 1.57.19
Changes:
- Fix static analysis issues
Change-Id: I13cf28341ad44c46eac18309974aa0e2cb4b6b67
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 30 Dec 2022 01:28:23 +0000 (10:28 +0900)]
Fix static analysis issues
To prevent int to size_t casting, this patch changes the type of
variable which be casted to size_t.
Change-Id: I5a90f83d444124fc6764feea1828b16faf397e51
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 29 Dec 2022 06:07:52 +0000 (06:07 +0000)]
Release version 1.57.18
Changes:
- Check previous total app number
Change-Id: Ifdc6f719199a7f0fa1f11a37d5cfcc69f291a257
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 28 Dec 2022 05:16:36 +0000 (05:16 +0000)]
Check previous total app number
To reduce sending the update event to launchpad-process-pool, AMD checks
the previous total app number. AMD sends the update event to
launchpad-process-pool when the previous total is zero and the current
total is greater than zero.(or the previous total is greater than zero
and the current total is zero)
Change-Id: Id01e64111ed94c1b85a4515451440c45f03b1079
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 28 Dec 2022 10:13:04 +0000 (10:13 +0000)]
Release version 1.57.17
Changes:
- Remove socket check before sending app request
Change-Id: I31cd25025cf99dffe88bcca410537d6ce71ec6b6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 28 Dec 2022 10:08:07 +0000 (10:08 +0000)]
Remove socket check before sending app request
This patch is for backward compatibility. The application developer
expects the app launch request is delivered even if the error is received
to the caller application.
Change-Id: Iec675b52bc65b86369b22cdbfc8ecdc3fe8c7f92
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Tue, 27 Dec 2022 09:58:11 +0000 (18:58 +0900)]
Release version 1.57.16
Changes:
- Fix static analysis issues
Change-Id: I15923b25d902e9ce9bf1eadb6bea2e3f2cdbf0ec
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 27 Dec 2022 09:13:26 +0000 (18:13 +0900)]
Fix static analysis issues
Change-Id: I986a62f2c49932706c15906455052c4e74e06731
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 21 Dec 2022 07:21:11 +0000 (16:21 +0900)]
Release version 1.57.15
Changes:
- Modify gcov installtion directory
Change-Id: If5beec9860c64bf991df5626432fae2147705600
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 21 Dec 2022 04:40:27 +0000 (13:40 +0900)]
Modify gcov installation directory
Change-Id: Ibe5d3f366f1cc4229f1cb0b573de0d53468b6213
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 21 Dec 2022 01:51:48 +0000 (10:51 +0900)]
Release version 1.57.14
Changes:
- Fix a static analysis issue
- Add a sending thread for sending runnning appinfo
- Fix socket check condition
- Change priority of wayland sources
- Merge wayland prepare and check callbacks
Change-Id: I7bec41235ebb048e91c950109e464d7181f1dad8
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 20 Dec 2022 05:43:16 +0000 (14:43 +0900)]
Merge wayland prepare and check callbacks
Change-Id: I876d73bfe64221c9bfbda2a9a714f97e6ac0b819
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 20 Dec 2022 02:45:30 +0000 (11:45 +0900)]
Change priority of wayland sources
wayland GSource callbacks should be called sequentially.
This patch is to correct the issue caused by the side effect of the patch below.
https://review.tizen.org/gerrit/c/platform/core/appfw/amd/+/285638
Change-Id: Ie77a1d68c8b9ed463ae88956f16dd3e2cfec9759
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 19 Dec 2022 08:32:13 +0000 (17:32 +0900)]
Fix socket check condition
Change-Id: Ic122b60e01ebc9120c639b53a1178f90c5f92611
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Fri, 16 Dec 2022 05:53:28 +0000 (05:53 +0000)]
Add a sending thread for sending runnning appinfo
To avoid blocking AMD, AMD creates a thread to send the result to
the caller.
Change-Id: Ia14dbe44f8a8c5a627de27bc0536ceaab5e03b8e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 16 Dec 2022 04:21:04 +0000 (13:21 +0900)]
Fix a static analysis issue
Change-Id: Ie8260fe3ed0c50fa1c59623db6c68d2da6d6cad9
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 16 Dec 2022 01:54:29 +0000 (10:54 +0900)]
Release version 1.57.13
Changes:
- Revert "Revert "Kill the app which socket is not connected""
Change-Id: I4208b03da993cb7d28cf6a78843f1b943f98205d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>