update-manager: Add upgrade state transition to "completed" 76/312676/1 accepted/tizen/unified/20240614.085117 accepted/tizen/unified/dev/20240620.005823 accepted/tizen/unified/x/20240614.160543
authorSangYoun Kwak <sy.kwak@samsung.com>
Wed, 12 Jun 2024 08:55:11 +0000 (17:55 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Thu, 13 Jun 2024 02:28:16 +0000 (11:28 +0900)
commit5fd5cbd2d45721fa5565992cde1c1813bb3db823
treee6f21f8e6a1abb3bb403976c694de9134d714ace
parentfa1d3d13f3c33bbce0133e23ffcbc567bd59417e
update-manager: Add upgrade state transition to "completed"

It should be checked if the upgrade is completed or not when the device
is booted.

To accomplish this, upgrade-complete checking code is added to the
initial function of update-manager daemon.

Upgrade is considered as complete when the conditions below are all met:
 * bootmode is normal
 * upgrade progress state is 100

Change-Id: I4cf09b6328202497025b61119f46353459e001f8
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
update-manager/fota/fota-installer.c
update-manager/fota/fota-manager.h
update-manager/main.c