android-boot: set default version format

In case no version is found, android-boot plugin uses a fall back
version (0.0.0) but no version format is set. Therefore, fwupd uses
format 'plain' as default which is not correct as 0.0.0 is a triplet.
This commit is contained in:
Dylan Van Assche 2022-09-24 14:26:38 +02:00 committed by Richard Hughes
parent 0415db6f67
commit 4c7906c8fd

View File

@ -358,6 +358,7 @@ fu_android_boot_device_init(FuAndroidBootDevice *self)
* will disappear. If version reporting is available, the reported version is set.
*/
fu_device_set_version(FU_DEVICE(self), ANDROID_BOOT_UNKNOWN_VERSION);
fu_device_set_version_format(FU_DEVICE(self), FWUPD_VERSION_FORMAT_TRIPLET);
}
static void