What does unlocking the bootloader do. Official bootloader unlock on Xiaomi phones

This material will be useful to all owners of Android smartphones from HTC. Unlock Bootloader HTC is necessary in order to get Root rights.

A warning!!!

Method #1 of 3 (official)

Required to Unlock Bootloader HTC

How to Unlock Bootloader HTC

In order to make it clear what and why you are doing, briefly in actions:

  • Register on the site
  • Getting the unlock file
  • Unlock Bootloader

Now let's move on to unlocking the HTC bootloader.

Registration on the HTC website

1. Go to a special developer site - HTC DEV;
2. Register on this site;
3. Receive an email from HTCdev confirming that you have registered, follow the link to activate your account;
4. Registration is finished and now enter your created Username and password;

5. Go to the HTC Dev Bootloader website page;
6. Select the drop-down menu in the right corner:

  • Your smartphone model;
  • All Other Supported Models(if your model is not available).

After that, click Begin to Unlock Bootloader;

7. Confirm the firmness of your intention by selecting "YES"; 8. Next, your attention will be given instructions in English on how to unlock HTC smartphones, you can read it;

We get a personal Identifier Token of your HTC in adb

9. Turn off the HTC smartphone and remove the battery and reinsert (if possible), or just turn it off; 10. Then hold down (do not press and release, but hold down) the Volume down buttons and the On / Off button; 11. You should get into a special menu, release the buttons;

12. After that, use the volume keys to move to the Bootloader item and select the Bootloader menu item with the On / Off button; 13. Now connect your HTC smartphone to the PC and wait for the driver to install if they are not installed; 14. Next, you have several options on how to get the necessary data (code) to unlock HTC:

a) If you chose a proprietary utility adb run:

Run ADB RUN and go to the menu Manual -> ADB
b) If you chose installed ADB installer:

manual entry

In the start menu, find the command line program - Windows Command Handler. Run command line: Enter the following commands at the command prompt:

fastboot oem get_identifier_token

and press the "Enter" button;

16. Copy the list received after entering the command:

Sending Identifier Token in HTC form

17. Paste this code into the HTC web page:

18. A file will be sent to the mail that was specified during registration Unlock.code.bin, which is necessary move to folderC:/adb/progbin if ADB RUN or ADB (c:/adb);

Unlock Bootloader HTC

20. Pick up a smartphone and press the button Volumes and button ON OFF select item Yes Unlock;

ATTENTION!

In the latest HTC models, this procedure does not need to be done, since it is no longer there, so if you do not see the menu below, your smartphone may already be from new shipments!

Info 1: In rare cases, it is not possible to switch to the YES position, the problem cannot be solved, all questions to HTC!

Info 2 (information from the user): If it is not possible to select "Yes" in the last step (I had a problem with 802w), then it helps to insert the USB cable connected to the PC, then pull it out and make one click Volume down. Works only on the first press after disconnecting the cord. Then it always starts to reset to “No” in a circle.

21. Move to the Yes position and press the ON / OFF button
22. The smartphone will reboot;

23. Unlock completed, you can get Root rights!

HTCdev errors

160 Unlock failed, please try again.

173 - At the moment, technical work is being carried out on the HTC website, please try again later (next day).

Block Bootloader HTC

To do this, it is best to use the ADB RUN program.

Option 1


Option 2

  1. Put your smartphone into Bootloader mode;
  2. Go to menu Manual Command and Unlock Bootloader;
  3. Go to menu adb;
  4. Write the following fastboot command: fastboot oem lock
  5. Restart your HTC smartphone.

Method number 2 NEW of 3 (simplification of the official)

This method is a simplification of the first method, more precisely, automation of the first, you do not need to enter anything manually, nor any commands, you need the ADB RUN program!

First, you still need to register on the HTC DEV website and get an Unlock file (described in detail in the first method).

2. Connect your HTC smartphone to your computer;

3. Download the ADB RUN program and install it and run it;

4. In the Adb RUN program, go to the item;

Manual Command and Unlock Bootloader -> HTC Menu ->Unlock Bootloader

5. Select Go to Unlcok Bootloader HTC Site - after which the HTC website will open, go through registration there, select your model;

registration

Follow the steps from Method #1:

  • Necessary, points 1-3;
  • Registration, points 1-5.

[hide]

6. Select the item in Adb Run - Make Personal HTC Identifier_Token, after which you will have a code that you need to copy:

7. Paste this code into the HTC webpage and click SUBMINT:

9. Take the received from your mail Unlock_code.bin;

10. Select an item Firmware Unlock_code.bin

