Create flashable firmware zip from MIUI Recovery ROMs!
Project description
Xiaomi Flashable Firmware Creator
Create flashable firmware zip from MIUI Recovery ROMs!
Xiaomi Flashable Firmware Creator is a tool that generates flashable firmware-update packages from official MIUI ROMS.
It supports creating untouched firmware, non-arb firmware, firmware + vendor flashable zip, and firmware-less ROMs from any local zip file or direct link of the zip file.
Installation
You can simply install this tool using Python pip.
pip install xiaomi_flashable_firmware_creator
CLI Usage
xiaomi_flashable_firmware_creator [-h] (-F FIRMWARE | -N NONARB | -L FIRMWARELESS | -V VENDOR) [-o OUTPUT]
Examples:
- Creating normal (untouched) firmware:
xiaomi_flashable_firmware_creator -F [MIUI ZIP]
- Creating non-arb firmware (without anti-rollback):
xiaomi_flashable_firmware_creator -N [MIUI ZIP]
- Creating firmware-less ROM (stock untouched ROM with just firmware removed):
xiaomi_flashable_firmware_creator -L [MIUI ZIP]
- Creating firmware + vendor flashable zip:
xiaomi_flashable_firmware_creator -V [MIUI ZIP]
Using from other Python scripts
from xiaomi_flashable_firmware_creator.firmware_creator import FlashableFirmwareCreator
# initialize firmware creator object with the following parameters:
# input_file: zip file to extract from. It can be a local path or a remote direct url.
# process: Which mode should the tool use. This must be one of "firmware", "nonarb", "firmwareless" or "vendor".
# out_dir: The output directory to store the extracted file in.
firmware_creator = FlashableFirmwareCreator(input_zip, process, output_dir)
# Now, you can either use auto() method to create the new zip file or do stuff at your own using firmware_creator public methods.
new_zip = firmware_creator.auto()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for xiaomi_flashable_firmware_creator-2.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 134cafdca3e1e9efd18d42fca3b4c82461510a9056ccf9452ecebf44db6ddbe6 |
|
MD5 | 11a33d9f1926dd5dad164e27c74f0214 |
|
BLAKE2b-256 | a183996effab4c309b9912bb29a543ef58ac9e6c055e384164be268a06766215 |
Close
Hashes for xiaomi_flashable_firmware_creator-2.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 883f69060445563e0aa7579909b8f752fc0509ffc449666b9796979aa27783c2 |
|
MD5 | f388f175dd6899e164758ea86bbf93ba |
|
BLAKE2b-256 | a36847000fa91122f6ca27d5910068a810242755914d62c08460e6f7078fde9b |