Merge "app: aboot: Use the updated function to switch slot"
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index efdc3cc..3d82528 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -5007,8 +5007,14 @@
publish_getvar_multislot_vars();
/* Max download size supported */
+#if !VERIFIED_BOOT_2
snprintf(max_download_size, MAX_RSP_SIZE, "\t0x%x",
target_get_max_flash_size());
+#else
+ snprintf(max_download_size, MAX_RSP_SIZE, "\t0x%x",
+ SUB_SALT_BUFF_OFFSET(target_get_max_flash_size()));
+#endif
+
fastboot_publish("max-download-size", (const char *) max_download_size);
/* Is the charger screen check enabled */
snprintf(charger_screen_enabled, MAX_RSP_SIZE, "%d",