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

am: 2a19765eb5

Change-Id: I70b4b5f80f13ffe541b752655a2508a66541ad19
This commit is contained in:
Hridya Valsaraju 2019-05-20 22:41:01 -07:00 committed by android-build-merger
commit 65c0209a70

View file

@ -1177,6 +1177,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 {