Skip to content
Linux port of MiFlash utility
Shell Python
Branch: master
Clone or download
Pull request Compare This branch is 3 commits ahead of IcemanDev:master.
Latest commit 61b2897 Aug 5, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Xiaomi_MiFlash
LICENSE Create LICENSE Aug 5, 2018
README.md

README.md

MiFlash-Linux

FLASH Firmware:

  1. Restart the device in fastboot mode;
  2. Connect the device to the PC via USB cable;
  3. Start the "XIAOMI TOOL" program from the terminal (cd Xiaomi_MiFlash/ && sudo ./go.sh) and copy the file of the .tgz firmware inside the "/Xiaomi_MiFlash/XIAOMI-FILE/" folder;
  4. Type "1" to start "FLASH Firmware";
  5. Select the firmware file (tgz) and wait for the end of the operation;
  6. Select the affected .sh file. The device will restart automatically.

Backup firmware:

  1. Restart the device in TWRP mode;
  2. Type "2" to start backup and end operations by pressing any key;

Flash TWRP:

  1. Restart the device in fastboot mode;
  2. Connect the device to the PC via USB cable;
  3. Start the "XIAOMI TOOL" program from the terminal (cd Xiaomi_MiFlash/ && sudo ./go.sh) and copy the file of the twrp recovery (.img) inside the "/Xiaomi_MiFlash/XIAOMI-FILE/" folder;
  4. Type "3" to start "TWRP flash";
  5. Select the recovery file for twrp (.img);
  6. The device will automatically restart in TWRP mode.

Flash boot.img:

  1. Restart the device in fastboot mode;
  2. Connect the device to the PC via USB cable;
  3. Start the "XIAOMI TOOL" program from the terminal (cd Xiaomi_MiFlash/ && sudo ./go.sh) and copy the file boot.img inside the "/Xiaomi_MiFlash/XIAOMI-FILE/" folder;
  4. Type "4" to start "flash boot.img";
  5. Select the boot.img file);
  6. The device will restart automatically in normal mode.
You can’t perform that action at this time.