FORUMS
Remove All Ads from XDA

[TOOL][WIN/LINUX/MAC] Xiaomi Flashable Firmware Creator (GUI/CLI)

2,853 posts
Thanks Meter: 6,482
 
Post Reply Email Thread
Announcement from yshalsager: GUI version is now available, check it!
11th June 2019, 09:55 PM |#31  
yshalsager's Avatar
OP Recognized Developer
Flag Cairo
Thanks Meter: 6,482
 
Donate to Me
More
I've updated the script to ignore vbmeta while creating firmware zip, this should enable devices that have avb enabled like violet to use XiaomiFirmwareUpdater releases normally.
The Following User Says Thank You to yshalsager For This Useful Post: [ View ]
3rd July 2019, 06:30 PM |#32  
yshalsager's Avatar
OP Recognized Developer
Flag Cairo
Thanks Meter: 6,482
 
Donate to Me
More
V1.4 is out
Changes:
- Add MTK devices support
- Exclude dtbo from firmware zip files
- Use regex for getting device codename form updater-script
- Update check_firmware logic
- updater-script clean-ups
- Other improvements and fixes.

Full changes are here.
Download: Here
22nd August 2019, 02:26 PM |#33  
yshalsager's Avatar
OP Recognized Developer
Flag Cairo
Thanks Meter: 6,482
 
Donate to Me
More
GUI version is now available
screenshot
Features:
  • CLI and GUI version
  • Easy-to-use interface
  • Multilanguage support (more than 25 languages!). Thanks to our community members!
Screenshots:
Here, or Here.

GUI Usage:
  • Clone or download this repo.
  • Make sure that you have Python3 installed on your device.
  • Install the required packages.
    Code:
    pip3 install -r requirements.txt
  • Run the tool.
    Code:
    python3 main.py
  • Select MIUI zip, or drop it to the box.
  • Choose the output type you would like to create.
  • Click on create button.
The Following 6 Users Say Thank You to yshalsager For This Useful Post: [ View ]
31st August 2019, 10:08 AM |#34  
Senior Member
Flag Kolkata
Thanks Meter: 16
 
Donate to Me
More
Stuck at 75%

python3 main.py
Traceback (most recent call last):
File "main.py", line 579, in create_zip
cf.make_zip(self.filepath, process)
File "/home/tamojit/Desktop/xiaomi-flashable-firmware-creator.py-py/xiaomi_flashable_firmware_creator/create_flashable_firmware.py", line 281, in make_zip
codename = re.findall(r'/.*:[0-9]', i.read())[0].split('/')[-1].split(':')[0]
IndexError: list index out of range
31st August 2019, 10:37 AM |#35  
yshalsager's Avatar
OP Recognized Developer
Flag Cairo
Thanks Meter: 6,482
 
Donate to Me
More
Quote:
Originally Posted by tamojit_ray

Stuck at 75%

python3 main.py
Traceback (most recent call last):
File "main.py", line 579, in create_zip
cf.make_zip(self.filepath, process)
File "/home/tamojit/Desktop/xiaomi-flashable-firmware-creator.py-py/xiaomi_flashable_firmware_creator/create_flashable_firmware.py", line 281, in make_zip
codename = re.findall(r'/.*:[0-9]', i.read())[0].split('/')[-1].split(':')[0]
IndexError: list index out of range

Can you re-produce this and attach the "last_run.log" in data folder?
31st August 2019, 10:46 AM |#36  
Senior Member
Flag Kolkata
Thanks Meter: 16
 
Donate to Me
More
Quote:
Originally Posted by yshalsager

Can you re-produce this and attach the "last_run.log" in data folder?

Here it is
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2019-08-31 14-13-48.jpg
Views:	102
Size:	82.2 KB
ID:	4813574  
Attached Files
File Type: log last_run.log - [Click for QR Code] (429 Bytes, 4 views)
1st September 2019, 04:57 PM |#37  
yshalsager's Avatar
OP Recognized Developer
Flag Cairo
Thanks Meter: 6,482
 
Donate to Me
More
Quote:
Originally Posted by tamojit_ray

Here it is

You have renamed the official miui zip file, this can make problems.
This error is because of updater-script doesn't contain codename at default place.
If this zip is official, can you attach updater-script here as well?
2nd September 2019, 07:07 AM |#38  
Senior Member
Flag Kolkata
Thanks Meter: 16
 
Donate to Me
More
Quote:
Originally Posted by yshalsager

You have renamed the official miui zip file, this can make problems.
This error is because of updater-script doesn't contain codename at default place.
If this zip is official, can you attach updater-script here as well?

I have used the without renamed the original name still same error.
here is the updater-script of my rom https://drive.google.com/open?id=1RD...uymxSjRAoY3cZV
30th September 2019, 04:21 PM |#39  
Senior Member
Flag Kolkata
Thanks Meter: 16
 
Donate to Me
More
I am still getting this error . I havent changed the name of the zip and its original miui zip file for Mi 4i(ferrari).

This using GUI:
python main.py
Generating updater-script..
Traceback (most recent call last):
File "main.py", line 579, in create_zip
cf.make_zip(self.filepath, process)
File "C:\xiaomi-flashable-firmware-creator.py-py\xiaomi_flashable_firmware_creator\create_flasha ble_firmware.py", line 282, in make_zip
codename = re.findall(r'/.*:[0-9]', i.read())[0].split('/')[-1].split(':')[0]
IndexError: list index out of range

This Using CLI:
python create_flashable_firmware.py -V miui_MI4iGlobal_V9.2.3.0.LXIMIEK_10478f16c8_5.0.zi p
Unzipping MIUI..
Generating updater-script..
Traceback (most recent call last):
File "create_flashable_firmware.py", line 349, in <module>
main()
File "create_flashable_firmware.py", line 344, in main
make_zip(rom, process)
File "create_flashable_firmware.py", line 282, in make_zip
codename = re.findall(r'/.*:[0-9]', i.read())[0].split('/')[-1].split(':')[0]
IndexError: list index out of range
30th September 2019, 05:15 PM |#40  
yshalsager's Avatar
OP Recognized Developer
Flag Cairo
Thanks Meter: 6,482
 
Donate to Me
More
Quote:
Originally Posted by tamojit_ray

I am still getting this error . I havent changed the name of the zip and its original miui zip file for Mi 4i(ferrari).

Fixed the issue, please pull the latest changes https://github.com/XiaomiFirmwareUpd...are-creator.py
The Following User Says Thank You to yshalsager For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes