I recently installed Cyanogen mod 14.1(7.1.1) on Mi5(gemini) and now I want to go back to MIUI (preferably MIUI global developer rom) and lock the bootloader. I have to tried to flash using the existing TWRP and also using the inbuilt fastboot mode, but was not successful. I can neither find a proper flashing guide nor the proper files required to flash. Is there something I am missing?

  • Did you not follow this? Aside from using 9008 mode (not recommended), this is the most surefire way to do it. If you can't, get your drivers right. – Andy Yan Jan 31 '17 at 14:04

Method 1:

If you have backed up previous MIUI ROM(nandroid) using TWRP, you can restore MIUI by locating the backup file. Also, you can restore user apps from nandroid backup using Titanium backup.(Titanium backup pro have option to restore apps from nandroid backup).

Method 2:

If you don't have nandroid backup, then you need to reinstall MIUI. Download MIUI ROM from http://en.miui.com/download.html. And have a factory reset, to lock bootloader and remove root and replace stock recovery.

  • How do I lock the bootloader to unvoid warranty? – Dhruva Jan 31 '17 at 15:49
  • After installing MIUI, do a factory reset. It will lock bootloader. (Backup current, before any actions) – Rahul Gopi Jan 31 '17 at 16:19
  • @RahulGopi How will a factory reset (essentially a data wipe) lock bootloader? It will not. Do it manually. – Andy Yan Feb 1 '17 at 0:37
  • How do you do it manually? – Dhruva Feb 1 '17 at 2:44
  • @RahulGopi have you tried it? Does it work? – Dhruva Feb 1 '17 at 2:47

If you haven't saved a backup with TWRP you have to reinstall the MIUI.

First of all download the ROM here.

Then put the ROM in a USB drive or SD card (it has to be read from the smartphone outside its own disk).

Then, install the ROM.

You can follow these steps from How to Flash a New ROM to Your Android Phone

But if you have a saved backup with TWRP, go to restore and select your backup.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.