Factory unlock code for xiaomi phone. Unlocking a Xiaomi phone via Mi account, Google account and Hard reset and others

Since Xiaomi's products are officially supplied to a limited number of countries, and sometimes not all models common on the Chinese market are supplied there, users are ready to obtain these devices in all sorts of, not always legal, ways, often trying to save money. This leads to the fact that they have to deal with fakes, unofficial operating systems, and viruses. For this reason, Xiaomi has officially announced its decision to block the Bootloader.

In addition to the above, such blocking is also due to the protection of users’ personal information in case of loss or theft of smartphones. In practice, attackers who specialize in such thefts can easily gain access to the gadget’s data, but if the bootloader is locked, this will significantly complicate their task due to the linking of the smartphone to the Mi account.

A blocked Bootloader does not affect the official Chinese update in any way, but ROOT will become inaccessible. To enable it, the user will need to unlock the bootloader. In addition, Recovery and Mi Flash updates are no longer available.

Today, to unlock device bootloaders there are official instructions. First, the user needs to obtain permission for this procedure, which is achieved by the following actions:

  • Login to the official website of the company into your personal account using the link http://en.miui.com/unlock/;
  • The inscription “Unlock your mi device” should appear on the screen in a blue field, immediately below which there is a single button “Unlock now” that you need to press;
  • After pressing the button, the user goes to the authorization page or to the MiFlashUnlock application download page, if the user has previously gained access to unlocking or has a high rank on the Gold Member forum;
  • If there is no access yet, fill in the authorization fields - all fields, including the name, are filled in English language;
  • In the request field, you can use the standard phrase: “I want to install ROM from MIUI Russia fan site”;
  • We put a tick in the box agreeing to the terms and conditions and click on the “Apply now” button.

This is a standard procedure for working at the first stage, at which it is important to follow the sequence of actions, carefully and correctly fill out all fields without exception, so that entry level not to ensure your refusal.

Give gifts

The following instructions

Next, after authorization, a page will open where the user must manually enter the identity verification code that was sent to him mobile number, indicated by him. After entering the code, the request will be officially accepted for consideration.

Verification of the sent request via MIUI and unlock, in particular, is checked within a period of two to ten days. If the application is approved, it will be notified via SMS to the same number that was originally specified. However, you can check the request processing status yourself on Mi unlock status by going to the link http://www.miui.com/unlock/apply.php.

After officially receiving permission to unlock Bootloader, the task is not solved automatically, it only allows the user to proceed to the next step, where he needs to:

  • Download the latest current MIUI firmware update on Recovery;
  • Upload the downloaded content to your smartphone and open the unlock program (Updater);
  • Click the Menu section and select the firmware file.

It is important to keep in mind that after the update, all data from the smartphone will be deleted, for this reason you should not forget about a backup. But even at this stage, the device still has an unlocked bootloader.

Final stages

After the new firmware is installed, you need to log in again on the same unlock mi device using the link that was provided at the beginning. After logging into your account, you need to download the Mi Flash Unlock application in apk format. from the official website.

Current options for downloading:

  1. Mi Flash Unlock EN miui unlock – version in English.
  2. Mi Flash Unlock RU – version in Russian.
  3. There are options for the EU, but in the Russian Federation this is not relevant.

After this, you need to turn on your smartphone, hold down the volume down and power buttons at the same time and hold until Fastboot mode turns on. Next, the device needs to be connected via USB cable to the computer, launch the unlocked application (one of the two listed above), read the terms and conditions and click on the “Accept” button.

Immediately after this, a special window will appear on the screen for manually entering data for your existing Mi account - at this stage it is important to know its ID and your password. After authorization, the presence of permission will be checked and, if there is an approving status and an inscription about connecting the device, click on the button Green colour"Unblock."

Unblocking duration is about ten seconds. After completion, you can update the smartphone firmware from the official or other website. And, what else should be remembered, within one month you can use the right to unblock only once.

Troubleshooting

When unlocking the bootloader on their device, many, due to inattention or other reasons, make mistakes as a result of which they are unable to obtain the required permission. The most common ones can be solved as follows:


