In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .
Agree

Flashing Guide

[Guide] [All in One] MIUI Flashing Guide: Unbrick, EDL Method / Locked Bootloader, Unlock Bootloader, More

2018-08-02 04:24:42
257890 1780
Hello MIUIers, Today I will share the guides for,
  • How to Unbrick any Xiaomi Device with Locked Bootloader
  • How to get rid of Fake Global Rom/Custom MIUI Rom, Fake Unlock
  • How to Unlock Bootloader
  • How to Flash Fastboot ROM with an unlocked bootloader
  • How to Install TWRP Recovery and Root Any Xioami device
  • How to Install Google Play in China MIUI ROM
  • Anti Roll Back Issue


✪ Requirements:
  • A Working Brain
  • Patience
  • A Working PC
  • USB Cable for Connecting Phone with PC
  • Internet Connection


✪Necessary Files:
  • If you want to see the hidden content, please reply



Now Let's Get Started.
Part One - How to Unbrick any Xiaomi Device with Locked Bootloader

UPDATE: EDL Method needs an authorized Xiaomi account. Those who have no authorized accounts cannot use this method. None of the Admins, sMods and Mods can help you to get an authorized account. Please visit Xiaomi Authorized Server Center.


At first download all the files mentioned up, Now remove your device's back shell and Find EDL Pins. It should be there somewhere upside battery. Check the picture so that you will understand what is EDL Pins.


Now disconnect your battery from the motherboard.We don't need the battery connected in EDL Mode. Then short that two EDL Pins with forceps and connect USB Cable with Phone at the same time (make sure the cable is connected with pc and pc is turned on). Check the picture

Now open Device Manager and you'll see something like this


  

Now open Mi Flash Tool and refresh it, you'll see your device


Now Download Fastboot ROM for your Device from here.

For Downloading Fastboot Rom you've to check these things that if your device is Global Variant then you've to download Latest Global Beta Rom, if your device is Chinese Variant then you've to download Latest China Beta ROM. If you flash Global Rom in Chinese variant it won't boot with a locked bootloader (Read More). So make sure your device variant and then download ROM.

Now extract the Rom (check if the ROM file suffix is '.tgz'. If it is '.gz', please rename it to '.tgz'). Select the Rom Folder in Mi Flash Tool (Make sure there is no space in the rom address if there rename all folders with an under space (_). The address should like this,  C:\Users\Akib\Desktop\whyred_global_images_8.7.12_20180712.0000.00_8.1_global

After doing this check the option 'clean all' at the bottom of the tool. Then Flash it. When it will successfully be flashed, connect your battery, cover the back shell and power on the device. It should boot up. :)

Part Two - How to get rid of Fake Global Rom/Custom MIUI Rom, Fake Unlock

How to check if your device has fake global rom? Go to About Phone  Rom Version. If you see the version is something like this xx.xx.xx.xx.xx.xx then your device has fake global rom. Official Rom should like this xx.xx.xx.xx That means in official rom version there is only four sections of numbers and three dots. Also, do a search in Google and check that the version is official or fake! In Fake Rom you will not receive any OTA Updates. Or even you cannot unlock your bootloader, because there is a fake unlock installed. To check to go to Developer Options of your device and see Mi Unlock Status, it will see Unlocked, but if you check through fastboot command 'fastboot oem device-info'. it will say locked.

So how to get rid of it? Do what is said in Part One carefully. Now you have an official rom installed. You can receive OTA updates and also unlock your bootloader now!

Part Three - How to Unlock Bootloader
Wanna unlock bootloader? Do at your own risk
Important: The risks stated above do not fully cover changes which may be brought about by Mi Unlock.We will keep improving Mi Unlock in order to prevent the cases when unauthorised vendors unlock Mi devices to install third party apps which worsen MIUI user experience and cannot to be deleted. Locked devices also provide you with high-quality security features, such as Find device, and other added-value services. We're sorry for any inconveniences our policies may cause. Please think twice before unlocking if you are not familiar with ROM flashing.


Risks of unlocking Mi Devices?
  • By unlocking the device you agree that this may bring changes to some parts of the system. These changes may damage the device.
  • After the device is unlocked, it becomes less secure and more vulnerable to malware attacks, which may lead to the disclosure and loss of your private data.
  • Some features which require high-security level (e.g., Find device, banking apps, added-value services, etc.) will no longer be available.


Note: The unlocking process will erase all your data on the device. So don't forget to take backup.

Now,
  • Go to Settings -- About Phone -- Tap on MIUI Version 5-7 times to enable the developer option).
  • Then, go to Settings -- Additional settings -- Developer option and bind your Mi account under Mi Unlock Status.
  • Log into the Mi account which has acquired unlocking permission on your device
  • Go to Settings -- Mi Account -- Account security -- Devices -- Other devices and remove all other devices associated with your Mi Account.
  • Go to Settings -- Additional settings -- Developer options -- Enable USB debugging and OEM unlocking.
  • Also, Turn on Internet connection, Bind Your Mi Account. Go to Settings -- Additional settings -- Developer options --  Mi Unlock Status --Tap Add Account and Device.

Now,
  • On-device go to bootloader mode (press the Power button and Volume - button at the same time to enter bootloader mode).
  • Connect the phone with PC using USB Cable.
  • Open Mi Unlock Tool. Login into your account (the same account should be logged in on your device)
  • It will say Device Connected. Tap Unlock.
  • If you see 360/720/1440 hours bind error, then you have to wait for 360/720/1440 hours and then try again.

Hola! Your Bootloader is unlocked!

Part Four - How to Flash Fastboot Rom with Unlocked bootloader

NOTE: You can use any (China/Global:Beta/Stable) Fastboot Rom when your bootloader is unlocked.


  • Download Fastboot Rom from here
  • On device go to bootloader/fastboot mode (press the Power button and Volume - button at the same time to enter bootloader mode).
  • Connect device with PC using USB Cable
  • Open Xiaomi Flash Tool, Extract downloaded Rom. Select Rom folder. Make sure there is no space in the rom address if there rename all folders with an underspace (_). The address should like this,  C:\Users\Akib\Desktop\whyred_global_images_8.7.12_20180712.0000.00_8.1_global
  • Refresh, You'll see your device. Select 'Clean all' at bottom then flash. If you select 'Clean all and lock' then your bootloader will be locked again.


Part Five - How to Install TWRP Recovery and Root Your Device

  • Download Latest TWRP Recovery for your device from here. Rename the img file to twrp.img
  • On device go to developer options and enable USB Debugging. Then go to bootloader/fastboot mode (press the Power button and Volume - button at the same time to enter bootloader mode).
  • Connect device with PC using USB Cable.
  • Open NoNameTool Folder (mentioned up)
  • Copy the twrp.img into that folder.
  • Now Press Shift and Right Click  Open Command Prompt/ Powershell.
  • Enter following codes

fastboot devices


  • It will show that your device is connected.
  • Now Enter following codes

fastboot flash recovery twrp.img


fastboot boot recovery twrp.img


  • The device will boot into TWRP recovery.
  • If you want to Root your device. Download Latest Magisk from here.
  • Copy Magisk.zip into your phone.
  • Boot into TWRP Recovery. Go to Install and Flash Magisk.zip. Then Reboot!
  • Enjoy! Your Device is now rooted.

Part Six - How to install Google Play Store into China MIUI ROM

If you are on China Rom and Can't Find Google Play Store then don't Panic. Google is restricted in China. So there is no Google services. But You can install it manually. (Internet Connection Required, Around 100mb)

Simply download this
If you want to see the hidden content, please reply
. Install it. Open it. Tap on Chinese words at bottom. Now the download process will run. It will ask for installing Google some apps. Allow them, Install them. After All Done, Reboot Your Device. Enjoy Google Play Store in China Rom.

Part Seven - Anti-RollBack Issue

Don't afraid of Anti-RollBack issue. It is nothing but a simple issue. It means that, you cannot flash older roms on your device.
Suppose, If you are on MIUI 8.7.6, if you flash 8.7.5 it will hard-brick but if you flash 8.7.7 it will flash succesfully. So please make sure what rom version are you using and what version you are going to install.

If you want to go to China Rom from Global Rom. Don't afraid, you can do it. Just Remember the ROM VERSION MUST BE SAME or LATEST.If you are on Global beta 8.7.16 then Flash China beta 8.7.16 or latest.
Be aware! If your device got bricked for Anti-RollBack issue, We have no solution. Go to nearest Mi Service Center!


