platform/core/appfw/amd.git
8 months agoRelease version 1.70.16 74/318774/1 accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.231636 accepted/tizen/unified/20241011.010636 accepted/tizen/unified/toolchain/20241022.122313 accepted/tizen/unified/toolchain/20241022.122806 accepted/tizen/unified/x/20241011.021804 accepted/tizen/unified/x/asan/20241013.235611 tizen_9.0_m2_release
Hwankyu Jhun [Tue, 8 Oct 2024 07:10:04 +0000 (16:10 +0900)]
Release version 1.70.16

Changes:
 - Load appcontrol privileges at bootup time
 - Modfiy handling pending item
 - Check request before access control
 - Use pkgmgrinfo_appinfo_foreach_appcontrol_v3() instead
 - Check port name for screen connecor input
 - Fix CheckAppControlPrivilege function

Change-Id: I5e3696df287c035d59af593103e929e6981fe913
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoFix CheckAppControlPrivilege function 73/318773/1
Hwankyu Jhun [Tue, 8 Oct 2024 06:50:10 +0000 (15:50 +0900)]
Fix CheckAppControlPrivilege function

If there is not app info, amd should skip the access control.
In the some product, the application uses alias appids.

Change-Id: Ib9adc4eea8a8ed01d9fe149e3d56503b8cf6e464
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 1.70.15 72/318772/1
Hwankyu Jhun [Tue, 8 Oct 2024 06:29:29 +0000 (15:29 +0900)]
Release version 1.70.15

Changes:
 - Use pkgmgrinfo_appinfo_foreach_appcontrol_v3() instead
 - Check port name for screen connecor input

Change-Id: I1f9a88a41bc2e967e090a94bb893c1845b8b2ef0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoCheck port name for screen connecor input 67/318767/1
Hwankyu Jhun [Tue, 8 Oct 2024 06:02:45 +0000 (15:02 +0900)]
Check port name for screen connecor input

If the port name is "ScreenConnectorInput", amd does not send the launch request
to the stub.

Change-Id: I3ba3fb0eb7e76a7c17763f072f0f5779a8a2bcf8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoUse pkgmgrinfo_appinfo_foreach_appcontrol_v3() instead 63/318763/2
Hwankyu Jhun [Tue, 8 Oct 2024 04:38:47 +0000 (13:38 +0900)]
Use pkgmgrinfo_appinfo_foreach_appcontrol_v3() instead

To improve the performance of amd initialization, amd should use
pkgmgrinfo_appinfo_foreach_appcontrol_v3() function.

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/pkgmgr-info/+/318744/

Change-Id: I51fd10437a4ce2b6d1dc87ced4b173ada399434f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 1.70.14 61/318761/1
Hwankyu Jhun [Tue, 8 Oct 2024 03:56:23 +0000 (12:56 +0900)]
Release version 1.70.14

Changes:
 - Check request before access control

Change-Id: I0ae0724a0fe0f58bc2c48bbcf6ff024bebba8603
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoCheck request before access control 58/318758/1
Hwankyu Jhun [Tue, 8 Oct 2024 03:36:45 +0000 (12:36 +0900)]
Check request before access control

For access control, the application ID should be set if it's the launch request.
Before checking the permission of the caller, amd checks the request.
If it's the implicit launch request, amd sets the application ID to the request.

Change-Id: I548eb1ac9f9f8a41b6007fa7eacf887af9d8823d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 1.70.13 44/318544/1
Hwankyu Jhun [Wed, 2 Oct 2024 03:24:51 +0000 (12:24 +0900)]
Release version 1.70.13

Changes:
 - Load appcontrol privileges at bootup time
 - Modfiy handling pending item

Change-Id: I4ce1ece6bfc9dc36fcc01e8569cd308225c5d8fc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoModfiy handling pending item 39/318539/1
Hwankyu Jhun [Wed, 2 Oct 2024 02:04:13 +0000 (11:04 +0900)]
Modfiy handling pending item

