Computers Windows Internet

What does reboot to bootloader. Hacking Android step by step: unlock the bootloader. Adb reboot-bootloader and adb reboot recovery commands

The bootloader (Hboot) is the program that controls the kernel operating system your device so that it boots normally. And this applies not only to Android, but also to other devices with an OS, for example, a PC, laptop and even an old one. push-button telephone... In addition, it is the bootloader that gives permission to install any programs and firmware. For this reason, users are interested in factory unlocking the bootloader on an android phone.

Hboot is activated when the device is turned on, and is analogous to Bios in a computer. It prepares all the data for the kernel, loads it into memory, after which the system starts up directly. If its integrity is violated or something interferes, thanks to the bootloader, you can get into recovery mode to clear the data, or reset to factory settings. To do this, before turning on the device, hold down the power and volume down keys, and do not release them until the moment of loading (in some cases the combination of buttons may differ).

Why is the bootloader blocked

Manufacturers implement blocking for two reasons:

1. To oblige the owner to use the operating system that was developed for his device.

2. Ensuring security. Many smartphones and tablets are sold online or retail. In either case, the seller or reseller can, at their discretion, add software of an advertising or malicious nature, which should not be. For the same reason, Xiaomi began to block the bootloader of devices released after 2016, due to numerous complaints about the presence of viruses in their firmware (which were not originally there).

Benefits of an unlocked bootloader

An unlocked bootloader opens up exactly the same opportunities for the user as on a PC, namely:

  1. Flash any operating system (available for your device).
  2. Installation of individual modules, OS kernels, applications, patches.
  3. Freely migrate between stock firmwares, especially if they are based on different versions Android.
  4. Easily create backups current OS and / or applications, as well as restore them without using a PC.
  5. Use Dual-Boot and install two or more operating systems, both in internal memory and on an external SD card.
  6. The possibility of recovery is wider in case of unsuccessful firmware.

And this is not the whole list of possibilities after factory unlocking an android.

How to unlock

Each device has its own version of the bootloader, which means that the unlocking method will differ depending on the model and manufacturer. When submitting an application, the company itself can remove the lock (especially if you are an Android developer), but most often, this happens by hacking previously found vulnerabilities in the system.

Risks and consequences

Unauthorized unlocking of the bootloader, deprives you of warranty service. In addition, your device becomes less secure and vulnerable to hacker attacks. Open bootloader allows you to bypass the set passwords, get access to personal information or erase everything and install another firmware.


Output

Don't worry too much about problems with the bootloader, especially when it comes to personal information. In found or stolen devices, data is most often erased, and rarely will anyone restore something. An open bootloader is more needed by advanced users who know what to do with it, regularly flash something and experiment.

Leave your questions in the comments to the article below - we will try to answer.

Was the article useful to you?

Rate it - support the project!

Manufacturers have provided several phone operating modes... Each mode of operation will help in solving specific problems. Such an abundance of modes provides great opportunities for updating and modifying the phone software. Here we will take a quick look at each of the modes and their functions. Let's decide on ways to launch them and how to return the phone to normal mode. This article discusses five modes of the phone.

1. Normal Mode

The normal operating mode of the phone. Used for everyday life (calls, internet, games).

The phone turns on and off when you hold down the Power button for a long time.

2. Safe Mode

Safe Mode on your phone has the same purpose as Windows. Situations are possible when the smartphone is under Android can get into a stupor, and you cannot do without loading in its pure form. The same function is also useful for diagnostics in cases where the user needs to find out whether the cause of the brakes is an application, or the matter is in the device / system itself. In this mode, only the basic configuration of the system is launched, without third-party applications.

After leaving safe mode all data is returned to its place, programs start as usual, but all widgets fly off, so before entering it it is recommended to save the settings of your launcher, if such an opportunity is provided in it.

We hold down the two buttons Volume - and On. After the logo appears, release the On button. We hold the Volume down - until it is fully loaded. The inscription " Safe mode".

Press the On button until the power menu appears. After which we press for a long time on Disconnect power until the boot menu appears in Safe mode.