11. A prompt will appear Copy file Unlock_code.bin in the opened folder- after a few seconds, a window will open in which you need to move the file Unlock_code.bin and then close this window yourself and press the Enter button;

if something doesn't work

[hide]

12. A prompt will appear Flash Unlock_code.bin- after which the firmware of the file will begin Unlock_code.bin to unlock bootloader HTC;

13. After a few seconds, the smartphone will reboot, your HTC is unlocked!

Special attention!

In some HTC devices, you need to manually confirm the unlock request (some smartphones have it, some do not). Do not be too lazy to look and press the UNLOCK button!

Possible errors when unlocking Bootloader HTC

160 - Unlock failed, please try again

173 - At the moment, technical work is underway on the HTC website, please try again later (next day)

Method #3 of 3 (not official)

The easiest, but not the fact that it will work 100%! But still, if there is an opportunity, why not try it?

In order to unlock the htc bootloader, you must:


As a rule, Android users who consider themselves experienced often perform the unlocking of the system bootloader on their own. They do this in order to accomplish.

It is known that Google developers have made their platform not only open, but also very logical, it is because of this reason that the company ships its main product along with blocked bootloaders. Since changes in such processes can create a certain threat to the security of the platform.

Of course, taking advantage of the power user benefits opens up many opportunities, but owners should be aware of the expected risks, so they should make any decision to change, understanding and following the Android principles.

The manufacturer of an Android device locks the bootloader not to have sole control over the OS, but to guarantee the safety of the user. For example, Google smartphones in the Nexus series are positioned as a development for tech-savvy users, but they are also delivered by the bootloader in a locked form. All these devices get the operating system that is installed on them at the moment, so the owner cannot import a custom product, the bootloader will not work with "foreign" firmware.

Are there options to unlock the bootloader? Nexus 4 and Nexus 7 users have an official way to unlock these devices. Although there is one inconvenience with this, while unlocking, Android does not leave any old data on the device.

You will need to activate the function in the settings, then download "Fastboot" and unpack the file, load the Android smartphone in the desired mode. Then you will need to connect the smartphone to the PC and simultaneously press the “SHIFT” button and the right mouse button, then you will need to select “open command window here” from the menu, activate the two options “fastboot devices”, as well as “fastboot oem unlock”. After that, the lock icon should show that the bootloader is already unlocked. Recall that each Android device model has its own .

After unlocking Android, the main problem will appear - the PIN code and password will not protect access to the Android device, since unlocking the bootloader will make the device vulnerable, it will be easy to bypass the password request process. So, if the device is stolen, then the unlocked bootloader will allow you to reboot it and download other firmware to restore the user environment. By restoring using the command, a third-party user will be able to quickly access data on a mobile device without using passwords.

Android developers assure that you should not worry about possible problems with the bootloader, in their opinion, only a few users are mainly involved in unlocking the bootloader, but only experienced ones and they do it for their own purposes. Not all attackers can use this method of hacking. When devices are stolen, they simply erase all data. It is important to remember that the developer has a good reason for blocking the bootloader - the protection of personal, corporate and government data.

Before you start hacking Android, you need to understand how it works in general, and only then you can proceed to unlock the system bootloader. So, let's try to figure it out.

What happens when you turn on and start Android?

What Happens When Android Starts

Before us is a turned off smartphone running Android. Let's see what happens if you turn it on.

First, the BIOS of the mobile phone will start. VIOS (Basic Input/Output System) translated from English means "Basic input / output system". It is constantly auto-saved and ensures that the inputs and outputs work. In particular, this system also runs the bootloader.

As the name suggests, the bootloader loads other parts of the operating system, such as the kernel. The kernel of the operating system is the main part of it. In fact, this is the lower level of the Android system, which is responsible for the course of basic processes and data organization.

Then the main operating system called "ROM / ROM" is launched. ROM stands for "Read Only Memory", or "Read Only Memory", used to store the entire array of immutable data. As a normal user, you cannot change anything in it.

In parallel, the bootloader launches not only the kernel, but also Recovery, or the recovery system.
If the Android system suddenly becomes damaged, you can download Recovery and restore the OS from scratch or from the moment you saved it. Also in the Recovery system, you can (and should) create backups.

In turn, the bootloader can be in three different states: "Locked", "Open" or "Encrypted". If the bootloader is open, deep changes can be made to the system, for example, you can install your own operating system, also called "custom ROM", instead of the standard, that is, "stock ROM". But other things, such as changing Recovery or getting root rights to a smartphone, can only be done using an open bootloader.

