platform/core/appfw/amd.git
4 months agoRelease version 1.67.32 34/304334/1 accepted/tizen_unified_riscv accepted/tizen/8.0/unified/20240117.162924 accepted/tizen/unified/20240117.163228 accepted/tizen/unified/riscv/20240118.054528
Hwankyu Jhun [Tue, 16 Jan 2024 06:11:00 +0000 (15:11 +0900)]
Release version 1.67.32

Changes:
 - Modify screen resolution module

Change-Id: I09d5e46f316dbb1be866c10fae8a77a00cdbd68f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoModify screen resolution module 30/304330/1
Hwankyu Jhun [Tue, 16 Jan 2024 05:35:53 +0000 (14:35 +0900)]
Modify screen resolution module

After this patch is applied, amd registers the application ID to
the display server. Currently, amd always sends the wayland request to
the display server. This patch reduces unnecessary request delivery.

Change-Id: I5abdda2648782d17df5a91cb5b128a9db238f427
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 1.67.31 80/304080/1 accepted/tizen/8.0/unified/20240110.155116 accepted/tizen/unified/20240110.154209 accepted/tizen/unified/riscv/20240111.042740
Hwankyu Jhun [Wed, 10 Jan 2024 01:25:45 +0000 (10:25 +0900)]
Release version 1.67.31

Changes:
 - Modify login monitor implementation

Change-Id: Ie0f9a1bb0b3a102b78fe27e4a29a4096f54340c4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoModify login monitor implementation 47/304047/2
Hwankyu Jhun [Tue, 9 Jan 2024 10:35:22 +0000 (19:35 +0900)]
Modify login monitor implementation

The inotify watch callback function should return false if the file is matched.

Change-Id: I8c56cd45ab2583c4fee843c990c74ae21107aac8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 1.67.30 05/303905/1 accepted/tizen/8.0/unified/20240109.155429 accepted/tizen/unified/20240109.155333 accepted/tizen/unified/riscv/20240110.014453
Changgyu Choi [Mon, 8 Jan 2024 03:27:35 +0000 (12:27 +0900)]
Release version 1.67.30

Changes:
 - Add missing memory free logic

Change-Id: I9704d4cb5f8ede7629be4008701925867e53243c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 months agoAdd missing memory free logic 62/303862/2
Changgyu Choi [Mon, 8 Jan 2024 01:41:18 +0000 (10:41 +0900)]
Add missing memory free logic

Change-Id: I58e12a7b928a6a9e738ef0502d43942bd5f02068
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 months agoRelease version 1.67.29 84/303584/1 accepted/tizen/8.0/unified/20240104.165402 accepted/tizen/unified/20240104.053201 accepted/tizen/unified/riscv/20240105.060114
Hwankyu Jhun [Tue, 2 Jan 2024 10:23:08 +0000 (19:23 +0900)]
Release version 1.67.29

Changes:
 - Mofidy APP_REGISTER_PID handler

Change-Id: Ie8b61ba301973535b73e850d48100e83747fdfd7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoMofidy APP_REGISTER_PID handler 77/303577/1
Hwankyu Jhun [Tue, 2 Jan 2024 09:57:57 +0000 (18:57 +0900)]
Mofidy APP_REGISTER_PID handler

After this patch is applied, the launchpad-process-pool is able to
register the pid with the application ID.

Change-Id: Ia4abd0dc7b1ad4e179573d22e69251d5dcb3e730
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 1.67.28 73/303573/1 accepted/tizen/8.0/unified/20240103.162258 accepted/tizen/unified/20240103.164015
Hwankyu Jhun [Tue, 2 Jan 2024 08:15:01 +0000 (17:15 +0900)]
Release version 1.67.28

Changes:
 - Modify starting time of apps
 - Modify login monitor initialization

Change-Id: I423457203a5979408a4695770e17415c76f3ae40
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoModify login monitor initialization 57/303557/1
Hwankyu Jhun [Tue, 2 Jan 2024 06:27:04 +0000 (15:27 +0900)]
Modify login monitor initialization

After this patch is applied, amd checks whether the /run/systemd path
exists or not. If it does not exist, amd monitors file creation for
waiting until the directory is created.
When the /run/systemd/users is ready or created, amd starts
the sd_login_monitor initialization.

Change-Id: I7943661129669a15eb8b075018ce9015c1f1fa11
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoModify starting time of apps 08/303508/1
Hwankyu Jhun [Fri, 29 Dec 2023 03:20:55 +0000 (12:20 +0900)]
Modify starting time of apps

To send a launch request to the launchpad-process-pool properly, amd
should start the boot sequence feature when the state of user session is
'online' or 'active'.

Change-Id: I033f0086027276b3797569cbe40bc672390db587
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 1.67.27 70/303470/1 accepted/tizen/8.0/unified/20231228.170225 accepted/tizen/unified/20240101.155307 accepted/tizen/unified/riscv/20240103.054546
Hwankyu Jhun [Thu, 28 Dec 2023 06:37:19 +0000 (15:37 +0900)]
Release version 1.67.27

Changes:
 - Set socket option for rpc port

Change-Id: I20789e39cf562519667e47c2ae395868180bc233
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoSet socket option for rpc port 67/303467/1
Hwankyu Jhun [Thu, 28 Dec 2023 06:10:54 +0000 (15:10 +0900)]
Set socket option for rpc port

The SOCK_NONBLOCK option is set for server socket.

Change-Id: Ia6bf43ac4aeeba02a47115a793c01e5b036907c7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 1.67.26 21/303321/1 accepted/tizen/8.0/unified/20231226.175905 accepted/tizen/unified/20231226.154424 accepted/tizen/unified/20231226.180056 accepted/tizen/unified/riscv/20231227.041949
Hwankyu Jhun [Tue, 26 Dec 2023 00:44:27 +0000 (09:44 +0900)]
Release version 1.67.26

Changes:
 - Consider app com broker

Change-Id: I476e0e2c145f4707937911a6fce0e2569ddd3c95
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoConsider app com broker 20/303320/1
Hwankyu Jhun [Mon, 25 Dec 2023 22:51:07 +0000 (07:51 +0900)]
Consider app com broker

AMD receives the raw data that is 8 bytes from applications.
The app com broker should consider receiving the modified raw data.

Change-Id: I79f60b41ccebfa809a41b8ce2776943811055302
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 1.67.25 55/303255/1
Hwankyu Jhun [Fri, 22 Dec 2023 06:46:01 +0000 (15:46 +0900)]
Release version 1.67.25

Changes:
 - Modify app request broker implementation

Change-Id: I2b26b744b8b856b357ad4f2a1039dbe23610c9d0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoModify app request broker implementation 53/303253/1
Hwankyu Jhun [Fri, 22 Dec 2023 06:40:39 +0000 (15:40 +0900)]
Modify app request broker implementation

- Use AUL_K_REQUEST_ID instead of AUL_K_SEQ_NUM

Change-Id: I57645f2b4315ad9963620b0ead4ac0066ac11611
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 1.67.24 34/303234/1
Hwankyu Jhun [Fri, 22 Dec 2023 03:36:39 +0000 (12:36 +0900)]
Release version 1.67.24

Changes:
 - Modify app request broker

Change-Id: Ideb6ab81846d48f4e503a11c313689bd91d1cb05
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoModify app request broker 29/303229/2
Hwankyu Jhun [Fri, 22 Dec 2023 02:00:31 +0000 (11:00 +0900)]
Modify app request broker

When senting the request to the running application, amd includes and delivers
a sequence number. The client(running application) will send a reply
with the sequence number. AMD handles the result cb information using
the sequence number.

Change-Id: Iaa98474b8bfac7ce545e9cd033faad118e379d8a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRelease version 1.67.23 99/302799/1 accepted/tizen/8.0/unified/20231214.164518 accepted/tizen/unified/20231214.164955 accepted/tizen/unified/riscv/20231226.210816
Hwankyu Jhun [Thu, 14 Dec 2023 01:00:31 +0000 (10:00 +0900)]
Release version 1.67.23

Changes:
 - Reset retrying count while getting kick request

Change-Id: I42f252004aec985b43dbff568742149a0f3fa0b1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoReset retrying count while getting kick request 98/302798/2
Hwankyu Jhun [Thu, 14 Dec 2023 00:42:59 +0000 (09:42 +0900)]
Reset retrying count while getting kick request