Output:

Just restart your phone.

3. Recovery Mode

Phone firmware update mode or software installation. Usually allows you to update the firmware within the same OS Android 4.0 or 4.1. It is also possible to install third-party software from files (zip-archive of a certain structure) located on an external SD-card or internal flash memory of the phone.

Navigation through the menu is carried out with the volume buttons. Menu selection with power button. In the factory recovery, the touch screen and touch buttons does not work.

Sign in with the phone off:

Press the buttons Volume + and the power button On. After vibration, the Power On button can be released. We are waiting Recovery startup, release the second button.

Sign in when the phone is on:

We hold the button. At the moment the screen turns off, we hold down the Volume + button until the Recovery menu appears.

Output:

By selecting the reboot system now menu item or by disconnecting the phone battery.

reboot recovery

reboot

4. Bootloader Mode

The mode of flashing partitions of the internal flash memory of the phone from the computer through the utility fastboot... This mode allows you to flash the main areas of the phone's flash memory, including updating the firmware. To work, you need installed drivers and special software ( adb and fastboot). If installed Android SDK then they can be found in the android-sdk \ platform-tools \ folder

In this mode, only the phone firmware manufacturer's logo is displayed on the phone screen.

Entrance:

On some firmware versions, the entrance to this mode possible through a combination of pressing the Volume - and On buttons, when the phone is off, it does not work on all firmware.

Output:

Exit from this mode is possible by disconnecting the battery.

reboot bootloader

reboot-bootloader

reboot

5. Firmware Mode (DFU Mode)

Device Firmware Update Mode- the mode of flashing the phone's internal flash memory (including service areas) with the manufacturer's utilities or the QPST utility.

Allows you to reflash the phone with any firmware, restore it from the " brick", change Phone IMEI, and other low-level operations with phone software.

Entrance:

To enter this mode, the phone must be turned off.

1. Press and hold the Volume + and Volume - buttons.

2. We connect the phone to the computer via a USB cable.

3. A new device will appear in the list of devices connected to the computer " Qualcomm HS-USB Diagnostics 9025", in addition, a USB disk with partitions unknown to Windows should appear in the list of computer drives.

When asked about formatting, you need to answer NO!

Output:

Exit from the mode is carried out by disconnecting the battery, or using special software (QPST utility).

Hello friends. Today, we can say, a spontaneous post happened, what it will be about, you could already guess from the title. The thing is that just today a package arrived from the USA, and I became the owner of a brand new Google LG Nexus 4. And now I have two Nexus at once - Samsung Galaxy Nexus vs LG Nexus 4 - maybe I'll even write a comparison review if you're interested, but that's not the point today.
Yes, who is interested, but I am sure that for many - the price of the issue is 12k rubles with delivery! But I'm not talking about that again ...

Yes, Pure Android 4 is beautiful on its own - convenient, fast and almost perfect. Please note that I'm talking about the android that is installed in the Nexus googlephones, and not all other phones (htc, Samsung, sony, etc.), because they are seriously revised and changed, alas, not for the better. So what could be better than an already nearly perfect firmware? Improved custom firmware, of course!

So today I turned on the phone for the first time just to make sure it worked at all. When I was convinced of this, I turned it off and started dancing with a tambourine. In hot pursuit, I'll tell you about how to unlock Bootloader on Nexus 4, install recovery and flash any firmware.

In fact, all these dances with a tambourine are not such dances and even almost not with a tambourine =) I, as an experienced user, felt confident, did not worry and did not even make any backups. As it turned out, all the procedures described below are completely identical to the procedures that I did a year ago on the Galaxy Nexus. Everything will be simple, I promise!

First you need to prepare a little and download required drivers:
Downloading the driver usb_driver.rar - useful for connecting a device in bootloader mode to our PC. And also download the adb.rar archive - it contains Fastboot and ADB files.

Unpack the Fastboot and ADB archive to the root of the C drive, you should get C: \ adb.
We also unpack the drivers to the root of the C drive, we get C: \ usb_driver.

Now into battle!

