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
python3 -m xiaomi_flashable_firmware_creator [-h] (-F FIRMWARE | -N NONARB | -L FIRMWARELESS | -V VENDOR) [-o OUTPUT]
Examples:
- Creating normal (untouched) firmware:
python3 -m xiaomi_flashable_firmware_creator -F [MIUI ZIP]
- Creating non-arb firmware (without anti-rollback):
python3 -m xiaomi_flashable_firmware_creator -N [MIUI ZIP]
- Creating firmware-less ROM (stock untouched ROM with just firmware removed):
python3 -m xiaomi_flashable_firmware_creator -L [MIUI ZIP]
- Creating firmware + vendor flashable zip:
python3 -m 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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c502efe5b859a6b5f8f4e1a72f4d3ac497cd08ac1eeb13457fb280feaa0e1b4 |
|
MD5 | 300ef83050d6cd6c0937eed31770a4c8 |
|
BLAKE2b-256 | f75271905ab3abe5dbbcb1b3bf1cbb5677bfcdaa79378c11560cc8cf88d88eb2 |
Close
Hashes for xiaomi_flashable_firmware_creator-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5b43112614ac1f53175a54c7cbaec15296cf067a871fed7ff8894e49c2f572d |
|
MD5 | 6002b13d22a6dd6f6770a24164290ce6 |
|
BLAKE2b-256 | b68182d512acf8c34960b82ea82c4ef13fc2a469fe8f5b8b68a61fb48cbfcd4f |