Changgyu Choi [Thu, 5 Dec 2024 03:27:05 +0000 (12:27 +0900)]
Release version 1.68.17
Changes:
- isu: Separate session for amd process using --new-session
Change-Id: I0765de45afce58c4b4af08702ebe7ecc32e67fd5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Adam Michalski [Wed, 4 Dec 2024 14:00:08 +0000 (15:00 +0100)]
isu: Separate session for amd process using --new-session
The DA team requested that the `amd` process running through ISU
sandboxing be executed in a separate session by calling `setsid()`.
This ensures that the `amd` daemon is properly separated from its
parent process and process group, which is a typical setup for
daemonized processes.
Previously, the session of the `amd` process was not separated,
which may lead to potential issues with process management. By adding
the `--new-session` flag to the ISU configuration, this request is
addressed.
Change-Id: If0bf6bc70f36004cf2dc81ea7b498c216cc240cb
(cherry picked from commit
c8472601f850b70a27f559fc0d532ac5e0b40609)
Hwankyu Jhun [Mon, 22 Jul 2024 04:58:38 +0000 (13:58 +0900)]
Release version 1.68.16
Changes:
- Check pending item before processing the launch request
Change-Id: I886342d2b8d8442f753f09b6edacfabf56ef4605
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 22 Jul 2024 03:25:41 +0000 (12:25 +0900)]
Check pending item before processing the launch request
When the target application ID is changed, amd should check whether
the target application is starting or not.
Change-Id: I3197e0fa8718ef9d99f6822097a117a7ae1426b5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 17 Jul 2024 00:06:47 +0000 (09:06 +0900)]
Release version 1.68.15
Changes:
- Modify amd_launch_start_app function
Change-Id: Ia8f47de1b5c35dbf2e1dc71de2b077e66070c32d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 16 Jul 2024 23:24:48 +0000 (08:24 +0900)]
Modify amd_launch_start_app function
To check whther the target application is launching or not, the function
calls _request_check_status(). If it returns 1, it means the request is pending.
In that case, the function returns 0.
Change-Id: I58513c0b3b0e83cec0c9b81be23dcd931c227c6a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 27 Jun 2024 08:39:15 +0000 (17:39 +0900)]
Release version 1.68.14
Changes:
- Modify AppControl Checker
Change-Id: I0eaf5203b42eafb0f95afb04ff39d95ae826d1da
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 19 Jun 2024 05:36:10 +0000 (14:36 +0900)]
Modify AppControl Checker
If the target application is a robot app, amd checks whether the caller
is the srp-app-launcher or not. If it's not, the launch request will be
rejected.
Change-Id: I8848f88ec46269da7d99ffd0cf501a79173531cd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 25 Jun 2024 00:59:53 +0000 (09:59 +0900)]
Release version 1.68.13
Changes:
- Set default user ID for system daemon
Change-Id: Ibb535cf97e7c7587f49abfefee139da1e261f43e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 25 Jun 2024 00:40:12 +0000 (09:40 +0900)]
Set default user ID for system daemon
If there is no active user, amd sets the system user ID to the target
uid of the request for system daemon.
Change-Id: I8fc7532e0ca59be798db3b961c711ab7410c0381
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 4 Jun 2024 00:29:51 +0000 (09:29 +0900)]
Release version 1.68.12
Changes:
- Handle robot app type
Change-Id: Ic5f9dc032e645af532e7f489817dd915e2c6a30d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 3 Jun 2024 06:50:35 +0000 (15:50 +0900)]
Handle robot app type
To support robot profile, amd handles 'robotapp' type.
Change-Id: I5a436de2215ca2da77d7e84effe806f083feb93d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 17 Apr 2024 01:56:44 +0000 (10:56 +0900)]
Release version 1.68.11
Changes:
- rpc-port: Modify stub preparation handler
Change-Id: I10cab3f0ba8df65cd6c79a6589d9ef2d32880eaa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 17 Apr 2024 01:23:54 +0000 (10:23 +0900)]
rpc-port: Modify stub preparation handler
If the request is pended, amd sends the result to the caller immediately.
Change-Id: I0307a428ddc3b075a3f59d260f1bb3efc96c84ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 4 Apr 2024 06:39:42 +0000 (15:39 +0900)]
Release version 1.68.10
Changes:
- Create aul directories
Change-Id: I4596a6be4a796fc242f67e21a74d701781914408
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 4 Apr 2024 05:51:39 +0000 (14:51 +0900)]
Create aul directories
Currently, amd can run before creating aul directories by systemd-tempfiles.
In this case, amd has crashed. When attempting to access the '.amd.db',
the operation fails because the directory does not exist, which causes
the crash. When doing the AMD initialization, it is necessary to check whether
the required directory exists and perform the creation operation if it doesn't.
Change-Id: I3a36b9cffa778d8a97f8b2aff7c9035adde1667e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 2 Apr 2024 00:37:01 +0000 (09:37 +0900)]
Release version 1.68.9
Changes:
- Check disabled app info
Change-Id: I0d8bbf6d6abfc62406e04ba4c57a2776ea2a59e3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 2 Apr 2024 00:25:32 +0000 (09:25 +0900)]
Check disabled app info
If amd cannot find the appinfo from the memory & db when getting
the launch request, amd should check whether the disabled app info exists
or not.
This patch is for debugging.
Change-Id: I88c893bcf5e51bdae17b18755a0f0461c57cd41e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 29 Mar 2024 05:13:20 +0000 (14:13 +0900)]
Release version 1.68.8
Changes:
- Fix login monitor
Change-Id: Ib16fa8a8756a3d0c2e7e9c39476019eecf805540
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 28 Mar 2024 22:58:19 +0000 (07:58 +0900)]
Fix login monitor
Before setting UID_STATE_ONLINE to the state of the user info, amd
should check whether the state is UID_STATE_ONLINE or not.
Change-Id: I716da3c33f1509e13d85cdcf1039410c73d66cbe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 28 Mar 2024 11:14:47 +0000 (20:14 +0900)]
Release version 1.68.7
Changes:
- Modify sending ping request
Change-Id: I879b7d0eff91d06f1ff0dd0ed5b0dfffb580b381
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 28 Mar 2024 10:41:44 +0000 (19:41 +0900)]
Modify sending ping request
This patch changes the ping request to asynchronous.
Change-Id: Ia37d49b9e6f2f74434e510bbad1147e699f554f5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 12 Mar 2024 22:50:21 +0000 (07:50 +0900)]
Release version 1.68.6
Changes:
- Check widget viewer privilege
- Remove backtrace output
Change-Id: I525cb0f4443aee0d340088900b678698c19b4446
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 11 Mar 2024 22:54:08 +0000 (07:54 +0900)]
Remove backtrace output
If amd calls backtrace() when getting the signal, amd can be crashed.
This patch removes to print backtrace using backtrace() function.
Change-Id: I58a4ae0427da67a2ff2bdf67f8171c5e58515b12
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 8 Mar 2024 05:13:10 +0000 (14:13 +0900)]
Check widget viewer privilege
If the port name is "ScreenConnectorInput", amd checks whether the
caller has a privilege related to widget viewer or not.
Change-Id: I15019d879a2633099bebf8aa1ed5995a991e9f15
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 27 Feb 2024 10:27:38 +0000 (19:27 +0900)]
Release version 1.68.5
Changes:
- Check app status existence before insert
Change-Id: I4e3ef651b9ea012f5c2a425dcf6a61427bdeda24
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
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>
Hwankyu Jhun [Fri, 23 Feb 2024 00:16:35 +0000 (09:16 +0900)]
Release version 1.68.4
Changes:
- Modify incorrect instance ID settings
Change-Id: I9d77ec70e1aec08d9ec561169b00a442329d2227
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
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>
Hwankyu Jhun [Thu, 22 Feb 2024 05:50:04 +0000 (14:50 +0900)]
Release version 1.68.3
Changes:
- Modify APP_NOTIFY_START handler
Change-Id: Ie3713282eb93f066a7b8f0dbcddb03cc9934b762
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
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>
Hwankyu Jhun [Tue, 20 Feb 2024 00:20:43 +0000 (09:20 +0900)]
Release version 1.68.2
Changes:
- Fix the gadget path
Change-Id: I505060ef1999bc85003d3db59e034d1e17713cab
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
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>
Hwankyu Jhun [Fri, 16 Feb 2024 08:38:35 +0000 (17:38 +0900)]
Release version 1.68.1
Changes:
- Revert "Monitor freezer signal in the amd_suspend"
Change-Id: I6cf1957f4aa7caa1214a6ece419619c14a9b2723
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 16 Feb 2024 08:20:57 +0000 (17:20 +0900)]
Revert "Monitor freezer signal in the amd_suspend"
This reverts commit
76604bd5d95b85e3302f6715fdb3b95db6a026c5.
Change-Id: I69ecc9297a7540cca89639e371b99401e7001f27
Hwankyu Jhun [Mon, 5 Feb 2024 09:58:55 +0000 (18:58 +0900)]
Release version 1.68.0
Changes:
- Adjust coding style of res info
- Remove adding resource pakcage IDs to bundle object
- Remove unnecessary copy
- Fix build error
- Monitor freezer signal in the amd_suspend
Change-Id: Iabb1fd615d7a253e98d9f0e0f0d93fe3935cb740
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
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>
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>
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>
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>
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>
Hwankyu Jhun [Tue, 23 Jan 2024 03:56:18 +0000 (12:56 +0900)]
Release version 1.67.33
Changes:
- Refactor method to get resource package information
- Set gadget info to bundle object
Change-Id: I98ca09649bd67281e321375c594270cbcbf54bec
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>