Installing Drivers and Unlocking Bootloader in LG Nexus 4

First you need to unblock Bootloader, without this nothing can be done.

There are various solutions and even programs that allow you to unlock, get root and install recovery in one click, but somehow I don't trust this approach, because the procedure is delicate. Although I still tried to use the NEXUS 4 TOOLKIT 1.3 program today, as it turned out, you can download only the basic version, and the update is available only after payment, and without the update, the choice of android 4.2.2 support is not available. In short - not our option!

Three simple steps and no show off:


It's simple, right?

Installing custom recovery on LG Nexus 4

Now we need to install recovery, without which we simply will not be able to flash firmware, kernels and any tweaks and mods.

As a recovery, I recommend TWRP Team Win Recovery Project. You can view the description and features on the XDA in the office theme for NEXUS 4, there is always current version... At the time of this writing, the most a new version it's 2.4.4.0. Here's a handy direct download link. Have you downloaded it? Excellent, let's move on.

We have a file openrecovery-twrp-2.4.4.0-mako.img. If you drop it into the c: \ adb folder and rename it to twrp.img, it will be easier in the next step.


Well, bootloader is unlocked, recovery is installed. The simplest thing left is to install new firmware... By the way, we do not need to get root, if we are going to install custom firmware, root will already be there by default.

Installing custom firmware on LG Nexus 4

For almost a year of using my previous Samsung Galaxy Nexus, I tried a whole bunch of different firmwares, often flashed, conducted all sorts of experiments. And you know, once I found the perfect firmware, the dream firmware is ParanoidAndroid. I just can't recommend anything else besides this firmware. But, one way or another - the choice is yours, the procedure for installing different firmware is identical.

This is what your Nexus 4 might look like after installing ParanoidAndroid:

Here is a video review of the same firmware, but for those who have not personally used ParanoidAndroid themselves, little will be clear:

So, we have decided on the firmware, we need to download it. Of the theme of the firmware developers, there is also a description, links and new versions. You can download the firmware itself in the mako section on goo.im, and you will also need to download Google Apps in the appropriate section on goo.im.

We downloaded the firmware and gapps, now they need to somehow be uploaded to the phone. If the phone is normally visible in the explorer, then we skip the block of text below, if it is not possible to get into the phone's memory through the conductor, then read.

Here a small snag may arise, but only if you are not reading this post - because all the snags are being solved for me, and I am definitely writing about it!

I sit and connect my phone over USB with a cable, but charging is in progress, but in the explorer, I cannot see it as a folder in order to upload our archives for firmware there. If you have the same story, then here is the solution!

I do not know why, but Windows decided to install the ADB driver when the phone was connected to the switched on phone (I mean not fastboot, namely running system android). Maybe I somehow did something wrong, but the fact is, the phone folder in the explorer is not visible. I thought that some drivers were missing, I googled for a long time, I could not find anything. I decided to use the harsh method: We go to the device manager, we see "Android device something there ADB" - just click on it right click and select Delete. We disconnect the phone and immediately connect it back - Windows must redefine the device and install the correct drivers on it. It helped me, and the necessary Nexus 4 folder appeared in the explorer!

Select the folder Nexus 4 / Inner memory/ Download and upload the archives there, in my case it's pa_mako-3.10-11MAR2013-131748.zip and pa_gapps-full-4.2-20130308.zip. In your case, these will be newer versions; it is not at all difficult to understand the markings.

When all the archives have been downloaded, disconnect the phone from the computer and turn it off. We need to get into recovery mode again, for this we hold down Volume Down + Power until fastboot turns on, where we select with the volume buttons Recovery mode and press Power.

If it suddenly happened that you did not see the main TWRP screen (it is very easy to identify it, there will be no doubt about it), but you saw an android lying on its back with a red triangle, that is, a way out, but how can it be without it!

To do this, hold down the Power button until the phone turns off. Boot into fastboot again, connect the phone via USB and re-run the script to install recovery. When the recovery is installed, do not reboot, but use the volume buttons to find the Recovery mode item and select it with the power button. Now TWRP will definitely start, which means we follow the instructions below.