The percentage of refusals to obtain permission to unlock the bootloader is not so high, but due to your own carelessness you can tinker with this procedure for a very, very long time.

It happens that your Xiaomi smartphone does not work correctly and you need to flash it, as well as add some patches or custom Recovery to the kernel. If you just purchased a smartphone, most likely it will have a locked bootloader. A bootloader or bootloader is special program, responsible for loading and launching the operating room Android systems. But this program has another task - preventing changes in the firmware itself or the system kernel.

IN different models Bootloader devices are designed differently, and the process of unlocking them can also occur different ways. Installed on Xiaomi smartphones branded shell MIUI, which is almost a different subsystem installed on top of the stock Android OS. And it doesn’t matter what kind of smartphone you have: Xiaomi Mi5, Mi 5X or Mi Max - they all have one system installed. Unlocking the Xiaomi bootloader occurs the same way on all company devices.

Why does Xiaomi block the bootloader in its devices?

The answer to this question is quite simple. The bootloader in this context acts as a kind of block at the hands of the user who wants to change something in the firmware or install additional software elements into the kernel operating system Android. Also, a locked bootloader is the key to system longevity. Therefore, the manufacturer blocks bootloaders on smartphones so that an inexperienced user does not perform “harmful” actions on his phone. Because of this, more and more people want to know how to unlock the Xiaomi bootloader quickly and for free, because the Android operating system can crash at any time, so it’s better to play it safe. The next point why the manufacturer blocks the bootloader is the requirement Google, which is the founder of the Android operating system and is developing it.

Advantages of unlocking the bootloader

Despite the fact that the bootloader is the security of the firmware and kernel of the system, sometimes it is simply necessary to unlock it. Let's understand a few benefits unlock bootloader, and what exactly does it give to the average user:

  • After unlocking, you can quickly flash your smartphone or install a recovery environment to log into recovery mode, in which you can return the gadget to a working state;
  • this is useful for testing various firmware for developers who can make their ports to other devices;
  • Unlocking insures your device in case of sudden reboots, stuck on turning on the smartphone, etc. After all, if something suddenly happens to the firmware, you can connect your phone and flash it even without the MiFlash program, because everything happens in Fastboot mode.

It is these advantages that can convince the user to unlock the bootloader of the MIUI shell. Yes, there is a risk of affecting normal Android work there is, but if you are looking for how to unlock a bootloader, you will not do anything illegal with your gadget.

Checking bootloader lock status

You can see whether the MIUI bootloader is unlocked or not in two ways: through the smartphone menu or Fastboot mode. The first method is that you go to the developer menu and there click on the “Bootloader Status” button. To activate the API mode, go to the “Settings” menu, then to the “About phone” menu and click on the “MIUI Version” item about seven times. After that, in the “Advanced Settings” the “For Developers” section will appear, in which there is a menu “Mi Unlock Status” or “Bootloader Status” and click on it. In the window that opens, you will see the message: “Bootloader locked” and will offer to link an account or “Bootloader unlocked.”

The second method is more complicated and not practical. You need to put your smartphone into Fastboot mode. To do this, turn off the device and simultaneously press the volume “-” button and the power key. You need to wait for the picture with a hare poking around in Android's stomach. Download to your PC special tool and unpack it into any folder with an English name, which is located in the root of your system drive.

https://drive.google.com/drive/folders/0B8on05W8-j-YUFJwaXNWalNSTXM

Go to this folder, hold down the “Shift” button and right-click on empty space. IN context menu you must select “Open command window” and wait for the command line to open. In it we type one by one (using the “Enter” button) the commands: fastboot devices and fastboot oem device-info. We are looking for the line Device unlocked and if there is a value next to it “True”, then the bootloader is unlocked, and if “False” then vice versa. You can exit Fastboot mode by holding the power button for about 15 seconds.

Official unlock methods

