platform/core/appfw/aul-1.git
2 years agoChange GetRWPath() 45/278345/7
Changgyu Choi [Tue, 19 Jul 2022 07:22:35 +0000 (16:22 +0900)]
Change GetRWPath()

This patch change return path of GetRWPath() to default path.
So, it removed libsessiond dependency.

Change-Id: Ic5fcd280b886acf2e53e79191f97d5f3b08c037d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoAdd a new definition for light user feature 34/278334/4
Ilho Kim [Tue, 19 Jul 2022 06:25:41 +0000 (15:25 +0900)]
Add a new definition for light user feature

Adds:
 - AUL_K_ENABLED_LIGHT_USER

Change-Id: I955dfa8f6e6046a781593e58ec9f0590748244a1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRefactor watchdog API 21/279221/3
Hwankyu Jhun [Thu, 4 Aug 2022 01:46:46 +0000 (10:46 +0900)]
Refactor watchdog API

The watchdog API is implemented using C++ language.

Change-Id: Ia2e5cf910ca9cfab6f7926ea17a29cfe3265297d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd unit tests for component context APIs 15/279215/2
Hwankyu Jhun [Thu, 4 Aug 2022 00:51:16 +0000 (09:51 +0900)]
Add unit tests for component context APIs

To refactor comp context APIs, unit tests are added.

Change-Id: Ie52d8ca38629caf37e7977a71495611defe68a73
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRefactor pkginfo APIs 47/278747/10
Hwankyu Jhun [Wed, 3 Aug 2022 08:27:07 +0000 (17:27 +0900)]
Refactor pkginfo APIs

The pkginfo APIs are implmented using C++ language.

Change-Id: I7b300dd75ea7c6b4d1e5ad38cb846a9afcc16269
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd unit tests for Watchdog API 06/279206/1
Hwankyu Jhun [Wed, 3 Aug 2022 10:22:50 +0000 (19:22 +0900)]
Add unit tests for Watchdog API

To refactor watchdog API, unit tests are added.

Change-Id: Id3918f6334b14ec29b48553226979c1b03f41520
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd unit tests for pkginfo APIs 13/279113/5
Hwankyu Jhun [Tue, 2 Aug 2022 06:55:23 +0000 (15:55 +0900)]
Add unit tests for pkginfo APIs

To refactor pkginfo APIs, unit tests are added.

Change-Id: Ib6ce953a07c345e91f12cca75edddd033b16f8e3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd a missing nullptr check 16/279116/1
Hwankyu Jhun [Tue, 2 Aug 2022 07:33:15 +0000 (16:33 +0900)]
Add a missing nullptr check

Before setting the result to the argument, the function has to check
whether the argument is nullptr or not.

Change-Id: I5adb25cf7d3c08b036fb447bf1b5d088a2504bcf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRemove duplicated header inclusion 67/278567/1
Hwankyu Jhun [Fri, 22 Jul 2022 05:23:10 +0000 (14:23 +0900)]
Remove duplicated header inclusion

The string.h header inclusion is duplicated. This patch removes it.

Change-Id: I96203a58ddcc503f677ddd2843c2afede06cf932
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.48.4 01/278301/1 accepted/tizen/unified/20220720.064044 accepted/tizen/unified/20220720.141524 submit/tizen/20220718.115742 submit/tizen/20220719.015501 submit/tizen/20220720.014058 submit/tizen/20220720.052140
Hwankyu Jhun [Tue, 19 Jul 2022 01:02:02 +0000 (10:02 +0900)]
Release version 0.48.4

Changes:
 - Fix light user directory path
 - Fix cpu inheritance feature

Change-Id: Ie9bc8e940bb22b5cc1fce22b99d847e0d3768aca
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix cpu inheritance feature 44/277944/2
Hwankyu Jhun [Fri, 15 Jul 2022 07:01:26 +0000 (16:01 +0900)]
Fix cpu inheritance feature

The AUL calls the resource_set_cpu_inheritance() function if the
callee is AMD and the request is a launch request.

Change-Id: Ida09e991f23ca10486d2539fe955755aea31650d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix light user directory path 07/277607/2
Changgyu Choi [Mon, 11 Jul 2022 04:26:16 +0000 (13:26 +0900)]
Fix light user directory path

Change from "subsessions" to "subsession"

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/277116

Change-Id: Ib0fc40345fe2b044b1e48188f4ebbb090ee2c9c6
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.48.3 02/277602/1 accepted/tizen/unified/20220712.010813 submit/tizen/20220708.124830
Changgyu Choi [Mon, 11 Jul 2022 04:14:36 +0000 (13:14 +0900)]
Release version 0.48.3

Changes:
 - Apply to change interface of sessiond API

Change-Id: I96fb192b463e5ac84b5e93e4328440c8f7ec6b2c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoApply to change interface of sessiond API 93/277593/1
Changgyu Choi [Mon, 11 Jul 2022 02:13:41 +0000 (11:13 +0900)]
Apply to change interface of sessiond API

Sessiond API changed session_user key to char array.
This patch applies the changes.

