Skip to content

XiaomiUtils/mitool-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiTool-CLI

A fast, cross-platform CLI utility for searching, downloading, and flashing Xiaomi firmware.

C++ Platform License: GPLv3 GitHub Repo stars

Features

  • 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

Usage

mitool --os-version <version> --device <codename>

Example:

mitool --os-version OS2.0.5.0.VMUMIXM --device xun

Arguments

Argument Type Description
--os-version parameter OS version currently installed on the device
--device parameter Device codename
--no-banner flag Disable ASCII startup banner

Build

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 build

The binary will be available at build/bin/mitool.

License

Distributed under the GNU GPLv3 license.

About

A simple command-line tool to find and install the latest ROMs on Xiaomi devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors