8000 modules: oemunlock: fix read_buffer response parsing by illufied · Pull Request #800 · bkerler/edl · GitHub
[go: up one dir, main page]

Skip to content
8000

modules: oemunlock: fix read_buffer response parsing - #800

Open
illufied wants to merge 1 commit into
bkerler:masterfrom
illufied:mod-unlock-fix-response
Open

illufied wants to merge 1 commit into
bkerler:masterfrom
illufied:mod-unlock-fix-response

Conversation

@illufied
@illufied illufied commented Jul 4, 2026
Copy link
Copy Markdown

When the cmd_read_buffer response returns a raw response object rather than a byte array, it causes a TypeError. This implements a check for the .data attribute if present, so buffer payloads can be parsed successfully across all devices.

Of course, this doesn't fix that on modern Qualcomm/Xiaomi platforms just patching devinfo isn't enough and won't bypass the bootloader lock caused by hardware write protection and stricter checks. This fix addresses the Python TypeError!!

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.

TypeError: object of type 'response' has no len() on Xiaomi oemunlock excalibur

1 participant

0