When getting the kick request from the application, amd resets
the retry_count value to 0.

Change-Id: I6d71c09965eb67c30a5d40b293dbf883a3adb233
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRelease version 1.67.22 82/302782/1
Hwankyu Jhun [Wed, 13 Dec 2023 10:48:00 +0000 (19:48 +0900)]
Release version 1.67.22

Changes:
 - Check app status before sending a request
 - Fix crash issue

Change-Id: Ie6758076b838c89f18bbbf4c20c001e26da1c126
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoFix crash issue 81/302781/1
Hwankyu Jhun [Wed, 13 Dec 2023 10:42:05 +0000 (19:42 +0900)]
Fix crash issue

If the byte is empty, calling std::copy() makes a crash issue.

Change-Id: Ia786bb045159a9cf81d45d5d463a5bd4ff58ff86
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoCheck app status before sending a request 75/302775/3
Hwankyu Jhun [Wed, 13 Dec 2023 09:19:42 +0000 (18:19 +0900)]
Check app status before sending a request

Before sending a request(APP_RESUME_BY_PID or APP_PAUSE_BY_PID) to the running
application, amd checks whether the app status is dying or not.
If it's STATUS_DYING, amd does not send the request. In this case, the caller
process will get the error from amd.

Change-Id: I860aee5301688843a03d6cf2f33edd8301bb0fcb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRelease version 1.67.21 44/302744/1
Hwankyu Jhun [Wed, 13 Dec 2023 04:46:59 +0000 (13:46 +0900)]
Release version 1.67.21

Changes:
 - Adjust coding style
 - Fix an incorrect display lock state

Change-Id: I897d37907da9364d499d2b7454c8771b148b4b6b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoFix an incorrect display lock state 43/302743/1
Hwankyu Jhun [Wed, 13 Dec 2023 04:40:53 +0000 (13:40 +0900)]
Fix an incorrect display lock state

When calling Unlock within the timer callback, the timer value was not
initialized to 0. This causes the following issue where the lock remains locked
after being unlocked.
If there is no app using the boot sequence, display lock is not called.

Change-Id: Ia53e4aa5fd5e69f507285895ebd647e732328ee3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoAdjust coding style 40/302740/1
Hwankyu Jhun [Wed, 13 Dec 2023 04:07:28 +0000 (13:07 +0900)]
Adjust coding style

- Add a space before comparison operator

Change-Id: Ibbd68def6154346e070053c6e25953efacc09143
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRelease version 1.67.20 53/302153/1 accepted/tizen/8.0/unified/20231204.174216 accepted/tizen/unified/20231205.024705 accepted/tizen/unified/riscv/20231211.234046
Hwankyu Jhun [Fri, 1 Dec 2023 07:08:47 +0000 (16:08 +0900)]
Release version 1.67.20

Changes:
 - Modify boot manager

Change-Id: Icf5b22607b7b0222393fdcc32cb4725f7ff533f0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoModify boot manager 16/302116/7
Hwankyu Jhun [Thu, 30 Nov 2023 10:44:55 +0000 (19:44 +0900)]
Modify boot manager

The following changes are made to onboot option of amd:
- Apps with onboot set are launched by the boot manager.
- Only apps with boot-sequence set are managed by the boot sequencer.
- Onboot apps will run as before when a package is installed.
- Apps with boot-sequence set will not run until a reboot occurs even if
the package is installed.

Change-Id: I35589a7195043251efb69157b178139e6d62319b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRelease version 1.67.19 90/302090/1 accepted/tizen/8.0/unified/20231130.180812 accepted/tizen/unified/20231130.180935
Hwankyu Jhun [Thu, 30 Nov 2023 06:59:00 +0000 (15:59 +0900)]
Release version 1.67.19

Changes:
 - Fix a bug about restarting apps

Change-Id: I703dc61c13c29710bc8f01eda657ace71ab03494
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoFix a bug about restarting apps 46/302046/2
Hwankyu Jhun [Thu, 30 Nov 2023 04:29:51 +0000 (13:29 +0900)]
Fix a bug about restarting apps

