How to Unlock Bootloader via Fastboot | Step-by-step Guide (2024)

Unlocking a device’s bootloader gives users more control over their operating system, allowing for custom ROM installations, rooting, and other advanced functionalities. However, the process can be complicated for those unfamiliar with it. This article serves as a guide to demystify the procedure, ensuring you can safely achieve an unlocked bootloader. Whether you’re an Android enthusiast looking to dive deeper into device customization or simply seeking to understand the process, this article is your roadmap.

What is Bootloader?

A bootloader is a small software program that runs every time a computer or a device starts up. Its main role is to initialize the system’s hardware and then load the operating system (OS) into the system’s memory. For most computers, the bootloader loads the main OS from the device’s hard drive. In the context of mobile devices, like smartphones and tablets, the bootloader can also decide if it should load the main OS or some recovery OS.

Here are a few key points about bootloaders:

  1. Controlled Execution. Bootloaders ensure that the OS starts in a controlled and predictable manner.
  2. OS Selection. In systems with multiple operating systems installed, a bootloader may allow users to select which OS they want to run. This is common in dual-boot setups, where users might have both Windows and Linux on the same machine, for instance.
  3. Security. Especially in modern smartphones, the bootloader can have security features that prevent unauthorized or unsigned versions of the OS from loading. This is why unlocking the bootloader is often a required step if you want to load custom ROMs on a phone.
  4. Recovery. Some bootloaders can initiate a recovery mode, allowing users to restore or reset the system if there’s a problem with the main OS.

In essence, the bootloader serves as a bridge between the device’s hardware and its operating system, ensuring the system boots up both correctly and securely. Let’s explore how to unlock the bootloader using fastboot in the following section.

How to Unlock Bootloader?

Unlocking the bootloader of an Android device from an Ubuntu system involves using the fastboot utility. Before starting, always remember to back up your device as this process can wipe your data.

Here’s a step-by-step guide:

1. Backup Your Data. Always ensure you have a backup of your data, as unlocking the bootloader will likely erase everything on your device.

2. Install Fastboot on Ubuntu. Open the terminal and install the necessary tools using this command:

sudo apt updatesudo apt install android-tools-adb android-tools-fastboot

This step installs both the ADB (Android Debug Bridge) and Fastboot tools, necessary for communicating with the device.

3. Enable Developer Options on Your Android Device. The following instructions apply to your phone. Here are the steps below:
Go to “Settings” then tap on “About phone” on your device.

How to Unlock Bootloader via Fastboot | Step-by-step Guide (1)

Tap on “Build Number” multiple times (usually seven) until you see a message saying, ‘You are now a developer!’

There are some cases you can also search “Developer Options” on your device.

How to Unlock Bootloader via Fastboot | Step-by-step Guide (2)

Please note that the process may vary for different Android phones. Refer to your phone manufacturer’s documentation to access the “Developer Mode”.

4. Enable USB Debugging and OEM Unlock on Your Android Device. After accessing ‘Developer Mode’, please follow the subsequent steps detailed below:

  • Go back to “Settings.”
  • Navigate to “System” then select “Advanced” then go to “Developer options.”
  • Toggle on both “USB debugging” and “OEM Unlocking.”
How to Unlock Bootloader via Fastboot | Step-by-step Guide (3)

5. Connect Your Android Device to Ubuntu. Using a USB cable, connect your Android device to your Ubuntu computer. Once it is connected, in the terminal type the command:

adb devices

This confirms your device is connected and recognized by ADB. It will show the serial number followed by ‘device’. You should see your device listed. If asked on your device, allow USB debugging permissions.

6. Boot Your Device into Fastboot Mode. Use the following command to reboot your device into bootloader mode:

adb reboot bootloader

This command restarts the Android device into the bootloader (or fastboot) mode.

7. Unlock the Bootloader. Once in bootloader mode, use this command to unlock the bootloader:

fastboot oem unlock

This command initiates the bootloader unlocking process. It’s essential to follow any on-device instructions. Follow any on-device instructions to confirm the unlock process.

8. Reboot Your Device. After the bootloader is unlocked, reboot your device using:

fastboot reboot

This restarts your device after the bootloader has been unlocked. Then your device will likely go through a factory reset, so you’ll need to set it up again.

How to Unlock Bootloader via Fastboot | Step-by-step Guide (2024)

FAQs

Can you unlock bootloader from fastboot? ›

If asked on your device, allow USB debugging permissions. This command restarts the Android device into the bootloader (or fastboot) mode. This command initiates the bootloader unlocking process. It's essential to follow any on-device instructions.

Can you force unlock bootloader? ›

Bootloaders can be unlocked using an exploit or using a way that the vendor supplied. The latter method usually requires wiping all data on the device. In addition, some manufacturers prohibit unlocking on carrier locked phones.

Does OEM unlocking unlock the bootloader? ›

