Merge "Get max-download-size from device during fastbootd for flashall/update"

This commit is contained in:
Treehugger Robot 2019-05-20 22:50:10 +00:00 committed by Gerrit Code Review
commit b545055f6d

View file

@ -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 {