If the bootloader is encrypted, only the most urgent system updates from the manufacturer can be installed. The same applies to a locked bootloader, but unlike an encrypted one, it can be unlocked.

How to unlock bootloader


ADB & Fastboot Installer

Most Android smartphones have a so-called fastboot mode. This is a kind of "advanced bootloader". With this mode, the normal bootloader can be unlocked. The basic tool for this is the "Android Debug Bridge", or ADB. It is aimed primarily at Android application developers, but also provides many opportunities for ordinary users.

First you need drivers for your smartphone. They can be easily installed automatically from Windows 7 by simply connecting your smartphone to a PC.
You also need ADB and Fastboot drivers. To do this, download the installer from the Internet and run the downloaded file in administrator mode. Be sure to install drivers for the entire system. The installer will ask you if you really want to do this.

After you have completed these steps, you need to connect your device to PC in fastboot mode. Many smartphones have a special key combination for this. Alternatively, however, you can also connect your enabled smartphone to your PC and type "adb reboot bootloader" at the command prompt. However, you must first enable "USB Debugging" in your smartphone's settings. If necessary, you must also enable the "Allow OEM Unlock" feature.

Now you can easily unlock the bootloader with the "fastboot flashing unlock" command. Then boot into fastboot mode again and type "fastboot flashing unlock_critical" to permanently unlock the bootloader. In this way, you can minimize the risk that your smartphone will turn into a "brick" when installing a new firmware.

Alternatively, on some smartphones, unlocking can be done using the "fastboot oem unlock" command.

However, there are exceptions. For example, Samsung smartphones do not have a real fastboot mode. Instead, there is a download mode. To unlock the bootloader, you must use the Odin program, which can install files that can do this. It is not necessary to root or install custom ROM or Recovery on Samsung devices.

Another exception is smartphones from Sony. Before hacking a smartphone, you will first have to register the device on the developer's page by entering IMEI and your e-mail in order to receive a special unlock code.

Unlocking the Bootloader on an Android device is the first step to rooting and flashing the ROM. And, contrary to popular belief, it is actually supported by many phones. What do you need to do to officially unlock the bootloader on your phone?

Not every phone will allow you to do this.

All phones in the world are divided into two types: those that allow you to unlock the bootloader, and those that do not.

Whether or not you can unlock the bootloader depends on the phone manufacturer, model, and even carrier. All Nexus phones are unlockable from birth, and on many Motorola and HTC phones you can unlock the bootloader using a method similar to the Nexus.

However, there are phones, as well as some operators, that do not allow you to officially unlock the bootloader, which means you will have to wait until the developers check the security vulnerability. If you have such a phone, this guide, alas, will not help you.

The easiest way to find out which of these categories your phone falls into is to find information about it on XDA Developers. If you have an HTC or Motorola, you can also look into unlocking it on the HTC or Motorola website. If it does not support unlocking, you will have to use unofficial unlocking or rooting methods - these can usually be found on the XDA Developers forums.

If your phone supports more official unlock paths, read on.

Step 0: Back up everything of value

Before we get started, it's important to know that this process will erase all data. So if you have a photo or some other valuable files for you, save them to your computer. Also, if you want to save application settings, use the settings export functions to save them in backup files, and transfer these files to your computer too.

Here's another tip from me: if I'm sure I'll root the phone, I'll unlock the bootloader as soon as possible after I buy it. Then you don't have to spend time on settings only to erase everything in a few days and set it up again. So if you're a fan of digging deep into Android settings and intend to root your phone, it's best to unlock it right away before fiddling with the settings.

When you have made all the necessary backups, you can continue

Step 1: installAndroid SDK and phone drivers

You will need two things: Android Debug Bridge, a command-line tool for your computer that allows you to link your computer to your phone, and USB drivers for your phone. Even if you have installed them before, install the latest versions.

  • Open the Android SDK download page and scroll down to the “SDK Tools Only” section. Download the ZIP archive for your platform and extract it to wherever you wish to save the ADB files.
  • Launch SDK Manager and deselect everything except "Android SDK Platform-tools". If you have a Nexus phone, you can also check "Google USB Driver" to download drivers from Google.
  • After the installation is complete, close the SDK Manager.
  • Install the USB drivers for your phone. They can be found on the website of the phone manufacturer (for example, Motorola or HTC). If you have a Nexus, you can install the Google drivers you downloaded in step 2.
  • If the computer says it needs a restart, restart it.

