Skip to content

Fixing incorrect max-download-size parsing - #54

Open
gwangyi wants to merge 2 commits into
kdrag0n:masterfrom
gwangyi:master
Open

Fixing incorrect max-download-size parsing#54
gwangyi wants to merge 2 commits into
kdrag0n:masterfrom
gwangyi:master

Conversation

@gwangyi

@gwangyi gwangyi commented May 22, 2026

Copy link
Copy Markdown

Fixing #53

gwangyi added 2 commits May 23, 2026 00:01
AOSP fastboot uses ParseUint to parse the response of getvar
max-download-size.
(https://android.googlesource.com/platform/system/core/+/refs/heads/main/fastboot/fastboot.cpp#1023)

It parses the number in the follow rule:

1. Starts with 0x/0X: considered as hexadecimal
2. Starts with 0: considered as octal
3. Otherwise: considered as decimal
@niclimcy

niclimcy commented Jul 9, 2026

Copy link
Copy Markdown

We pulled in your fix into our fork BTW. Thank you~

lineageos-infra/fastboot.js#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants