Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extraction fails with lzma.LZMAError: Input format not supported by decoder #52

Open
crazystylus opened this issue Apr 8, 2023 · 4 comments

Comments

@crazystylus
Copy link

I am unable to extract the payload.bin from the firmware ColorOS 13 F.13 which is meant for instantnoodlep. There are no issues when extracting the same using other tools like https://github.com/ssut/payload-dumper-go or https://github.com/crazystylus/otadump

Processing my_stock partition...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Traceback (most recent call last):
  File "payload_dumper/payload_dumper.py", line 157, in <module>
    dump_part(part)
  File "payload_dumper/payload_dumper.py", line 109, in dump_part
    data = data_for_op(op,out_file,old_file)
  File "payload_dumper/payload_dumper.py", line 44, in data_for_op
    data = dec.decompress(data)
_lzma.LZMAError: Input format not supported by decoder
@gshmu
Copy link

gshmu commented Apr 12, 2023

ectract miui_DAUMIER_V14.0.7.0.TLGCNXM_d53e0f5903_13.0.zip payload.bin

Processing system partition......................................................................................................................................................................................................................................................................................................................................................................Traceback (most recent call last):
  File "/Users/gshmu/aoe/orz/payload_dumper/payload_dumper.py", line 157, in <module>
    dump_part(part)
  File "/Users/gshmu/aoe/orz/payload_dumper/payload_dumper.py", line 109, in dump_part
    data = data_for_op(op,out_file,old_file)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/gshmu/aoe/orz/payload_dumper/payload_dumper.py", line 44, in data_for_op
    data = dec.decompress(data)
           ^^^^^^^^^^^^^^^^^^^^
_lzma.LZMAError: Input format not supported by decoder

@crazystylus
Copy link
Author

Hi @gshmu ,
Can you try extracting the same zip using otadump?

otadump performs multiple hash validations, so if there is something wrong with the zip you will get a hash mismatch or unsupported operation.

Reference: https://github.com/crazystylus/otadump#features

@SantaSpeen
Copy link

SantaSpeen commented Apr 21, 2023

Такая же проблема, прошивка: RMX3301_ROLL_BACK_Android12_EU.zip; URL: https://download.c.realme.com/flash/DP1_Android_13/EU/RMX3301_ROLL_BACK_Android12_EU.zip

Processing my_product partition.................................................................................Traceback (most recent call last):
  File "C:\Users\Santa\Downloads\bin\payload_dumper.py", line 157, in <module>
    dump_part(part)
  File "C:\Users\Santa\Downloads\bin\payload_dumper.py", line 109, in dump_part
    data = data_for_op(op,out_file,old_file)
  File "C:\Users\Santa\Downloads\bin\payload_dumper.py", line 44, in data_for_op
    data = dec.decompress(data)
_lzma.LZMAError: Input format not supported by decoder

@Swap-File
Copy link

I fixed it here: https://github.com/Swap-File/update_payload_extractor

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

No branches or pull requests

4 participants