Turn on your phone and connect it to your computer with a USB cable. Open the Platform-tools folder in the Android SDK folder and hold down Shift and right-click on an empty space. Select "Open Command Window" and enter the following command:

If the serial number is shown, your device is recognized and you can proceed with the procedure. If not, make sure you follow the above steps exactly.

Step 2: Enable debuggingUSB

Next, you need to enable some features on your phone. Open the app drawer, tap settings and then "About phone". Scroll down and tap "Build Number" seven times. You will see a message saying that you have become a developer.

Return to the main settings page, and you will see a new item - "For Developers". Open it and activate "OEM Unlock" if it's there (if it's not there, it's okay - it's only needed on some phones).

After that, connect your phone to your computer. A pop-up window should appear on the phone "Allow USB debugging?". Check "Always allow on this PC" and click OK.

Step 3: get the unlock key (for phones exceptNexus)

If you have a Nexus, you can skip this step. Owners of other devices may still need to do some more work.

Go to your phone manufacturer's bootloader unlock page, select your device (if necessary) and log in or create an account.

The next steps are somewhat different depending on which phone you have, but the manufacturer's website should have instructions on what to do next. And you need to do, in general, the following: First, turn off the phone and turn it on in Fastboot mode. On different phones, this is done a little differently, but on most modern devices, simply hold down the power and volume down buttons for 10 seconds. Release the buttons and the phone will boot into Fastboot mode (HTC owners need to first select "Fastboot" with the volume down button and press the power button to confirm the selection). You will probably find more information on this process by searching Google, which is what it is recommended to do before proceeding.

Connect your phone to your computer with a USB cable. The phone will show that the device is connected. On your computer, open the Platform-tools folder in the Android SDK folder and, while holding Shift, right-click on an empty space. Select "Open command window" and use the command window that opens to get the unlock key according to your phone manufacturer's instructions (for example, for Motorola phones, this is fastboot oem get_unlock_data, for HTC, fastboot oem get_identifier_token).

The command window will return the token as a very long string of characters. Select it, copy and paste it into the appropriate box on the manufacturer's website (no spaces, this is important!) and submit your application. If your device can be unlocked, you will receive an email with a key or file that you will use in the next step.

If your device cannot be unlocked, you will receive a message to that effect. If you want to get root access or flash a ROM, use unofficial methods - you can find them on resources like XDA Developers.

Step 4: unlock the phone

Now everything is ready to unlock. If the phone is still in Fastboot mode, run the command below. If not, turn off your phone and hold down the power and volume down buttons for 10 seconds. Release and the phone will boot into Fastboot mode (HTC owners need to first select "Fastboot" with the volume down button and press the power button to confirm the selection). On your computer, open the Platform-tools folder in the Android SDK folder and, while holding Shift, right-click on an empty space. Select "Open Command Window".

To unlock the device, you need to enter one simple command. For most Nexus, the command will be:

fastboot oem unlock

If you have a newer Nexus, such as a 5X or 6P, the command will be slightly different:

fastboot flashing unlock

If you don't have a Nexus, your device manufacturer will tell you which command to enter. For example, for Motorola devices, you need to enter fastboot oem unlock UNIQUE_KEY using the unique key from the email you received. For HTC devices, enter fastboot oem unlocktoken Unlock_code.bin using the Unlock_code.bin file you received from HTC.

After running the command, the phone may ask if you really want to unlock. Confirm with the volume button.

When finished, use the on-screen menu to reboot your phone (or run the fastboot reboot command from your computer). If everything is done correctly, at the beginning of the download you will see a message saying that the bootloader is unlocked, and Android should boot in a few seconds. It's important to let Android boot before doing anything else, like flashing a custom recovery.

Congratulations, you have unlocked your phone! You won't see much difference at first glance, but unlocking the bootloader gives you root access and custom recovery flashing.

If you need to get root rights on a mobile gadget running Android (in the case when special utilities were not used for this), install your own firmware or third-party recovery, you need to unlock Bootloader. To do this, you can use official unlocking tools, but not third-party applications.

You can unlock Bootloader on most smartphones and tablets from various manufacturers. It may not work only on Chinese devices that
tied to the use of a single mobile operator.

It is worth noting that when you unlock the bootloader on the Android OS, all data from the gadget is eliminated. Therefore, if there is no synchronization with the “cloud” on the device or the data has not been transferred to the PC, it is recommended to do this before unlocking. In addition, there is an unlocking process that will not work correctly or fail, there is a possibility that the mobile gadget can no longer turn on. All this is the responsibility of the user.

In addition, there may be a possibility of voiding the warranty. It depends on the manufacturer. You also need to charge your smartphone before starting work. This is one of the important points.

