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>
Changgyu Choi [Fri, 16 Dec 2022 01:49:30 +0000 (10:49 +0900)]
Revert "Revert "Kill the app which socket is not connected""
This reverts commit
8b4ce77e7cc38db8bf838404a90757cb10317f0c.
Change-Id: I9befe0cc94c8781092b78ecd35ee6030104f8f03
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 16 Dec 2022 01:29:04 +0000 (10:29 +0900)]
Release version 1.57.12
Changes:
- Change priority of normal level request
- Check socket existence before sending requests
- Adjust priority of idler
Change-Id: Ia656eb768323b30d41c51a8602ad87174680b9f5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Fri, 16 Dec 2022 01:24:41 +0000 (01:24 +0000)]
Adjust priority of idler
After checking the permission of the caller, cynara thread adds a idler
to send the request to the main thread.
This patch adjusts the priority of adding the idler to high.
Change-Id: I832628bd53e5d558ca9e5aca184ceb7461498a89
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 16 Dec 2022 00:31:17 +0000 (00:31 +0000)]
Check socket existence before sending requests
AMD checks whether the app socket is ready or not before sending the
request to the running app process.
If it's not ready, AMD doesn't send the request for reactivity.
Change-Id: Ied029cb8c4501067d31f483801a3557bc7f86ad1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 16 Dec 2022 01:10:25 +0000 (10:10 +0900)]
Change priority of normal level request
When amd was received many requests, it has a problem that the request
is processed continuously late due to the slow processing of the
request.
This patch is intended to improve this problem by setting the priority
of normal level requests a little higher thant the G_PRIORITY_DEFUALT.
Change-Id: I6aeb585893058ae391eb893c70bcde155898316b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 8 Dec 2022 00:58:13 +0000 (09:58 +0900)]
Release version 1.57.11
Changes:
- Revert "Kill the app which socket is not connected"
Change-Id: I331a47993171a55b5f13037ec8aed21c612c5ba1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 8 Dec 2022 00:18:52 +0000 (09:18 +0900)]
Revert "Kill the app which socket is not connected"
This reverts commit
c3adee3cc5b2d2c2affac0380c7e0dd3aa051c21.
This patch will be applied again soon.
Change-Id: Ic48c614e0ec0e85d168db3c77629411c61ce88b4
Changgyu Choi [Wed, 7 Dec 2022 08:21:54 +0000 (17:21 +0900)]
Release version 1.57.10
Changes:
- Apply subsession_register_event_callback()
Change-Id: I0a4a40b862fd5eb8d0a2e3c6385db7bc5c5b2160
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 7 Dec 2022 07:19:30 +0000 (16:19 +0900)]
Apply subsession_register_event_callback()
sessiond is sometimes loaded late when booting.
So, the initialization of amd is delayed due to this.
This patch is applied to improve amd initialization performance.
Change-Id: I4af9dc80455ec9a9324ceb24b0f1f479cfdfa5c1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 7 Dec 2022 01:22:46 +0000 (10:22 +0900)]
Release version 1.57.9
Changes:
- Kill the app which socket is not connected
Change-Id: Ibdf33531c3689760834332e9c5088c4fb988c5c4
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 7 Dec 2022 01:14:31 +0000 (01:14 +0000)]
Merge "Kill the app which socket is not connected" into tizen
Changgyu Choi [Wed, 16 Nov 2022 09:45:55 +0000 (18:45 +0900)]
Kill the app which socket is not connected
Sometimes, the socket creation of a specific app is delayed and the launch request cannot be responded.
In this case, there is a possibility that it will be a zombie app.
When this patch is applied, amd forcibly shuts down applications whose sockets are not connected for a long time and do not respond to execution requests.
Change-Id: I3d202f4c591097b5181e94a2e6a03ecd2a34c65e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Wed, 7 Dec 2022 01:07:08 +0000 (01:07 +0000)]
Release version 1.57.8
Changes:
- Delay amd ready file creation
- Revert "Add pkgmgr-info-server dependency"
Change-Id: I4da99d22bc07bf45f5039b4f8d2270a68f55147f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 6 Dec 2022 23:57:44 +0000 (23:57 +0000)]
Revert "Add pkgmgr-info-server dependency"
This reverts commit
e51622d78df11074c8f1d2ee6372726b7ec0b783.
Currently, the pkginfo-server creates a ready file after
loading package & app information.
Calling the direct access function is not needed anymore.
Change-Id: I33a62a6537553323a0b65ec361356e3eaa76bfdf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 7 Dec 2022 00:42:41 +0000 (00:42 +0000)]
Delay amd ready file creation
To delay amd ready file creation, amd uses g_idle_add() function.
Change-Id: Iaa26d7acfe1bb149ebd678d4f51577c505933177
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 5 Dec 2022 01:38:34 +0000 (01:38 +0000)]
Release version 1.57.7
Changes:
- Revert "Modify the conditions for creating a pending item"
- Fix checking pending item condition
Change-Id: Idf252ab95d8cbc201e2ba7c537053eb449c632fb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 5 Dec 2022 01:00:12 +0000 (01:00 +0000)]
Fix checking pending item condition
If the request option is AUL_SOCK_QUEUE, AMd has to pend the request.
This patch fixes the check condition.
Change-Id: I35e60a97aabd5cd264e7f4484823e4cf4afe605d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 5 Dec 2022 00:49:44 +0000 (00:49 +0000)]
Revert "Modify the conditions for creating a pending item"
This reverts commit
15f35b1ac30f2d01ab783b8aca463a62b4954174.
Change-Id: I74cb84befc044abf554e1e2e5a519cb3ba2321c0
Changgyu Choi [Fri, 2 Dec 2022 09:36:20 +0000 (18:36 +0900)]
Release version 1.57.6
Changes:
- Fix launch fail case
Change-Id: Iab65ce5147b99442c7a628e08a0ac0643919a708
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 2 Dec 2022 09:27:58 +0000 (18:27 +0900)]
Fix launch fail case
If local launch was failed, amd needs to check that request is pended
before flushing pending request.
Change-Id: I4df8f2438ca7bab3282ba215088e4a79209194f9
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 2 Dec 2022 01:34:12 +0000 (10:34 +0900)]
Release version 1.57.5
Changes:
- Modify the conditions for creating a pending item
- Prevent duplicate launch
Change-Id: I88d701dceda4855588bbd649fb676e3784affd1d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 29 Nov 2022 07:56:03 +0000 (16:56 +0900)]
Prevent duplicate launch
If both on-boot and restart options are enabled.
Some app may be duplicated launched.
After applying this patch, amd restart app after pkg update when it is not onboot app.
Change-Id: I9b79c0061ae3af101bd2dae197fc35fe04b0cb16
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 1 Dec 2022 01:47:31 +0000 (10:47 +0900)]
Modify the conditions for creating a pending item
The previous version of amd did not create a pending item when doing local launch.
This patch does not create a pending item for local launch to solve these problems.
Change-Id: I24bf6a30d12faa7e03b1ca05033ee2b1aa91382c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 28 Nov 2022 01:18:40 +0000 (10:18 +0900)]
Release version 1.57.4
Changes:
- Fix APP_TERM_BY_PID_ASYNC behavior
- Fix static analysis issue
Change-Id: I2d7951f24ec091a3dc09fe52b640e93dbc4719b1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 25 Nov 2022 06:38:30 +0000 (15:38 +0900)]
Fix static analysis issue
Change-Id: I9c3b53a5e793b53184855df1bcf44a69e2e12aac
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 24 Nov 2022 11:12:25 +0000 (20:12 +0900)]
Fix APP_TERM_BY_PID_ASYNC behavior
The operation of APP_TERM_BY_PID_ASYNC has been changed due to launch refactoring.
This patch modifies the result of the above command to return async as before.
Change-Id: I40152e3ea4ef5a09ab9abe3703a4289baa1a7c70
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 22 Nov 2022 06:41:28 +0000 (15:41 +0900)]
Release version 1.57.3
Changes:
- Fix static analysis issues
- Add a request id on the timeout logs
Change-Id: Ic4362f4b813659cafb345e182b964e376c15a351
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 21 Nov 2022 07:16:16 +0000 (16:16 +0900)]
Add a request id on the timeout logs
This patch adds a request id logs for debugging.
Change-Id: Icb2239205ddbff9084bcfe3596eda98a34b1414d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 21 Nov 2022 08:16:00 +0000 (17:16 +0900)]
Fix static analysis issues
Change-Id: Iacd4b8656945a7fd021633f237eb4f72a81e3d7d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 17 Nov 2022 06:37:46 +0000 (06:37 +0000)]
Release version 1.57.2
Changes:
- Refactor amd main
- Add namespace to macro
- Refactor ANR monitor
- Adjust coding style
Change-Id: I8c8ba5bce738343140cb6491a8ef255cfcc652e5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 17 Nov 2022 02:05:28 +0000 (02:05 +0000)]
Adjust coding style
This patch adjusts c++ language coding style by cpplint tool.
The coding style is google c++ coding style.
Change-Id: I8379fca53ed589f8704e7fa5b2e8df31339558a2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 16 Nov 2022 08:18:42 +0000 (08:18 +0000)]
Refactor ANR monitor
The anr monitor is implemented using C++ language.
Change-Id: I981a73b7009b2bf55f637df44b7d059a1504eaf3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 16 Nov 2022 07:55:22 +0000 (07:55 +0000)]
Add namespace to macro
If "using namespace amd" is not defined, using THROW() causes the build
break issue.
Change-Id: I249609439afe84e310022b08e385370827e1a339
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 16 Nov 2022 01:20:13 +0000 (01:20 +0000)]
Refactor amd main
The amd_main is implmeneted using C++ language.
Change-Id: I7d868ad913f4558671c15f4509090a0f840f3069
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Tue, 15 Nov 2022 04:52:40 +0000 (13:52 +0900)]
Release version 1.57.1
Changes:
- Change priority of request scheduler to -90
Change-Id: I4b2dbbc6b48a9874adab1845b662662cb8ba0e29
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 15 Nov 2022 04:34:27 +0000 (13:34 +0900)]
Change priority of request scheduler to -90
In abnormal case(OOM), amd may not work watchdog normally because it handles requests scheduled by G_PRIORITY_HIGH.
In this case, there is a problem that amd is killed because it cannot respond to the watchdog signal.
This patch solves this problem by lowering the request scheduling priority a little (-100 -> -90).
Change-Id: Id25b689bf21b4a0b9decb0b3c66b3e31934ea052
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Mon, 14 Nov 2022 05:39:35 +0000 (05:39 +0000)]
Release version 1.57.0
Changes:
- Modify handling launch requests
Change-Id: I45f35a2f797bf977c297c62bdacdf56e2af10bc0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 3 Nov 2022 04:43:14 +0000 (04:43 +0000)]
Modify handling launch requests
In the previous, amd will be blocked until launchpad responds.
To avoid blocking issues, amd sends the launch request to launchpad
asynchronously. And then, amd waits for getting read events.
Change-Id: I17f782232d0c6f84dc7289b04165b89ef5668cd3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 11 Nov 2022 07:10:01 +0000 (16:10 +0900)]
Release version 1.56.13
Changes:
- Add missing to check the variable is nullptr
- Send -EAGAIN error when result info has timed out.
Change-Id: Id6a3740b99669fb0695c8407dd79dd4f1f9100f4
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 11 Nov 2022 01:35:36 +0000 (10:35 +0900)]
Send -EAGAIN error when result info has timed out.
When a app use app_control_send_launch_request_sync(), it can't receive timeout error.
After applying this patch, app control api can distinguish timeout event.
Change-Id: I8bc166b99d057dc11092434f9058b1aaf6fb1bfc
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 9 Nov 2022 00:42:29 +0000 (09:42 +0900)]
Add missing to check the variable is nullptr
Change-Id: Ib2f7092b50803e577e530689479307b4bc3f377f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Mon, 7 Nov 2022 08:22:33 +0000 (08:22 +0000)]
Release version 1.56.12
Changes:
- Fix wrong implementation of getting instance ID
Change-Id: I05da29a92fd785bb59e9b47d0b3dc44e4dbdb0f6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 7 Nov 2022 08:12:15 +0000 (08:12 +0000)]
Fix wrong implementation of getting instance ID
The _launch_context_get_instance_id() function has to return nullptr
when the instance id is empty string.
Change-Id: I2031658fc8a63754de03fb16242880d97b21159e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Thu, 3 Nov 2022 09:16:37 +0000 (18:16 +0900)]
Release version 1.56.11
Changes:
- Fix wrong implementations
- Update app status while updating the lifecycle state
- Update app status to dying when socket disconnected
Change-Id: I2a6495d9b76f044b7585d38e2fb1f636b3d6d673
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 2 Nov 2022 08:53:50 +0000 (17:53 +0900)]
Update app status to dying when socket disconnected
When the app socket was disconnected,
amd update the app status to improve the timing issue.
Change-Id: I6d5e313c9533dfb76d8eb76dea772fc90da447f1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 10 Jun 2021 10:46:44 +0000 (19:46 +0900)]
Update app status while updating the lifecycle state
While getting the request to update the lifecycle state, the status of
the app status handle will be updated.
This fix does not exactly match the behavior. This is a patch prepared
for testing purpose by the request.
Change-Id: If1bd3b661cc0a3c256407f17229b758e4afed9cd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 2 Nov 2022 08:21:30 +0000 (08:21 +0000)]
Fix wrong implementations
- Fixes a wrong argument of function call
- Fixes a wrong privilege of access control
- Fixes a missing component info setting
Change-Id: Ib0d279151760c9cfeb53f7dc938ca24abe7ca63e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 2 Nov 2022 02:13:24 +0000 (02:13 +0000)]
Release version 1.56.10
Changes:
- Fix wrong cmake options
- Refactor amd launch
Change-Id: If1bc1c2ae2e68ec5c8b9b2623b0654ade5920fae
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 24 Oct 2022 08:47:28 +0000 (08:47 +0000)]
Refactor amd launch
The amd launch is implemented using C++ language.
Change-Id: Iffa2b994a3f3538c80ca69bc5d434c382d95a814
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>