Change-Id: I66d69f4f4095fdcd1febb93eca54bcc4265a1749
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.48.2 65/277465/1 accepted/tizen/unified/20220708.132838 submit/tizen/20220707.091043
Changgyu Choi [Thu, 7 Jul 2022 08:55:27 +0000 (17:55 +0900)]
Release version 0.48.2

Changes:
 - Add a log for debugging

Change-Id: Icc6702839eb690d2f06959b622c0b38ffb20e7f1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoAdd a log for debugging 05/277405/1
Changgyu Choi [Wed, 6 Jul 2022 08:36:13 +0000 (17:36 +0900)]
Add a log for debugging

If the app attempts to register the callback
using aul_app_lifecycle_register_state_changed_cb() more than once,
the log is displayed.

Change-Id: Idbe374a78850ce5d259e3bc96be41427ee1c5269
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.48.1 55/277255/1 accepted/tizen/unified/20220705.220823 submit/tizen/20220704.071937 submit/tizen/20220705.003005
Hwankyu Jhun [Mon, 4 Jul 2022 07:17:45 +0000 (16:17 +0900)]
Release version 0.48.1

Changes:
 - Apply type conversion

Change-Id: I5cf2300f46c8364ac5545b80e8c8fc8d7041a3bb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoApply type conversion 54/277254/1
Hwankyu Jhun [Mon, 4 Jul 2022 07:11:39 +0000 (16:11 +0900)]
Apply type conversion

The dest_process parameter of resource_set_cpu_inheritance() and
resource_clear_cpu_inheritance() was char* type.
This patch adds const_cast to apply the type conversion.

Change-Id: I5603435899953e0737f9bbe1c85dce971bc185f4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.48.0 26/277126/1 accepted/tizen/unified/20220703.214155 submit/tizen/20220701.041209
Hwankyu Jhun [Fri, 1 Jul 2022 04:09:55 +0000 (13:09 +0900)]
Release version 0.48.0

Changes:
 - Fix Build() and conversion operator of Builder class
 - Refactor aul sock
 - Add exception handlings about a file descriptor
 - Inherit CPU scheduling policy to Daemon Process

Change-Id: I9390abe4a5595d5a508efcf91319dfff74c15025
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoInherit CPU scheduling policy to Daemon Process 76/277076/3
Hwankyu Jhun [Thu, 30 Jun 2022 06:58:41 +0000 (15:58 +0900)]
Inherit CPU scheduling policy to Daemon Process

To solve the priority inversion issue, AUL calls resource_set_cpu_inheritance()
to inherit the CPU scheduling policy to AMD when IPC with AMD.
If the stcheduling priority of AMD is higher than the caller, the inheritance
request will be ignored.

Change-Id: I5a12f208c31f113f7c12a975526f3a03f155787a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd exception handlings about a file descriptor 99/277099/1
Hwankyu Jhun [Thu, 30 Jun 2022 23:25:51 +0000 (08:25 +0900)]
Add exception handlings about a file descriptor

This patch checks whether the file descriptor is valid or not.
It the argument is the invalid fd, the function returns -EINVAL error.

Change-Id: I20172a1f04fa31b698b92f0cc5fa84388c6eccdb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRefactor aul sock 27/277027/6
Hwankyu Jhun [Wed, 29 Jun 2022 07:41:17 +0000 (16:41 +0900)]
Refactor aul sock

The aul sock is implemented using C++.

Change-Id: I34573294f754e2469d19bd2867f89a6d7f88bc51
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix Build() and conversion operator of Builder class 13/276813/1
Hwankyu Jhun [Mon, 27 Jun 2022 01:41:31 +0000 (10:41 +0900)]
Fix Build() and conversion operator of Builder class

To improve the performance, the method and operator use std::move.

Change-Id: If439be42e3f440392213239b9ab2535442015178
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.47.6 04/275504/1 accepted/tizen/unified/20220530.140724 submit/tizen/20220526.014753
Hwankyu Jhun [Thu, 26 May 2022 01:43:22 +0000 (10:43 +0900)]
Release version 0.47.6

Changes:
 - Fix spec file for coverage measurement

Change-Id: Ib7da0f4e913a7ce604ed6922cd7e7f978e2c4dea
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix spec file for coverage measurement 83/275483/1
Hwankyu Jhun [Wed, 25 May 2022 23:13:32 +0000 (08:13 +0900)]
Fix spec file for coverage measurement

To measure code coverages automatically, a run-unittest.sh is needed.
aul-unittests rpm is added for coverage measurement.

Change-Id: I8c849e45fac9497787a2f05e304e23252cff8f0c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.47.5 51/275451/1
Hwankyu Jhun [Wed, 25 May 2022 04:59:45 +0000 (13:59 +0900)]
Release version 0.47.5

Changes:
 - Fix aul_proc_register()

Change-Id: I5bbc90cbb6df322703eca75158f487c92f749383
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix aul_proc_register() 48/275448/1
Hwankyu Jhun [Wed, 25 May 2022 03:23:22 +0000 (12:23 +0900)]
Fix aul_proc_register()

