platform/core/appfw/amd.git
15 months agoRelease version 1.69.5 05/306805/1 accepted/tizen/unified/20240228.170409 accepted/tizen/unified/toolchain/20240311.065207 accepted/tizen/unified/x/20240304.072406 accepted/tizen/unified/x/20240304.072649
Hwankyu Jhun [Tue, 27 Feb 2024 23:54:41 +0000 (08:54 +0900)]
Release version 1.69.5

Changes:
 - tizen_launch_splash_launch_v2 does not allow a null argument.

Change-Id: I3994737c6369e66fd1d4f0e63aa26eb7a6db6607
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agotizen_launch_splash_launch_v2 does not allow a null argument. 01/306801/2
SooChan Lim [Tue, 27 Feb 2024 23:28:22 +0000 (08:28 +0900)]
tizen_launch_splash_launch_v2 does not allow a null argument.

Wayland protocol does not allow the null argument of which type
is arrary anymore.

Change-Id: I8cfed0a4b32523771fba52fb1f141d7c52f4b692

15 months agoRelease version 1.69.4 69/306769/1
Hwankyu Jhun [Tue, 27 Feb 2024 10:27:11 +0000 (19:27 +0900)]
Release version 1.69.4

Changes:
 - Check app status existence before insert

Change-Id: I83dd9a5f71c5733d24aae580be1676bd47a489d7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoCheck app status existence before insert 67/306767/1
Hwankyu Jhun [Tue, 27 Feb 2024 10:14:32 +0000 (19:14 +0900)]
Check app status existence before insert

Before insert the app status, amd checks whether the app status exists or not.

Change-Id: If8c79a0cad2deaff4a3e17f30fe860674c391f12
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 1.69.3 47/306547/1 accepted/tizen/unified/20240223.064458 accepted/tizen/unified/x/20240225.131821
Hwankyu Jhun [Fri, 23 Feb 2024 00:16:08 +0000 (09:16 +0900)]
Release version 1.69.3

Changes:
 - Modify incorrect instance ID settings

Change-Id: I808e46c56a2855149ddceb8b9733d6298a5afdb1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoModify incorrect instance ID settings 46/306546/1
Hwankyu Jhun [Fri, 23 Feb 2024 00:06:54 +0000 (09:06 +0900)]
Modify incorrect instance ID settings

The instance ID of the app status handle must be set only when the instance ID
of the launch context is not empty.

Change-Id: I0e8d6e5565870b34c5738074df10707786026fd2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 1.69.2 93/306493/1
Hwankyu Jhun [Thu, 22 Feb 2024 05:42:01 +0000 (14:42 +0900)]
Release version 1.69.2

Changes:
 - Modify APP_NOTIFY_START handler

Change-Id: I96f564610dff3620d405d6a9c8693231399550ce
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoModify APP_NOTIFY_START handler 76/306476/6
Hwankyu Jhun [Thu, 22 Feb 2024 04:32:02 +0000 (13:32 +0900)]
Modify APP_NOTIFY_START handler

when the app status information is not found, amd looks up the appid and
registers the app status  information.

Change-Id: Idf2538afd003fff8601fba1845af2572f68b52c6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 1.69.1 99/306299/1 accepted/tizen/unified/20240220.115636 accepted/tizen/unified/20240220.144640 accepted/tizen/unified/x/20240221.033415
Hwankyu Jhun [Tue, 20 Feb 2024 00:09:40 +0000 (09:09 +0900)]
Release version 1.69.1

Changes:
 - Fix the gadget path

Change-Id: I5e6b25897744e6ac1f764a322277ed394ca116c5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoFix the gadget path 97/306297/1
Hwankyu Jhun [Mon, 19 Feb 2024 23:23:46 +0000 (08:23 +0900)]
Fix the gadget path

The gadget path must contain a resource type to facilitate mounting.
After this patch is applied, the gadget path will be
"/<package root path>/res/allowed/<res-type>/".

Change-Id: Iaf4681a67a85d963f2776b8b2a63326882925fae
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoRelease version 1.69.0 02/305602/1 accepted/tizen/unified/20240206.094536 accepted/tizen/unified/x/20240206.211041
Hwankyu Jhun [Mon, 5 Feb 2024 09:10:00 +0000 (18:10 +0900)]
Release version 1.69.0

Changes:
 - Monitor freezer signal in the amd_suspend

Change-Id: I6111b3fa2381499331f1956bc0381117950b2bfd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoMonitor freezer signal in the amd_suspend 67/305567/1
Hwankyu Jhun [Mon, 5 Feb 2024 06:35:25 +0000 (15:35 +0900)]
Monitor freezer signal in the amd_suspend

