A fast, cross-platform CLI utility for searching, downloading, and flashing Xiaomi firmware.
- Search firmware by device codename and OS version
- Cross-platform: Windows and Linux
- Simple one-command build with Conan + CMake
Planned:
- Download firmware directly from Xiaomi servers
- Flash firmware to device via fastboot/ADB
mitool --os-version <version> --device <codename>Example:
mitool --os-version OS2.0.5.0.VMUMIXM --device xun| Argument | Type | Description |
|---|---|---|
--os-version |
parameter | OS version currently installed on the device |
--device |
parameter | Device codename |
--no-banner |
flag | Disable ASCII startup banner |
Requirements: C++20 compiler, Conan, CMake
# Install Conan
pip install conan
# Detect build profile
conan profile detect
# Install dependencies
conan install . -of=build --build=missing
# Configure and build
cmake -B build -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake
cmake --build buildThe binary will be available at build/bin/mitool.
Distributed under the GNU GPLv3 license.