Skip to content

modules: oemunlock: fix read_buffer response parsing#800

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

modules: oemunlock: fix read_buffer response parsing#800
parkuoa wants to merge 1 commit into
bkerler:masterfrom
parkuoa:mod-unlock-fix-response

Conversation

@parkuoa

@parkuoa parkuoa 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