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.2.7.tar.gz (166.9 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for xiaomi_flashable_firmware_creator-2.2.7.tar.gz
Algorithm Hash digest
SHA256 3851340b97ad103a6e405a7e3ca8edbac46445a758c56e1b0e1d4af7d66a68be
MD5 57417932fa90e1d8e57691c1c7c8b4b6
BLAKE2b-256 e2d604ac3037d964fe1f772db480a3cf58929c43b5d8252e147f202e38ce7002

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xiaomi_flashable_firmware_creator-2.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d4d3388628c7b06f5e7b2fb9c5b7bdd545d209ec6d361c45c261c77e1d99c527
MD5 3ecbf28dfa7292d7e8ba4eb47102a7f6
BLAKE2b-256 18bc5833d38a8efef967b058d5eeaa1328143c9718d04894438d715df1aadbc0

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