By the way, You can do almost everything with Anti-RollBack.
  • You can flash TWRP again
  • You can Root Anti ROMs with Magisk or Disable Encryption
  • You can switch from CN builds to Global builds or vise versa
  • You can switch between all anti 4 builds just fine, like from 8.7.12 to 9.5.19.0 or anything with anti 4
  • You can flash any AOSP/LOS based ROM
  • You can flash anti 4 fastboot ROMs

*NEW*
If you want to see the hidden content, please reply

-----x-----

If there is any other problem you are facing with flashing Roms. You can reply in comments or pm me. I am also available at Facebook and Telegram. You can knock me there also.

Special Thanks to our admin @mnnahid for supporting me.

Is this Guide Helpful? Share your views in comment section.


Rate

Number of participants 15 Experience +107 Pack Reason

View Rating Log

2018-08-02 04:24:42
Favorites166 RateRate

Admin

#1

Bunch of thanks for the excellent thread. Keep rocking with Mi Community.
2018-08-02 06:27:30

Master Bunny

Akram Rahim | from Redmi Note 4

#2

very helpful
2018-08-02 06:46:27
Mi Big Fan
thanks for sharing this guide.
2018-08-02 11:28:10

Semi Pro Bunny

Yousuf (ইউসুফ) | from Redmi 5 Plus

#4

difficult with easy prosidure
2018-08-02 12:49:29

Semi Pro Bunny

Yousuf (ইউসুফ) | from Redmi 5 Plus

#5

so much hard
2018-08-02 12:53:52

Semi Pro Bunny

Yousuf (ইউসুফ) | from Redmi 5 Plus

#6

flashing guide something hard
2018-08-02 13:13:48

Super moderator

aalakib07 Author | from Redmi Note 5

#7

Yousuf (ইউসুফ)
flashing guide something hard

What r u facing?
2018-08-02 14:45:10
Regards,
Abdullah Al Akib
Super Moderator, Mi Community Bangladesh

Facebook | Telegram
Use the Reply button to notify

Super moderator

aalakib07 Author | from Redmi Note 5

#8

mnnahid
Bunch of thanks for the excellent thread. Keep rocking with Mi Community.

Most Welcome Vi :)
2018-08-02 14:45:40
Regards,
Abdullah Al Akib
Super Moderator, Mi Community Bangladesh

Facebook | Telegram
Use the Reply button to notify

Super moderator

aalakib07 Author | from Redmi Note 5

#9

NayeemOfficial
thanks for sharing this guide.

Welcome :)
2018-08-02 14:45:58
Regards,
Abdullah Al Akib
Super Moderator, Mi Community Bangladesh

Facebook | Telegram
Use the Reply button to notify

Super moderator

aalakib07 Author | from Redmi Note 5

#10

Akram Rahim
very helpful

Thanks....  :)
2018-08-02 14:46:42
Regards,
Abdullah Al Akib
Super Moderator, Mi Community Bangladesh

Facebook | Telegram
Use the Reply button to notify
please sign in to reply.
Sign In Sign Up

aalakib07

Super moderator

