Xiaomi Flash tool for Linux

I understand but when I wrote tested I mean it. Flashed four different roms before write the post and they worked fine.

thanks @Erekozefor your link, very usefull :slight_smile:

I am not saying you are wrong - sorry if I was not clear in my post. I was also able to flash the ROM with the tool - what I wanted to know is if it provided you an option to keep the device unlocked. I remember it had locked my phone after the flashing and I had to again run adb to unlock it.

That’s why I prefer the ‘normal’ linux command. With it you can decide what you will flash. There are several .sh -files ind the packed file which can be flashed by ‘fastboot xxxxxxxxx.sh’

1 Like

I gotta say simply “me too”.

About your doubt: I flashed the full rom. It locked the bootloader only when you do the specific flashes (the other two options) but not with full rom flash. If I read correctly.

1 Like

Thanks for the info @Erekoze

@Manoj Yes, it locks the phone after flashing if you have selected “Clean all and lock” in the right back corner of the app (selected by default) on Windows.

there is also a flash_all.bat which don’t lock your device. Under Linux you can use flash_all.sh

See my screenshot, that’s this one selected.

Flash in progress.

if you open the zip and open the sub folder,you will find all .bat and .sh scripts

1 Like

Thanks @harvey186 I have never tried flashing the stock with the flash_all.sh in linux. Had to find a windows PC to get this done through MiFlash :frowning:

It’s much easier as using a winPC :wink:

1 Like

Hi @AerisOne I am aware of the MiFlash tool options in windows. We were checking on flashing in Ubuntu or other linux flavors.

@harvey186, I know, we have to unzip the file to flash it, I prefer using MiFlash cause there is much tutorials about it and I don’t want to brick my phone definitively.

Well I tried the script flash_all.sh and works like a charm. flash_all.bat works very well too.

1 Like

Thanks for confirming that Jorge. Saves users with linux PC’s the trouble of running around searching for windows computers!

1 Like

Or, you could just use a virtual machine with access to USB, or usb boot your machine with a Windows usb stick!

I think using the flash-all.sh via linux terminal is the best solution. VM’s does often don’t show the connected device or connection breaks while flashing and that’s really critical

I agree. The flash-all.sh option has already been by @harvey186 and @Erekoze as mentioned on this thread.