On this moment, you can only unlock the bootloader on a Xiaomi smartphone in an official way using a utility from the manufacturer called MiFlash Unlock. You can download it on the official website. First you need to submit an application (read on how to do this). Next, in developer mode, link the device to your created account Xiaomi. After this, we transfer the long-suffering gadget to “Fastboot” mode. We launch the official utility as an administrator, enter the username and password, click enter, accept the license agreement and wait for the smartphone to be searched in Fastboot mode. If your application is approved and the smartphone is in the “fast boot” state, click on the “Unblock” or “Unlock” button and wait. Please note that now, after the application is approved, you need to wait about 72 hours, after which you can unlock the device. This is a mandatory rule from Xiaomi, which has been applied since MiFlash Unlock 2.2.5. In new devices such as Xiaomi Mi 5X, Redmi 5A and Redmi Note 5A and others, the wait for unlocking costs up to 360 hours. If everything is fine, the smartphone will reboot with the bootloader unlocked.

Applying for unlocking

You should apply to unlock the bootloader on the official Xiaomi website where you downloaded the utility. You need to log in to your account and fill out your name in Chinese or English, depending on which version of the site is opened. You can use Google Translator. Next, enter your real phone number and tell us why you decided to unlock the bootloader (you can write anything, but in English or Chinese). Wait for an SMS message with a confirmation code and that’s it, the application has been submitted. Now you just have to wait for a second SMS with approval or refusal of your application. If you didn’t wait for it, then you can do this: try to unlock your smartphone using the program. If the device initializes, then the application has been approved.


Unofficial unlocking methods

There are no unofficial methods for unlocking Xiaomi phones, but the problem can be solved in other ways. For example, you can flash your smartphone using Xiaomi programs MiFlash, which does the installation new firmware even with a locked bootloader. Unfortunately, or fortunately, the Mi Unlock program is the most reliable and quick way bootloader unlocking. If you are offered to unlock the bootloader by other illegal methods, do not fall for these provocations, because the company has not yet officially recognized the possibility of doing this procedure by means other than its development tools.

Well, now we have figured out the question of how to unlock Xiaomi bootloader, but there are still some nuances that need to be taken into account at the end of this article.

Does locking the bootloader affect the operation of a smartphone?

No, locking the bootloader does not affect the day-to-day operation of your phone. It only changes some nuances in the MIUI firmware, as indicated in license agreement to the MiFlash Unlock program. Locking the bootloader is the return of that “block” that was mentioned at the beginning of the article. After this procedure, the user will not be able to install Russified firmware or a custom recovery environment. Access to system files will be denied to you, but there is a high chance of not losing your data if you take any action on the system, because it simply won’t be there. It is worth noting that if you have found some method of unofficially unlocking the bootloader, then after changing the firmware you can get a so-called boot loop, and the bootloader will be locked back, since this is not the correct approach to the procedure. The system will simply determine exactly how the bootloader was unlocked and will stop starting - that’s when problems will overtake you.

Return Xiaomi bootloader lock

If you want to protect your device from itself, you can put the bootloader lock back. To do this, we follow the steps described in the section of the article on checking the status of the bootloader via the command line. After the verification command, you need to write one more command: fastboot oem lock. We wait for the procedure to complete and check the status of the bootloader with the command: fastboot oem device-info.

There is another way, which is to flash the device to the official one. MIUI firmware. It is suitable for those for whom the method above did not work. Find all the drivers for your smartphone and download the MiFlash program. Run it with administrator rights, select the firmware, check the box at the bottom next to “clear all and lock” and start “flashing” your device. After a long reboot, you will be greeted by a clean system with a locked bootloader.

* Recommended to upload a 720*312 image as the cover image

Article Description

