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
File details
Details for the file xiaomi_flashable_firmware_creator-2.2.13.tar.gz
.
File metadata
- Download URL: xiaomi_flashable_firmware_creator-2.2.13.tar.gz
- Upload date:
- Size: 174.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.4.11-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 447e87d8d1d374c39018489986e1c7a4403234aad46e44f4dd8eba51a1377836 |
|
MD5 | 0d2e4857158f74ce99c7099ccdb50281 |
|
BLAKE2b-256 | 469e369188f8174ae28cf1f8ad9c61b469a869bfdfe0e14ca672c67cdf8ee87d |
File details
Details for the file xiaomi_flashable_firmware_creator-2.2.13-py3-none-any.whl
.
File metadata
- Download URL: xiaomi_flashable_firmware_creator-2.2.13-py3-none-any.whl
- Upload date:
- Size: 167.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.4.11-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54ee7ad95801ab5dfd55ce5f4703f95c769d07b9d8dc539503cb2033b87c4b49 |
|
MD5 | 070f3daeafdc89fcb73b616e85900b18 |
|
BLAKE2b-256 | 99139ad259d38ee2052daff250da4106e404521d3db600c8db671d43fd142068 |