Everything You Should Know About Bootloader

0 15

The bootloader or HBoot is your gateway to the world of rooting, modding & flashing. It is the first point of interaction between your phone’s hardware and software. But does everyone know what it is and what it does? We guess not.

Some people want it locked, some want it unlocked, and there has been a lot of noise about bootloaders in the past. So, grab your brains; it’s time for some explanation. Here’s everything you will need to know about your Android bootloader.

What is a Bootloader

The bootloader (or HBoot) is a set of codes that checks the integrity of a system as it starts. Think of the bootloader as a simple lock on your door, that makes sure that unauthorized people don’t enter your house, keeping stuff inside your home safe, and you can unlock it with only the key provided with it.

When a device starts, the bootloader checks the file system and partitions to make sure if they’re healthy, and then it runs the OS kernel, which then launches the OS. This process is called a boot (OS booting). Once the OS starts booting, the job of the bootloader is over, until the device reboots/resets/restarts.

Bootloader Origin and History

Bootloaders originated as a replacement to the traditional 4-pin, 6-pin, 8-pin, or 12-pin SPI-like interface ports that were used to write programs on phone memories. Remember the old Nokia and Blackberry phones that had a different interface port under the batteries? This is the place where the service center guys would connect a special thick & fat cable with many pins (not precisely many, but you get it) whenever they needed to ‘flash’ the phone with a fresh OS.

This is pure nostalgia (only 90’s kids will remember), and those ports were why bootloaders came into existence. Using dedicated ports meant complications and requirement of extra equipment to, say, do simple things like upgrading the OS or flashing it fresh. Almost no average phone user could have access to those types of equipment and knowledge, and above all, it had to be done manually.

As a solution, bootloaders were introduced, which could allow the phone itself to write to its system memory without any external pieces of equipment or much manual work. These modern smartphones have firmware a lot more complicated than, say, the older Symbian phones, which means, bootloaders make it a lot easier for both the manufacturers and end-users to send/receive system updates and modifications.

Also, if/when the user needs to modify the bootloader, that can be done with just one interface port (that is, the USB port), since bootloaders are just lines of codes, and not dedicated hardware parts.

Bootloader Status

When manufacturers ship phones with their flavor of Android, they decide to send the phones with the bootloader locked. If you already know what a locked bootloader is, you can jump to the next paragraph, where we’ve explained why manufacturers want bootloaders on their phones to be secured from the factory.

For the rest of you, a locked bootloader means that the bootloader will only let the packages signed (digitally verified) from the respective manufacturer to make changes to the system partitions. For example, wiping the system or installing a system update.

In contrast, an unlocked bootloader can let the user modify system partitions with third-party software packages and codes, for example, custom recoveries and custom de-bloating scripts.

Why Manufacturers Lock the Bootloader

Manufacturers do this so that they can maintain the security of the OS and the phone without any problems. Take, for example, a phone with an unlocked bootloader that can install any third-party recovery, which can install unverified software straight into the system partition.

Simply put, they lock the bootloaders to prevent the unauthorized installation of custom recoveries and ROMs. This helps them take control of the device software and gather usage data for R&D and advertising. Many manufacturers allow users to unlock the bootloader if they wish to, and many don’t.

Since the bootloader is the first point of interaction with the device, it needs to be altered to be able to flash recoveries and stuff. Therefore, a locked bootloader means no aftermarket software development.

Advantages and Disadvantages

By now, you know what an unlocked bootloader means and what all it can let you do. Everything it lets you do are the pros. From making you install any custom recovery of your choice (which further allows you to install custom ROMs and other mods) to enabling you hard-reset the phone, an unlocked bootloader has several benefits.

It can allow you to move from your manufacturers bloated ROM to a slick light custom ROM. It can allow you to gain superpowers by rooting your phone. You get the idea. On the flip side, though, unlocked bootloaders can have some issues. Firstly and most importantly, most manufacturers don’t encourage rooting and flashing, so unlocking your phone’s bootloader might get your warranty void.

Also, since unlocked bootloaders don’t verify digital signatures and allow users to install custom recoveries, any malicious programs can be pushed into the system partitions. Oh, and how can we forget the mammoth, the most significant nuisance of an unlocked bootloader: that annoying ‘your device can’t be trusted’ message the phone shows every time the phone boots up, right? We know.

That’s all you need to know about bootloaders. In this knowledge base article, we’ve explained various stuff about bootloaders about Android devices only. Still, if you’ve got some spare time, we will encourage you to go through this gem of an explanation of bootloaders in general by Olin Lathrop on StackExchange.

Leave A Reply

Your email address will not be published.