Hello everyone! This topic will be useful for those who want to block the bootloader. It’s no secret (and a discovery for many) that Android Pay It works with an NFC module, on stable firmware, without root and with a locked bootloader. You can check the status of the bootloader in the “For Developers” settings, it looks like this: A small digression Unfortunately, most Mi phones in the so-called “official” Russian stores come with an unlocked bootloader. Why is that? No one can give a specific answer. I can tell you from my own experience, I live in China and went to 2 official Xiaomi stores, checked the bootloader on the phones on display (Mi Mix 1/2, Mi 6, Mi Max2 and some from Note, I don’t remember exactly). And guess what? It's blocked on everyone! And to my question in what condition does it leave the factory, after calling hotline they said it was blocked. And it is obvious that in order to unlock it you need to manipulate the phone. And another small fact, my friend and I ordered phones through an online platform for friends, 3 Mi 6s and one Note 4x, and later I ordered a Mi Mix, and on all phones the bootloader was locked, I had to unlock it to install the global))) So, if you need to lock your bootloader, you have two options. One with data loss and the other without data loss (But this is not certain). I’ll tell you first about the one without data loss) 1. Lock the bootloader without data loss (on some models the data is erased, it’s not clear what it depends on) Before you start, you need to know about some points. First: this doesn't work on all phones. But for the most part latest phones works. And judging by the comments on the forum, it works for a lot of people. Secondly: it works correctly on official firmware, if they have not been changed system files(root access, recovery patch, TWRP, etc.) Otherwise, the command will not work or you will get a bootlap (perpetual loading). Thirdly: On almost all unofficial firmware the command does not work, you will get a bootlap (perpetual download). Attention: You do everything at your own peril and risk, backup is required. Let's begin! 1. Check whether the adb and fastboot drivers are installed on the PC. Usually they are located on the “C” drive in the “adb” folder. If not installed, type into Google or Yandex “how to install adb and fastboot” and follow the instructions.2. We put the phone into fastboot mode (in the off state, hold down the power and volume down buttons at the same time until you see a hare and the word fastboot) and connect it to the computer.3. Go to the folder with adb and fastboot installed (usually in the adb folder on drive C), hold down Shift and on free space in the folder, right-click and select “Open command window” or if you have Power Shell, respectively, “Open via Power Shell”4. We begin to register: fastboot devicesAfterwards it should give out the phone ID5. Next, we check the status of the bootloader with the command: fastboot oem device-info If the bootloader is unlocked, the answer will be: 6. Next we write the command to lock: fastboot oem lock And if everything is fine, we get OKAY7. We check the status of the bootloader again with the command: fastboot oem device-info If everything went correctly it will be false on all counts: Reboot into the system with the command: fastboot reboot That's it, ready! 2. We block the bootloader with data loss. This method erases all data from the phone since this is a normal flashing with the choice of the bootloader blocking function, so before performing it, check that everything is synchronized (contacts, calendar, notes, etc.; applications are backed up and transferred to the computer ; photos, music, important documents on the computer).1. Download and install the Mi Flash2 program. Download your firmware from the official website (the firmware must be for fastboot) and throw it in new folder to drive "C" (the folder name should not have Russian letters and symbols)3. Enter your phone number in fastboot mode(it says how at the top) and connect the phone to the computer.4. Open the program, press select or open (depending on the version of the program) and select the folder in which the firmware files are located, this is very important, because as I remember the firmware is in a folder that is in another folder.5. Press refresh, information about the phone6 ​​should be displayed. The most important step that cannot be missed, otherwise you did everything in vain;) select “clean all and lock” at the bottom of the program7. Press flash and wait for the phone to boot. That's all. Next you will have the first setup and restoration from backups. That's all, good luck everyone! Leave your questions in the comments!

MI account is distinctive feature produced by Xiaomi, and in Lately is becoming increasingly popular. , as a rule, takes no more than a couple of minutes, the same can be said about deleting an account. You don’t want to use this account anymore, but don’t know how to remove MI account from your Xiaomi phone? Let's try to figure it out.

Below, I will divide the article into 2 blocks, depending on your situation, choose the one you need.

If you have access to your account

In this case, there are two standard type: unlink from account or complete removal. These methods are fundamentally different in structure:

  1. The first method unlinks the data: phone number, address Email. That is, the account no longer belongs to you, but is located on the Internet. This procedure is quite simple and most common. You will need to know the password.
  2. The second method completely deletes the account, but does not immediately unlink the number, which is why sometimes crashes occur and may require a password for a MI account that no longer exists. Solving this problem will not be easy without the help of Xiaomi support, so it is strongly recommended to choose complete removal as a last resort.