There is a problem that when an execution request for the same app is delivered
before AMD executes the app and obtains the PID information, it cannot deliver
the PID information to the proxy. This problem creates a blocking state in the proxy.
In the FlushPendingRequests() method, if the request type is 'rpc-port',
modify it so that the result is immediately delivered to the caller.

Change-Id: I13334803267e1297df1d1a17ce673ef40feacb4d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoLoad appcontrol privileges at bootup time 34/318534/3
Hwankyu Jhun [Wed, 2 Oct 2024 00:52:29 +0000 (09:52 +0900)]
Load appcontrol privileges at bootup time

During the process of calling the pkgmgrinfo API, it was observed that the AMD
is blocked for a certain period of time.
This patch modifies the booting process to load the appcontrol privilege
information by AMD in order to solve this problem.

Change-Id: I343ad57e24a458746d2a9ae0d19fb028745d40ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoRelease version 1.70.12 04/314904/1 accepted/tizen_unified_dev accepted/tizen/unified/20240724.005728 accepted/tizen/unified/dev/20240724.110007 accepted/tizen/unified/toolchain/20240812.131620 accepted/tizen/unified/x/20240724.011805 accepted/tizen/unified/x/asan/20240813.225856
Hwankyu Jhun [Tue, 23 Jul 2024 06:04:28 +0000 (15:04 +0900)]
Release version 1.70.12

Changes:
 - Add metadata profile for NUIGadget

Change-Id: I01a12cdb3b87053bc8169a02a184904e6228e5a9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoAdd metadata profile for NUIGadget 02/314902/2
Hwankyu Jhun [Tue, 23 Jul 2024 05:47:54 +0000 (14:47 +0900)]
Add metadata profile for NUIGadget

The following informations are added for NUIGadget feature:
 - http://tizen.org/metadata/ui-gadget/dll
 - http://tizen.org/metadata/ui-gadget/resource/dll
 - http://tizen.org/metadata/ui-gadget/resource/class-name

Change-Id: I5a7b3f4292c8437fda480804d637ec314c8317d2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoRelease version 1.70.11 90/314890/1 accepted/tizen/unified/20240723.101930
Changgyu Choi [Tue, 23 Jul 2024 01:16:06 +0000 (10:16 +0900)]
Release version 1.70.11

Changes:
 - Add the logic to terminate apps that are not responding

Change-Id: I16456c3836917e1f7d323c3e31e0bcf4bfb193ff
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
10 months agoAdd the logic to terminate apps that are not responding 40/314840/4
Changgyu Choi [Mon, 22 Jul 2024 04:10:57 +0000 (13:10 +0900)]
Add the logic to terminate apps that are not responding

After this patch is applied, any apps that have not responded for 100 seconds after launching will be terminated.

Change-Id: Ie105ddbb204a6f0279639c8d6ccee65cb96207b5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
10 months agoRelease version 1.70.10 43/314843/1 accepted/tizen/unified/20240723.034813 accepted/tizen/unified/x/20240723.085956
Hwankyu Jhun [Mon, 22 Jul 2024 04:57:59 +0000 (13:57 +0900)]
Release version 1.70.10

Changes:
 - Check pending item before processing the launch request

Change-Id: I647903f56991f1c84d0aec18d54efb41fa9034d2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoCheck pending item before processing the launch request 36/314836/1
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>
10 months agoRelease version 1.70.9 07/314707/1 accepted/tizen/unified/20240718.143645 accepted/tizen/unified/dev/20240722.073431 accepted/tizen/unified/x/20240719.012637
Hwankyu Jhun [Thu, 18 Jul 2024 01:19:27 +0000 (10:19 +0900)]
Release version 1.70.9

Changes:
 - Call AMD_MOD_PREINIT function

Change-Id: I2e22c59d81fcd462776c183f4ff78e053a0d7a52
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoCall AMD_MOD_PREINIT function 72/314672/2
Hwankyu Jhun [Wed, 17 Jul 2024 06:53:16 +0000 (15:53 +0900)]
Call AMD_MOD_PREINIT function

