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
- Bootloader Unlock Is Not A Carrier Unlock
- Before You Start
- Which Phones Can Be Unlocked
- Step 1: Turn On Developer Options And OEM Unlocking
- Step 2: Set Up ADB And Fastboot On Your Computer
- Step 3: Boot Into Fastboot And Unlock
- Brand Differences To Know About
- Common Problems And Fixes
- What You Lose When You Unlock
- Locking It Again
- Summary
- Still Not Working?
- Related Topics
- More Android and Galaxy guides
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.
| Type | What it does | Who needs it |
|---|---|---|
| Carrier (SIM) unlock | Lets the phone use other carriers | People switching networks |
| Bootloader unlock | Lets you install custom software | Tinkerers, 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 type | Usually unlockable? | Note |
|---|---|---|
| Google Pixel (unlocked or Google Store) | Yes | Carrier-sold versions may have the option blocked |
| Samsung Galaxy (US carrier models) | Often no | The OEM unlocking option is often missing |
| Motorola | Many models | Needs an unlock code from Motorola |
| OnePlus | Many models | Varies by region and carrier |
| Xiaomi | Yes, with limits | Needs an account and a waiting period |
| iPhone | No | Apple 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.
- Open Settings > About phone.
- Tap Build number seven times. Enter your PIN if asked.
- Go back to Settings > System > Developer options.
- Turn on OEM unlocking.
- 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.
- On your computer, search for “Android SDK Platform-Tools” and download it from the official Android developer site.
- Extract the ZIP file to a folder, such as one called platform-tools on your desktop.
- On Windows, open that folder, click the address bar, type cmd, and press Enter. A command window opens in that folder.
- Connect the phone by USB. When it asks, tap Allow USB debugging.
- 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.
- In the command window, type adb reboot bootloader and press Enter.
- Wait for the fastboot screen to appear on the phone.
- Type fastboot devices to confirm the phone is detected.
- Type fastboot flashing unlock and press Enter.
- Use the volume keys and power button on the phone to confirm the unlock.
- 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
| Brand | Extra step or difference |
|---|---|
| Pixel | Standard steps above usually work |
| Motorola | Request an unlock code on Motorola’s website using data from fastboot, then enter the code |
| Samsung | Does not use the fastboot command. It uses a special download mode, and unlocking may permanently trip a Knox security flag |
| Xiaomi | Uses the Mi Unlock tool, tied to your Xiaomi account, with a waiting period |
| OnePlus | Usually 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.
| Problem | Likely fix |
|---|---|
| OEM unlocking is greyed out | Connect 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 fastboot | Try 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 logo | Hold 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.
Related Topics
- 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
More Android and Galaxy guides
- How To Lock Apps On An Android Phone (PIN, Fingerprint Or Face)
- How To Run A Terminal Command On An Old Android Phone
- How To Fix An Android Phone Stuck On The Logo (2026)
- How To Fix "No Command" On An Android Phone (2026)
- How To Enter Recovery Mode On An Android Phone (2026)
- How To Fix An Android Phone That's On But Has A Black Screen