Changgyu Choi [Tue, 19 Dec 2023 06:10:59 +0000 (15:10 +0900)]
Release version 1.44.42
Changes:
- Add startup timer
Change-Id: I9c55b42bf3e4b7d293e2f7c0f444408482a29980
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 19 Dec 2023 01:24:42 +0000 (10:24 +0900)]
Add startup timer
Rarely, launchpad child process continues to be created and OOM occurs.
This patch adds a timer to recognize this case and monitor continuously.
Change-Id: Ib57d1c20ca46f7e32d959b81f0e2744aad289bc4
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Wed, 8 Nov 2023 04:22:28 +0000 (13:22 +0900)]
Release version 1.44.41
Changes:
- Terminate sub app
Change-Id: I38df938cf31abc5b282e310f9cfadddc5167397a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 8 Nov 2023 03:45:56 +0000 (12:45 +0900)]
Terminate sub app
If the leader process is terminated while executing an application,
amd should terminate the sub application.
And, when the application type is not a component-based application,
the process must be terminated even though the process does not handle
the termination request properly.
Change-Id: If06788d09dc22a6c16437a418ed23d7357da0826
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 23 Jun 2023 07:15:54 +0000 (07:15 +0000)]
Release version 1.44.40
Changes:
- Add a fallback about finding appinfo
Change-Id: I78f2f7853eda14e475e221a825c982ae1977289e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 23 Jun 2023 06:38:34 +0000 (06:38 +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: I26076167bd157db7a4ec4f2d52b59e08185f6425
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Tue, 27 Dec 2022 07:16:45 +0000 (16:16 +0900)]
Release version 1.44.39
Changes:
- Add request pending condition
Change-Id: I833f6fd9f493bff5f73f0d47b765b523ea43e915
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 27 Dec 2022 03:06:09 +0000 (12:06 +0900)]
Add request pending condition
This patch adds a condition for pending (such as RPC_PORT_STUB_PREPARE) in case of a request that requires some pending.
Change-Id: I771c9f0d77763cd05f1527485c6612400e09b0f1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Fri, 12 Aug 2022 08:27:42 +0000 (17:27 +0900)]
Release version 1.44.38
Changes:
- Add a retrying logic for loading appinfo
- Fix wrong exception handling about appid check
Change-Id: I3aa31fbb894d8b3aa125663c89b7e5891258a535
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 12 Aug 2022 08:14:46 +0000 (17:14 +0900)]
Fix wrong exception handling about appid check
If the appid is nullptr in the __check_request() function, the function
should return 0.
Change-Id: Ie8e5422172b11cdf55348f6408ef4f97c1179c0d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 8 Jul 2022 07:30:04 +0000 (16:30 +0900)]
Add a retrying logic for loading appinfo
If calling pkgmgrinfo_appinfo_get_usr_installed_list_full() is failed,
AMD adds a timer to retry loading appinfo. The interval of the timer is
5 seconds. The maximum retrying number is 20. If it exceeds the maximum count,
AMD terminates itself.
Change-Id: Ie1291737f68c1d24928e132c2b774360bafb150a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Wed, 20 Apr 2022 06:09:20 +0000 (15:09 +0900)]
Release version 1.44.37
Changes:
- Check EPIPE error
Change-Id: Id55f6ba329e7a1654aafb4f2892d3fb2fafa089c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 20 Apr 2022 05:30:10 +0000 (14:30 +0900)]
Check EPIPE error
If the error value is EPIPE, AMD doesn't close the socket connection.
Because, the EPIPE error means "Broken pipe".
The server closes the socket connection.
Change-Id: I94b036084f5387981e8f40972c5cc811b314bdfe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 6 Apr 2022 07:44:47 +0000 (16:44 +0900)]
Release version 1.44.36
Changes:
- Fix a timing issue about suspend preparation
Change-Id: I32b17905d4dfa5311c5e38db219a3933ead6b67c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 6 Apr 2022 07:29:39 +0000 (16:29 +0900)]
Fix a timing issue about suspend preparation
Currently, AMD sends a suspend event to the process after executing an
application. In this time, the AUL socket of the executed process is not
prepared. It makes an issue about AMD latency. This patch uses g_timeout_add()
instead of g_idle_add().
Change-Id: Ia8dd6b56f8130726f34a302cee89ddecba5beaf8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 1 Apr 2022 00:51:32 +0000 (09:51 +0900)]
Release version 1.44.35
Changes:
- Add fgmgr timer to handle bg process
Change-Id: Ia6c67315dbf83ccf526c7c46106af5c335887154
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 21 Mar 2022 07:43:46 +0000 (16:43 +0900)]
Add fgmgr timer to handle bg process
When sending APP_RESUME_BY_PID_ASYNC, APP_RESUME_BY_PID and APP_PAUSE_BY_PID commands,
AMD sends the "AppResume" signal to resourceD.
resourceD expects fg or bg or suspendhint signal after getting the "AppResume" signal.
This patch fixes to send the bg signal if the app process is not changed to the fg.
Change-Id: I22e1d9d040755538236bb9b9f28e268b6a4d8e9e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 29 Mar 2022 23:40:45 +0000 (08:40 +0900)]
Release version 1.44.34
Changes:
- Add an exception handling about g_idle_add_full function
Change-Id: Idec142b94136a21b349bcb48348fd2cda7e73a57
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 10 Mar 2022 00:11:38 +0000 (09:11 +0900)]
Add an exception handling about g_idle_add_full function
If the result of calling the g_idle_add_full() is zero, AMD will terminate itself
immediately.
Change-Id: I7f7583776364b28e3b3530838edf1c74f84afcca
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 28 Jan 2022 05:33:12 +0000 (14:33 +0900)]
Release version 1.44.33
Changes:
- Fix crash issue
Change-Id: I407bfafd63cac3a470833f94b6992cca600f2c2e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 28 Jan 2022 05:14:57 +0000 (14:14 +0900)]
Fix crash issue
Before finding the app status using the appid, AMD should check whether
the appid is nullptr or not.
Change-Id: Ib1b55278c8558aa9e4fe18dc25c9d6f57bd1a81a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Thu, 20 Jan 2022 05:48:07 +0000 (14:48 +0900)]
Release version 1.44.32
Changes:
- Add to free rua info when oom case
- Change gcov installation path
Change-Id: Ifa7b006bb47fee09701f582b279e7e3fc729df45
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 20 Jan 2022 03:46:20 +0000 (12:46 +0900)]
Change gcov installation path
Change-Id: I4f8350db3e215e33ac5331959ef24e316f468f58
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 16 Dec 2021 07:55:59 +0000 (16:55 +0900)]
Add to free rua info when oom case
Change-Id: Ib30716b8a04ff62f515208408d913cccedd199a0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Wed, 29 Dec 2021 05:02:18 +0000 (14:02 +0900)]
Release version 1.44.31
Changes:
- Fix a bug about flag check
Change-Id: I68caa5340337e32f4f9f7497e2619092cb8d9457
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 29 Dec 2021 04:41:13 +0000 (13:41 +0900)]
Fix a bug about flag check
The starting flag can be set by the startup signal handler.
APP_NOTIFY_START handler MUST check the socket exists flag.
Change-Id: I479d1114a07bef04270fa505410bba8d07102486
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 28 Dec 2021 23:06:21 +0000 (08:06 +0900)]
Release version 1.44.30
Changes:
- Check starting flag of app status
- Synchronize wayland requests related to transient for
Change-Id: I7b163d49bcae1aeebacb9b2d2bd2bd04e97dd837
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 28 Dec 2021 22:11:41 +0000 (07:11 +0900)]
Synchronize wayland requests related to transient for
tizen_policy_set_transient_for(), tizen_policy_set_transient_for_below() and
tizen_policy_unset_transient_for() have to operate synchronously.
This patch changes using wayland function to wl_display_roundtrip() instead of
wl_display_flush().
Change-Id: I5c7487bdeb1eae2514caa87271a0072fd787517f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 28 Dec 2021 09:51:23 +0000 (18:51 +0900)]
Check starting flag of app status
If the starting flag is already 'true', AMD doesn't set the flag and
send the app status event signal to listeners.
Change-Id: I2b4d97d1e2bbf8d08cc67839a55a82b6456c5891
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 23 Dec 2021 09:15:26 +0000 (18:15 +0900)]
Release version 1.44.29
Changes:
- Check the return value of the launcher
Change-Id: I871fa51719269c6d0652e6f42de579689f8eea62
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 23 Dec 2021 09:10:58 +0000 (18:10 +0900)]
Check the return value of the launcher
If the error value is not -ECOMM, AMD should not increase failure count.
Change-Id: Ie63d8bb889cade92ea0b66dc54d1c948a11aecb8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 21 Dec 2021 10:23:55 +0000 (19:23 +0900)]
Release version 1.44.28
Changes:
- Change to wl_display_flush()
Change-Id: I48600f1ec9d42c9555d2248390e65145aa3f66a9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Wed, 15 Dec 2021 04:32:53 +0000 (13:32 +0900)]
Change to wl_display_flush()
The wl_display_roundtrip() is blocked until request done.
Recently, amd removed tizen policy listeners.
So it is unnecessary that synchronize with display server.
Change-Id: I8a9447bd4497182332b2bd8ddba72db6d2e858de
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Fri, 17 Dec 2021 06:18:25 +0000 (15:18 +0900)]
Release version 1.44.27
Changes:
- Check client channel existence
Change-Id: I66f352b73d9723b391c5344ed48ccbda1b526c1a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 17 Dec 2021 06:11:40 +0000 (15:11 +0900)]
Check client channel existence
Before creating a new client channel, AMD should check whether it already exists
or not. If it exists, AMD doesn't create the client channel.
Change-Id: Ic147b02a7274371488489b865e0c07b53cfbc07b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 17 Dec 2021 01:08:10 +0000 (10:08 +0900)]
Release version 1.44.26
Changes:
- Fix timeout handler of ANR monitor
Change-Id: I5dda49f19cd2f6b3a434b7e5d65541d189ecfefe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 16 Dec 2021 22:19:21 +0000 (07:19 +0900)]
Fix timeout handler of ANR monitor
If the command is not the launch request, AMD should not send the watchdog signal
to ResourceD when ANR occurs.
Change-Id: I2ed480ca67981a0a65b61f1c77261fb2df425051
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 16 Dec 2021 08:27:55 +0000 (17:27 +0900)]
Release version 1.44.25
Changes:
- Add to free rua info when oom case
- Add retry logic for client socket
Change-Id: I414f449b387b44f93b204d7637421c4acdb83b22
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 16 Dec 2021 08:14:38 +0000 (17:14 +0900)]
Add retry logic for client socket
To connect to the server, the retry logic is added to
the ClientSocket::Connect() method.
Change-Id: Ia95db3b22bdb18934561634004559fd8eed3da73
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Thu, 16 Dec 2021 07:55:59 +0000 (16:55 +0900)]
Add to free rua info when oom case
Change-Id: Ib30716b8a04ff62f515208408d913cccedd199a0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 16 Dec 2021 03:11:10 +0000 (12:11 +0900)]
Release version 1.44.24
Changes:
- Fix ResInfoManager
Change-Id: I6b7a4dfce50828c872111fa731d9cfa487ad516e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 16 Dec 2021 01:41:53 +0000 (10:41 +0900)]
Fix ResInfoManager
If the user res info doesn't exist, AMD should create a new UserResInfo for
considering db corruption.
Change-Id: I6a36cf8179b3e94de7a0b4040fe0ace3d473bfce
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 15 Dec 2021 23:14:20 +0000 (08:14 +0900)]
Release version 1.44.23
Changes:
- Fix appinfo reload handler
Change-Id: If3803acddc445c0d18d44c2de353d2b1496246c4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 15 Dec 2021 10:12:21 +0000 (19:12 +0900)]
Fix appinfo reload handler
The log level is changed to the error level. And, a new log messages are
added for debugging.
The implementation of the request handler is changed. If the user info doesn't
exist, AMD creates the user info before loading appinfos.
Change-Id: I8e5c7869cbd23eae97302f5fff37f452eb729125
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 14 Dec 2021 08:09:57 +0000 (17:09 +0900)]
Release version 1.44.22
Changes:
- Change default launch failure count
Change-Id: If9a5723c664eb2444d988312ad7d6bd846645dae
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 14 Dec 2021 07:39:42 +0000 (16:39 +0900)]
Change default launch failure count
The maximum launch failure count is changed to 10.
The connection timeout was reduced to 20ms.
Change-Id: Ide177e3c84e5b1e5c3bbfaf2100535f55146df2b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 6 Dec 2021 07:24:54 +0000 (16:24 +0900)]
Release version 1.44.21
Changes:
- Add an exception handling about launchpad pid check
Change-Id: Ieef5e3463fbca2bfb7af6d23d0d55008f6f8963d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 6 Dec 2021 06:36:07 +0000 (15:36 +0900)]
Add an exception handling about launchpad pid check
If the process ID of the launchpad-process-pool is zero, AMD MUST NOT
send the SIGABRT signal.
Change-Id: I8dc0885082e927b78c62e1081a84b73fc1efb2ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Wed, 1 Dec 2021 01:03:16 +0000 (10:03 +0900)]
Release version 1.44.20
Changes:
- Reduce printing logs
- Remove unnecessary tizen policy listener
- Fix static issues
Change-Id: I27576fce09dbb08d60b8d75dc6b0566f6b20d0d7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 1 Dec 2021 00:53:46 +0000 (09:53 +0900)]
Fix static issues
Changes:
- Add to check return value of __send_app_request()
Change-Id: Ie3b289da7f078212537d6a4e6149e003cd2ca0ab
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Mon, 29 Nov 2021 07:03:51 +0000 (16:03 +0900)]
Remove unnecessary tizen policy listener
We don't handle any events when the callback function of the tizen
policy listener is called. This patch removes unnecessary tizen policy
listener.
Change-Id: Ifcd13c6bb53f540cffdac06fb7881e5ab1494df5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 29 Nov 2021 03:55:33 +0000 (12:55 +0900)]
Reduce printing logs
This patch removes the warning level log of getting the alias info to
reduce priting logs. And, the log level of priting the result of getting
the alias info is changed to debug level.
Change-Id: Ie92df5b0937bd1a99c33045a6752b8ab6c452b7f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 24 Nov 2021 23:43:49 +0000 (08:43 +0900)]
Release version 1.44.19
Changes:
- Revert "Fix cynara core implemention"
- Fix cynara event handler
Change-Id: I116c55edce121dbaf5b21d0adfe0fbaf4720e72e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 24 Nov 2021 22:43:45 +0000 (07:43 +0900)]
Fix cynara event handler
Even if the error of the socket fd is occurred, AMD should call
the cynara_sync_process() function to process the cynara check requests.
Change-Id: I543adc25b362634ec1253e6a4293fa31bca28755
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 24 Nov 2021 22:39:01 +0000 (07:39 +0900)]
Revert "Fix cynara core implemention"
This reverts commit
00b4517499143e0517c1db56f66323a891e9b701.
Change-Id: I450c90aeffc5c07cf54d1936115b28831d441f83
Changgyu Choi [Wed, 24 Nov 2021 04:24:22 +0000 (13:24 +0900)]
Release version 1.44.18
Changes:
- Revert "Fix recovery condition"
Change-Id: If053cc2f88e0fa08c1843fbd8a8585ff034f891b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 24 Nov 2021 04:24:17 +0000 (04:24 +0000)]
Merge "Revert "Fix recovery condition"" into tizen
Changgyu Choi [Wed, 24 Nov 2021 04:21:47 +0000 (04:21 +0000)]
Revert "Fix recovery condition"
This reverts commit
b607db054f11c071a7d83b1b4fc14ba0eb47cf9c.
Reason for revert: Invalid patch
Change-Id: I5d1db7e6c85e627ddbebb1b70e4ea720d742595e
Changgyu Choi [Tue, 23 Nov 2021 23:44:09 +0000 (08:44 +0900)]
Release version 1.44.17
Changes:
- Fix setting receive timeout
- Fix recovery condition
Change-Id: I69ff56e92d27c12025af31d05926d5e1263c3743
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 23 Nov 2021 23:27:08 +0000 (08:27 +0900)]
Fix recovery condition
Change-Id: I802f9a5c54f2e02786ace824149e9ece44393c2d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Tue, 23 Nov 2021 23:11:06 +0000 (08:11 +0900)]
Fix setting receive timeout
This patch changes the timeout of the receive() call to 5 seconds.
Change-Id: I1b90b49f81f4e904e25dc579e433fc3eb86c5ae0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Tue, 23 Nov 2021 02:48:27 +0000 (11:48 +0900)]
Release version 1.44.16
Changes:
- Fix crash issue
- Fix cynara core implemention
- Add debugging log for cynara
Change-Id: Iab5a3a442b32bad72a30d664266af25c263f15d1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
jusung [Tue, 23 Nov 2021 04:06:38 +0000 (13:06 +0900)]
Add debugging log for cynara
Change-Id: Ica36cbe9bae4ffb15163c17a88a34c96cc189aeb
Signed-off-by: jusung <jusung07.son@samsung.com>
Hwankyu Jhun [Mon, 22 Nov 2021 12:29:08 +0000 (21:29 +0900)]
Fix cynara core implemention
- Uses g_unix_fd_add_full() instead of g_unix_fd_add()
- Adds logs for debugging cynara check
Change-Id: I69d6e0cb4b7272a6724c152656e6fa78459fc571
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 22 Nov 2021 09:23:07 +0000 (18:23 +0900)]
Fix crash issue
If the s1 argument of the strcmp() is nullptr, the caller process
will have crashed. To prevent crash issues, this patch adds the
exception handling to check whether the variable is nullptr or not.
Change-Id: I8d81844466aa5056f08528afe23ec25810dfd6d2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 22 Nov 2021 03:33:51 +0000 (12:33 +0900)]
Release version 1.44.15
Changes:
- Print request ID for debugging
Change-Id: Icd42dd13836b491fa825d6b7d3093f53e6a18bf3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 22 Nov 2021 03:27:33 +0000 (12:27 +0900)]
Print request ID for debugging
Change-Id: I26c22a4f5b5fecbf8be3ac2b97c8143c184bab0b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 22 Nov 2021 00:10:34 +0000 (09:10 +0900)]
Release version 1.44.14
Changes:
- Fix launchpad recovery
Change-Id: Ib40555c97b5d35b805e17f2839fd8a2c1559b48f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 19 Nov 2021 03:48:46 +0000 (12:48 +0900)]
Fix launchpad recovery
While sending the SIGKILL signal to the running applications, AMD will be busy
if there are a lot of running applications.
After this patch is applied, AMD maintains a connection for the launchpad and
monitors it to handle the recovery. If the failure number exceeds the maximum,
AMD will send the SIGABRT signal to the running launchpad. And then, AMD
tries to connect to the launchpad.
In this time, a launchpad that is a new process will be executed by
socket activation of systemd.
Change-Id: I338196a7fb680beb4a1eb4c508bc9512165e7999
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 19 Nov 2021 08:31:05 +0000 (17:31 +0900)]
Release version 1.44.13
Changes:
- Fix crash issue
Change-Id: Ic6f12f09ba873223503aa8bea6c92518afbbca46
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 19 Nov 2021 08:25:48 +0000 (17:25 +0900)]
Fix crash issue
To avoid the callback function invocation twice, AMD should check
whether the timer is already registered or not.
Change-Id: Ia25895e33ad9c7fd0c1dc09118c3aac9378b1e95
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Thu, 18 Nov 2021 06:59:10 +0000 (15:59 +0900)]
Release version 1.44.12
Changes:
- Change usleep interval to 10ms
Change-Id: I4d90e26016d468e6b860b870f70721812fb40344
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 18 Nov 2021 06:56:30 +0000 (15:56 +0900)]
Change usleep interval to 10ms
Change-Id: If28901605ab71b24ecbbec264caa5cf75cb84190
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Wed, 17 Nov 2021 00:35:07 +0000 (09:35 +0900)]
Release version 1.44.11
Changes:
- Set real appid before checking app status
- Support widget alias id
Change-Id: I3dcedadd7cc3a60ddceff1e5b017a73f15508808
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 16 Nov 2021 09:00:17 +0000 (18:00 +0900)]
Support widget alias id
After this patch is applied, AMD supports the widget alias id feature.
If the widget application has the metadata that is widget/aliasid, AMD
sets the real widget ID and checks whether the application is running or
not.
Change-Id: Iddc846afe0b00607010a9a899c691e7409e938e9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 16 Nov 2021 06:39:09 +0000 (15:39 +0900)]
Set real appid before checking app status
To check the app status properly, AMD has to check whether the
application ID is the alias ID or not. Some caller processes want to
send the launch request with the alias app ID to the running application.
Change-Id: I31781c7a0c8d2aedbc1d528e9b31a0b44faba0e3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 15 Nov 2021 23:30:51 +0000 (08:30 +0900)]
Release version 1.44.10
Changes:
- Fix fake launch app async
Change-Id: I76e04ef788676a4fbbea036d1520c5958fbea4da
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 15 Nov 2021 23:21:15 +0000 (08:21 +0900)]
Fix fake launch app async
If sending the request is successful, the __fake_launch_app_async()
function has to return the process ID. After sending the launch request,
AMD saves the process information on the pending list until the socket
of the launched application is ready.
Change-Id: I606ce5b59caa2ed01a2229433bd8703a21855cad
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 15 Nov 2021 06:20:56 +0000 (15:20 +0900)]
Release version 1.44.9
Changes:
- Use connected socket fd
- Fix wrong exception handling of async request
Change-Id: I261406f626e061be53fb3bf10c854c4ef0ecb49b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 15 Nov 2021 02:12:14 +0000 (11:12 +0900)]
Fix wrong exception handling of async request
If the return value of the __send_app_request() function is zero,
AMD should send the result to the caller with the process ID.
Change-Id: Iab0eada715555c2a47474d05ee6acbea0fddafa4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 12 Nov 2021 04:44:26 +0000 (13:44 +0900)]
Use connected socket fd
Currently, AMD creates a new socket fd and sends the request to the
running application. After this patch is applied, AMD will uses
the connected socket fd to send the request.
Change-Id: I5835892aefa522a38bcaba20bce95120db339d46
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 11 Nov 2021 23:57:45 +0000 (08:57 +0900)]
Release version 1.44.8
Changes:
- Revert "Check socket status"
- Use MSG_DONTWAIT flag
Change-Id: Ifdbeef27ffb73a9a9c3d4e64c93952fb1d36e671
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 11 Nov 2021 15:41:23 +0000 (00:41 +0900)]
Use MSG_DONTWAIT flag
This patch uses MSG_DONTWAIT flag instead of socket existence check.
If calling the send() function returns an error with the errno value
that is EAGAIN or EWOULDBLOCK, the method will call the sleep() and try
to send the data again.
The interval is 2ms. The maximum retry count is 10.
If the retry count exceeds 10 times, AMD will close the file descriptor
to disconnect the connection. When handling the disconnected event,
AMD doesn't invoke the disconnected event callback function if the
client socket is closed. It means the connection is closed by AMD forcedly.
Change-Id: I8217d889506d82418c271d79491817634b33e32d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 11 Nov 2021 14:54:17 +0000 (23:54 +0900)]
Revert "Check socket status"
This reverts commit
adb4e834ee2313f2049ca260da01e6c93d5c2fce.
Change-Id: I4c292b0ebe69c50c0611bb5aa56d3cfe9226b3dd
Hwankyu Jhun [Thu, 11 Nov 2021 06:55:15 +0000 (15:55 +0900)]
Release version 1.44.7
Changes:
- Check socket status
Change-Id: I2360acdc9d9cab4414c9b3a8dc0982b654a5be29
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 11 Nov 2021 03:54:14 +0000 (12:54 +0900)]
Check socket status
When handling the request that is app registration, AMD checks whether
the socket is listening or not. If the socket is listening, AMD will set
the 'true' to the socket_exists flag of the app status handle.
Requires:
- https://review.tizen.org/gerrit/#/c/platform/core/appfw/launchpad/+/266359/
- https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/266360/
- https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/266361/
Change-Id: I5bbc23aad20ee987c7d637e287810c40a2d3ae71
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 9 Nov 2021 08:13:00 +0000 (17:13 +0900)]
Release version 1.44.6
Changes:
- Fix a bug about socket exsitence check
Change-Id: I7c6fb07a0e86cb6a51abf955c6726226e7a0b758
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 9 Nov 2021 08:06:27 +0000 (17:06 +0900)]
Fix a bug about socket exsitence check
When getting app startup signal from a child process of launchpad, AMD
tries to connect to the app socket. When calling the aul_initialize() function,
the application sends the APP_NOTIFY_START request to AMD.
While handling the APP_NOTIFY_START command, AMD sets the flag that is
socket_exists of the app status handle.
After this patch is applied, AMD checks whether the socket exists or not
before sending the app request to the application.
Change-Id: I6974e8684f6b5fec3adc0e4fcd63ec4946f14866
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 8 Nov 2021 23:56:55 +0000 (08:56 +0900)]
Release version 1.44.5
Changes:
- Check socket existence
Change-Id: I758e3247af4b01e60c15344011588828c19079e1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 8 Nov 2021 22:46:15 +0000 (07:46 +0900)]
Check socket existence
If the client channel doesn't exist, AMD checks whether the socket
exists or not before connecting to the app socket.
Change-Id: Ife67257302f85bcad3324b889f010328aebfcf75
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 4 Nov 2021 07:23:11 +0000 (16:23 +0900)]
Release version 1.44.4
Changes:
- Move app dead handler to app status
Change-Id: I020bb48ae808ba193dd5d4124c94dee92bc24773
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 4 Nov 2021 05:50:48 +0000 (14:50 +0900)]
Move app dead handler to app status
The pid number is not always increased sequentially.
Currently, the __dead_timeout_handler() function calls
the __app_dead_handler() function to clean up the app status.
If the process ID is reused after the application is terminated,
the __dead_timeout_handler() function will be operated incorrectly.
To handle the socket disconnected event properly, the timer is managed
by the app status handle. When releasing the app status handle,
the timer of the __dead_timeout_handler() function will be removed.
Change-Id: Ie45601948b8dc975c343db9d77f297005df35fe0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 3 Nov 2021 03:58:37 +0000 (12:58 +0900)]
Release version 1.44.3
Changes:
- Do not close fd of AUL connection
Change-Id: I810753928bb75fc1030ea0b358617259b0ae5027
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 29 Oct 2021 06:46:40 +0000 (15:46 +0900)]
Do not close fd of AUL connection
After this patch is applied, AMD doesn't close the file descriptor of
the AUL connection. When the connection is disconnected, AMD notifies
that the process is terminated. In this time, AMD handles the
application termination if the process is the application.
Requires:
- https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/265335/
- https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/265818/
- https://review.tizen.org/gerrit/#/c/platform/core/appfw/launchpad/+/265825/
Change-Id: I03feebb44dc19fb85fd67d9898c289a5a52f6cce
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 25 Oct 2021 10:03:29 +0000 (19:03 +0900)]
Release version 1.44.2
Changes:
- Fix a bug about app property
Change-Id: I5f479b22936364922f2925352a988713b0358497
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 25 Oct 2021 09:52:30 +0000 (18:52 +0900)]
Fix a bug about app property
The app property handle has to be added when the user login event occurs.
Currently, the app property is not added if the database is deleted or corrupted.
Change-Id: Ifa088495832d7248876253cc73b72a2862b70f43
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 25 Oct 2021 01:02:06 +0000 (10:02 +0900)]
Release version 1.44.1
Changes:
- Fix AppComBroker::Send() method
- Fix a bug about sending app event
- Remove unnecessary method call
- Reduce db access
- Add pkgmgr-info-server dependency
- Fix a bug about loading app property
Change-Id: Iefffdf6198712b757c8446d7fae6299806ada621
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 25 Oct 2021 00:38:17 +0000 (09:38 +0900)]
Fix a bug about loading app property
When calling the _app_property_load() function twice, the metadata
information are dropped. This patch prevents to remove the loaded
information from the app property handle.
Change-Id: Id61cdeefe5938ba8ce447b5b055b6f0f60cf9a6c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 21 Oct 2021 00:25:54 +0000 (09:25 +0900)]
Add pkgmgr-info-server dependency
When the pkgmgr-info-server is not ready, the process accesses to
the pkgmgr_parser.db directly. In this time, the pkgmgr-info-server.so is loaded
using dlopen(). To improve initialization performance, AMD uses
the pkgmgr-info-server for compilation.
Requires:
- https://review.tizen.org/gerrit/#/c/platform/core/appfw/pkgmgr-info/+/265496/
Change-Id: Ifbed5c47cdbfda9868d1431cd7d5052f24386a4f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 21 Oct 2021 07:54:34 +0000 (16:54 +0900)]
Reduce db access
To improve initialization performance, this patch reduces to access to
the pkgmgr db. Before loading all applications information, AMD creates
the app property handle of the user. After this patch is applied, AMD
does not load the metadata information while calling _app_property_load().
The metadata will be inserted when a new appinfo is inserted automatically
at the initialization time.
Change-Id: I48917276ff870b2b98591780d0b13e9825cf6d67
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>