Before amd starts the memory allocation, amd calls AMD_MOD_PREINIT() to
provider the entry point to plugin modules.

Change-Id: I37fb326905ae4103d9a41f85b518d19280861135
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoRelease version 1.70.8 50/314650/1 accepted/tizen/unified/20240717.060621 accepted/tizen/unified/dev/20240718.035947 accepted/tizen/unified/x/20240718.022839
Hwankyu Jhun [Wed, 17 Jul 2024 00:06:19 +0000 (09:06 +0900)]
Release version 1.70.8

Changes:
 - Modify amd_launch_start_app function

Change-Id: I3ce28ccdc008911efa82f46f47bce88921998050
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoModify amd_launch_start_app function 48/314648/1
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>
11 months agoRelease version 1.70.7 64/314364/1 accepted/tizen/unified/20240711.163729 accepted/tizen/unified/dev/20240712.055817 accepted/tizen/unified/x/20240715.042440
Hwankyu Jhun [Thu, 11 Jul 2024 00:09:48 +0000 (09:09 +0900)]
Release version 1.70.7

Changes:
 - Call Finish method to release all resources

Change-Id: I6a9bd196f22ae696c774a4ee8978ee0da678dce8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoCall Finish method to release all resources 63/314363/1
Hwankyu Jhun [Wed, 10 Jul 2024 23:13:19 +0000 (08:13 +0900)]
Call Finish method to release all resources

To prevent crash issues, amd should release all resources of
AppStatusManager instance when calling exit handlers.
This patch adds a destructor of the AppStatusManager to call Finish()
method.

Change-Id: I3232c54339fcf95131279a6303e8d7aa44de0fea
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRelease version 1.70.6 74/313874/1 accepted/tizen/unified/20240703.154725 accepted/tizen/unified/dev/20240704.065547 accepted/tizen/unified/x/20240704.022858
Hwankyu Jhun [Wed, 3 Jul 2024 04:00:09 +0000 (13:00 +0900)]
Release version 1.70.6

Changes:
 - Fix static analysis issues

Change-Id: I1e08359b00bfb4af24138b203b10772b93c58f6f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoFix static analysis issues 63/313863/2
Hwankyu Jhun [Tue, 2 Jul 2024 23:48:21 +0000 (08:48 +0900)]
Fix static analysis issues

Checker:
 - DEREF_OF_NULL

Change-Id: I715ecc12e7a65e866e64bdf229eb2da3a029feea
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRelease version 1.70.5 94/313694/1 accepted/tizen/unified/20240702.091906 accepted/tizen/unified/dev/20240703.060306 accepted/tizen/unified/x/20240703.013202
Hwankyu Jhun [Mon, 1 Jul 2024 05:30:47 +0000 (14:30 +0900)]
Release version 1.70.5

Changes:
 - Fix static analysis issues

Change-Id: I0a8af71f3dc100ffd9b17fc3523eb3c9310e52e0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoFix static analysis issues 56/313656/1
Hwankyu Jhun [Mon, 1 Jul 2024 00:00:40 +0000 (09:00 +0900)]
Fix static analysis issues

Checker:
 - UNREACHABLE_CODE

Change-Id: Ie853fcb17ce13dd5398cd512f90fccace5dde428
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRelease version 1.70.4 16/313516/1
Hwankyu Jhun [Thu, 27 Jun 2024 08:26:39 +0000 (17:26 +0900)]
Release version 1.70.4

Changes:
 - Modify AppControl Checker

Change-Id: Id8d1508164fc5c73cd0109b54ce05b74b1def812
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoModify AppControl Checker 04/313104/2
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>
11 months agoRelease version 1.70.3 62/313362/1 accepted/tizen/unified/20240625.163159 accepted/tizen/unified/dev/20240701.072818 accepted/tizen/unified/x/20240626.052154
Hwankyu Jhun [Tue, 25 Jun 2024 00:59:04 +0000 (09:59 +0900)]
Release version 1.70.3

