How To Unlock The Bootloader On An Android Phone, Step By Step

Quick answer: turn on Developer options, switch on OEM unlocking, connect the phone to a computer, boot into fastboot mode, and run the unlock command for your phone.

The exact command and extra steps depend on the brand. Unlocking erases everything on the phone, so back it up first.

Table of Contents

What The Bootloader Is

The bootloader is the small program that starts your phone. It checks that the system software is trusted before Android loads.

Most phones ship with it locked. Unlocking it lets you install custom software such as a custom ROM (a replacement version of Android) or a rooting tool.

Bootloader Unlock Is Not A Carrier Unlock

These are two different things, and people mix them up all the time.

A carrier unlock lets your phone work on other networks. Our guide on what it means to unlock a phone covers that side.

If you only want to switch carriers, you do not need to unlock the bootloader. You can check whether your phone is carrier unlocked instead.

TypeWhat it doesWho needs it
Carrier (SIM) unlockLets the phone use other carriersPeople switching networks
Bootloader unlockLets you install custom softwareTinkerers, rooting, custom ROMs

Before You Start

Do these things first, because the process cannot be undone without a full wipe.

  • Back up photos, messages, and app data. Unlocking erases the phone.
  • Charge the phone to at least 50 percent.
  • Use a good USB cable and a computer you control.
  • Sign in to your Google account on the phone and remember the password.
  • Know that unlocking may void your warranty or disable some features, such as certain banking or payment apps.

Which Phones Can Be Unlocked

Not every phone allows it. Many US carrier versions are locked down on purpose.

Phone typeUsually unlockable?Note
Google Pixel (unlocked or Google Store)YesCarrier-sold versions may have the option blocked
Samsung Galaxy (US carrier models)Often noThe OEM unlocking option is often missing
MotorolaMany modelsNeeds an unlock code from Motorola
OnePlusMany modelsVaries by region and carrier
XiaomiYes, with limitsNeeds an account and a waiting period
iPhoneNoApple does not offer a bootloader unlock

Policies change with updates, so treat this as a general guide, not a promise for your exact model.

Step 1: Turn On Developer Options And OEM Unlocking

This is the switch that tells the phone it is allowed to be unlocked. Menu names can vary slightly by brand.

  1. Open Settings > About phone.
  2. Tap Build number seven times. Enter your PIN if asked.
  3. Go back to Settings > System > Developer options.
  4. Turn on OEM unlocking.
  5. Turn on USB debugging.

If OEM unlocking is greyed out, see the problem table further down.

Step 2: Set Up ADB And Fastboot On Your Computer

ADB and fastboot are free tools from Google that let your computer talk to your phone. They come in a download called Android SDK Platform-Tools.

  1. On your computer, search for “Android SDK Platform-Tools” and download it from the official Android developer site.
  2. Extract the ZIP file to a folder, such as one called platform-tools on your desktop.
  3. On Windows, open that folder, click the address bar, type cmd, and press Enter. A command window opens in that folder.
  4. Connect the phone by USB. When it asks, tap Allow USB debugging.
  5. Type adb devices and press Enter. Your phone should appear in the list.

Step 3: Boot Into Fastboot And Unlock

Fastboot mode is a special screen where the phone accepts unlock commands.

  1. In the command window, type adb reboot bootloader and press Enter.
  2. Wait for the fastboot screen to appear on the phone.
  3. Type fastboot devices to confirm the phone is detected.
  4. Type fastboot flashing unlock and press Enter.
  5. Use the volume keys and power button on the phone to confirm the unlock.
  6. The phone erases itself and restarts. The first startup can take several minutes.

Some older phones use fastboot oem unlock instead. Check your brand’s instructions if the first command is rejected.

Brand Differences To Know About

BrandExtra step or difference
PixelStandard steps above usually work
MotorolaRequest an unlock code on Motorola’s website using data from fastboot, then enter the code
SamsungDoes not use the fastboot command. It uses a special download mode, and unlocking may permanently trip a Knox security flag
XiaomiUses the Mi Unlock tool, tied to your Xiaomi account, with a waiting period
OnePlusUsually the standard command, but it depends on the model and where it was sold

Always follow the maker’s own current instructions for these brands. The steps differ by model and can change.

Common Problems And Fixes

Most failures come down to a locked option, a driver, or a cable.

ProblemLikely fix
OEM unlocking is greyed outConnect to Wi-Fi and wait. Check for a carrier lock or an account lock. Some carrier phones cannot be unlocked
OEM unlocking is missing (Samsung)Some models need a waiting period after setup. Others are blocked by the carrier
Phone not found in fastbootTry a different cable and USB port. On Windows, install the phone maker’s USB driver
“Command not allowed” or “unlock failed”OEM unlocking is likely still off. Turn it on and try again
Stuck at the boot logoHold the power button to restart. If it persists, boot into recovery and run a factory reset

What You Lose When You Unlock

Unlocking trades some safety and convenience for freedom.

  • All data on the phone is erased.
  • The warranty may no longer apply, depending on the maker.
  • Some apps, such as banking, payment, and streaming apps, may refuse to run or lower their quality.
  • The phone is easier to compromise if lost, because its built-in protections are weaker.

Locking It Again

Many phones can be locked again with fastboot flashing lock. Only do this with the original, unmodified software installed, or the phone may not start.

Locking also erases the phone. Check your maker’s guidance first.

Summary

Turn on OEM unlocking in Developer options, install Platform-Tools on your computer, reboot to fastboot, and run the unlock command. Confirm on the phone, and expect a full wipe.

Carrier-locked phones and some Samsung models may not allow it at all.

Still Not Working?

If OEM unlocking stays greyed out, the phone is probably locked by the carrier or the maker. Contacting your carrier is the next step, and our guide to what GSM unlocked means explains the terms you will hear.

If you actually just want to switch carriers, see how to unlock a Straight Talk phone. That is a different process and much simpler.

  • How To Root An Android Phone Safely
  • How To Install A Custom ROM On Android
  • How To Factory Reset An Android Phone
  • How To Install ADB And Fastboot On Windows
  • How To Check If Your Android Phone Is Carrier Unlocked

Leave a Reply

Your email address will not be published. Required fields are marked *