MIFLASH[GUIDE]⚙ USE XIAOMI FLASH TOOL

Search This thread

NOSS8

Recognized Contributor
FOR ALL XIAOMI

BOOTLOADER MUST BE UNLOCKED

https://new.c.mi.com/global/post/101245

https://en.miui.com/unlock/index.html
-----------------------------------------------------------------------------------------------------------
All your data will be erased
IMPORTANT
*****Please note that the clean all and lock box is checked by default*****
*****The path must be C:/MIFLASH/rom folder*****


Download the latest version of MI FLASH here :
https://xiaomiflashtool.com/category/download

Extract the files from Miflash zip and place them in a folder named Miflash at the root of your hard drive.

Download a Fastboot Rom here https://xiaomifirmwareupdater.com/archive/miui/lmi/
Or
https://xiaomirom.com/en/series/ more firmwares.

Others devices
(Some devices have several versions hence the importance of knowing the code name)

https://xiaomifirmwareupdater.com/
https://xiaomirom.com/en/series/
EUXM=EEA Europe
MIXM=Global
TRXM=Turkey
RUXM=Russia
INXM=India
JPXM=Japan
IDXM=Indonesia
TWXM=Taiwan
CNXM=China
DEV=Public Beta
____________________________________________________________________________
TIPS:UNROOT BEFORE AND REMOVE LOCKSCREEN SECURITY
Battery charged at least 65%.

_______________________________________________________________________________________
-----------------Chinese device does not relock the bootloader--------
with a non-chinese rom,it will brick your device.

__________________________________________________________________________________________________________________________________
tgz.jpg


_____________________________________________________________________________

Open the TGZ file with 7-zip(or others)

ex.jpg


_________________________________________________________________________



exc.jpg

______________________________________________________________________


Move the folder to Miflash

excv.jpg

cop.jpg

_______________________________________________________________________________________________

Rename it
************************************ No long name, space, special characters.*********************************

ds.jpg


dsm.jpg

_____________________________________________________________________________________________________

Launch MIFLASH and install drivers
d.jpg

_____________________________________________________________________________________________________

Select Rom folder
se.jpg

s1.jpg

_________________________________________________________________________________________

Start the phone in fastboot mode(press and hold the power button and volume down button at the same time) and plug in to the pc.
REFRESH

Check the box at the bottom right CLEAN ALL.
dev.jpg



Flash the rom.
At the end of the flash, miflash indicates an error (normal, no problem).
error:Not catch checkpoint (\$fastboot -s .* lock),flash is not done

the phone restarts unplug in.
1672307973081.png
 

Attachments

  • excv.jpg
    excv.jpg
    61.6 KB · Views: 3,770
  • fg.png
    fg.png
    10.3 KB · Views: 3,107
Last edited:

jovanv

Senior Member
Apr 3, 2013
59
23
Madrid
If I want to lock the bootloader (EU version) and return the phone to its stock state, then I have to select 'clean all and lock' or is there a specific reason on why selecting 'clean all'?
 

uscool

Senior Member
Jul 20, 2011
234
23
I did this when I first got the phone and flashed stock EU rom, Will do it again if no one else responds with any other methods, and I really need to use phone and hassle each time to set everything up after reflashing

Thanks
 

janjambon

Member
Oct 12, 2021
20
0
Hi, I'm trying to flash stock MIUI so i can do a clean flash of another custom ROM. But I'm stuck with an error that's MiFlash Tool is giving me.. The error says: Length cannot be less than zero. Parameter name: length. Does anyone know a fix for this? When i try to double click the flash_all bat my cmd just closes instantly when it opens. Pretty new to this so I'm worried i might brick something. Thanks
 

NOSS8

Recognized Contributor
Hi, I'm trying to flash stock MIUI so i can do a clean flash of another custom ROM. But I'm stuck with an error that's MiFlash Tool is giving me.. The error says: Length cannot be less than zero. Parameter name: length. Does anyone know a fix for this? When i try to double click the flash_all bat my cmd just closes instantly when it opens. Pretty new to this so I'm worried i might brick something. Thanks
Did you use the last Miflash?
Did you rename the rom folder?
did you use usb 2 port?
is the phone in fastboot mode?
 

janjambon

Member
Oct 12, 2021
20
0
Yes, latest MiFlash and called the folder 1204. I've tried both usb 2 and 3 with no luck. My phone is in fastboot mode but I must say i tried flashing the stock rom with XiaomiTool v2 since it did recognize my phone but it gave an error while flashing the super.img. So I'm pretty scared if ill reboot it will be stuck.
 

janjambon

Member
Oct 12, 2021
20
0
Also installed all drivers neccesary with my device called android phone -> android bootloader interface in Device Manager
 

NOSS8

Recognized Contributor
Yes, latest MiFlash and called the folder 1204. I've tried both usb 2 and 3 with no luck. My phone is in fastboot mode but I must say i tried flashing the stock rom with XiaomiTool v2 since it did recognize my phone but it gave an error while flashing the super.img. So I'm pretty scared if ill reboot it will be stuck.
This is surely the first attempt with XiaomiTool v2 that blocks, try to restart and then reflash with Miflash.
Anyway you will not be able to reset it without restarting

Make sure the ROM file has been extracted completely with no corrupted files.
Extract the ROM file in the root directory such as drive C:\ or D:\.
Make sure no single space in the folder name path.
Ensure the Mi Flash tool is run as Administrator (Right-click > Run as administrator).
 

janjambon

Member
Oct 12, 2021
20
0
This is surely the first attempt with XiaomiTool v2 that blocks, try to restart and then reflash with Miflash.
Anyway you will not be able to reset it without restarting

Make sure the ROM file has been extracted completely with no corrupted files.
Extract the ROM file in the root directory such as drive C:\ or D:\.
Make sure no single space in the folder name path.
Ensure the Mi Flash tool is run as Administrator (Right-click > Run as administrator).
MiFlash is in this path along with the clean stock rom 12.5.4 global: C:\Program Files\Xiaomi\MiFlash
Should i plug out my phone, restart it, enter fastboot and try again?
 

janjambon

Member
Oct 12, 2021
20
0
1/move the miflash folder and the rom directly to C:/
retry flashing
It doesn't work unplug the phone and reboot in Fastboot mode and try again
Flashing wont work because everytime i press refresh my phone doesn't show up and it gives me the error length can not be less than zero. Tried putting it directly in C:/ too. Thanks for taking your time btw I'm really grateful. I'm also a bit hesitant of restarting my phone because of fear for bootloops. Is that the only option you know?
 

janjambon

Member
Oct 12, 2021
20
0
My end goal is to flash the new hentai OS with android 12 and i was wondering (since i know how to do adb sideload) if i could sideload it now when it's in fastboot. Or should i try to firstly fix going back to stock MIUI?
 

NOSS8

Recognized Contributor
Flashing wont work because everytime i press refresh my phone doesn't show up and it gives me the error length can not be less than zero. Tried putting it directly in C:/ too. Thanks for taking your time btw I'm really grateful. I'm also a bit hesitant of restarting my phone because of fear for bootloops. Is that the only option you know?
Restart the phone and try again
 

NOSS8

Recognized Contributor
My end goal is to flash the new hentai OS with android 12 and i was wondering (since i know how to do adb sideload) if i could sideload it now when it's in fastboot. Or should i try to firstly fix going back to stock MIUI?