Changes:
 - Set default user ID for system daemon

Change-Id: Ia5318bc11c34d9c1f01f2a5565fd445378ad1065
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoSet default user ID for system daemon 61/313361/2
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>
11 months agoRelease version 1.70.2 67/313267/1 accepted/tizen/unified/20240624.104736 accepted/tizen/unified/x/20240625.014035
Hwankyu Jhun [Fri, 21 Jun 2024 05:08:28 +0000 (14:08 +0900)]
Release version 1.70.2

Changes:
 - Change log levels

Change-Id: I6e6307012f09a8451fa7708ddb61fe7a1aba69e0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoChange log levels 62/313262/2
Hwankyu Jhun [Thu, 20 Jun 2024 23:45:42 +0000 (08:45 +0900)]
Change log levels

This patch changes the log level to error level for debugging.

Change-Id: I29d7cdd4ecd221f29ad5ff3221904e2d4d6aea90
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoRelease version 1.70.1 11/312111/1
Hwankyu Jhun [Tue, 4 Jun 2024 09:31:57 +0000 (18:31 +0900)]
Release version 1.70.1

Changes:
 - Change return value when app is blocking status
 - Modify noti message
 - Separate initialization of AppStatusManager
 - MemoryLimit has been replaced by MemoryMax

Change-Id: Ibc9c9e0e1057c56d320006fff332142a11e768e2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoMemoryLimit has been replaced by MemoryMax 09/312109/1
Łukasz Stelmach [Tue, 4 Jun 2024 09:29:39 +0000 (11:29 +0200)]
MemoryLimit has been replaced by MemoryMax

The  MemoryLimit option is marked as deprecated in systemd and needs to
be changed to MemoryMax in unit files.

Change-Id: I767dc60a32719d92418c2549c8636b13b081a0e5
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
12 months agoSeparate initialization of AppStatusManager 85/312085/2
Hwankyu Jhun [Tue, 4 Jun 2024 06:10:19 +0000 (15:10 +0900)]
Separate initialization of AppStatusManager

The following methods are added:
 - AddSignalReadyCb()
 - SetRequestBrokerDisconntectedEventCb()
 - AddInotifyWatch()
 - AddVconfInitTimer()

The AppStatusManager::Init() calls the added functions for the initialization.

Change-Id: I0ac3986fed9f9980c7a43fb272730e7934947959
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoModify noti message 86/312086/2
Hwankyu Jhun [Tue, 4 Jun 2024 06:15:57 +0000 (15:15 +0900)]
Modify noti message

The argument is added to notify that the status is updated forcedly.

Change-Id: I71e212046be86e2d493d2fd33d30baacd141a7d0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoChange return value when app is blocking status 76/312076/1
Hwankyu Jhun [Tue, 4 Jun 2024 04:34:04 +0000 (13:34 +0900)]
Change return value when app is blocking status

The implementation of CheckExecutable method changes the value that
returned -ENOENT to -EREJECTED.

Change-Id: Ibb4d999c62f553751b94d38c803328f8f6b46595
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoRelease version 1.70.0 69/312069/1 accepted/tizen/unified/20240604.160853 accepted/tizen/unified/dev/20240620.004853 accepted/tizen/unified/toolchain/20240624.121255 accepted/tizen/unified/x/20240605.012722 accepted/tizen/unified/x/asan/20240625.091903
Hwankyu Jhun [Tue, 4 Jun 2024 00:28:44 +0000 (09:28 +0900)]
Release version 1.70.0

Changes:
 - Handle robot app type

Change-Id: I4f820e5fdaa9d8924b4381a2b2bc04b479938eef
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
12 months agoHandle robot app type 43/312043/2
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>
13 months agoRelease version 1.69.16 40/309840/1 accepted/tizen/unified/20240419.110902 accepted/tizen/unified/x/20240422.045715
Hwankyu Jhun [Wed, 17 Apr 2024 07:02:19 +0000 (16:02 +0900)]
Release version 1.69.16