After updating the package, the application was not restarted by amd.
Because, if the application has the on-boot="true" option in
the tizen-manifest.xm, amd does not check whether the application is
able to restart or not.
If the api-version is greater than 7, amd must check whether the application
should be restarted or not.
This patch checks the api version to restart apps.

Change-Id: Ibfe8245782cd5b0d5b6dc3bd7eda3363379c85b7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRelease version 1.67.18 35/302035/1
Changgyu Choi [Thu, 30 Nov 2023 02:09:51 +0000 (11:09 +0900)]
Release version 1.67.18

Changes:
 - Adjust coding style of AppLifecycle
 - Fix sort condition

Change-Id: I7ee74de54896f034dc0ca97b1f52146fac626151
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
5 months agoFix sort condition 33/302033/2
Changgyu Choi [Thu, 30 Nov 2023 01:48:17 +0000 (10:48 +0900)]
Fix sort condition

Change-Id: Ia31f79cf645d9acae6c5f300b45ec8140a1bcd4a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
5 months agoAdjust coding style of AppLifecycle 02/301802/1
Hwankyu Jhun [Thu, 23 Nov 2023 07:23:00 +0000 (16:23 +0900)]
Adjust coding style of AppLifecycle

- Changes function names by using capital letters
- Improves readability by complementing log messages.

Change-Id: I290f86f11bcb5d62d7736c3a173b15943fcd7ab2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRelease version 1.67.17 87/301787/1 accepted/tizen/8.0/unified/20231123.173033 accepted/tizen/unified/20231123.124508
Hwankyu Jhun [Thu, 23 Nov 2023 00:02:57 +0000 (09:02 +0900)]
Release version 1.67.17

Changes:
 - Fix duplicate execution problem

Change-Id: Idd86715e65120ca6f21fce561627a91ffc8759ba
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoFix duplicate execution problem 86/301786/1
Hwankyu Jhun [Wed, 22 Nov 2023 23:28:53 +0000 (08:28 +0900)]
Fix duplicate execution problem

When a new app is launched by receiving a request to execute it,
if the onboot feature is activated, the app process is duplicated.
This problem occurs because the CheckStatus() method does not properly handle
the confirmation of pending items.
The problem is fixed by modifying the socket option.

Change-Id: Icc4478766a25fdf34073dd331dc878478c577b58
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRelease version 1.67.16 19/301619/1 accepted/tizen/8.0/unified/20231121.180439 accepted/tizen/unified/20231122.172535
Hwankyu Jhun [Mon, 20 Nov 2023 23:51:55 +0000 (08:51 +0900)]
Release version 1.67.16

Changes:
 - Remove sending SIGABRT signal

Change-Id: I0e0df944f39c919b1cf9279454426f6fb80b0e24
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRemove sending SIGABRT signal 18/301618/2
Hwankyu Jhun [Mon, 20 Nov 2023 23:27:47 +0000 (08:27 +0900)]
Remove sending SIGABRT signal

On certain devices, the app process may be blocked because it
does not receive CPU resource allocation.
We remove the operation of sending SIGABRT from amd
and monitor whether the app calls the app_main function.

Change-Id: Id3d0632919226123c6ff7e98adb239ed3dd73517
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoRelease version 1.67.15 54/301554/1 accepted/tizen/unified/20231121.102912
Changgyu Choi [Mon, 20 Nov 2023 03:51:32 +0000 (12:51 +0900)]
Release version 1.67.15

Changes:
 - Revert "Remove setting the IsStart flag when receiving a startup signal"

Change-Id: I8439f92e2888301594da855979b313bf3d6cf2ca
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
5 months agoRevert "Remove setting the IsStart flag when receiving a startup signal" 43/301543/1
Changgyu Choi [Mon, 20 Nov 2023 01:57:41 +0000 (10:57 +0900)]
Revert "Remove setting the IsStart flag when receiving a startup signal"

This reverts commit 89867461c651321e129d088eae77faaf21fa2b81.

