summaryrefslogtreecommitdiff
path: root/fastboot/fastboot.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2019-05-20 22:50:10 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-05-20 22:50:10 +0000
commitb545055f6dfdefde8fcdc59570828eb1c88d5239 (patch)
treea4edb60899c83cb8653d6ea15b3c77306d6dad68 /fastboot/fastboot.cpp
parentcd9b18f2155eb68dcc35a965b6360c73066222a9 (diff)
parent83d856e4c59b6c02eeb7d468892b157a13f7cbf5 (diff)
Merge "Get max-download-size from device during fastbootd for flashall/update"
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r--fastboot/fastboot.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index 25df4516f..39abc4a3b 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -1175,6 +1175,10 @@ static void reboot_to_userspace_fastboot() {
if (!is_userspace_fastboot()) {
die("Failed to boot into userspace fastboot; one or more components might be unbootable.");
}
+
+ // Reset target_sparse_limit after reboot to userspace fastboot. Max
+ // download sizes may differ in bootloader and fastbootd.
+ target_sparse_limit = -1;
}
class ImageSource {