The aul_proc_register() should wait until the result is delivered.

Change-Id: I559e4cbcea519b7536884caec79b6d1bc92a22bc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.47.4 86/275386/1 accepted/tizen/unified/20220526.144258 submit/tizen/20220525.001052
Hwankyu Jhun [Tue, 24 May 2022 04:21:19 +0000 (13:21 +0900)]
Release version 0.47.4

Changes:
 - Fix the wrong implementation of aul_set_auto_restart()

Change-Id: Ibd6519c0a3bf4484ee970daa069ad98ba04fe6d3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix the wrong implementation of aul_set_auto_restart() 74/275374/1
Hwankyu Jhun [Tue, 24 May 2022 00:51:52 +0000 (09:51 +0900)]
Fix the wrong implementation of aul_set_auto_restart()

The encoded bundle raw data has to be set to the local variable.

Change-Id: I0182a465d67ab7ce6abae4c334d0aa714f585ff7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.47.3 64/275364/1 accepted/tizen/unified/20220525.134624 submit/tizen/20220524.002151
Changgyu Choi [Mon, 23 May 2022 09:18:59 +0000 (18:18 +0900)]
Release version 0.47.3

Changes:
 - Fix undo step in boot_sequence plugin parser

Change-Id: I8686aa007ba3a8a30d95abd2a290aa54eb0aa846
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix undo step in boot_sequence plugin parser 59/275359/7
Changgyu Choi [Mon, 23 May 2022 07:43:57 +0000 (16:43 +0900)]
Fix undo step in boot_sequence plugin parser

Undo step not performs Init().
So, when it performs args_->GetPackage() in StepUninstall(),
it has caused crash.
This problem is before calling Undo(), the plugin is loaded newly.

Change-Id: I9538b24b490fbcdddc022ecd2cdca2fa8ce9a683
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.47.2 51/275151/1
Ilho Kim [Tue, 17 May 2022 08:03:37 +0000 (17:03 +0900)]
Release version 0.47.2

Changes:
 - Add new tests to aul_test tool
 - Refactor app signal
 - Fix build error

Change-Id: If7e5fba74a3f51a1cab970fa66b376e9adb67d88
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoFix build error 46/275146/1
Ilho Kim [Tue, 17 May 2022 07:44:53 +0000 (16:44 +0900)]
Fix build error

'subsession_is_supported' is removed api

Change-Id: I154c56b1dd04a643a537ba4db9b93bac1bf3246f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRefactor app signal 40/274540/3
Hwankyu Jhun [Mon, 2 May 2022 05:05:46 +0000 (14:05 +0900)]
Refactor app signal

The app_signal is implmeneted using C++. Locking mutex is added for
thread safe issue.

Change-Id: I4d20a47321e4af52ca63d408c247e93a01c654ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd new tests to aul_test tool 10/274910/1
Hwankyu Jhun [Thu, 12 May 2022 02:23:49 +0000 (11:23 +0900)]
Add new tests to aul_test tool

Adds:
 - aul_listen_app_dead_signal_test
 - aul_listen_app_launch_signal_test
 - aul_listen_app_launch_signal_v2_test
 - aul_listen_app_status_signal_test

Change-Id: Ida54b8822160fbf34940be5fcb7cc84c525088e1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.47.1 42/274642/1 submit/tizen/20220504.054007 submit/tizen/20220505.234907
SukhyungKang [Wed, 4 May 2022 05:34:23 +0000 (14:34 +0900)]
Release version 0.47.1

Changes:
- Fix wrong metadata profile xml tag

Change-Id: I4e14a06494e43c326cafc205d89625d6073d9f18
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
2 years agoFix wrong metadata profile xml tag 40/274640/1
SukhyungKang [Wed, 4 May 2022 05:31:42 +0000 (14:31 +0900)]
Fix wrong metadata profile xml tag

Change-Id: I22a1779074d765c19d80d54aa67dcc6ea70799a1
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
2 years agoRelease version 0.47.0 74/274374/1 accepted/tizen/unified/20220428.162651 submit/tizen/20220427.073044
Hwankyu Jhun [Wed, 27 Apr 2022 07:03:17 +0000 (16:03 +0900)]
Release version 0.47.0

Changes:
 - Add calling usleep() to avoid busy waiting
 - Implement lightuser feature
 - Separate mutex

Change-Id: Iabde13a5556a1ee62859ef10532a3f5384b5ee92
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoSeparate mutex 70/274370/1
Hwankyu Jhun [Wed, 27 Apr 2022 06:41:45 +0000 (15:41 +0900)]
Separate mutex

Currently, if the thread calls __add_client_channel() and the main thread calls
aul_worker_destroy(), the process is a deadlock state.
To avoid the deadlock issue, the mutex is separated. The init_mutex is
added for aul_launch_init() and aul_launch_fini().

Change-Id: I2edd8ab3db73eeade11f8aab3bbd1dc468f4b276
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoImplement lightuser feature 87/274287/3
Ilho Kim [Tue, 26 Apr 2022 01:47:00 +0000 (10:47 +0900)]
Implement lightuser feature