Change-Id: If74f63ef0f1001b4186f49b12eb425227db355a5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
6 months agoRelease version 1.67.14 54/301354/1 accepted/tizen/8.0/unified/20231116.175413 accepted/tizen/unified/20231116.101851
Hwankyu Jhun [Wed, 15 Nov 2023 01:40:44 +0000 (10:40 +0900)]
Release version 1.67.14

Changes:
 - Remove setting the IsStart flag when receiving a startup signal

Change-Id: Ia90d620e91050d4ea5f62e0aecd3d478083e317b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoRemove setting the IsStart flag when receiving a startup signal 89/301089/4
Changgyu Choi [Wed, 8 Nov 2023 07:21:08 +0000 (16:21 +0900)]
Remove setting the IsStart flag when receiving a startup signal

Rarely, after the launchpad sends a startup signal, it may be blocked
for a long time during the app execution process.
In this case, the process remains zombie for a long time.
This patch is for these ceses.

Change-Id: Ic7d884a0a2a785c3a8c5c10c3f17edd7eff746b1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
6 months agoRelease version 1.67.13 98/301298/1 accepted/tizen/unified/20231115.024841
Hwankyu Jhun [Tue, 14 Nov 2023 00:46:56 +0000 (09:46 +0900)]
Release version 1.67.13

Changes:
 - Change the method used in the compare function
 - Add missing exception handling
 - [Watchdog] Send the watchdog activation signal

Change-Id: I1801166efb6fb7ac883044a8f20dd1f4b773b855
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months ago[Watchdog] Send the watchdog activation signal 43/301243/8
Changgyu Choi [Mon, 13 Nov 2023 04:12:53 +0000 (13:12 +0900)]
[Watchdog] Send the watchdog activation signal

When the watchdog option is 'enable-by-default', amd sends the watchdog
activation signal to the running application.

Change-Id: I2b99b9b62b593b44bb82a8662c069251ab086f68
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
6 months agoAdd missing exception handling 64/301264/3
Changgyu Choi [Mon, 13 Nov 2023 06:23:29 +0000 (15:23 +0900)]
Add missing exception handling

Change-Id: I531ecb00027485697953fd52fef23c7240f7e695
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
6 months agoChange the method used in the compare function 69/301069/4
Changgyu Choi [Wed, 8 Nov 2023 05:01:52 +0000 (14:01 +0900)]
Change the method used in the compare function

__compare_app_status_for_sorting() needs only pid count.
This patch changes to get pid count method to _app_group_get_count().

Change-Id: Ibcc1592fb7d8fa01dd6560feb37de010b28a9df8
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
6 months agoRelease version 1.67.12 67/301067/1 accepted/tizen/unified/20231109.053258
Hwankyu Jhun [Wed, 8 Nov 2023 04:19:57 +0000 (13:19 +0900)]
Release version 1.67.12

Changes:
 - Terminate sub app