OEM unlocking is a feature that allows you to unlock the bootloader of your Samsung device. The bootloader is a piece of software that controls which operating system can be booted on your device. By unlocking the bootloader, you can install custom ROMs, kernels, and other modifications to your device.

Does rooting unlock bootloader? ›

Bootloader unlocking is sometimes a first step used to root the device; however, it is not the same as rooting the device. Most devices come with a locked bootloader, which prevents users from installing a new boot image, which is often flashed when rooting a device or using a custom ROM.

Is it possible to unlock bootloader without PC? ›

You can't Unlock the bootloader without using any PC, It's not 100% true. For unlocking the bootloader you need ADB and Fastboot which only available for PC. So unlocking the bootloader isn't easy but not impossible. You need to use another android device with OTG support.

How do I get into bootloader recovery mode? ›

How to Enter Android Recovery Mode
  1. Turn your phone off.
  2. Push and hold the Power and Volume Up buttons until the bootloader screen appears. ...
  3. Use the Volume buttons to select Recovery Mode.
  4. With Recovery Mode selected, push the Power button.
  5. When you see “No command,” press and hold the Power button, then tap Volume Up.
Feb 23, 2023

Can I use Termux to unlock bootloader? ›

Run termux-adb installation script Now you can use non-rooted Android to unlock bootloader on another Android and even root it. Besides that, you can also run ADB commands to interact with another device. Here is a complete list of all ADB commands - github.com/mzlogin/awesom… termux-adb: github.com/nohajc/termux-…

What is the bootloader code? ›

A bootloader is a piece of code which allows user application code to be updated. The new code can be obtained using alternative download channels, such as a USB stick or a network port.

What is OEM unlocking in developer options? ›

However, it's a key concept for those who wish to dive deeper into Android customization. OEM stands for Original Equipment Manufacturer. Unlocking in this context refers to removing restrictions made by the manufacturer on the device. This process allows you to gain deeper access to the device's software.

Why can't I enable OEM unlocking? ›

Enable Developer Options: To access the "OEM Unlock" option, you need to enable Developer Options on your phone. Go to your phone's "Settings," then "About Phone," and tap on the "Build Number" multiple times until you see a message that Developer Options have been enabled.

Which companies allow bootloader unlock? ›

Many Android smartphone brands allow users to unlock the bootloader of their devices. Some examples include Google, OnePlus, Motorola, and Xiaomi. Keep in mind that unlocking the bootloader of your device may void your warranty and can potentially introduce security vulnerabilities.

What is reboot to bootloader in Android? ›

REBOOT TO BOOTLOADER – Restarts the phone and boots directly into the Bootloader. BOOT TO DOWNLOAD MODE – Boots the phone directly to Download mode. REBOOT – Restarts the phone normally.

Does Kingroot require unlock bootloader? ›

Rooting with kingroot will not unlock bootloader. You need to follow different procedure for unlocking the bootloader. In some devices there is no need to unlock bootloader.

Does installing TWRP unlock bootloader? ›

If you want TWRP you need an unlocked bootloader and if you want a locked bootloader you can't have TWRP, deal with it.

What is Samsung bootloader unlock? ›

Bootloader unlock on Samsung is the removal of the restriction placed by the manufacturer so you can access the device's root directory. When you unlock the bootloader of your Samsung phone, you get the chance to install a third-party custom ROM and root the device without stress.

Is fastboot a bootloader? ›

Fastboot is a communication protocol used primarily with Android devices. It is implemented in a command-line interface tool of the same name and as a mode of the bootloader of Android devices.

Do I need to unlock bootloader to flash fastboot ROM? ›

No. You need to unlock the bootloader.

What does fastboot OEM lock do? ›

This serves as a security precaution, primarily where the default recovery and firmware is installed. Because: The default recovery will only allow manufacturer/Google signed firmware to be installed and doesn't allow you to do much of anything else. Unlocking the bootloader will erase all data.

What is fastboot bootloader mode? ›

Fastboot is a versatile tool that allows you to communicate with your phone's bootloader, directly from your computer. You can use it to flash firmware, unlock the bootloader, or wipe data. It's super useful when you need a clean slate or want to switch to a custom ROM!

Top Articles
Latest Posts
Article information

Author: Manual Maggio

Last Updated:

Views: 6327

Rating: 4.9 / 5 (69 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Manual Maggio

Birthday: 1998-01-20

Address: 359 Kelvin Stream, Lake Eldonview, MT 33517-1242

Phone: +577037762465

Job: Product Hospitality Supervisor

Hobby: Gardening, Web surfing, Video gaming, Amateur radio, Flag Football, Reading, Table tennis

Introduction: My name is Manual Maggio, I am a thankful, tender, adventurous, delightful, fantastic, proud, graceful person who loves writing and wants to share my knowledge and understanding with you.