This UNOFFICIAL tool allows you to flash in Linux an official Xiaomi firmware in fastboot (.tgz) format just like Miflash does on Windows machines; also it is possible to make a full backup of the ROM always in .tgz format only for device with Android Marshmallow or higher.
TESTED GUIDE WITH UBUNTU 17.10 64-bit
You must first install and configure adb and fastboot for Linux.
INSTRUCTIONS:
Open the terminal (ctrl + alt + t) and write the following commands
FLASH FIRMWARE
1) download the zip file from HERE and place it on the desk;
2) Restart the device in fastboot mode and connect it to the computer with USB cable;
3) on UBUNTU unpack the .zip by right-clicking on the file and selecting "extract here", now open the newly created folder and unpack the .tar file that you will find in it;
More generally, to extract .zip and .tar files from the terminal, you use the commands:
in our case, from desk, give the following commands:
5) To start the program, open a new terminal window (ctrl+alt+t) and type the following commands:
6) copy the rom .tgz file to / XIAOMI-TOOL-MiFlash-for-Linux-by-IceMan-master / Xiaomi_MiFlash_new / XIAOMI-FILE folder
7) Select "1" for firmware flash
8) Select "1" to choose the rom file to install
9) Select one of the flash options and wait for the operation to complete:
BACKUP ROM FORMAT .TGZ
1) Start the phone in TWRP and connect it to the PC.
2) start the tool as in step 5 above and select option "2".
BACKUP ONLY WORK WITH TERMINALS WITH MARSHMALLOW OR SUPERIOR ANDROID VERSION.
Source
credits: Iceman-IT (developer)
TESTED GUIDE WITH UBUNTU 17.10 64-bit
You must first install and configure adb and fastboot for Linux.
INSTRUCTIONS:
Open the terminal (ctrl + alt + t) and write the following commands
Code:
sudo add-apt-repository ppa:phablet-team/tools
Code:
sudo apt-get update
Code:
sudo apt-get install android-tools-adb
Code:
sudo apt-get install android-tools-fastboot
FLASH FIRMWARE
1) download the zip file from HERE and place it on the desk;
2) Restart the device in fastboot mode and connect it to the computer with USB cable;
3) on UBUNTU unpack the .zip by right-clicking on the file and selecting "extract here", now open the newly created folder and unpack the .tar file that you will find in it;
More generally, to extract .zip and .tar files from the terminal, you use the commands:
Code:
unzip nomefile.zip
Code:
tar -xvf nomefile.tar
in our case, from desk, give the following commands:
Code:
cd Scrivania
Code:
unzip XIAOMI-TOOL-MiFlash-for-Linux-by-IceMan-master
Code:
cd XIAOMI-TOOL-MiFlash-for-Linux-by-IceMan-master
Code:
tar -xvf Xiaomi_MiFlash_new.tar
5) To start the program, open a new terminal window (ctrl+alt+t) and type the following commands:
Code:
cd Scrivania
Code:
cd XIAOMI-TOOL-MiFlash-for-Linux-by-IceMan-master/Xiaomi_MiFlash_new && ./go.sh
6) copy the rom .tgz file to / XIAOMI-TOOL-MiFlash-for-Linux-by-IceMan-master / Xiaomi_MiFlash_new / XIAOMI-FILE folder
7) Select "1" for firmware flash
8) Select "1" to choose the rom file to install
9) Select one of the flash options and wait for the operation to complete:
BACKUP ROM FORMAT .TGZ
1) Start the phone in TWRP and connect it to the PC.
2) start the tool as in step 5 above and select option "2".
BACKUP ONLY WORK WITH TERMINALS WITH MARSHMALLOW OR SUPERIOR ANDROID VERSION.
Source
credits: Iceman-IT (developer)
Last edited: