You can create flashable firmware for xiaomi devices with just a command.
- You should use the latest Python 3 release.
-
Clone the this repo into the same folder that you have cloned this repo to.
-
Here needs to the some dependencies, you can install these via pip.
pip install -r requirements.txt
Everything's ready! You can read usage and then make a flashable firmware :)
If you want to make flashable firmware just for a specific device, you can just use this command
python maker.py [DEVICE CODENAME] [MIUI VERSION]
or
python maker.py --file [DEVICE JSON FILE] [MIUI VERSION]
For example, you can create flashable firmware zip for capricorn from miui global dev version.
python maker.py capricorn global-dev
Also, you can use python maker.py -h
to show arguments.
You can see full list of the available devices here.
global-stable
global-dev
china-stable
china-dev