Changes:
 - Fix static analysis issues

Change-Id: I038b74c62f126c7ee07853f7eb746a7cd1063af2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoFix static analysis issues 30/309830/2
Hwankyu Jhun [Wed, 17 Apr 2024 05:30:15 +0000 (14:30 +0900)]
Fix static analysis issues

This patch checks whether the GError variable is nullptr or not.

Change-Id: Ia98fb1c35ce8538e84d253df0c4849bfc190f390
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoRelease version 1.69.15 85/309785/1
Hwankyu Jhun [Wed, 17 Apr 2024 01:55:49 +0000 (10:55 +0900)]
Release version 1.69.15

Changes:
 - rpc-port: Modify stub preparation handler

Change-Id: If40713897de07a81435eae1f3bbbeefb36aed619
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agorpc-port: Modify stub preparation handler 80/309780/2
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>
14 months agoRelease version 1.69.14 40/309040/1 accepted/tizen/unified/20240404.164500 accepted/tizen/unified/x/20240408.053707
Hwankyu Jhun [Thu, 4 Apr 2024 06:39:02 +0000 (15:39 +0900)]
Release version 1.69.14

Changes:
 - Create aul directories

Change-Id: I2a90d22c77107b80d3bf6ddced75145317bd4b2c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoCreate aul directories 37/309037/2
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>
14 months agoRelease version 1.69.13 95/308995/1 accepted/tizen/unified/20240404.021402 accepted/tizen/unified/x/20240404.061823
Hwankyu Jhun [Wed, 3 Apr 2024 09:41:10 +0000 (18:41 +0900)]
Release version 1.69.13

Changes:
 - Modify rpcport directory permissions
 - Remove vip configuration file from resourced directory

Change-Id: I5e96bcc309f51a87e98ddb03b973156b5f405150
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRemove vip configuration file from resourced directory 59/308859/1
Hwankyu Jhun [Tue, 2 Apr 2024 03:54:17 +0000 (12:54 +0900)]
Remove vip configuration file from resourced directory

To prevent rebooting the device, amd.vip.conf file is removed.
When amd is restarted, amd loads running context informations from
the db(tmpfs). Rebooting the device is not needed.

Change-Id: I8365b7a68c46df30a260cc4dc74671eba9e1a6f4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoModify rpcport directory permissions 58/308858/1
Hwankyu Jhun [Tue, 2 Apr 2024 03:49:53 +0000 (12:49 +0900)]
Modify rpcport directory permissions

The permission is changed to 777. The owner and group are changed to root:root.
The application cannot create and delete the file directly.
Because, the SMACK label of the directory is "User::Home".

Change-Id: Ic272de07661cffc4c71945f845dbcc5d02c41b2f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRelease version 1.69.12 34/308834/1 accepted/tizen/unified/20240402.151316 accepted/tizen/unified/20240402.163616 accepted/tizen/unified/x/20240403.102926
Hwankyu Jhun [Tue, 2 Apr 2024 00:36:20 +0000 (09:36 +0900)]
Release version 1.69.12

Changes:
 - Check disabled app info

Change-Id: I4af8fa2ade09c6a4295d0fa0889b588a6cce7618
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoCheck disabled app info 32/308832/2
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>
14 months agoRelease version 1.69.11 99/308699/1 accepted/tizen/unified/20240401.021557 accepted/tizen/unified/20240401.165605 accepted/tizen/unified/x/20240401.013222
Hwankyu Jhun [Fri, 29 Mar 2024 03:20:34 +0000 (12:20 +0900)]
Release version 1.69.11

Changes:
 - Fix login monitor

Change-Id: I351e3ee09c2633628ad5957b7eec3c52e0acd631
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoFix login monitor 80/308680/1
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>
14 months agoRelease version 1.69.10 62/308662/1
Hwankyu Jhun [Thu, 28 Mar 2024 11:14:22 +0000 (20:14 +0900)]
Release version 1.69.10

