Mix Fold 2 "list index out of range"
ItsLogic opened this issue · 1 comments
ItsLogic commented
Trying to create a zip for the mix fold 2 using this rom
Getting this error when the script reaches the creating zip step
❯ xiaomi_flashable_firmware_creator -F 13.1.16.0-ROM.zip
Unzipping MIUI ROM...
Generating flashing script...
Creating new zip file..
Traceback (most recent call last):
File "/home/draff/.local/bin//xiaomi_flashable_firmware_creator", line 8, in <module>
sys.exit(main())
File "/home/draff/.local/lib/python3.10/site-packages/xiaomi_flashable_firmware_creator/xiaomi_flashable_firmware_creator.py", line 43, in main
new_zip = firmware_creator.auto()
File "/home/draff/.local/lib/python3.10/site-packages/xiaomi_flashable_firmware_creator/firmware_creator.py", line 494, in auto
new_zip = self.make_zip()
File "/home/draff/.local/lib/python3.10/site-packages/xiaomi_flashable_firmware_creator/firmware_creator.py", line 424, in make_zip
self.extractor.get_file_name().split("_")[1]
IndexError: list index out of range
Python 3.10.6
arch linux
yshalsager commented
You have modified file name which is different from expected official miui zip name.
Rename the file to miui_ZIZHAN_V13.1.16.0.SLRCNXM_17d95e0b04_12.0.zip
it will work