Apps that declared light user whose switch mode is not 'default'
should get appropriate directory of light user

Change-Id: I9818bfa4cab1be5acf7d1fec7fdec7d4fad3f3d7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdd calling usleep() to avoid busy waiting 43/274343/1
Hwankyu Jhun [Wed, 27 Apr 2022 00:57:41 +0000 (09:57 +0900)]
Add calling usleep() to avoid busy waiting

If the socket is non-blocking mode, while loop can make busy waiting.
To avoid busy waiting, this patch adds calling usleep() with 100 ms.

Change-Id: I41d25ee6f7c314c29920b48b00a8b94c67c6825f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.46.14 64/273964/1 accepted/tizen/unified/20220420.135453 submit/tizen/20220419.054934
Hwankyu Jhun [Tue, 19 Apr 2022 05:42:20 +0000 (14:42 +0900)]
Release version 0.46.14

Changes:
 - Fix log messages about app request
 - [UI Thread] Fix undefnied behavior of g_rec_mutex_clear()
 - Add metadata-profile.xml

Change-Id: I629f61186bc4fdf2cb2a4a7c52ec9898b79b0a60
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd metadata-profile.xml 65/273465/8
SukhyungKang [Wed, 6 Apr 2022 05:28:21 +0000 (14:28 +0900)]
Add metadata-profile.xml

Change-Id: I00d23929bda5f4406f23bc937a767cca4a017c89
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
2 years ago[UI Thread] Fix undefnied behavior of g_rec_mutex_clear() 38/273938/2
Hwankyu Jhun [Mon, 18 Apr 2022 10:20:39 +0000 (19:20 +0900)]
[UI Thread] Fix undefnied behavior of g_rec_mutex_clear()

If an application uses UI thread feature, the aul_launch_fini() function
can be invoked each threads. In that time, the race condition about
g_rec_mutex_clear() can be occurred. This patch initializes the
recursive mutex in the constructor to prevent the issue.

Change-Id: Ie01ec307ddd8fe3b9cbdb9925b2f6c37f93775e5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix log messages about app request 77/273877/1
Hwankyu Jhun [Fri, 15 Apr 2022 04:50:36 +0000 (13:50 +0900)]
Fix log messages about app request

The log format is changed. The string of the cmd is added for readability.

Change-Id: Ibae30cd6b9560eb77b0a21125f838e69a6200df2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.46.13 91/273791/1 accepted/tizen/unified/20220414.220142 submit/tizen/20220414.001401
Hwankyu Jhun [Thu, 14 Apr 2022 00:07:48 +0000 (09:07 +0900)]
Release version 0.46.13

Changes:
 - Check launch argv handler registration

Change-Id: I1cf8954830d4e04668a35bed9b4272855cb20e5c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoCheck launch argv handler registration 90/273790/1
Hwankyu Jhun [Wed, 13 Apr 2022 23:53:56 +0000 (08:53 +0900)]
Check launch argv handler registration

If the handler is already registered, AUL doesn't register it again.

Change-Id: If7aa6ee79dfc86f0cdf6cb863983b092a026e320
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.46.12 14/273714/1 accepted/tizen/unified/20220413.133149 submit/tizen/20220413.010328
Hwankyu Jhun [Wed, 13 Apr 2022 00:48:45 +0000 (09:48 +0900)]
Release version 0.46.12

Changes:
 - Fix wrong implementation about aul handler call

Change-Id: Ie370cf972079814dfb09bd01dda64a7276907736
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix wrong implementation about aul handler call 78/273678/1
Hwankyu Jhun [Tue, 12 Apr 2022 07:54:17 +0000 (16:54 +0900)]
Fix wrong implementation about aul handler call

If the bundle data has "__K_SERVICE_THREAD", the request will be
delivered to the main thread.

Change-Id: I96e30a62c3f09fc786de4723b46546455d5650f2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.46.11 60/273660/1 accepted/tizen/unified/20220412.100402 submit/tizen/20220411.232929 submit/tizen/20220412.011447
Hwankyu Jhun [Mon, 11 Apr 2022 23:21:58 +0000 (08:21 +0900)]
Release version 0.46.11

Changes:
 - [UI Thread] Check bundle data for service thread

Change-Id: I6f550c3773ea4285dea9a4be167a2ed69d24c014
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years ago[UI Thread] Check bundle data for service thread 30/273630/1
Hwankyu Jhun [Mon, 11 Apr 2022 04:29:25 +0000 (13:29 +0900)]
[UI Thread] Check bundle data for service thread

To send the launch request to the service thread, aul launch checks
whether the key of the bundle data exists or not.
It the key exists, the launch request will be delivered to the global
default loop.

Change-Id: I18089f5983fa509753465868485d1c8cad9c4bfd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.46.10 43/273243/1 accepted/tizen/unified/20220404.013008 submit/tizen/20220401.045229
Hwankyu Jhun [Fri, 1 Apr 2022 04:45:26 +0000 (13:45 +0900)]
Release version 0.46.10

