[GUIDE] Flashing rom Using Miflash Mi2/3

Discussion in 'Xiaomi MI2(s)' started by grondinm, Jan 12, 2013.

  1. grondinm

    grondinm Members

    Trophy Points:
    65
    Hey guys This is my first guide so be gentle. Alot of people where asking about odin equivalent/Fasboot/Miflash help so i took the plunge and figured it out. Here goes.

    FIRST DISCLAIMER: ONLY USE THIS IF YOU HAVE NO ACCESS TO RECOVERY AND USE AT YOUR OWN RISK. I HAVE FLASHED THIS WAY TWICE AND IT WORKED FINE.

    First what you will need:
    1. Miflash tool from here http://bigota.d.miui.com/tools/MiPhone2.11.6.exe
    2. A Mi2 Fastboot package from here Download the Miflash package you want. (thread is in chinese but google translate is your friend here. Just make sure you get Mi2/Mi2s package)

    So once you have those 2 packages extract them to your computer (To the root of your C drive or in a folder path containing no spaces) and start up the Miflash tool allowing it to install the drivers. After it is open you can browse to the location where you extracted the fastboot .exe package you downloaded.

    Before doing anything else you need to change the name of the fastboot script the tool will use. Choices are:

    1.flash_all_wipe.bat:
    clears all the data of the built-in storage, clear all user data, please be careful!


    2.flash_all_except_storage.bat:
    will erase all user data does not clear the built-in storage data.


    3.flash_all_except_data_storage.bat:
    does not clear the built-in storage data does not clear user data


    I would recommended using the flash_all_except_storage.bat since this will wipe and flash everything but the virtual sdcard.

    to set the script press the little arrow next to the browse button and click on advanced
    menu.png

    in the new window enter the name of the fastboot script you wish to use like so
    advanced.png

    Now you need to get your device into fastbootmode by turning it off then holding the vol-down button and power button until you see the fastboot logo. plug in your phone using USB cable and wait for driver installation to finish and click refresh. Your device should show up in the list. All that's left to do is press flash and wait for it to finish. It will reboot automaticly when it's done. Should take about 2 min or so.

    Now you will have a fresh "stock" rom.

    Hope this helps someone. Thanx for reading.
     
    Last edited by a moderator: Apr 5, 2014
    Stefano131270, Sheep, gabril and 15 others like this.
  2. Staalborstel

    Staalborstel Members

    Trophy Points:
    28
    Thanks mate! Very useful for those people out there that have a semi-bricked device! Oh and very well written, especially for a first-time guide.
     
    grondinm likes this.
  3. hadron

    hadron Members

    Trophy Points:
    82
    great! can you test it that if you cant boot to recovery or fast boot then can it still work ?
    i mean power off your phone and then connect to PC to flash with out putting it to fast boot.
     
  4. Staalborstel

    Staalborstel Members

    Trophy Points:
    28
    Yeah I would but I still need to get the courage to install the miuiandroid rom. I`m just really scared of bricking it.


    Sent from my MI 2 using Tapatalk 2
     
  5. grondinm

    grondinm Members

    Trophy Points:
    65
    I shall give that a shot. Maybe only tomorrow tho. Will update after I try.

    Sent from my MI 2 using Tapatalk 2
     
    hadron likes this.
  6. Melvyn Ong

    Melvyn Ong Members

    Trophy Points:
    28
    Thanks! It works and I've got the stock ROM on it and installed MIUIAndroid's latest update.
     
    grondinm likes this.
  7. grondinm

    grondinm Members

    Trophy Points:
    65
    So with the device turned off i plugged in to usb. It started charging of course. I opened up Miflash and it could not find my phone. Looks like if you can't get into fastboot then you are out of luck.
     
  8. hadron

    hadron Members

    Trophy Points:
    82
    I was afraid of that! Anyway thanks for testing.
    hadron

    Sent from my Xiaomi M2
     
    grondinm likes this.
  9. Mish

    Mish MIUI Android Staff

    Trophy Points:
    40
    Thank you for the guide, very interesting :)
     
    grondinm likes this.
  10. Caztiel

    Caztiel Members

    Trophy Points:
    18
    having a prob flashing using miflash. my device is bricked, can only access recovery,both system partitions dont boot.. just gets stuck on the MI logo. tried this method and getting the following errors.. see zip file for error log.. HELP MEEEEEEE!
     

    Attached Files:

  11. grondinm

    grondinm Members

    Trophy Points:
    65
    A little more info. What happened that made you want to use Miflash. What was the last thing you did on your device before it stopped booting. I don't understand that error log. i assume it came from miflash tho. You did have the device in fastboot mode right. not recovery?
     
  12. Caztiel

    Caztiel Members

    Trophy Points:
    18
    okay, i changed i few values in my build.prop. when i rebooted it gets stuck on mi logo. same happens when i boot into system 2. ive followed your guide and got every step right. drivers install. MI flash recognizes my device,but when i click flash i get that error. any ideas??
     
  13. grondinm

    grondinm Members

    Trophy Points:
    65
    I am sorry but i have no idea what that error is saying. it does not even look like an error it's just giberish. I never had any issues and i followed the steps i gave twice. I will try to dig around...maybe post this on the official miui forum as well.
     
    Caztiel likes this.
  14. Wajk

    Wajk Members

    Trophy Points:
    165
    Try Wipe Data/Cache from Recovery, if you didn't do that.

     
  15. hadron

    hadron Members

    Trophy Points:
    82
    Solution is very simple
    move the ROM folder to root of your drive and select all files again
    it require the folder path without spaces. space in your user name folder is creating problem
    @grondinm please add this to your Guide
     
    Caztiel and grondinm like this.
  16. grondinm

    grondinm Members

    Trophy Points:
    65
    That is a very simple solution. I will add that the path must contain no spaces. How did that log indicate this to you tho?
     
  17. ingbrzy

    ingbrzy Xiaomi.eu Multilang leader Staff Member

    Trophy Points:
    322
    "Error: cannot load C:Users/Brainwave" full user name is "Brainwave Projects"
     
    Caztiel likes this.
  18. hadron

    hadron Members

    Trophy Points:
    82
    In the log it says folder can't loaded

    hadron

    Sent from my Xiaomi M2
     
    Caztiel likes this.
  19. grondinm

    grondinm Members

    Trophy Points:
    65
    well well. No wonder i was opening the file not with word and all was seeing was a bunch of of random letters and numbers not the image...now i understand. Sorry about that. i could have solved this if only i had opened that file with word.

    This is what i saw http://imgur.com/btXsT

    OP updated to say to extract to root of drive C or a folder with not spaces.

    Now i feel like an idiot :oops:
     
    Caztiel likes this.
  20. Caztiel

    Caztiel Members

    Trophy Points:
    18
    thanks a lot for the quick response. i changed the path and everything went well. thanks hadron and ingbrzy.
     
    grondinm likes this.

Share Our Site