Skip to main content

Create flashable firmware zip from MIUI and HyperOS Recovery ROMs!

Project description

Xiaomi Flashable Firmware Creator

Create flashable firmware zip from MIUI Recovery ROMs!

PyPI version made-with-python Codacy Badge Open Source Love
PayPal Patreon Liberapay

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xiaomi_flashable_firmware_creator-2.2.14.tar.gz (175.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file xiaomi_flashable_firmware_creator-2.2.14.tar.gz.

File metadata

File hashes

Hashes for xiaomi_flashable_firmware_creator-2.2.14.tar.gz
Algorithm Hash digest
SHA256 d8088fea0630804ad105108bb3cd619fede7b5dadf9b3ff4da90b73394889917
MD5 490abcdc082d4854f14b5cf67dbdcec1
BLAKE2b-256 e59ccdaf4b4ab2f193f84aae5ca7fd0210e1185721954e867b5a25cb1c3cfa23

See more details on using hashes here.

File details

Details for the file xiaomi_flashable_firmware_creator-2.2.14-py3-none-any.whl.

File metadata

File hashes

Hashes for xiaomi_flashable_firmware_creator-2.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 1e37d3371f4a126abee4cc40124c403dad7d1f726e5acafc581fcfd06b8a8b62
MD5 c61cb69a1be884554a8b0c8c4147e1e1
BLAKE2b-256 ce29abc1e5e65e6cef942d353ca9809ca5e9ed72e793cc515673fd9e80dc3f56

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page