Changes:
 - [UI Thread] Use tizen glib context

Change-Id: I4a8cbc2be5d300e38b67333f50aaaaee01b493a0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years ago[UI Thread] Use tizen glib context 27/273227/1
Hwankyu Jhun [Fri, 1 Apr 2022 01:19:24 +0000 (10:19 +0900)]
[UI Thread] Use tizen glib context

The command associated with the launch request passes events to the
tizen glib context.

Change-Id: Ic4123c1f0e6a6de52bf7b137b12c43a0209d8518
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.46.9 39/272839/1 accepted/tizen/unified/20220328.131539 submit/tizen/20220325.085556
SukhyungKang [Fri, 25 Mar 2022 08:40:16 +0000 (17:40 +0900)]
Release version 0.46.9

Changes:
 - Revert "Refactor aul launch"

Change-Id: Ieae36260ea64e3802ca5bd5cb3e03117712f7795
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
2 years agoRevert "Refactor aul launch" 38/272838/1
SukhyungKang [Fri, 25 Mar 2022 08:08:51 +0000 (17:08 +0900)]
Revert "Refactor aul launch"

This reverts commit c944eb1dce7cef345f78b96ff14a390d053ba4ea.

Change-Id: Ida690998d08ecd588f45edeb871be38c16380c73

2 years agoRelease version 0.46.8 20/272720/1 accepted/tizen/unified/20220324.134412 submit/tizen/20220323.063726
Hwankyu Jhun [Wed, 23 Mar 2022 06:36:07 +0000 (15:36 +0900)]
Release version 0.46.8

Changes:
 - Fix static analysis issue

Change-Id: I7cea328e666e4a5f841a883f03872dc9046e8fa5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix static analysis issue 19/272719/1
Hwankyu Jhun [Wed, 23 Mar 2022 06:27:09 +0000 (15:27 +0900)]
Fix static analysis issue

Argument of close() cannot be negative.

Change-Id: I596363e5dd6e1c383f44670fc98bf60d267316ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.46.7 95/272495/1 accepted/tizen/unified/20220321.141207 submit/tizen/20220318.013821
Hwankyu Jhun [Fri, 18 Mar 2022 01:35:26 +0000 (10:35 +0900)]
Release version 0.46.7

Changes:
 - Refactor aul launch
 - Fix a bug about lib path in 64-bit env

Change-Id: Ia330b19a33e118545e947833bd3dc03e05eaccd9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix a bug about lib path in 64-bit env 92/272492/2
Hwankyu Jhun [Fri, 18 Mar 2022 00:59:54 +0000 (09:59 +0900)]
Fix a bug about lib path in 64-bit env

The library path is not "/usr/lib" in 64-bit env. This patch defines
the library path in the compilation time.

Change-Id: Ia328ef9b8f77e3e5f1839ac571b2880670c0d573
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRefactor aul launch 95/272395/4
Hwankyu Jhun [Wed, 16 Mar 2022 00:53:32 +0000 (09:53 +0900)]
Refactor aul launch

The aul launch is implemented using C++.

Change-Id: I4fba401793898eaa901ab39be2cec594a32d36e7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.46.6 15/272215/1 accepted/tizen/unified/20220315.132342 submit/tizen/20220313.222529
Hwankyu Jhun [Fri, 11 Mar 2022 08:08:42 +0000 (17:08 +0900)]
Release version 0.46.6

Changes:
 - Use thread default context

Change-Id: Icf66fb131262f73cfb1930deaa939d3af42c820d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoUse thread default context 89/270489/2
Hwankyu Jhun [Thu, 3 Feb 2022 09:15:09 +0000 (18:15 +0900)]
Use thread default context

After this patch is applied, the callback function will be invoked to
the caller thread. For example, the app_control_cb callback function
will be invoked to the current thread default context.

Change-Id: Ia85ebbf223ab06a6a10c94aaf28722a359ff2020
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.46.5 69/272069/1 accepted/tizen/unified/20220309.135452 accepted/tizen/unified/20220311.111914 submit/tizen/20220308.002132 submit/tizen/20220310.003544
Hwankyu Jhun [Tue, 8 Mar 2022 00:12:32 +0000 (09:12 +0900)]
Release version 0.46.5

Changes:
 - Fix app com deletion

Change-Id: I1766f6ed46e1098b09debdc5369fdaa24cdecfe7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix app com deletion 68/272068/2
Hwankyu Jhun [Mon, 7 Mar 2022 23:38:23 +0000 (08:38 +0900)]
Fix app com deletion