Do not forget that an unlinked, completely deleted account and MI Cloud cannot be restored!

Simple deletion of Mi account (unlinking)

Before starting the process, write down the IP address (your unique ID) and password.

  1. Go to “Settings”, look for the “MI account” subsection.
  2. We open this window and at the bottom of the page we see an oblong red “Delete” button.
  3. We click on it, enter the password and after a minute (if no problems occur) we receive a notification that the account has been successfully deleted.

The developers made a small mistake in the names, because the account was not deleted, but only disconnected from the smartphone. If this is enough for you, the process ends at this point.

Complete account and Mi Cloud deletion

To perform the second method, you must know your password and login; if you don’t remember something, then immediately restore all the data, and then continue from this point.

  1. Open the official Xiaomi website in the browser.
  2. We look for the section “Login to MI account”, log in.
  3. After successful authorization, look below for the “Delete” item (on an orange background).
  4. After this, we are transferred to a screen where we need to carefully enter the ID and PASSWORD.
  5. If everything is entered correctly, a page with English text opens, which contains a list of materials that will be lost forever if deleted permanently.
  6. In the last line where our agreement is requested, put a checkmark, then click “Delete account».
  7. That's it, the operation is completed.

In some cases, you need to wait two or three days for the phone number to be completely unlinked. During this period, it may constantly require a password. The lag usually goes away on its own, but sometimes specialist help is required.Mi FAQ

2 ways to delete Mi account from Xiaomi phone if there is no access

Here, too, there are two methods to choose from: using the “Recovery” mode or flashing the device. We note that both are undesirable for the device and can cause a number of problems with the operation of the smartphone if some mistake is made.

Are you new to technology and not sure if you'll do everything right? For safety, it is better to contact service center, where specialists will carry out the necessary procedures.

Want to try it yourself? Then use the instructions below.

Resetting the device via Recovery

  1. Be sure to do this before starting the procedure, otherwise the data will be irretrievably lost.
  2. Turn off the phone and use the power and volume up buttons to enter recovery mode.
  3. We make the final “Wipe”.

There is no guarantee that after this the device will not ask for a password again, but it’s worth a try.

Flashing the phone

It is carried out using special utilities and drivers. If the device has a processor Snapdragon, the following programs are suitable: Miflash, Fastboot. For CPU MTK Flashtool is a good option. On new firmware versions, the operation may fail, so it is recommended to use older ones. But even in this case, no one gives a 100% guarantee that the account will be completely deleted. Without an Internet connection, most likely, you will not be asked for a password, but online the chances are 50/50.

Please pay attention! If, after the above options, your phone starts to experience crashes, incorrect operation, frequent freezes and forced reboots, you need to contact either a service center or write directly to Xiaomi support. Their email addresses and phone numbers tend to change, so new up-to-date information can be found on the company's official website.

Video instruction

Answers to popular questions

Can an MI account be deleted on its own if it is not used for a long time?

No, It is Immpossible. Even if you don't visit there for several years, the materials will still remain available for viewing.

I don’t remember the password for my account, and the flashing and recovery methods don’t help. What to do?

We offer you two solutions: try to restore access, or contact Xiaomi officials with your problem.

Recovery can negatively affect the device?

Yes, such a possibility exists, although it is small.

Now you know how to completely unlink your phone from your Mi account, and this process does not include complex nuances and special problems. It is similar, for example, to deleting a page in social network. Nothing new or unusual. You just need to take the procedure carefully and responsibly.

Egor Borisov

I am the editor-in-chief and administrator of the website. I started getting acquainted with Xiaomi with the Mi 5 model. At the moment, there are more than 30 types of different gadgets from this brand. I have experience in setting up and repairing many models, with which I personally helped our users. Find out about the composition of our project on the page.