3 Days Check-In
7 Days Check-In
21 Days Check-In
40 Days Check-In
70 Days Check-In
100 Days Check-In
Newbie Member
Mi A2
MIUI 8th Anniversary
Eid Mubarak
Dirgahayu ke-73 Indonesia
MIUI Beta Tester
MIUI 10
10K Members Celebration
10M Downloads
2019
Throw Back with Mi 2018
Suited and Booted
30K Members
Limited Edition Space Medal
Challenge Photographer
Android Q
Mother's Day
Best Mi
50K Mi Fans
Challenger
40K Registered Users
Eid Mubarak
Tech Talent
50K Users
MIUI Geek
App Maniac
My Country My Pride
Redmi 7A
60K Registered Users
9YearsWithMIUI
70K
Mi A3
MIUI Weekly Poll
80K
Super Saturday
Super Tuesday
90K Registered Users
Super Monday
100K
Halloween
200K Mi Fans
MIUI 11
DXO121
Super Friday
Super Sunday
2020
Mi POP 2020
HAPPY WOMEN'S DAY
House of Power
150K Registered Users
10th Anniversary of Xiaomi
Redmi 8A Dual
Super Wednesday
Window View
বাংলা নববর্ষ ১৪২৭
Android One
Indoor Game
Mobile Game
App Star
Redmi 8
Bookworm
Serie Redmi Note
MIUI Fan
Ramadan Kareem
Meetings from Home
Lefty Star
Favorite Author
Streaming Geek
Favourite Football Team
Redmi Note 8
Mail Lover
Radio
Super Thursday
Redmi Note 8 Pro
Coin
Chipset
Corona Awareness
Map
Redmi 8A
MIUI 12
First Smartphone
Phone Finder
MIUI 12
Eid Mubarak
Eid Day Photo
MIUI12
MIUI Boot Animation
Serie Redmi Note 9
200 Mil Mi Fans En México
Favorite Singer
Gadget
Favorite YouTube Channel
Design Together
Redmi Note 9S
Redmi Note 9
Travel
Redmi Note 9 Pro
30 Million Redmi Note 8 Series
Redmi Note 9 Pro Feature
Smart TV
ContributeTogether
MIBAND4
Magazzino in Italia
K2K
K2K #3
Mi Store Düsseldorf
Answer Mi #4
Redmi 9 Colors
200K Registered Users
2nd Anniversary
K2K Redmi Note 9
K2K
#YoungAtHeart
Emoji Day
design wallpaper
#TrainWithMi
K2K
Survey
Mi To You July
Theme Medal
10 Jahre Xiaomi
#SmartLivingParaTodos
#YoungAtHeart
GeekLab
Redmi Note 9S Feature
Redmi Note 9 Feature
Navigation System
New emoji
Band
Redmi Note 9
K2k mit Shou
10.000 Mi Fans
Tips Smart Living para Todos
Aniversario 10 al Infinito
Performance Mi 10
Mi 10 Cámara
10 Aniversario
K2K #YoungAtHeart
Mi Smart Band
Xiaomi 10. Yıl Madalyası
Dirgahayu ke-75 Indonesia
Black or White?
First Anniversary
Mi Gamers' Medal
10th mi fan stories
K2K #4
Mi Fans gamers
Xiaomi5G Medaillie
Favorite Bangladeshi Food
Internet Speed
Eid Mubarak 2020
Redmi 9A
Redmi Note 9 Pro Camera
Football Manager
The UI Mode
Material Expert
Redmi 9A Feature
MIUI 12 Dark Mode
Favorite Soft Drinks
10 years
From 10 to Infinity
Redmi 9C
Battery Survey
Agosto Cometas
Moderadores
Mi10 espacio
Ringtone Medal
Watt
Display Expert
Favorite Radio Station
I Love Xiaomi
SpookyMi
K2K POCO X3
Mi to You October
UK Halloween 2020
Mi Challenge 2020
Keluarga Xiaomi
The View Outside Your Window
Mi + Tu
Mi Challenge
Mi Note 10 Lite Feature
ঘড়ি
সেরা নিদর্শন
Codename Finder
Music Player
Favorite Cartoon Series
Durga Puja
NFC
WOW - Mi Challenge
Workshop POCOX3
Rally Creativo
Mi Fan Mission
Music Medal
Mi to You November medal
Mi Posada 2020
Halloween Medal
Mi Challenge Day#19
MIUI Gallery
Halloween 2020
Mi Challenge Day#28
1 milione
2020 Best Moment
El mejor momento 2020
Navidad 2020
Mi to You December Medal
Xmas
Selamat Hari Ibu
HNY 2021
UK Quiz #1
POCO X3 NFC Color
POCO M2 Color
POCO C3 Color
POCO X3 NFC feature
POCO M2 Feature
Zoomed In Challenge
2021's Wish Medal
Mi to You January 21
Mi Fan de 2021
Valentine's Day Medal
mibunny_natale1
Mi Bunny - Natale2
Mi Bunny - Natale 3
Mi Bunny - Natale 4
Mi Bunny - Natale 5
Mi Bunny - Natale 6
মহান বিজয় দিবস - ২০২০
Update to MIUI12
শীতের খাবার
Christmas Medal
শীতের পিঠা
Winter
Winter is Here
New Year 2021
Mi Lover
Happy Year of the Ox
Workshop 1 : Medal Maker by Yoga P R
Redmi Love Story Challenge
Refresh Rate Expert
Valentine's Day
Display Expert
Music Streaming 2021
Navigation Master
Phone Finder
POCO M3 Feature
POCO M3 Color
ষড়ঋতু
UI Finder

Read moreGet new

Mi Comm APP

Stay updated on Mi Products and MIUI

Copyright©2010-2020 Xiaomi.com, All Rights Reserved
Quick Reply To Top Return to the list