To avoid crash issue, this patch uses idler to remove the app_com_connection_h.
While calling the app_com_leave() function, the connection is set the disabled flag
to 'true'. If the disabled flag of the connection is 'true', the Invoke() method
doesn't call the callback function.
This patch is to fix the following crash issue:
+------------------------------------------------------------------------------+
| #0  0x43a88614 in std::_List_iterator<std::unique_ptr<(anonymous namespace)::|
|     AppComConnection, std::default_delete<(anonymous namespace)::AppComConnec|
|     tion> > >::operator++ (this=<synthetic pointer>)                         |
|     at /usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0/include/c++/mutex:109   |
| #1  (anonymous namespace)::Context::Receive (this=<optimized out>,           |
|     b=0x967c8af0) at /usr/src/debug/aul-0.43.10/src/app_com.cc:107           |
| #2  app_com_recv (b=0x967c8af0)                                              |
|     at /usr/src/debug/aul-0.43.10/src/app_com.cc:172                         |
+------------------------------------------------------------------------------+

Change-Id: I81a5d27fc49ba632c01c3171d4541e3eb3cd4605
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.46.4 26/272026/1 submit/tizen/20220307.035051
Hwankyu Jhun [Mon, 7 Mar 2022 03:31:16 +0000 (12:31 +0900)]
Release version 0.46.4

Changes:
 - Fix permission check of tizen boot sequence
 - Remove explicit dependency of cert-svc-vcore library

Change-Id: Ib94e8eb492b883445ad96ae6f2007e0aeb0bed5b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRemove explicit dependency of cert-svc-vcore library 21/272021/2
Hwankyu Jhun [Mon, 7 Mar 2022 01:38:43 +0000 (10:38 +0900)]
Remove explicit dependency of cert-svc-vcore library

Currently, the aul package has a circular dependency as below:
aul->cert-svc->key-manager->uci->hwcrypto->trustzone-nwd->capi-appfw-app-common->aul

This patch removes an explicit dependency about cert-svc-vcore library.
And, the boot sequencer parser plugin calls functions of cert-svc-vcore using
dlopen() & dlsym().

Change-Id: I752dd5b4e09e4e1ccc294f60e87147f16b845405
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix permission check of tizen boot sequence 68/271968/1
Hwankyu Jhun [Fri, 4 Mar 2022 04:10:07 +0000 (13:10 +0900)]
Fix permission check of tizen boot sequence

After this patch is applied, partner level signed packages are allosed
to use tizen boot sequence. The feature is available for preloaded packages or
platform level signed packages or partner level signed packages.

Change-Id: Iae83cacd732e07ad94d337c51858bd7f6e1865fe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.46.3 66/271966/1 submit/tizen/20220304.035414
Hwankyu Jhun [Fri, 4 Mar 2022 03:38:46 +0000 (12:38 +0900)]
Release version 0.46.3

Changes:
 - Fix list-dependencies description
 - Add vconf data into aulctl status
 - Implement cert checker for boot-seqeucner plugin parser
 - Implmenet API version check for boot sequence

Change-Id: I59187a2f2de1fe8077ce32786081a5d8f6739643
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoImplmenet API version check for boot sequence 70/271870/1
Hwankyu Jhun [Thu, 3 Mar 2022 01:08:24 +0000 (10:08 +0900)]
Implmenet API version check for boot sequence

Tizen App Boot Sequence is supported from Tizen 7.0. It's not supported
for previous version of ui apps.

Change-Id: I4c9cdb148e0ff09233bbc2f79f522b4feffe6766
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoImplement cert checker for boot-seqeucner plugin parser 67/271867/4
Hwankyu Jhun [Wed, 2 Mar 2022 23:23:20 +0000 (08:23 +0900)]
Implement cert checker for boot-seqeucner plugin parser

If the package is not a preloaded package or platform level signed package,
the plugin does not store the information into the database.
The feature is available for preloaded packages or platform level signed packages.

Change-Id: I482b3a69881323226f4e3fb38213a07820fec190
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd vconf data into aulctl status 55/271755/1
Changgyu Choi [Mon, 28 Feb 2022 07:02:14 +0000 (16:02 +0900)]
Add vconf data into aulctl status

Change-Id: Ic0b5fb105ae0044ba31cadbdcaeb98a7888b17a0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix list-dependencies description 92/271692/1
Changgyu Choi [Fri, 25 Feb 2022 00:45:22 +0000 (09:45 +0900)]
Fix list-dependencies description

Change-Id: If7efe430407451fcdf9ec6c549593b6d4bcf87d7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.46.2 74/271574/1 accepted/tizen/unified/20220224.125806 submit/tizen/20220223.065038
Changgyu Choi [Wed, 23 Feb 2022 06:24:31 +0000 (15:24 +0900)]
Release version 0.46.2

Changes:
 - Fix aulctl

Change-Id: I64c848cacab37e0340c17268098e322a7922e53c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix aulctl 63/271563/2
Changgyu Choi [Wed, 23 Feb 2022 05:36:04 +0000 (14:36 +0900)]
Fix aulctl

Changes:
 - Initializes uninitialized appinfo values.
 - Adds bg_launch & wait_until_ready setting.
 - Fixes sub status fail condition.

Change-Id: I4d950e28cea2c66ac616a2cdfa83aa700060ab22
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.46.1 98/271198/1 accepted/tizen/unified/20220218.152646 accepted/tizen/unified/20220221.224819 submit/tizen/20220217.011520 submit/tizen/20220220.235444
Hwankyu Jhun [Thu, 17 Feb 2022 01:06:37 +0000 (10:06 +0900)]
Release version 0.46.1