To send the thaw event to the running process, amd listens to the freezer signal.
The listening the freezer signal code is moved to the amd_suspend from
the watchdog module.

Change-Id: I2aa0e4a513e235f0869de6d98ca309b7ae019854
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoRelease version 1.68.3 47/305547/1 accepted/tizen/unified/x/20240205.063713
Sangyoon Jang [Mon, 5 Feb 2024 01:52:44 +0000 (10:52 +0900)]
Release version 1.68.3

Changes:
 - Fix build error

Change-Id: I909d44aea1ce9e68239c77b124fd050e74217f26
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
16 months agoFix build error 43/305543/1
Sangyoon Jang [Mon, 5 Feb 2024 01:33:18 +0000 (10:33 +0900)]
Fix build error

Change-Id: Idbf0050fe75e613ecfd2b0612adf338f2b02565e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
16 months agoRelease version 1.68.2 23/305323/1 accepted/tizen/unified/20240201.165051
Sangyoon Jang [Wed, 31 Jan 2024 08:42:48 +0000 (17:42 +0900)]
Release version 1.68.2

Changes:
 - Fix lib rpk mount

Change-Id: I96a29d8ae8fd433b18f95dd49e0c7009ca691f07
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
16 months agoFix lib rpk mount 25/305225/2
Sangyoon Jang [Tue, 30 Jan 2024 06:56:15 +0000 (15:56 +0900)]
Fix lib rpk mount

Only allowed package can use lib rpk.
A lib rpk can contains resources for lib.

Change-Id: I49e6d5ef35c58ea49402aa234e1139c8e7b44b95
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
16 months agoRelease version 1.68.1 41/305241/1 accepted/tizen/unified/20240131.175419
Changgyu Choi [Tue, 30 Jan 2024 08:34:29 +0000 (17:34 +0900)]
Release version 1.68.1

Changes:
 - Adjust coding style of res info
 - Remove adding resource pakcage IDs to bundle object
 - Remove unnecessary copy

Change-Id: If8e19484fe6ba86d7f938c28cbd511c2f5089a9d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
16 months agoRemove unnecessary copy 59/305159/1
Changgyu Choi [Mon, 29 Jan 2024 10:26:26 +0000 (19:26 +0900)]
Remove unnecessary copy

Change-Id: I4e54daba33590709ee57e578d2bcb42000025854
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
16 months agoRemove adding resource pakcage IDs to bundle object 92/304892/3
Hwankyu Jhun [Thu, 25 Jan 2024 06:54:27 +0000 (15:54 +0900)]
Remove adding resource pakcage IDs to bundle object

Currently, NUIGadget feature uses gadget package IDs instead of
resource package IDs. The resource package IDs are not needed.
And, the gadget paths are removed from allowed paths and global paths.

Change-Id: I8856574c88ec30e3d081188c1e9dbe190c9d1461
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoAdjust coding style of res info 79/304779/9
Hwankyu Jhun [Tue, 23 Jan 2024 11:54:25 +0000 (20:54 +0900)]
Adjust coding style of res info

- Separates ResControl class from res_app_info.hh file
- Adds 'const' keyword to methods
- Removes amd_res_info.cc file

Change-Id: Ie0a0216e2b8c97d47cfa5e8805d7b9a336d75ac8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoRelease version 1.68.0 66/304666/1 accepted/tizen/unified/20240124.163233
Hwankyu Jhun [Tue, 23 Jan 2024 03:49:56 +0000 (12:49 +0900)]
Release version 1.68.0

Changes:
 - Refactor method to get resource package information
 - Parse values for using library resource package
 - Set gadget info to bundle object

Change-Id: I4e86038864bfeddf2d080faa65a1ea273aa57a51
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoSet gadget info to bundle object 52/304552/3
Hwankyu Jhun [Fri, 19 Jan 2024 09:38:13 +0000 (18:38 +0900)]
Set gadget info to bundle object

The gadget informations are added to the bundle.
The launchpad attempts to mount with the set bundle information.

Change-Id: Ic204ed61ac0d9b7a78b27d860695c0ce1bcb7a19
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoParse values for using library resource package 87/304387/15
Ilho Kim [Tue, 16 Jan 2024 10:44:16 +0000 (19:44 +0900)]
Parse values for using library resource package

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

Change-Id: I824fa2a4d95ee8682ae001d572ccaffd544a99bb
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
16 months agoRefactor method to get resource package information 58/304358/16
Ilho Kim [Tue, 16 Jan 2024 08:52:14 +0000 (17:52 +0900)]
Refactor method to get resource package information

Change-Id: I4ff2ca8e55b220b2e6b567e36836323d216518cf
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
16 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>
16 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
18 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>