We will see the main TWRP screen, click on the upper right Wipe button, and then Factory Reset - this will delete all data on the phone!

After full reset, you need to return to the previous screen and click on the top left button Install. On the screen that opens, select Download from the list of folders, and then click first on the pa_mako firmware file, then Add More Zips and immediately select the pa_gapps file and finally make Swipe to Confirm Flash. Now both the firmware and google apps Apps, about a minute of waiting and we should see Successful. It is very important to clean up all caches, for this we select the Wipe cache / dalvik button. Everything is ready - click Reboot System.

Now the system will boot, but with the ParanoidAndroid firmware. After a long download, we get to the menu of the initial settings of the phone, where you need to select a language, specify an account, etc.

Actually that's all! Good luck to you friends. If you have any questions or suggestions regarding the firmware process or ParanoidAndroid, please write in the comments.

Note: How to access the developer menu on any firmware.

Open the settings, select the "About phone" item at the very bottom, scroll the screen to the "Build Number" item, it will say JDQ39, which corresponds to android 4.2.2 version, you may have written something else, it doesn't matter. We zhamka on this line 7 times in a row. As a result, the message "You have become a developer!" Should appear. It turns out how easy it is to become a developer under androind =))) Going back to the settings menu, we see a new item "For Developers".

UPD: If suddenly the phone turned into a "brick" - what to do?

You never know what happens ... This is how today, for example, a colleague bought himself the same Nexus 4 and gave it to me so that I could install a custom firmware. No problem - I said and went to follow my own instructions written above. A strange thing happened - all data ( zip file firmware images, for example), which I uploaded to internal storage for the subsequent firmware after the reset, they left, self-destructed for some unknown reason.

In short, the phone has turned into a brick, i.e. does not turn on, but you have to do something. Therefore, the easiest way is to roll Factory Image onto the phone, i.e. factory image to make the phone look like what you saw when you first open the package. And here is the instruction:

  1. It is assumed that you already have the drivers installed and the phone connects to the computer when it is in fastboot mode. And also the bootloader is unlocked. In short, all the steps under the heading "Installing Drivers and Unlocking" are completely done.
  2. Now download the official phone image from here https://developers.google.com/android/nexus/images#occam On this moment the current version is 4.3 (JWR66V), click Link opposite and download.
  3. We downloaded the archive occam-jwr66v-factory-08d2b697.tgz, inside it there is another archive occam-jwr66v-factory-08d2b697.tar, and inside there are several files and another archive image-occam-jwr66v.zip - that's what we do needed, take and transfer image-occam-jwr66v.zip to the C: \ adb folder
  4. We open command line and write:
    cd c: \ adb press Enter;
    fastboot erase boot press Enter;
    fastboot erase cache press Enter;
    fastboot erase system press Enter;
    fastboot erase userdata press Enter;
    fastboot reboot-bootloader press Enter;
    fastboot -w update image-occam-jwr66v.zip press Enter and wait.
    After the last operation, the phone should reboot itself and turn on.
  5. Now your phone is like new :) And you can repeat what did not work. Namely, upload zip archives to the phone's memory and try to flash them again. By the way, we did not touch recovery during the recovery process, so you still have TWRP, which means we turn off the phone, press Volume Down + Power, select recovery and go!

Well, now for sure everything!

Until next time, friends. And I'm sorry I stopped writing about SEO often, I promise to fix it in the near future.

In the instructions addressed to the user of the Android device, you can find an entry stating that unlocking the bootloader entails the loss of the manufacturer's warranty obligations. The curiosity of consumers after reading this line will certainly demand information about the mysterious ritual of unlocking the no less mysterious bootloader for Android.

What is this bootloader and what is it eaten with? Bootloader for Android is an operating system loader. You can meet it on any device on which, again, any operating system is installed. Bootloader denies access directly to the operating system kernel.

For example, when two operating systems are installed on a PC, then it is this loader that will ask you which of the systems you want to start, or it will automatically enter the desired system selected by the user by default.