Changes:
 - Fix getting AppInfo
 - Fix static analysis issue

Change-Id: I8f058d3cd858a33dc2647bbb43f6b26dccff1b80
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix static analysis issue 93/271193/2
Hwankyu Jhun [Thu, 17 Feb 2022 00:05:21 +0000 (09:05 +0900)]
Fix static analysis issue

- Initialize member variable

Change-Id: I6c5743825481a0e0585bf5c580b6e526d4b1d914
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix getting AppInfo 08/271108/3
Hwankyu Jhun [Tue, 15 Feb 2022 09:42:32 +0000 (18:42 +0900)]
Fix getting AppInfo

If the pid parameter is equal to the current process ID, AppInfo::Get()
tries to get a package ID and a root path using pre-initialized information.
If calling aul_app_get_pkgid_bypid() or calling aul_get_preinit_root_path()
is failed, the method tries to get the application information using pkgmgr-info API.

Change-Id: I43c2261dc4822c66b61cccd2c7db066858c19709
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.46.0 38/271138/1 submit/tizen/20220216.003753
Changgyu Choi [Wed, 16 Feb 2022 00:35:13 +0000 (09:35 +0900)]
Release version 0.46.0

Changes:
 - Fix fd check condition
 - Add aulctl tool
 - Fix a bug about sending start app request
 - Fix api for aulctl
 - Improve aulctl tool
 - Add new features into boot sequence app info

Change-Id: I23344b3f7ab803e371c60f74060e60ed9af2c9c2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoAdd new features into boot sequence app info 83/271083/3
Changgyu Choi [Tue, 15 Feb 2022 06:46:12 +0000 (15:46 +0900)]
Add new features into boot sequence app info

This patch adds socket-ready, terminated timestamp
and status message.

socket-ready: The timestamp when the app socket was ready.
termianted: The timestamp when the app was terminated.
status-message: The message if the sub status of app is fail.

Change-Id: I8cd3414f1ba79ebd6ca3a12387cc3a0723b6335c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoImprove aulctl tool 16/271016/7
Changgyu Choi [Mon, 14 Feb 2022 08:04:17 +0000 (17:04 +0900)]
Improve aulctl tool

Changes:
 - Adds timestamp to status commands.
 - Changes output of list-dependencies command.
 - Adds description of aul-keys for boot sequence apis.
 - Moves boot_sequence sources to aulctl

Change-Id: I349ab1d29a2e9e147612053106bcaad6cf429514
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix api for aulctl 02/270902/4
Changgyu Choi [Fri, 11 Feb 2022 02:22:52 +0000 (11:22 +0900)]
Fix api for aulctl

Changes:
 - Removes internal keys from args.
 - Removes mutex from boot_sequence api

Change-Id: I1d8630a7125cd85797b5b0de0e9368e3459fa28d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix a bug about sending start app request 01/270901/1
Hwankyu Jhun [Fri, 11 Feb 2022 02:17:54 +0000 (11:17 +0900)]
Fix a bug about sending start app request

After calling AppRequest::With(), the bundle data of AUL_K_APPID will be
removed by AppRequest::ClearInternalKey().

Change-Id: I7761dda9cc540ca3584d503b077b17eefbdfad57
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoMerge "Add aulctl tool" into tizen
Changgyu Choi [Wed, 9 Feb 2022 02:27:48 +0000 (02:27 +0000)]
Merge "Add aulctl tool" into tizen

2 years agoAdd aulctl tool 90/268790/22
Changgyu Choi [Thu, 30 Dec 2021 08:50:37 +0000 (17:50 +0900)]
Add aulctl tool

The aulctl is Application boot sequence management tool.

command list:
 - list-apps [|uid]: Print list of boot sequence apps.
 - is-active [appid]: Print whether the app is activated.([active|inactive])
 - status [|appid]: Print status of the boot sequence app.
 - list-dependencies [|uid]: Print dependency grach of boot sequence apps.
 - reload [|uid]: Reload the boot squence app's information.
 - start [appid]: Start the app according to the dependencies.
 - stop [appid]: Stop the app.

Change-Id: I88325b7c33a216bd2853ebf1afafdd8cdb5e4b00
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix fd check condition 42/270242/1
Changgyu Choi [Thu, 27 Jan 2022 04:25:52 +0000 (13:25 +0900)]
Fix fd check condition

Some conditions which are fd value checking are wrong.
This patch fixes these conditions.

Change-Id: Ib0fb7c73fe8dda95cb8a90e170c3604422e4a68c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.45.2 05/270105/1 accepted/tizen/unified/20220128.144411 submit/tizen/20220126.005803
Hwankyu Jhun [Wed, 26 Jan 2022 00:52:50 +0000 (09:52 +0900)]
Release version 0.45.2

Changes:
 - Fix parsing vconf attributes of boot-sequence