Download Android SDK and USB driver to unlock Bootloader

First of all, you need to download the Android SDK from the official resource of the manufacturer. You need to visit http://developer.android.com/sdk/index.html and scroll to the Other download options section. Here you need to find the SDK Tools Only tab, from where you can download the required option.

When using Windows, you can download a ZIP archive, which can be unpacked to the desired directory on the PC disk. In addition, there is an installation wizard for Windows. In the Android SDK directory, you need to activate the SDK Manager. If you can't activate it and the window just appears and disappears, then you need to install Java from the developer's resource.

Once launched, you need to select the Android SDK Platform-tools, everything else is not required. If you are using Nexus, then you should highlight the Google USB driver, which is located at the bottom of the list. Then you need to click on the Install Packages button, and in a new window you should accept the license agreement, which will start downloading and installing the components. After the end of the process, you should exit the Android SDK Manager.

In addition, you need to download the USB driver for your specific mobile device model. In the case of Nexus, the download is done using the SDK Manager. When using Huawei, you need to download the HiSuite program, which includes this driver. HTC requires the HTC Sync Manager program, which includes a USB driver.

In the case of the Sony Xperia, to download the “firewood”, you need to go to the official resource of the smartphone manufacturer. For LG devices, you need to install the LG PC Suite application. For other models of mobile gadgets, you should look for a way to get drivers on the manufacturer's resources.

Enable USB Debugging

After that, you need to activate USB debugging on Android. To do this, you need to carry out several manipulations. First you need to go to the settings and find the item "About phone" in them. Then you need to make several clicks on the "Build Number" until a notification is displayed that the user has become a developer.

Next, you need to return to the main settings page and go to the "For Developers" section. Then you need to open the "Debugging" section and activate "USB Debugging". In addition, it is necessary to activate the "OEM Unlock" item in the manufacturer's parameters, if any.

Obtaining a key to unlock Bootloader

In most smartphones, except Nexus, in order to unlock the Bootloader, you need to get a code for it. To do this, use the official resources of the developer.

On these sites you can find a description of the unlocking process. In addition, there you can get an unlock code by gadget ID. It will come in handy in the future. To get a Device ID for Sony Xperia smartphones, you need to use IMEI on the official resource.

For Huawei mobile devices, the code can be found after registration and entering the necessary data on the official resource. In this case, you may need to enter the Product ID, which will be available after entering the code using the smartphone keypad code.

For HTC and LG smartphones, the procedure for finding out the key is performed differently. To find out the unlock key, you need to specify the Device ID. The first step is to turn off your mobile device. After that, you need to hold down the power off and volume down buttons until the fastboot mode appears on the screen. On NTS smartphones, to select fastboot, you need to use the volume control and the power key.

Then you need to connect your smartphone to the PC. Next, you need to go to the Android SDK directory and select Platform-tools. After that, you need to hold down Shift and right-click and select "Launch command window".

After that, you need to enter the command:
On LG smartphones - fastboot oem device-id
On NTS smartphones - fastboot oem get_identifier_token and press Enter.

A digital key will appear on the screen, which is placed on several fields. This code is the Device ID, which must be registered on the manufacturer's resource in order to get the Bootloader opening key. In the case of LG, only a single unlock file is displayed.

Unlock Bootloader

If the fastboot mode is open, then you can continue to unlock the bootloader. If not, then you need to perform the manipulations described in the section above. After the fastboot screen appears, you need to perform several manipulations, which are different for each smartphone model.

If using Nexus 5x and 6p, you need to enter fastboot flashing unlock. For other Nexus models, fastboot oem unlock is required. Owners of NTS smartphones need to register fastboot oem unlock unlock_key unlock_code.bin. In this case, unlock_code.bin is a file received by mail. If LG mobile devices are used, then you need to enter fastboot flash unlock unlock.bin, where the latter is the sent file.

In Sony Xperia, you can see the command to open Bootloader on the manufacturer's resource, after choosing a model. In addition, to execute the command on the smartphone, you will need to confirm the unlocking of Bootloader. You must press "Yes" using the volume control and the power key.

After executing the command and waiting a bit (this time is necessary to delete files and write new ones, which will be displayed on the smartphone screen), the bootloader will be unlocked. Then, on the fastboot screen, using the volume and power buttons, you need to specify the item to restart and turn on the mobile gadget. This time the launch will take quite a long time. This may take up to 15 minutes, so be patient.

That's all you need to know about unlocking the Android bootloader on different models of mobile devices.