Changes:
 - Modify sending ping request

Change-Id: Ibc8438569ff763704dd7fd65793452ea262867f9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoModify sending ping request 58/308658/4
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>
14 months agoRelease version 1.69.9 20/308620/1
Ilho Kim [Thu, 28 Mar 2024 07:15:37 +0000 (16:15 +0900)]
Release version 1.69.9

Changes:
 - Add codes for bypass pkgmgr privilege
 - Update codes for bypass pkgmgr privilege

Change-Id: I9a6945a0f94506e0ccdfbfff5eb658522483b9f9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
14 months agoUpdate codes for bypass pkgmgr privilege 07/308507/2
Inkyun Kil [Wed, 27 Mar 2024 00:17:30 +0000 (09:17 +0900)]
Update codes for bypass pkgmgr privilege

Change-Id: Ieebeb5f9a8f9022a14dbc26b5efe6ebecc28ac65
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
14 months agoAdd codes for bypass pkgmgr privilege 29/308429/2
Inkyun Kil [Mon, 25 Mar 2024 09:06:25 +0000 (18:06 +0900)]
Add codes for bypass pkgmgr privilege

- Changing the pkgmgr protocol to TIDL requires a way to pass the privilege

Change-Id: Ia2ff2364016f5112ccf37ff95dc95dd3b1f2b311
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
14 months agoRelease version 1.69.8 15/308315/1 accepted/tizen/unified/20240322.174303 accepted/tizen/unified/x/20240326.073107
Hwankyu Jhun [Thu, 21 Mar 2024 08:40:31 +0000 (17:40 +0900)]
Release version 1.69.8

Changes:
 - Fix crash issues related to amd termination

Change-Id: I7d5d473fb53ec44af324cd53eef6185acf6453cc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoFix crash issues related to amd termination 96/308296/1
Hwankyu Jhun [Thu, 21 Mar 2024 04:44:50 +0000 (13:44 +0900)]
Fix crash issues related to amd termination

There are crash issues related to termination behavior of amd.
This patch fixes 'use after free' problems.

Change-Id: Idb671e45c1f365f6bebc9d64002e9adc0f9df6d5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRelease version 1.69.7 79/307979/1 accepted/tizen/unified/20240315.111214 accepted/tizen/unified/20240315.155144 accepted/tizen/unified/x/20240319.055417
Changgyu Choi [Fri, 15 Mar 2024 01:36:06 +0000 (10:36 +0900)]
Release version 1.69.7

Changes:
 - Change mainloop to tizen-core

Change-Id: Iae1ae3720773d6990964b60e64e80dc875f4a03d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoChange mainloop to tizen-core 97/307897/3
Changgyu Choi [Thu, 14 Mar 2024 05:15:39 +0000 (14:15 +0900)]
Change mainloop to tizen-core

After applying this patch, amd uses tizen-core mainloop instead of gmainloop.

Change-Id: Ide72e7a3856804861898b6c5c06b928e2a4bd1b5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoRelease version 1.69.6 36/307736/1 accepted/tizen/unified/20240313.134714 accepted/tizen/unified/20240313.135712 accepted/tizen/unified/x/20240314.073145
Hwankyu Jhun [Tue, 12 Mar 2024 22:49:05 +0000 (07:49 +0900)]
Release version 1.69.6

Changes:
 - Check widget viewer privilege
 - Remove backtrace output
 - Remove warning messages

Change-Id: I18e158c7fdcd2dede6c177e7d150567033fa4a22
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRemove warning messages 27/307527/1
Hwankyu Jhun [Mon, 11 Mar 2024 23:15:24 +0000 (08:15 +0900)]
Remove warning messages

The return type of the callback function of the amd noti should be integer.

Change-Id: Ibf500d61d61c9af92bfd9037834306db4e81b8d7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRemove backtrace output 25/307525/2
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>
15 months agoCheck widget viewer privilege 24/307524/1
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>
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>