Skip to content

Commit

Permalink
Fixed android super.img loop download 52byte after some block
Browse files Browse the repository at this point in the history
request_data change return value, which only contain requested
data region. sparse image to sparse image convert code has problem
at while(off < pos). off just request data offset. pos is whole
file's offset. off should add start point.

Signed-off-by: Frank Li <frank.li@nxp.com>
  • Loading branch information
nxpfrankli committed Feb 1, 2023
1 parent 6ac0274 commit 1f42172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libuuu/fastboot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ int FBFlashCmd::run(CmdCtx *ctx)
nt.total = startblock;
call_notify(nt);

} while (off < pos);
} while (off + oldpos < pos);
}
}

Expand Down

0 comments on commit 1f42172

Please sign in to comment.