Change-Id: Ia1ed81ac0f2b883e6b9f9d0ce80b96fa6b6d3b2a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoTerminate sub app 61/301061/1
Hwankyu Jhun [Wed, 8 Nov 2023 01:38:08 +0000 (10:38 +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>
6 months agoRelease version 1.67.11 18/300618/1 accepted/tizen/unified/20231031.163516
Changgyu Choi [Mon, 30 Oct 2023 04:28:54 +0000 (13:28 +0900)]
Release version 1.67.11

Changes:
 - Modify startup timer
 - Refactor amd_api_database

Change-Id: Ia6e2aad5e369d29a49f63e6ec208722650a8984e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
6 months agoRefactor amd_api_database 58/300258/9
Changgyu Choi [Thu, 19 Oct 2023 08:58:56 +0000 (17:58 +0900)]
Refactor amd_api_database

amd_api_database has been  refactored to tizen_base::Database.

Change-Id: I06645732b9492e470dabf189f33f39e634019474
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
6 months agoModify startup timer 16/300616/2
Hwankyu Jhun [Mon, 30 Oct 2023 03:44:41 +0000 (12:44 +0900)]
Modify startup timer

The interval of the startup timer is changed to 10 seconds.
And, a member variable called delay_count_ is added to check if
the number of times has exceeded 6.
If the count is less than 6, amd prints the error log for debugging.

Change-Id: Iddca7dd9799339345fcf36e8e866207ce78129ba
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoRelease version 1.67.10 87/300387/1 accepted/tizen/unified/20231024.112158
Changgyu Choi [Mon, 23 Oct 2023 09:27:34 +0000 (18:27 +0900)]
Release version 1.67.10

Changes:
 - Fix restart contition

Change-Id: I1ed9fc9b175c59239d036737dcdb92da175c8859
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
6 months agoFix restart contition 85/300385/1
Changgyu Choi [Mon, 23 Oct 2023 09:17:21 +0000 (18:17 +0900)]
Fix restart contition

If autorestart option is true, the value is "1".

Change-Id: I83fc46ccf3f4a1d398621ebdc83ac1650f262289
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
6 months agoRelease version 1.67.9 18/300218/1
Hwankyu Jhun [Thu, 19 Oct 2023 02:03:45 +0000 (11:03 +0900)]
Release version 1.67.9

Changes:
 - Add MemoryLimit option to service file
 - Modify log print
 - Flush pending requests after sending sigkill signal

Change-Id: Ib6795faa6bedb01363f67b31f8aa49fb8496ed5d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoFlush pending requests after sending sigkill signal 17/300217/2
Hwankyu Jhun [Thu, 19 Oct 2023 01:55:59 +0000 (10:55 +0900)]
Flush pending requests after sending sigkill signal

After sending SIGKILL signal to the runnint process, amd handles
pending requests.

Change-Id: Ide20caeaeb859967b988bc23fadd6d08305f5565
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 months agoModify log print 16/300216/2
Hwankyu Jhun [Thu, 19 Oct 2023 01:16:29 +0000 (10:16 +0900)]
Modify log print

This patch changes the log format for printing the process ID information.

Change-Id: I9baccccc859b6e8813e07328ac1697bc88bd76ab
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoAdd MemoryLimit option to service file 28/300128/2
Changgyu Choi [Tue, 17 Oct 2023 07:31:56 +0000 (16:31 +0900)]
Add MemoryLimit option to service file

This is for memory leak checking.

Change-Id: Iac2b9963ebc0f702615ba35625aa3f9386451c86
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoRelease version 1.67.8 34/299934/1
Hwankyu Jhun [Thu, 12 Oct 2023 08:08:24 +0000 (17:08 +0900)]
Release version 1.67.8

Changes:
 - Set blocking status when package is installing

Change-Id: If8892423bc132283a0734715153ed84c2e1f3f75
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoSet blocking status when package is installing 27/299927/1
Hwankyu Jhun [Thu, 12 Oct 2023 07:18:26 +0000 (16:18 +0900)]
Set blocking status when package is installing

Currently, AMD tries to load the app info if the app info does not exist.
Unfortunately, the app info will be loaded even if the package is installing.
Before finishing the installation, the information is inserted to the database.
This patch is to prevent launching the application when the package is installing.

Change-Id: I63cc27987c49ba9cba350a89f24a1cd6c0f68e36
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 1.67.7 82/299882/1 accepted/tizen/unified/20231013.095104 accepted/tizen/unified/20231016.042323
Changgyu Choi [Wed, 11 Oct 2023 09:51:42 +0000 (18:51 +0900)]
Release version 1.67.7

Changes:
 - Remove unnecessary using idler
 - Fix typo
 - Modify compilation options
 - Add UpdateAppStatusDAO() method

Change-Id: Ie09f3aea64921d43b474cd8bb71e110045bfa8d2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoAdd UpdateAppStatusDAO() method 80/299880/2
Changgyu Choi [Wed, 11 Oct 2023 09:31:54 +0000 (18:31 +0900)]
Add UpdateAppStatusDAO() method

To update the starting flag on AppStatusDAO,
this api has been added on AppStatusManager.

Change-Id: I5474ecfb479bd70a50b60cc7ef10ed36e5f148d0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoModify compilation options 63/299863/1
Hwankyu Jhun [Wed, 11 Oct 2023 07:23:35 +0000 (16:23 +0900)]
Modify compilation options

The following options are added:
 - Wl,-z,relro
 - fstack-protector-strong

Change-Id: I57a9b91c5e4a8b2fa0c83cea879be50cdec51b26
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoFix typo 57/299857/1
Hwankyu Jhun [Wed, 11 Oct 2023 06:33:50 +0000 (15:33 +0900)]
Fix typo

The value must be "internal".

Change-Id: I2c62b13501e4bfac6efe6684bb7a2484a036efbe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRemove unnecessary using idler 11/299811/2
Hwankyu Jhun [Tue, 10 Oct 2023 11:57:38 +0000 (20:57 +0900)]
Remove unnecessary using idler

In the cynara module, calling g_idle_add() with the RequestCb() is not
needed. This patch removes that.

Change-Id: Ic1c8ef8a418801cce3dfb1b3731ae430b2c4a475
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 1.67.6 12/299812/1
Hwankyu Jhun [Tue, 10 Oct 2023 12:05:34 +0000 (21:05 +0900)]
Release version 1.67.6

Changes:
 - Add log print for debugging

Change-Id: Ibdbe4956ecdb4c4aa2b4934144ce0e948a8d69f2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoAdd log print for debugging 10/299810/1
Hwankyu Jhun [Tue, 10 Oct 2023 11:54:04 +0000 (20:54 +0900)]
Add log print for debugging

To check idle state, this patch adds a log.

Change-Id: Ic62d25781431f09d77d23e9982261a79af941572
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 1.67.5 08/299808/1
Hwankyu Jhun [Tue, 10 Oct 2023 11:15:23 +0000 (20:15 +0900)]
Release version 1.67.5

Changes:
 - Boost up cynara thread

Change-Id: I710fe18b65f3138301a03ed7df29ad547b90cdc4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoBoost up cynara thread 02/299802/3
Hwankyu Jhun [Tue, 10 Oct 2023 10:25:19 +0000 (19:25 +0900)]
Boost up cynara thread

In some device, the cynara thread is very slow. It makes a launch failure issue.
This patch applies the cpu boost to the cynara thread of amd when amd needs
to check whether the caller has permissions or not.

Change-Id: Ice8632bc530f23259961f1f1d8d78b1c890277f3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 1.67.4 58/299658/1 accepted/tizen/unified/20231007.143549
Changgyu Choi [Fri, 6 Oct 2023 07:09:08 +0000 (16:09 +0900)]
Release version 1.67.4

Changes:
 - Add exception handling on DBWriter+
 - Add calling AppStatusDao::UpdateAppStatus method on Update()

Change-Id: Icc62eadb671cd234f4dc4016a00d76fdcfe2f67d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoAdd calling AppStatusDao::UpdateAppStatus method on Update() 54/299654/1
Changgyu Choi [Fri, 6 Oct 2023 06:43:57 +0000 (15:43 +0900)]
Add calling AppStatusDao::UpdateAppStatus method on Update()

This is for sync issue of starting flag of a app_status with db.

Change-Id: I8d25c82b35d278cc9dd793abc337e0e5366970a1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoAdd exception handling on DBWriter+ 44/299644/2
Changgyu Choi [Fri, 6 Oct 2023 04:00:54 +0000 (13:00 +0900)]
Add exception handling on DBWriter+

Exceptions may occur when creating a Cursor object.
This patch handles these exceptions to prevent amd from abnormally terminating.

Change-Id: Ic4c7fe3a6dc0bb9dff38adc8d6c8e41a6f5bdd34
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoRelease version 1.67.3 34/299534/1 accepted/tizen/unified/20231006.044435
Changgyu Choi [Wed, 4 Oct 2023 07:11:44 +0000 (16:11 +0900)]
Release version 1.67.3

Changes:
 - Send sigabrt when app is not started

Change-Id: I05360dc7cb2616aa23a6904f509930a7ecef8b27
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoSend sigabrt when app is not started 08/299508/4
Changgyu Choi [Wed, 4 Oct 2023 02:10:18 +0000 (11:10 +0900)]
Send sigabrt when app is not started

Change to send SIGABRT instead of SIGKILL for debugging
when app is not started in OnDyingTimeout.

Change-Id: I0213f37cafb256399d3936155dcb17b71e107a58
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoRelease version 1.67.2 91/299291/1 accepted/tizen/8.0/unified/20231005.092952 accepted/tizen/unified/20230926.032104 tizen_8.0_m2_release
Changgyu Choi [Mon, 25 Sep 2023 08:45:53 +0000 (17:45 +0900)]
Release version 1.67.2

Changes:
 - Add setting starting to app_status on RegisterPID()

Change-Id: I8b9a53144d593c67ca8500e35c742cfbe0fd611f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoAdd setting starting to app_status on RegisterPID() 78/299278/4
Changgyu Choi [Mon, 25 Sep 2023 05:04:05 +0000 (14:04 +0900)]
Add setting starting to app_status on RegisterPID()

For apps registered through RegisterPID(), initialization is
considered complete and the timer is not registered.

Change-Id: I51bee048931dbdb28fa40b63070b38ae59f12571
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoRelease version 1.67.1 17/299217/1 accepted/tizen/unified/20230923.084318
Changgyu Choi [Fri, 22 Sep 2023 00:09:51 +0000 (09:09 +0900)]
Release version 1.67.1

Changes:
 - Add app status startup timer

Change-Id: Id8003e420e6ea6e3963552463dd5e74625b743f9
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoAdd app status startup timer 79/299179/8
Changgyu Choi [Thu, 21 Sep 2023 06:37:48 +0000 (15:37 +0900)]
Add app status startup timer

Occasionally, if amd does not receive the app dead signal from launchpad due to a delay in dbus
initialization, amd may have a problem of not recognizing the termination status of an app.
To prevent this situation, this patch registers a timer for the startup signal and recognizes that
the app is dead if the signal is not received within 30 seconds.

Change-Id: I3cd0080dcb7148ac4d904639a1bf60d940448a79
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
8 months agoRelease version 1.67.0 36/298836/1 accepted/tizen/unified/20230915.085357
Hwankyu Jhun [Thu, 14 Sep 2023 05:29:23 +0000 (14:29 +0900)]
Release version 1.67.0

Changes:
 - Add ISU package

Change-Id: I9331ce89f5c2c35a636d36cabf6fa6868bb91e16
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoAdd ISU package 86/298186/9
Mateusz Moscicki [Fri, 1 Sep 2023 15:51:19 +0000 (17:51 +0200)]
Add ISU package

This commit adds Individual Service Upgrade (ISU) feature to amd
package. When installed it will allow to upgrade this service using ISU
mechanism, without the need to perform full OS Upgrade.

This commits add necessary configuration to create upgrade packages of
needed format. ISU framework itself is maintained and installed
separately.

Change-Id: I62916eb3c0956d5fe65202656fe148db93032cd6

8 months agoRelease version 1.66.10 35/298835/1 accepted/tizen/unified/20230914.164946
Changgyu Choi [Thu, 14 Sep 2023 05:26:29 +0000 (14:26 +0900)]
Release version 1.66.10

Changes:
 - Add sending SIGKILL for termiate request timeouts

Change-Id: I11ff3bffb1fabbb9c8dbfc17f28d6d31793f00a9
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
8 months agoAdd sending SIGKILL for termiate request timeouts 31/298831/2
Changgyu Choi [Thu, 14 Sep 2023 04:55:48 +0000 (13:55 +0900)]
Add sending SIGKILL for termiate request timeouts

In order to handle a terminate request timeout,
Send to sigkill signal to target pid.

Change-Id: Icd2b34d305b4da0c8a7fa19c20a92c04912bb83b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
8 months agoRelease version 1.66.9 23/298423/1 accepted/tizen/unified/20230907.175312
Hwankyu Jhun [Wed, 6 Sep 2023 23:46:29 +0000 (08:46 +0900)]
Release version 1.66.9

Changes:
 - Fix segmentation fault

Change-Id: Ifc2792f4e8f2341d9bd9f41a6065325fe188cfb4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoFix segmentation fault 17/298417/1
Hwankyu Jhun [Wed, 6 Sep 2023 23:08:54 +0000 (08:08 +0900)]
Fix segmentation fault

When user log off, amd tries to remove the app status of the list.
In this time, the problem occurs.

Change-Id: I551c472246f88138bf4e8c6bee3372905ff95d00
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 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>
8 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>
8 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>
9 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>
9 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>