Without exception, all devices running the Android operating system are also equipped with a similar bootloader. By default, the bootloader on Android is locked and is focused on loading only one operating system developed by the manufacturer for this device.

These functions are very useful to users in case of software glitches on a smartphone or tablet.
Unlocking the bootloader is necessary in case of installing a third-party or as it is also called "custom" software to your gadget.

That is, by unlocking the bootloader, you will be able to install any operating system on your device, not just the one recommended by the manufacturer.

The operation of the device with such user intervention may be unstable or even disable the device. That is why, when unlocking the bootloader, the manufacturer disclaims responsibility and warranty obligations.
How to remove the lock varies depending on the model and manufacturer of the device. This is due to the fact that each smartphone and tablet has its own bootloader, specially developed by the manufacturer.

Whether it is worth unlocking and installing third-party operating systems is, of course, for each user to decide only for himself. On the one hand, this is a big risk of losing the android's performance without the possibility of recovery. On the other hand, many flaws of the standard software have been corrected in competent custom firmware.

What is a bootloader, unlocking it, and why do I need it?

Every Android phone has a bootloader that instructs the operating system kernel to boot normally. Each device has its own bootloader version. The bootloader is usually locked on Android devices as manufacturers want you to stick with Android versions specifically designed for their hardware.

If you want to install a modified version of the OS (Custom ROM), you need to unlock the bootloader. Speaking in the language of an ordinary person: unlocking the bootloader will allow you to install modified firmware, with a variety of "goodies" on your Android phone.

Let's start with the world famous HTC brand. In 90% of cases, this method works, the remaining 10% will be devoted to software problems, fakes of Chinese craftsmen, as well as models in which the visual part of the loader is missing, in general, of course, it is, but hidden from view.

First step , registration http://htcdev.com/. Download ADB drivers from our website, HTC program Sync from the official site http://www.htc.com/ua it will contain all the necessary drivers for your device. You might also need Java http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Step two , create a folder in the root of the C drive and name it Android. Unpack into this folder: adb.exe, AdbWinApi.dll, fastboot.exe. You can uninstall HTC Sync, or you can disable it in the system so that it does not interfere when you connect the device to your computer.

Step three , we transfer the phone to bootloader mode (bootloader). Option one, if the phone has a removable battery, take out the battery, insert, hold down the volume rocker (-) and power. We hold until the phone reboots into the above bootloader state. It looks like this.

Option two , for more advanced users, the phone is turned on, there is permission for the function "usb debugging is allowed", we work through the command line Start -> Run and enter the name of the program cmd.exe. A window will appear

After we enter the command CD C: \ Android, press Enter, we get the answer C: \ Android>. Then we enter the adb devices command, the answer should be:

List of devices attached HC413MW00787 device

The command is entered to check the connection with the PC, if the serial number is identified, then everything is ok, and continue on. If not, then check "usb debugging is allowed" and if the ADB drivers are installed. The following command switches the phone to the mode we need: adb reboot-bootloader press enter,


Now pay attention to the phone, it should be like in the first image.

Let's proceed to unblocking, everything happens using the console, the required teams site https://www.htcdev.com/ as well as your Email which was used during registration.

The phone is connected, in bootloader mode. We go to the site, do the following steps:


If your model is not in the list, select what is circled, otherwise we are looking for our own. For example, I always choose this item regardless, it works. After we press the green button with a continuation, we get this:


We put two "birds" and click on the Proceed to Unlock Instructions button.


This window contains instructions for preparing, it is in English, we skip it. Scroll down the page and go to the fifth step. This is followed by the continuation of the instructions. Scroll to the very bottom:

In this empty window, we will insert the information received to unlock.

To do this, go back to the console, and enter the fastboot oem get_identifier_token command, press enter

At the output we get:


The one outlined in red must be selected, copied and pasted into that empty window in the image above. Click on the Submit button. How do I copy and paste? By clicking the right mouse button, we get a menu in which we select mark, select the area we need. Press Enter. In the console to copy desired values exactly enter is used