platform/core/system/update-control.git
4 years agoRollback plugin to API 05/238005/1 accepted/tizen/unified/20200713.094510 submit/tizen/20200710.163409
Jeon Sang-Heon [Tue, 7 Jul 2020 17:56:49 +0000 (17:56 +0000)]
Rollback plugin to API

- We need to use plugin except do_update and get_property(result)
- So, rollback plugin to initialize and get_property
- Add deinitialize logic for dbus

Change-Id: I250a308284b5b84edebd424f73f94ee1e497705f
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoChange build id to build string 58/237958/1
Jeon Sang-Heon [Tue, 7 Jul 2020 12:42:05 +0000 (12:42 +0000)]
Change build id to build string

- build id : tizen-unified
- build string : tizen-unified_2020XXXX.X

Change-Id: I151d4260c65e416264f44feb2b15ad70716cc06d
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoFix segmentation fault 56/237956/2
Jeon Sang-Heon [Tue, 7 Jul 2020 11:45:31 +0000 (11:45 +0000)]
Fix segmentation fault

- Fix wrong pointer casting
- From API reference, get property value must be release using free

Change-Id: Ibf8643e497a2a89bc47bd81b598e879f99169bc9
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoFix 64bit build error 48/237848/2 submit/tizen/20200706.154131
Jeon Sang-Heon [Mon, 6 Jul 2020 14:35:05 +0000 (14:35 +0000)]
Fix 64bit build error

- Change value casting to fix 64bit.

Change-Id: I086c0019f8ab23efabe17f390b5ce39b234ed962
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoChange release version to build id 34/237834/2 submit/tizen/20200706.142233
Jeon Sang-Heon [Mon, 6 Jul 2020 13:54:25 +0000 (13:54 +0000)]
Change release version to build id

- Change release version to build id
- Minor fix with variable name and log

Change-Id: I634a5a6f42547fe7c32f081ca1a6e94cfabef720
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoSupport update_control_get_property with result 58/237758/6
Jeon Sang-Heon [Fri, 3 Jul 2020 17:17:42 +0000 (17:17 +0000)]
Support update_control_get_property with result

- Change update_control_initialize to initialize dbus proxy
- Support get_property with result

Change-Id: I54832e11d6f25aa5f898d9d1427ff3ef46ba2364
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoSupport result dbus method 57/237757/6
Jeon Sang-Heon [Fri, 3 Jul 2020 17:10:40 +0000 (17:10 +0000)]
Support result dbus method

- To better manager, divide dbus manager from fota controller
- Support result dbus method
- Minor log message and convention fix

Change-Id: Ia5eee14f9e314113eed0e098382a75a48cb92947
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoSave fota result to fota status checker 56/237756/2
Jeon Sang-Heon [Fri, 3 Jul 2020 17:02:30 +0000 (17:02 +0000)]
Save fota result to fota status checker

- To reuse fota upgrade result, save result to fota status checker

Change-Id: I54b856159d52e5b770973ec10ed146012617bd26
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoAdd client status cleanup method 55/237755/2
Jeon Sang-Heon [Fri, 3 Jul 2020 16:54:40 +0000 (16:54 +0000)]
Add client status cleanup method

- For unexpected finish, add cleanup for vconf status callback at client status checker

Change-Id: I63cc64819ec32ee0c1315b8bfa417fe6f1d86a0f
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoSupport local storage delta directory 54/237754/1
Jeon Sang-Heon [Fri, 3 Jul 2020 16:49:19 +0000 (16:49 +0000)]
Support local storage delta directory

- Support local storage delta directory : (old_version)-(new_version)/delta.tar

Change-Id: I864578a228665eb285f9f6d6971f739b0f93d37c
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoAdd fota info controller 53/237753/1
Jeon Sang-Heon [Fri, 3 Jul 2020 16:44:34 +0000 (16:44 +0000)]
Add fota info controller

- To reduce system info API call, add fota info controller
- replace system info API call to fota info controller method call

Change-Id: I1b9ae904498c89f45582b7f87cdbabafb72bc219
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoUpdate dbus interface 52/237752/1
Jeon Sang-Heon [Fri, 3 Jul 2020 16:28:23 +0000 (16:28 +0000)]
Update dbus interface

- Add result method to dbus
- Check updatecontrol.admin privilige with dbus call

Change-Id: I597d1d713daac408c53411a77c0158806703b1ac
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
5 years agoFix code to follow tizen coding rule 13/235913/3
Jeon Sang-Heon [Thu, 11 Jun 2020 12:08:58 +0000 (21:08 +0900)]
Fix code to follow tizen coding rule