Change-Id: Ib87639dbcb262ad6b98ace1853090fb295644342
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix parsing vconf attributes of boot-sequence 97/269497/3
Hwankyu Jhun [Mon, 17 Jan 2022 06:32:32 +0000 (15:32 +0900)]
Fix parsing vconf attributes of boot-sequence

The format of vconf dependency option is changed.
'vconf-key', 'vconf-value' and 'vconf-type' are added for parsing vconf.

Change-Id: Ib927efec0bd0d58bbc48c09620ae46330c11e2d5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.45.1 12/269712/1
Changgyu Choi [Thu, 20 Jan 2022 05:24:43 +0000 (14:24 +0900)]
Release version 0.45.1

Changes:
 - Change gcov installation path

Change-Id: I7422331ac5da3276b0d2fbe674b1a805304db578
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoChange gcov installation path 74/269674/1
Changgyu Choi [Thu, 20 Jan 2022 03:48:45 +0000 (12:48 +0900)]
Change gcov installation path

Change-Id: I583ddc44595555f1ca679a9d7b7d54c92c33c0c7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.45.0 30/269330/1 accepted/tizen/unified/20220117.135002 submit/tizen/20220113.022107
Hwankyu Jhun [Thu, 13 Jan 2022 02:09:05 +0000 (11:09 +0900)]
Release version 0.45.0

Changes:
 - Revert "Replace mock API"
 - Add boot sequencer parser plugin

Change-Id: I56e3d9e2630a0ba125e6c40f39eb1feeaad2edcb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoMerge "Add boot sequencer parser plugin" into tizen
HwanKyu Jhun [Thu, 13 Jan 2022 01:25:39 +0000 (01:25 +0000)]
Merge "Add boot sequencer parser plugin" into tizen

2 years agoAdd boot sequencer parser plugin 80/268480/37
Hwankyu Jhun [Thu, 23 Dec 2021 10:30:30 +0000 (19:30 +0900)]
Add boot sequencer parser plugin

The parser plugin is added for boot sequencer. The application can
defined dependencies of boot. AMD will start on-boot applications using
dependencies.
The aulctl tool is added for boot sequencer.

Change-Id: Ib7e8874228df6bf9cf0c5eabb3777d16402755f3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoMerge "Revert "Replace mock API"" into tizen
Junghoon Park [Wed, 12 Jan 2022 05:53:48 +0000 (05:53 +0000)]
Merge "Revert "Replace mock API"" into tizen

2 years agoRevert "Replace mock API" 54/269254/1
Junghoon Park [Wed, 12 Jan 2022 05:53:11 +0000 (05:53 +0000)]
Revert "Replace mock API"

This reverts commit d3a2fe0da5ace379466c837f656c2e4357207aa9.

Change-Id: Ib823cecb94ecd44321ded6215ad9c0d7ae1f58d7

2 years agoRelease version 0.44.2 61/269161/2 submit/tizen/20220110.232431 submit/tizen/20220111.230808
Hwankyu Jhun [Mon, 10 Jan 2022 23:20:28 +0000 (08:20 +0900)]
Release version 0.44.2

Changes:
 - Fix upgrade scripts
 - Add typecast for sign extension
 - Replace mock API
 - Add a missing db version set

Change-Id: I0fd7dc5d2fac4db091ddff4536fb9e3e5c9ab525
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd a missing db version set 62/269162/1
Hwankyu Jhun [Mon, 10 Jan 2022 23:18:58 +0000 (08:18 +0900)]
Add a missing db version set

The user_version is set to appsvc db.

Change-Id: Icb649d3d521e336d99a775a83a20b65d6c946e8f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoReplace mock API 03/269103/1
jh9216.park [Mon, 10 Jan 2022 01:12:00 +0000 (20:12 -0500)]
Replace mock API

- Use MOCK_METHOD instead of deprecated MOCK_METHODx

Change-Id: I15bd82fd4a59394ca669310155ec1e16f42274fc
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoAdd typecast for sign extension 32/268932/2
Changgyu Choi [Wed, 5 Jan 2022 03:24:53 +0000 (12:24 +0900)]
Add typecast for sign extension

Change-Id: I8aab5bb2492074ee0dfe4652720da788d2c9f4a7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix upgrade scripts 11/268911/3
Hwankyu Jhun [Wed, 5 Jan 2022 00:15:22 +0000 (09:15 +0900)]
Fix upgrade scripts

The 1_component_db_upgrade.sh script is added for upgrading the component db.
The 1_appsvc_db_upgrade.sh script is fixed to set the permissions to the appsvc db.

Change-Id: I7a66b0e5b3b660ddb12bfe84ecb5f289a2a7022c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.44.1 13/268913/1 accepted/tizen/unified/20220106.124839 submit/tizen/20220105.003349
Changgyu Choi [Wed, 5 Jan 2022 00:30:08 +0000 (09:30 +0900)]
Release version 0.44.1

Changes:
 - Fix static issues

Change-Id: I22fcc9072f306cfb5cb11735afa4e9baa8bd06e2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>