Changgyu Choi [Fri, 11 Nov 2022 07:10:27 +0000 (16:10 +0900)]
Release version 0.50.6
Changes:
- Add AUL_SVC_RET_ETIMEOUT error
Change-Id: I2e1222ed14ead6e333666103cd9287aea6112077
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 9 Nov 2022 08:46:59 +0000 (17:46 +0900)]
Add AUL_SVC_RET_ETIMEOUT error
Currently, app_control_send_launch_request() has returned REJECTED error
even though timeout.
After applying this patch, app receive APP_CONTROL_ERROR_TIMED_OUT when
app_control_send_launch_request() occurs time out.
Change-Id: I2b32627cd1c6189d97834d926009720b55e49a6c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Tue, 8 Nov 2022 08:21:30 +0000 (08:21 +0000)]
Release version 0.50.5
Changes:
- Modify sequence number generation
Change-Id: I0c506b25a2b2ffbcfd2295a4ff96507149e8b113
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 8 Nov 2022 08:02:08 +0000 (08:02 +0000)]
Modify sequence number generation
To avoid duplication of sequence number, AUL uses uuid to generate.
Change-Id: Ic6072e3aa1efeadc0adfdc948b75f1f236e0c2a0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 2 Nov 2022 01:54:10 +0000 (01:54 +0000)]
Release version 0.50.4
Changes:
- Refactor status API
- Add unit tests for watch control API
- Add unit tests for launcher service API
- Refactor watch control API
- Refactor launcher service API
Change-Id: Ib19ab89b17bed6cc03f6ea4139ef9223d243ad9a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 1 Nov 2022 05:43:42 +0000 (05:43 +0000)]
Refactor launcher service API
The launcher service API is implemented using C++ language.
Change-Id: I153e79142f1cda1f6a4eb145ab2f1b47f4df9e74
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 1 Nov 2022 02:46:43 +0000 (02:46 +0000)]
Refactor watch control API
The watch control API is refactored using C++ language.
Change-Id: I474c034f4998bfdf8483406ba157d3b97dbb4ade
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 1 Nov 2022 00:40:11 +0000 (00:40 +0000)]
Add unit tests for launcher service API
To refactor launcher service API, unit tests are added.
Change-Id: I2c1604a60e6bfcb380f6d58b52032d756570f7d1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 31 Oct 2022 10:32:41 +0000 (10:32 +0000)]
Add unit tests for watch control API
To refactor watch control API, unit tests are added
Change-Id: If1517e2d70e90f65897165430acbcde010e82a08
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 18 Oct 2022 10:34:23 +0000 (10:34 +0000)]
Refactor status API
The status API is implmented using C++ language.
Change-Id: Ia1930ea1565b7710e266a224f02826486df54bb6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Tue, 18 Oct 2022 02:26:07 +0000 (11:26 +0900)]
Release version 0.50.3
Changes:
- Fix static analysis issues
Change-Id: I50e945c8afd52b439bced253a2627c3267d25d49
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 17 Oct 2022 03:10:10 +0000 (12:10 +0900)]
Fix static analysis issues
Change-Id: Ib109973cdd9d97062c9dd3dce7703a513f78fe87
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Wed, 5 Oct 2022 08:31:43 +0000 (08:31 +0000)]
Release version 0.50.2
Changes:
- Consider 64-bit environment
Change-Id: I379d706592f25a80acf00ec33beeab1bb01b1322
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 5 Oct 2022 06:44:18 +0000 (06:44 +0000)]
Consider 64-bit environment
The kPathLibAulServer should be changed to /usr/lib64/ if the package is
building for aarch64 or x86_64 architecture.
Change-Id: I997fc4bf9b3d3a16cab53eaba302dd85685ad012
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 27 Sep 2022 06:55:05 +0000 (06:55 +0000)]
Release version 0.50.1
Changes:
- Fix static analysis issue
- Use modified tizen_base::Parcel
- Fix static analysis issues
Change-Id: I09d83e4cac3eba3b146a9c73e2b8d2e9e49495b1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 27 Sep 2022 06:13:25 +0000 (06:13 +0000)]
Fix static analysis issues
The following issues are fixed:
- ODR_VIOLATION
Change-Id: I21535974477d97dd9c93eb570870557202d8f897
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 23 Sep 2022 10:41:39 +0000 (10:41 +0000)]
Use modified tizen_base::Parcel
To improve the performance of the parcel creation, the implementation of
the Parcel is changed. It uses malloc() instead of std::vector.
Requires:
- https://review.tizen.org/gerrit/#/c/platform/core/base/bundle/+/281779/
Change-Id: I19b804a5be94dd814a83a1067f3924e1085ccece
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 27 Sep 2022 02:08:15 +0000 (02:08 +0000)]
Fix static analysis issue
This patch fixes 'use after free' case. The bundle instance is moved
using std::move().
Change-Id: I3e00efdb42038c1a324e3a687678829e6a5b3eaa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Wed, 7 Sep 2022 00:27:20 +0000 (09:27 +0900)]
Release version 0.50.0
Changes:
- Add aul_package_pre_event_send()
Change-Id: I0cb9a95fbd6bc446fc693b670ff4efca3d52fc92
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 26 Aug 2022 08:18:39 +0000 (17:18 +0900)]
Add aul_package_pre_event_send()
This api send signal to amd before sending pkg event to listeners.
amd should reload appinfo before some apps that is listening pkg event.
Change-Id: I82b4d8f8a8e5d1a93ee8d1e7aa13f81df34a077d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 1 Sep 2022 01:57:55 +0000 (01:57 +0000)]
Release version 0.49.8
Changes:
- Check packet header length
Change-Id: Ia193665c94ed60fdc5f041c1277daaeb7280adcc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 1 Sep 2022 01:28:50 +0000 (01:28 +0000)]
Check packet header length
To check whether the packet is valid or not, the packet length should be checked.
Change-Id: I64063aa17c61e6fb43f2ad3f544ca79e44dce665
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 26 Aug 2022 05:28:25 +0000 (05:28 +0000)]
Release version 0.49.7
Changes:
- Remove unused API
- Fix unit tests
- Add unit tests for status API
- Refactor app com API
- Fix metadata-profile.xml
Change-Id: I22484a502f57b4a50ed45fd3a244813759ae2cd7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 26 Aug 2022 01:32:03 +0000 (01:32 +0000)]
Fix metadata-profile.xml
If the published value is 'Y', it means the metadata is opened in officially.
Change-Id: Iaa9e65081fbd5d958cc4d615d01c43ee85134056
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 25 Aug 2022 04:01:49 +0000 (04:01 +0000)]
Refactor app com API
To refactor app com API, unit tests are added.
The app com API is refactored using the AppRequest class.
Change-Id: Ieeafb5f9aeb461dfc38ca06decc943a2c01ce9dc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 24 Aug 2022 07:13:11 +0000 (07:13 +0000)]
Add unit tests for status API
To refactor status API, unit tests are added.
Change-Id: I874f9ebc719b11feb30a679076bae59b7dec0bb7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 23 Aug 2022 05:25:00 +0000 (05:25 +0000)]
Fix unit tests
The socket option check and the bundle data check are added.
Change-Id: If8a758b4e741a65660e8b267855b4150445a4d43
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 23 Aug 2022 06:44:07 +0000 (06:44 +0000)]
Remove unused API
The aul_running_list_update() function is removed. It's not used.
Change-Id: I00c2ef15e3b9028c3bf115b416a6427001bb9557
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 23 Aug 2022 00:45:14 +0000 (00:45 +0000)]
Release version 0.49.6
Changes:
- Fix a bug of refactoring complication
- Fix wrong implementation of pkginfo API
Change-Id: I98955701fd21a02ef614eae8d022c02c1a6fc977
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 22 Aug 2022 04:07:25 +0000 (04:07 +0000)]
Fix wrong implementation of pkginfo API
The socket option of some requests have to be AUL_SOCK_NONE and AUL_SOCK_BUNDLE.
The application ID that is set to the bundle will be removed while creating
the AppRequest instance. To set the application ID to the bundle properly, we
should use the AppRequest::SetAppId() method.
Change-Id: I43cadc2aa633b8afa55375d2461e69c98467c525
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 22 Aug 2022 05:11:25 +0000 (05:11 +0000)]
Fix a bug of refactoring complication
The function returns AUL_R_OK when the function call is successful.
The daemon sends the process ID if the request is successful.
Change-Id: If3f167bb9150e03af6fe7c967988e8a6c3b6f561
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 19 Aug 2022 01:28:37 +0000 (01:28 +0000)]
Release version 0.49.5
Changes:
- Fix double close issue
Change-Id: I56a7f4a5eedc8e959085896d286c8909e888fcb4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 19 Aug 2022 00:48:12 +0000 (00:48 +0000)]
Fix double close issue
When calling g_io_channel_shutdown(), the file descriptor is closed.
Calling the close in the __destroy_client_channel() is not needed.
Change-Id: I443253f29c000adcdae87f74c415b00de75223af
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 18 Aug 2022 23:47:16 +0000 (23:47 +0000)]
Release version 0.49.4
Changes:
- Refactor App Group API
Change-Id: Id1fcdf19161efe25006c373874068d2ba9336058
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 12 Aug 2022 10:45:39 +0000 (19:45 +0900)]
Refactor App Group API
The app group API is implemented using C++ language.
Change-Id: I8047911920e0c6d3b70582621e2f85abef278c6b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 12 Aug 2022 09:10:04 +0000 (18:10 +0900)]
Release version 0.49.3
Changes:
- Fix coding style
- Add unit tests for App group API
- Fix wrong exception handling
- Fix static analysis issues
- Fix fd leak
- Restore to remove virtual keywords
Change-Id: I779d9085f5404dff682882836e8d1c82ec9dacb1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 12 Aug 2022 08:57:06 +0000 (17:57 +0900)]
Restore to remove virtual keywords
Change-Id: Iaaf70682e8f0ff0ab4659d49ecd0d9ed5494616a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Fri, 12 Aug 2022 06:57:04 +0000 (15:57 +0900)]
Fix fd leak
When IO error occurs, AUL has to close the file descriptor and release
the io job resource of aul worker.
Change-Id: Ic612531f3a2fa53efa9fe55556b770369731769c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 12 Aug 2022 06:05:38 +0000 (15:05 +0900)]
Fix static analysis issues
Changes:
- Removes unnecessary virtual keywords.
- Fix to wrong print errno.
- Fix dereference case before checking nullptr.
- Fix to use variable after using std::move().
- Removes unnecessary const keyword.
Change-Id: I72e4076f9f3ca3a5daef8afe484c021008d39d00
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 12 Aug 2022 02:26:29 +0000 (11:26 +0900)]
Fix static analysis issues
Changes:
- Adds exception handling.
Change-Id: I0e20206337040eba4430afc32bd1ec79ddde3c6a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Fri, 12 Aug 2022 01:04:35 +0000 (10:04 +0900)]
Fix wrong exception handling
If the AppRequest() is not used to send the request, the result value
has to be converted using the aul_error_convert().
While creating the LocalizedInfo instance if the locale is empty, we
throw the exception. The previous implementation, AUL only checks whether
the locale is empty or not.
Change-Id: I6c25e1e9c415d6dc3e3be18862f34c88da2df980
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 11 Aug 2022 09:44:30 +0000 (18:44 +0900)]
Add unit tests for App group API
To refactor app group API, unit tests are added.
And, the parameter checks are added.
Change-Id: Id430b4b477096a6d9b6363f5d5d59b5617b0d211
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Thu, 11 Aug 2022 06:15:41 +0000 (15:15 +0900)]
Fix coding style
Changes:
- Adds missing headers.
- Fix wrong indents.
- Adds explicit keyword.
Change-Id: I432ace3e6af683d5546fe41ce88e37e422bbc9a5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 11 Aug 2022 04:42:40 +0000 (13:42 +0900)]
Release version 0.49.2
Changes:
- Remove unused functions
- Remove build warning messages
- Fix Setup() method of unit tests
- Fix aul_app_event_destroy function
Change-Id: Id9e2203aa266ba6026c63d9db7cf92d0d21b0131
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 11 Aug 2022 03:42:32 +0000 (12:42 +0900)]
Fix aul_app_event_destroy function
If the thread releases the handle using aul_app_event_destroy(), the
main thread will have crashed while invoking the app event callback
function.
To make thread safe, the handle will be released using g_idle_add_full().
Change-Id: I69445c555610668a7adad5c25fddccf908dc7a48
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 10 Aug 2022 06:48:31 +0000 (15:48 +0900)]
Fix Setup() method of unit tests
Calling EXPECT_CALL() of the send() is not needed.
The default behavior of the send() is defined in the constructor of
the SocketMock class.
This patch removes it from the Setup() method.
Change-Id: I9064e8d59d6a73e05c9c54bdaad41ecaeb3e73f7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 10 Aug 2022 06:37:08 +0000 (15:37 +0900)]
Remove build warning messages
Narrowing conversion warning is fixed. The missed header file is cctype
is included.
Change-Id: I13a86fa5d483f81b205040ece6022675efeeb1c3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 10 Aug 2022 06:08:30 +0000 (15:08 +0900)]
Remove unused functions
Removes:
- aul_key_init()
- aul_key_reserve()
- aul_key_release()
Change-Id: I442f80e96fcaf71f9bd77010f843f70ff5a152bc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 10 Aug 2022 05:56:27 +0000 (14:56 +0900)]
Release version 0.49.1
Changes:
- Refactor component context API
- Add unit tests for component status API
- Refactor component status API
- Change a parameter type of complication API
- Add unit tests for complication API
- Refactor complication API
- Add unit tests for component info API
- Refactor component info API
- Add unit tests for Job scheduler API
- Refactor Job scheduler API
Change-Id: I33bfaba280a6df1572fd34ab377c676c95fed544
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 9 Aug 2022 03:51:52 +0000 (12:51 +0900)]
Refactor Job scheduler API
The job scheduler API is implemented using C++ language.
Change-Id: Ic5a9566e41153f6d33d0c148b54ce9a9c76ff342
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 9 Aug 2022 03:24:51 +0000 (12:24 +0900)]
Add unit tests for Job scheduler API
To refactor job scheduler API, unit tests are added.
Change-Id: I865766786bb7694eb1b3b0b70088742cc4ff6643
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 9 Aug 2022 01:36:38 +0000 (10:36 +0900)]
Refactor component info API
The comp info API is implemented using C++ language.
Change-Id: I67ee191d1b72e88415f34b272b2fd9ad6a71d288
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 8 Aug 2022 05:01:07 +0000 (14:01 +0900)]
Add unit tests for component info API
To refactor comp info API, unit tests are added.
Change-Id: Ied5bd442557d171972fd0b211f7416aa52dd144d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 8 Aug 2022 00:09:12 +0000 (09:09 +0900)]
Refactor complication API
The complication API is implemented using C++ language.
Change-Id: I33ab66b7283c6f70a75bc984348462f1b2205c96
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Sun, 7 Aug 2022 23:40:43 +0000 (08:40 +0900)]
Add unit tests for complication API
To refactor complication API, unit tests are added.
Change-Id: I87c7e1d10a731b197e9e36daaba5d9a7842f7943
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Sun, 7 Aug 2022 23:04:54 +0000 (08:04 +0900)]
Change a parameter type of complication API
The const keyword is added for value of aul_complication_launch_with_extra_data().
The parameter is used to add the key-value to the bundle object.
The type of the value is changed to 'const char*'.
Change-Id: I088707783f6c40a1c30d599604c0464651c148d5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 5 Aug 2022 07:50:14 +0000 (16:50 +0900)]
Refactor component status API
The comp status API is implemented using C++ language.
Change-Id: I9c84fa28d22815811aac4dee327d4c277a4b2a74
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 5 Aug 2022 02:46:22 +0000 (11:46 +0900)]
Add unit tests for component status API
To refactor comp status API, unit tests are added.
Change-Id: I9704a612115e512ca98d648a4502e4177a675cd6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 4 Aug 2022 08:39:26 +0000 (17:39 +0900)]
Refactor component context API
The comp context API is implemented using C++ language.
Change-Id: I79c504e50d850c9ce90596a2d6a7bde849312cec
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 5 Aug 2022 01:14:42 +0000 (10:14 +0900)]
Release version 0.49.0
Changes:
- Remove duplicated header inclusion
- Add a missing nullptr check
- Add unit tests for pkginfo APIs
- Add unit tests for Watchdog API
- Refactor pkginfo APIs
- Add unit tests for component context APIs
- Refactor watchdog API
- Add a new definition for light user feature
- Change GetRWPath()
Change-Id: I45580eea10709ffe7d7e06e1959a9fa0cd590f7d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>