Change-Id: I6c95c4841f2727be5d796ce2e1f95074f1cd4350
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
5 years agoFix null file pointer close 27/235627/1 accepted/tizen/unified/20200608.144728 submit/tizen/20200608.031722 submit/tizen/20200608.083617
Jeon Sang-Heon [Mon, 8 Jun 2020 07:22:32 +0000 (16:22 +0900)]
Fix null file pointer close

- If failed to open file at util_file_write_line, it leads to fclose
with null pointer, So it can be lead to segmentation fault
- So fix it with closing null file pointer only file pointer is not null

Change-Id: Ic33b23e6c2fddfad70fd34f12e536d5a25cc69e9
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
5 years agoEnhance dbus policy 54/235554/3 accepted/tizen/unified/20200607.214822 submit/tizen/20200605.111029
Jeon Sang-Heon [Fri, 5 Jun 2020 10:23:22 +0000 (19:23 +0900)]
Enhance dbus policy

- Allow org.freedesktop.DBus.Properties
- Create proxy once
- Check not support external device

Change-Id: I5cd3ad41ef6d6cee8fee9ecf1cfcd10454938156
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
5 years agoFix dbus conf policy setting 12/235512/1 accepted/tizen/unified/20200605.171546 submit/tizen/20200605.064336 submit/tizen/20200605.074440
Jeon Sang-Heon [Fri, 5 Jun 2020 06:24:39 +0000 (15:24 +0900)]
Fix dbus conf policy setting

Change-Id: I490de2c95f6c53dafb7ed8899e443102a6c98481
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
5 years agoremove generate fota dir and version file 54/234954/3 accepted/tizen/unified/20200602.133124 submit/tizen/20200602.081629
Jeon Sang-Heon [Mon, 1 Jun 2020 05:29:10 +0000 (14:29 +0900)]
remove generate fota dir and version file

Change-Id: I6b04fefdb297f84080b5dc64f81abc345f988b38
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
5 years agoAdd update-manager daemon 97/234497/3 accepted/tizen/unified/20200601.140112 submit/tizen/20200601.011318
Jeon Sang-Heon [Wed, 27 May 2020 01:43:43 +0000 (10:43 +0900)]
Add update-manager daemon

- Change update_control_do_update from plugin to dbus
- Add org.tizen.update.manager dbus to system
- Add update-manager daemon source
- Version up to 1.0.3

Change-Id: I0e410a75471546fb039a7c40c35b21113c466d3f
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
5 years agoFix coverity issue 38/225238/2 accepted/tizen/unified/20200218.145813 submit/tizen/20200218.095658
Jeon Sang-Heon [Tue, 18 Feb 2020 09:07:51 +0000 (18:07 +0900)]
Fix coverity issue

- remove resource leak in fp

Change-Id: I1ad0129626d5438195b26448acb9c91c03b3c864
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
5 years agoVersion up 40/224640/1 accepted/tizen/unified/20200214.050247 submit/tizen/20200212.071033
Jeon Sang-Heon [Wed, 12 Feb 2020 05:25:00 +0000 (14:25 +0900)]
Version up

Change-Id: I87c404c13a3e93a34a42daa7130e83ac736fc0ad
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
5 years agoFix svace issue 01/224501/1
Jeon Sang-Heon [Tue, 11 Feb 2020 05:52:04 +0000 (14:52 +0900)]
Fix svace issue

- Check if return value of strtok_r is null

Change-Id: I0eae2665d227ac730fed7de3f7b49c0255224c19

5 years agoFix: fix coverity issue 77/223577/1
Jeon Sang-Heon [Fri, 31 Jan 2020 02:30:46 +0000 (11:30 +0900)]
Fix: fix coverity issue

- modify uncatched return code from curl_easy_setopt
- modify misused G_FREE to G_FREE

Change-Id: Ia4bfd345a545d9c2043d60e6ca50f3dcf1e88a1c

6 years agoPlugin: checking version comparison result for download 14/191914/1 accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.0/unified/20190226.075151 accepted/tizen/5.5/unified/20191031.015334 accepted/tizen/5.5/unified/mobile/hotfix/20201027.075431 accepted/tizen/5.5/unified/wearable/hotfix/20201027.110511 accepted/tizen/unified/20190221.084223 submit/tizen/20190221.045132 submit/tizen_5.0/20190219.014427 submit/tizen_5.5/20191031.000005 submit/tizen_5.5_mobile_hotfix/20201026.185105 submit/tizen_5.5_wearable_hotfix/20201026.184305 tizen_5.5.m2_release
Sunmin Lee [Mon, 8 Oct 2018 01:21:41 +0000 (10:21 +0900)]
Plugin: checking version comparison result for download

To prevent downgrade, checking the updatable flag which
is the result of version comparison.