Some owners Xiaomi smartphones Sometimes they face the problem of a forgotten or lost password for the mi account entered on their device. There are a lot of different reasons why this happens, we will not consider them now, this is not the essence of our question. You can reset the activation lock on Xiaomi phones by contacting support, going through certain verification steps, and exchanging letters with the administration. All this ultimately leads to a positive result, as a rule, but it takes a very long time, during which it is not possible to use the device.

What to do if you need the device here and now? Nowadays, we are becoming more and more dependent on our gadgets, unfortunately. It is in this situation that the following article will help us with instructions on how to activate Xiaomi by bypassing your account or how to use the device while your request is being considered by the support service.

This article describes the process of bypassing activation on a Redmi Note 3 Pro device with MIUI version 8, most likely suitable for other Xiaomi devices with a similar version.

  1. And so, when turned on, we are greeted by the inscription miui8. Click on the arrow in the circle and proceed to activation.
  2. On the second screen, select English - this is important.

  3. Next, you can select any country

  4. Next, a window opens asking you to familiarize yourself with the security policy. At this stage we need to have an Internet connection. You can do this by simply inserting an active SIM card with the Internet, or you can go a little further to connect to WiFi networks, connect to it and return again to this window. Why, you will understand for yourself.

  5. Now select the Privacy Policy item and get into the next pop-up window.

  6. Next, select a small piece of text anywhere. An additional menu appears. Select 3 vertical points on the right.

  7. In the following menu items, select Web Search.

  8. A pop-up window appears asking you to select a program to search for. Select Google App.

  9. The Google application opens, in the search bar of which we type the word Settings in English. After which the familiar Settings icon appears. Click on it and get to the smartphone settings menu.

  10. At the very bottom we find the About Phone item and go into it.

  11. Opposite the Miui version item, tap several times (about 5 times) on the inscription with the version of our MIUI (in our case it is MIUI Global 8.5 | Stable 8.5.7.0.) until a notification appears that we have become Developers.

  12. We go back to the main settings menu, go to the Additional Settings item.

  13. Next is the Developer options item and... There’s a small bummer, the developer options are not available. But it's okay, let's move on.

  14. We return again to the main window and select the Second Space item. Here we create a second space inside the smartphone. Click the Turn on second space button.

  15. A second space is created and a full desktop is loaded. In principle, we could stop here, since in this form we can already use a smartphone and everything we need is available to us. But only until the first reboot, after which the process will have to be repeated again. It's not entirely convenient. We want everything to be beautiful.

  16. To do this, in the second space, go to Settings and, just like before, in the About Phone item, enable the developer menu.
  17. We go to Additional Settings, then to Developer Options and see that the developer menu items are available to us.

  18. Turn on the switch next to the USB Debugging menu item and press the Ok button in the pop-up request window.

  19. Unfortunately, here we will not be able to use debugging, since in modern Android we need to go through authorization of the devices from which it is allowed to be carried out. Let's move on.
  20. We return to the home screen of our second space. We insert the USB cable into the smartphone and connect it to the computer. And click the Switch icon to return to the main space.

  21. At this stage, if your computer has programs that work with Android, such as: Hi Suite for Huawei, or Mi PC Suite for Xiaomi or Mobogenie (I do not recommend using it, only in extreme cases), then the following pop-up window will appear on the smartphone screen with a request for permission to debug via USB from our connected computer. Click on the Ok button.

  22. If there are no programs listed above, first download the software called Minimal Adb and Fastboot, install it and run it. The normal command line interface will appear. Now, when moving to the first space in the previous stage, we type adb command devices and press enter. If everything was done correctly and all drivers are installed on the computer, a window should appear asking for USB debugging.
  23. Now the most important thing. Enter in command line(it is better to use the same Minimal Adb and Fastboot) the following command -
    adb shell pm uninstall -k --user 0 com.xiaomi.finddevice
    and delete the find my phone application, which launches upon activation.

Now, after rebooting the device, we can bypass the MI account password request and go through the entire activation process. You can also use the Internet and the device will not be blocked. The only negative is that all services are from Xiaomi such as mi cloud, etc. will become unavailable.

But there is a second way to bypass mi account activation and install custom firmware, which we will describe in the second part of the article.