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

This commit is contained in:
TreeHugger Robot 2019-05-21 04:54:08 +00:00 committed by Android (Google) Code Review
commit 2a19765eb5
1 changed files with 4 additions and 0 deletions

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 {