In addition to this, add a log for cancel_reservation

Change-Id: I6df0d7f5706438547dd4d9e5eefe8cd694d3efc5
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoPlugin: monitor download speed 13/191913/1
Sunmin Lee [Mon, 8 Oct 2018 00:57:07 +0000 (09:57 +0900)]
Plugin: monitor download speed

Change-Id: I4091b0f0772d501cac948d5bb353a612ec174c5f
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoplugin: Get the cloud account through the key-manager 70/190070/5
Sunmin Lee [Fri, 21 Sep 2018 10:00:27 +0000 (19:00 +0900)]
plugin: Get the cloud account through the key-manager

Now the Smartthings-thing agent offers the account information
through the key-manager.

Change-Id: I4f4e452435f05f41c857c0d3ec1d1f563edb9b0f
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoplugin: Enable CURL verification 69/190069/3
Sunmin Lee [Fri, 21 Sep 2018 05:29:15 +0000 (14:29 +0900)]
plugin: Enable CURL verification

Enable CURL verification options.

Change-Id: I5c6c5392267f71c5572ac072886f9fa88553659d
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoFix handle leak issue 71/190071/2 accepted/tizen/5.0/unified/20181102.021039 accepted/tizen/unified/20180927.073815 submit/tizen/20180927.051357 submit/tizen_5.0/20181101.000004
Sunmin Lee [Thu, 27 Sep 2018 04:45:42 +0000 (13:45 +0900)]
Fix handle leak issue

Change-Id: If34cfdb7aff571059e692981208c2bdbfae9bcb8
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoupdate-control-plugin: Release 1.0.0 28/189628/3
Sunmin Lee [Wed, 19 Sep 2018 09:10:29 +0000 (18:10 +0900)]
update-control-plugin: Release 1.0.0

Change-Id: Ic5c65577b06dedf239a0a0c4aa298a5043097e8f
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoFix vulnerabilities 31/189531/2 accepted/tizen/unified/20180919.142013 submit/tizen/20180919.023134 submit/tizen/20180919.074116
Sunmin Lee [Tue, 18 Sep 2018 09:53:42 +0000 (18:53 +0900)]
Fix vulnerabilities

Change-Id: Ie00209cf38eaf20507e981812101a6206c29de6c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoPlugin: Implementation for PROPERTY_RESULT 30/189530/1
Sunmin Lee [Fri, 14 Sep 2018 01:21:26 +0000 (10:21 +0900)]
Plugin: Implementation for PROPERTY_RESULT

Get update result through the dbus method.

Change-Id: I017095cb78b01b8066ef20a7dc5d13971b08169a
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoLinking libcurl for plugin 76/189076/1 accepted/tizen/unified/20180914.073311 submit/tizen/20180914.005919
Sunmin Lee [Thu, 13 Sep 2018 07:53:08 +0000 (16:53 +0900)]
Linking libcurl for plugin

The plugin library needs to be linked with libcurl.

Change-Id: I49b933457dcb45abb280909f4e832801cd419ca3
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoPatch for debug mode 80/188880/2 accepted/tizen/unified/20180912.061646 accepted/tizen/unified/20180912.061738 accepted/tizen/unified/20180913.145221 submit/tizen/20180911.115509 submit/tizen/20180911.235256 submit/tizen/20180913.051211
Sunmin Lee [Tue, 11 Sep 2018 09:06:59 +0000 (18:06 +0900)]
Patch for debug mode

Debug mode is for test without actual actions which is not
proper during automated test: such as downloading, rebooting.

Change-Id: I480878b4ba37ca14f279c82ef67bdd0f9c81649c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoMake update-control have plugin structure 59/188859/5
Sunmin Lee [Tue, 11 Sep 2018 06:16:13 +0000 (15:16 +0900)]
Make update-control have plugin structure

To support various update server, the implementation of
update-control API has plugin structure.
The default plugin for STDM server is included.

Change-Id: I812f191afa56940fc6b103446ce1480222fd60bb
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoUpload initial code of update-control 82/188682/7
Sunmin Lee [Fri, 7 Sep 2018 07:46:06 +0000 (16:46 +0900)]
Upload initial code of update-control

Change-Id: I1dcbe045faaff449b46e3f09ce79a1cf2ce0d007
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoUpload update-control header for API 99/186399/19
Sunmin Lee [Thu, 9 Aug 2018 08:54:36 +0000 (17:54 +0900)]
Upload update-control header for API

Change-Id: Ib9b76f1df2bbd4b5c3e10e4a373c0fc4e81390fe
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoInitial empty repository master
Tizen Infrastructure [Wed, 8 Aug 2018 00:52:42 +0000 (00:52 +0000)]
Initial empty repository