Skip to main content

Create flashable firmware zip from MIUI 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.0.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

File hashes

Hashes for xiaomi_flashable_firmware_creator-2.0.1.tar.gz
Algorithm Hash digest
SHA256 e99b7d6f80684c61a1fac743345e75ea6e0c53d685cd602e82b39dbeee62e4e7
MD5 362bac53576a6ea1d17ca61ac14b5161
BLAKE2b-256 06ba74e0895650cdbc67cbca758ab671a94932785047f248923a300813086655

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xiaomi_flashable_firmware_creator-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3dcf6f7cbd4278daa9d7c5fee4f136cb31e2646f95eab452da1fc5001edaeb7
MD5 7da5ef087d48cbdc3dcf0acb8a7790e7
BLAKE2b-256 3074b1e02ec275a9f393ba68d124cfb96a9e9ff887b0d1309d135c57b0a0c6ae

See more details on using hashes here.

Supported by

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