[TOOL][Linux] MiFlash for Linux

Search This thread

razortek

New member
Jun 9, 2014
4
0
I am a linux enthusiast and i am really thankful to you for this post. Bricked my redmi note 9 pro yesterday, and finding this post has been the best thing so far. Had to install windows on a separate hardrive, but even the miflash tool wouldn't work as expected.
 

typos1

Senior Member
Apr 3, 2007
9,539
1,755
UK
My Mi 10 Pro (Global) is stuck on MIUI 12.5.0.5 and it tells me there are no more updates available (which is nonsense - there are multiple updates up to MIUI 13.0.4.0).

I ve tried downloading multiple official ROMs and OTAs and it will not update either from recovery or from the updater app. I ve tried using fastboot/adb and it wont update either as the bootloader is still locked (want to keep it that way as I have a new phone and want to sell it).

So I tried this tool and all 3 options for flashing result in the same message - cant flash in locked state, same result as using fastboot.

So, sadly this tool does not work as a replacement for MiFlashTool. Guess I need to try MiFlashTool in WINE.
 

Avisadius

Member
Sep 18, 2018
30
4
My Mi 10 Pro (Global) is stuck on MIUI 12.5.0.5 and it tells me there are no more updates available (which is nonsense - there are multiple updates up to MIUI 13.0.4.0).

I ve tried downloading multiple official ROMs and OTAs and it will not update either from recovery or from the updater app. I ve tried using fastboot/adb and it wont update either as the bootloader is still locked (want to keep it that way as I have a new phone and want to sell it).

So I tried this tool and all 3 options for flashing result in the same message - cant flash in locked state, same result as using fastboot.

So, sadly this tool does not work as a replacement for MiFlashTool. Guess I need to try MiFlashTool in WINE.
about:blank
Screenshot from 2023-03-23 07-44-48.png

interesting, can we update or install custom rom without Unlock bootloader using mi flash? or have you make sure you have downloaded firmware rom (not zip)
 

typos1

Senior Member
Apr 3, 2007
9,539
1,755
UK
No, Miflash is only for official firmware, but this version doesnt work, at least for my device it could be because its based on an older version of miflash.

Just downloaded a newer version either to try in wine or replicate the scripts but there are multiple .exe files and no installer so not sure how I install it on wine let alone on windoze if I borrow someones pc.

Your spec quote for the mi 10 pro is wrong btw - the Mi 10 Pro is actually upgradeabe to android 12, so no idea why my mine wont upgrade further than android10/miui 12.
 
Last edited:

Avisadius

Member
Sep 18, 2018
30
4
No, Miflash is only for official firmware, but this version doesnt work, at least for my device it could be because its based on an older version of miflash.

Just downloaded a newer version either to try in wine or replicate the scripts but there are multiple .exe files and no installer so not sure how I install it on wine let alone on windoze if I borrow someones pc.

Your spec quote for the mi 10 pro is wrong btw - the Mi 10 Pro is actually upgradeabe to android 12, so no idea why my mine wont upgrade further than androdi 10/miui 12.
I see
thanks for further explain
 

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    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


    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

    D0cUAlK.png



    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

    L1LxWLV.png


    fXr0FhK.png


    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


    aL1yEiT.png



    9) Select one of the flash options and wait for the operation to complete:


    O399SqN.png





    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)
    3
    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.

    great tool.
    I will add it to FWUL soon

    .
    2
    I'm very new to Linux so any chance of making the instructions a bit more noob friendly?
    Like is nomefile.zip supposed to be namefile.zip? and Italian screenshots?
    I got it to install from the first set of command codes but nothing with the zip extracting codes.

    Help appreciated.

    nomefile=namefile

    Scrivania=Desktop
    1
    TWRP

    Hi. My phone is unlocked with oem debugging and I have installed ADB and Fasboot as instructed.
    Can I go ahead and flash now?
    What of TWRP? Does this miFlash tool have TWRP built in or do I have to find a way to install that separately?
    What of supersu? Which comes first. I read that I need to install supersu first, then going to instructions about supersu it says I need TWRP installed!! This is very confusing!
    Please help!
    Thanks!
    1
    PLease upgrade, not fittable for bionic versions. thanks!