Xiaomi.eu and me are not responsible for on any damage.
Please do some research if you have any concerns about this tutorial before flashing!
When you buy/import a Xiaomi device (smartphone or tablet), than you will get official ROM from Xiaomi
http://en.miui.com/download.html or vendor/shop ROM from seller. I will show you how you can flash ROM's from xiaomi.eu
First of all, sry for my bad english but I hope this willanyway help someone...
For Windows you need to download adb and fastboot, install it and later you will see, what you need to do. In the Tutorial I show you also, how it works under Linux, the second part. The first part you need to do under Windows, because the Tools from Xiaomi only support Windows.
I did this on Windows 10 Pro, 64 bit, with the Redmi Note 3 Pro, Redmi 3 Pro, Redmi 4, Redmi Note 4, Mi Note 2, Mi5, Mi5s, Mi5s Plus, MiMax Pro and more. I know, it sounds sick but I did it also for friends and only for my uncle I bought 6 times the Redmi 4x, so I know what I did and I will help you guys.
1. We need to unlock bootloader first. So take your device, go to
settings and than to
about device/info
Click few times on
MIUI-Version to unlock the developer mode. MIUI will show you "you are now developer".
Go back and to "more settings", than to "developer mode"
Allow
OEM unlock and than:
Go to "Mi Unlock Status"
So, you click on
register account and device and log in to you MIUI account, not your xiaomi.eu account. You need to set "find my device" and
allow anything, what is asking for.
At this moment you need to wait 72h. If you try to unlock your device, it will show:
This is something new from Xiaomi, I think it start 05/2017.
If you got an account, which don't have permission to unlock a Xiaomi device, go to this site and ask for:
http://en.miui.com/unlock/
You can unlock one device in 30 days. If you plan to unlock more, like I did, so create more accounts or you will need to wait 30 days. Sometimes I wait 2 days for the permission to unlock xiaomi devices, sometimes 10-12 days. I can not explain you why, but that my experience.
2. Safe all your data and turn off the device. Hold the
volume down button and
power button.
It will start and show you just this picture.
Use USB 2.0 (if possible) and connect the device to your Windows PC.
It will download all driver, which we need to unlock our device. Usually I don't use Windows. I did it on 3 Windows PC's. On some I need to install all Xiaomi Tools and sometimes I need to switch just the USB Port and anything works perfect. No idea why, just want to tell you.
Let the device on the table, don't press anything, just wait and continue with this tutorial.
3. We need
Mi Unlock Tool to unlock the device, so go to
http://en.miui.com/unlock/ click on
unlock and log in with your account. It must be the same account like on your device. Download the Tool, unzip it and run it.
Log in to your Xiaomi account
It will check and after that you will see this
Click on
Unlock and wait
Wait untill it say's "device unlocked" after that reboot your device. Hold the power button for 20 sec, it will reboot. On some version you can click "reboot device" but if not do it like I sad.
If you can not connect your device, than you got a problem with the drivers. Reboot, install MI Tools, try it again, change USB cable or port... something is wrong.
Couldn't verify device = you need to flash official ROM, because you got one of this vendor/shop ROM's. I will also create a new thread for this problem, so check it out.
4. Download the ROM which you want to install (flash) and put it on the device.
Don't put it in folders, just on the internal storage, like on this picture.
5. We need to flash a custom recovery, so this will be TWRP. TWRP you can download here:
Just click on DOWNLOAD and find TWRP for your device. Sometimes you will not find TWRP, so you need to wait. Download this file, unzip it and rename the .img file to recovery.img
This file you put in the
adb folder on your Windows PC. It need to look like this:
Now open
CMD as admin in this folder (hold Shift and right click in the folder)
First type
dir and press enter (1), you need to find a file like in the picture recovery.img (2), boot your device in fastboot mode, like we already did and run
fastboot device, it need to look like on the picture (3), than type
fastboot flash recovery recovery.img (4), it show "
OKAY" and "
finished", after that boot in TWRP with the command
fastboot boot recovery.img (5)
Just wait, sometimes you need to wait up to 2 min, sometimes it start instant.
If you got Linux, it is the same. Install ADB and Fastboot with this commands over terminal:
sudo apt-get install android-tools-adb
sudo apt-get install android-tools-fastboot
Open the terminal
Linux don't care of the location of TWRP, filename, USB 2.0/3.0 or Type C 3.1, anything works, after you install it with that commands. When I got problems with flashing, I just switch to Linux and have no problems.
Sometimes you will se just chinese font on the first boot. This is not a problem, just use this picture:
You can see, which button is
select language, use it and set it to
English, set "never show this screen during boot again" and
Swipe to allow modifications. After that you will see this picture:
If you use TWRP for the first time, you can find videos on YouTube, to see what they do. Don't use CyanogenMod/Lineage OS tutorials for this ROM! It is not the same!
First of all make a backup, so you can go back, EFS backup is anytime good to have. You can also use OTG in TWRP, this is also a better choice, because the files are safe after backup.
After backup you need to wipe.
Be careful! You will always find some additional information in the main thread, especially when we get a new Android Version, be very careful!
So after that you go to install, choose the files, swipe to install and after that reboot device. That's it! The first boot can take up to 5 min., just wait and if you wanna update the rom, boot to TWRP, go to install, choose the filme and swipe to install.
Fell free to share this, but please be fair and share the source (link to xiaomi.eu is enough).