Plugged it out, restarted it back in fastboot and plugged it back in. Still the same error message.View attachment 5431607
Did you extract the rom folder from the TGZ file?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Without Miflash? Do you mean "fastboot flash boot" in ADB?
    Nope,the phone in Fastboot and executed the script "flash all.bat" which is in the rom folder.
    1
    The flash failed with "[2023-08-29 11:32:57:153:153286 518f8802]:error:Sending sparse 'super' 1/8 (721976 KB) FAILED (Error reading sparse file)" (please see attached log)

    Now I cannot get it out of Fastboot mode..
    Try:
    Download this rom xiaomi.eu_multi_MI11LE_XM11Lite5GNE_V14.0.10.0.TKOCNXM_v14-
    extract the folder from the zip and use the "first install" script.

    Edit:
    Fist boot takes 5/8 minutes
    1
    Thank you so much for your help - This phone owned by a friend.. The Vodafone firmware stops me getting it to root, so I know I need to get rid of it first with a stock ROM.
    This rom is better than the stock rom and there is no reason to flash a stock rom afterwards, it is to unbrick the phone.
    1
    turn off the phone, charge it and try again.
    If still the same, try with this rom directly with the script.
    Package Name: lisa_eea_global_images_V13.0.5.0.SKOEUXM_20220124.0000.00_12.0_eea_aa1d4cc712.tgz
    1
    This one is hanging too at the following stage.. (it's like it doesn't like big files)

    C:\MIFLASH\5678>fastboot flash super C:\MIFLASH\5678\images/super.img ||
    target reported max download size of 805306368 bytes
    sending sparse 'super' (779728 KB)...
    download platform tools
    Put platform tools at the root of the disk
    Put everything the rom folder contains (without the folder) in this folder and use the "Flash all.bat" script
  • 24
    FOR ALL XIAOMI

    BOOTLOADER MUST BE UNLOCKED

    https://new.c.mi.com/global/post/101245

    https://en.miui.com/unlock/index.html
    -----------------------------------------------------------------------------------------------------------
    All your data will be erased
    IMPORTANT
    *****Please note that the clean all and lock box is checked by default*****
    *****The path must be C:/MIFLASH/rom folder*****


    Download the latest version of MI FLASH here :
    https://xiaomiflashtool.com/category/download

    Extract the files from Miflash zip and place them in a folder named Miflash at the root of your hard drive.

    Download a Fastboot Rom here https://xiaomifirmwareupdater.com/archive/miui/lmi/
    Or
    https://xiaomirom.com/en/series/ more firmwares.

    Others devices
    (Some devices have several versions hence the importance of knowing the code name)

    https://xiaomifirmwareupdater.com/
    https://xiaomirom.com/en/series/
    EUXM=EEA Europe
    MIXM=Global
    TRXM=Turkey
    RUXM=Russia
    INXM=India
    JPXM=Japan
    IDXM=Indonesia
    TWXM=Taiwan
    CNXM=China
    DEV=Public Beta
    ____________________________________________________________________________
    TIPS:UNROOT BEFORE AND REMOVE LOCKSCREEN SECURITY
    Battery charged at least 65%.

    _______________________________________________________________________________________
    -----------------Chinese device does not relock the bootloader--------
    with a non-chinese rom,it will brick your device.

    __________________________________________________________________________________________________________________________________
    tgz.jpg


    _____________________________________________________________________________

    Open the TGZ file with 7-zip(or others)

    ex.jpg


    _________________________________________________________________________



    exc.jpg

    ______________________________________________________________________


    Move the folder to Miflash

    excv.jpg

    cop.jpg

    _______________________________________________________________________________________________

    Rename it
    ************************************ No long name, space, special characters.*********************************

    ds.jpg


    dsm.jpg

    _____________________________________________________________________________________________________

    Launch MIFLASH and install drivers
    d.jpg

    _____________________________________________________________________________________________________

    Select Rom folder
    se.jpg

    s1.jpg

    _________________________________________________________________________________________

    Start the phone in fastboot mode(press and hold the power button and volume down button at the same time) and plug in to the pc.
    REFRESH

    Check the box at the bottom right CLEAN ALL.
    dev.jpg



    Flash the rom.
    At the end of the flash, miflash indicates an error (normal, no problem).
    error:Not catch checkpoint (\$fastboot -s .* lock),flash is not done

    the phone restarts unplug in.
    1672307973081.png
    24
    Or easier one click method (which i prefer) if miflash gives some errors in flashing or installing.
    Just connect phone in fastboot to pc, open fastboot rom and click on bat files to flash.

    😉
    IMG_20210415_201408.jpg
    2
    If I want to lock the bootloader (EU version) and return the phone to its stock state, then I have to select 'clean all and lock' or is there a specific reason on why selecting 'clean all'?
    select 'clean all and lock'
    (unlock or lock erase data)
    2
    Can i re-lock the bootloader after root/Magisk ?
    Better to unroot before
    1
    MI 10T (Apollo) DOWNGRADE TO STOCK..?

    I want to Downgrade my MI 10T to its stock firmware .is it possible Need step By step Guide.What if phone Bricked or stuck on boot loop..

    I dnt know what was the stock rom But i downloaded an oldest rom.
    This is a new mobile phone which i bought In pakistan on Global version.

    I downloaded an oldest version rom MIUI Server. FILE NAME IS BELOW.Is it safe to Rename the file coz It too Much long.
    apollo_global_images_V12.0.3.0.QJDMIXM_20200926.0000.00_10.0_global_189932d414

    SCREENSHOT IS ATTACHED..View attachment 5562483
    See the first post.