platform/core/system/plugin/update-control-generic.git
15 months agoAdd `system-plugin-backend-` prefix to package name 86/307486/1 accepted/tizen/8.0/unified/20240312.060826
Antoni [Thu, 7 Mar 2024 09:53:36 +0000 (10:53 +0100)]
Add `system-plugin-backend-` prefix to package name

Now package name will follow the naming convention of other plugins
used by libsyscommon

Change-Id: I9d93cbbddecb1193bf83fcbf1f8f0f780d7ab8c1

15 months agoModify plugin to use update-control-server.conf 85/307485/1
SangYoun Kwak [Thu, 7 Mar 2024 02:11:38 +0000 (11:11 +0900)]
Modify plugin to use update-control-server.conf

Previously, informations like download url and file name to download are
defined by this plugin.

Since update-control-server.conf(created by the script
make-update-control-config.sh) provides download url(with file name) and
account(user id, api key), there is no need to make url and file name in
the plugin.

Below is an example of update-control-server.conf:
> [BART]
> delta_url=<url for delta download>
> user_id=<user id to authenticate delta url>
> api_key=<api key corresponds to the user id above>

Change-Id: Ib02467370776c8ef095ed755b4e38f09c3535ba2
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
15 months agoAdd new tool to make update-control-server.conf 28/307228/6
SangYoun Kwak [Wed, 6 Mar 2024 07:27:25 +0000 (16:27 +0900)]
Add new tool to make update-control-server.conf

make-update-control-config.sh creates config file
(/opt/usr/update-control-server.conf) for downloading delta file.

update-control-server.conf contains:
 * URL for delta download
 * user id for authentication
 * api key for authentication
Informations above are provided in section.

Below is an example of update-control-server.conf:
> [BART]
> delta_url=<url for delta download>
> user_id=<user id to authenticate delta url>
> api_key=<api key corresponds to the user id above>

Change-Id: I99af101a3ca7a91c83d5d2cc8916f11871e6f814
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
15 months agoRemove if statement which has no effect 09/307309/3
SangYoun Kwak [Thu, 7 Mar 2024 04:51:08 +0000 (13:51 +0900)]
Remove if statement which has no effect

Since update_info->package_uri is a char array with size URL_SIZE,
checking if it is NULL or not is pointless. (Always true)
Thus, if statement is removed.

Change-Id: I96b666ab8aae5574ac4eac6f0eb9ca1ceaf96cb1
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
15 months agoModify to check the result of strdup 49/307249/4
SangYoun Kwak [Tue, 5 Mar 2024 10:34:08 +0000 (19:34 +0900)]
Modify to check the result of strdup

The strdup function call can be failed if memory allocation is failed
just like malloc.
Thus, codes for checking if strdup is failed or not are added.

If strdup fails, they print error log message and return error code.

Change-Id: I28a9fcd77388a4864db20e38086e6b79d8ef977c
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
15 months agoSeparate plugin form update-control and integrate with libsyscommon 32/306632/6
Antoni [Fri, 23 Feb 2024 12:09:40 +0000 (13:09 +0100)]
Separate plugin form update-control and integrate with libsyscommon

This also modifies plugin behavior to fetch deltas from a BART server.
Not yet fully tested.

Change-Id: I19cd844a6b5a26c2dc6f53b27f65b9a5c50d1eb8

15 months agoInitial empty repository master
Jinkun Jang [Thu, 22 Feb 2024 02:59:01 +0000 (02:59 +0000)]
Initial empty repository