The full upgrade can be applied to any version of the system.
Therefore the file build_string.txt contained in the delta.tar has "0.0"
as its source version.
Change-Id: I181a0978782467670241fcfbe99dcbdc0add9a73
goto execute_destroy;
}
- if (g_str_has_prefix(buf, old_build_string) != TRUE) {
+ if (!g_str_has_prefix(buf, FOTA_DELTA_BUILD_STRING_FULL_DELTA_PREFIX) &&
+ !g_str_has_prefix(buf, old_build_string)) {
_FLOGI("The caller doesn't have appropriate delta(%s), delta build string(%s)",
old_build_string, buf);
status = -3;
#define FOTA_DELTA_BUILD_STRING_DIR "/tmp"
#define FOTA_DELTA_BUILD_STRING_FILENAME "build_string.txt"
#define FOTA_DELTA_BUILD_STRING_PATH FOTA_DELTA_BUILD_STRING_DIR "/" FOTA_DELTA_BUILD_STRING_FILENAME
+#define FOTA_DELTA_BUILD_STRING_FULL_DELTA_PREFIX "0.0@"
#define FOTA_STATUS_DIR "/opt/data/update"
#define FOTA_STATUS_FLAG_PATH FOTA_STATUS_DIR "/is-first-boot-after-fota"