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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dd74a9e5fad5f9dbcf4ab150a2673a647e0c0961000072224d9b30f3a552e6f |
|
MD5 | 21d7ed73ca12c0aed8bac1892b3718c2 |
|
BLAKE2b-256 | d49fa75dcb4941b7126aebeb1fcc3f9813e49f43dd9dfc7221903f7b4e7a475d |
Close
Hashes for xiaomi_flashable_firmware_creator-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ff718e1359289ea2de9bdb02ede5bcb3af1a81d7e47c1148b01d6a695a671d9 |
|
MD5 | 183d36d0fb19a852351e1f52748fe5b7 |
|
BLAKE2b-256 | e4081880e9c3875ab4f3fd5fbbd38fb1d123d33ad3d5ec31ffbf0ebe3d65b9fa |