Bootloader Unlocking Guide
Essential first step for Android customization. Unlock your device's bootloader safely to enable rooting, custom recovery, and custom ROMs.
Quick Navigation
- Understanding Bootloaders
- Prerequisites
- Universal Preparation
- Manufacturer Guides
- Post-Unlock Steps
- Troubleshooting
Related Guides:
- Main Rooting Guide - Complete rooting overview
- Custom Recovery Installation - Next step after unlocking
- FAQ - Common questions and solutions
Understanding Bootloaders
The bootloader is your device's startup manager - the first program that runs when powering on, responsible for loading the operating system and enforcing security policies.
Why Unlock Your Bootloader?
Unlocking enables:
- Custom recovery installation (TWRP, OrangeFox)
- Root access via Magisk, KernelSU
- Custom ROM installation (LineageOS, GrapheneOS)
- Kernel modifications for performance tuning
- Advanced system modifications and tweaks
Locked vs Unlocked
| Locked Bootloader | Unlocked Bootloader |
|---|---|
| Maximum security | Full customization freedom |
| OTA updates work seamlessly | Can install custom ROMs |
| Banking apps work normally | Can install custom recovery |
| Cannot install custom software | Root access possible |
| Limited modification | Warranty void (usually) |
Prerequisites
⚠️ Critical Warnings
IRREVERSIBLE CONSEQUENCES
Data Erasure - Unlocking bootloader completely wipes all data. Backup everything before proceeding.
Warranty Void - Most manufacturers permanently void warranty. Some devices show permanent unlock warnings.
Banking Apps - Many financial apps detect unlocked bootloaders and refuse to work.
Device Security - Unlocked bootloaders reduce device security. Physical access can compromise data.
Essential Requirements
Hardware
- Android device with unlockable bootloader
- 50% or higher battery charge
- Quality USB cable (data-capable)
- Computer (Windows, macOS, or Linux)
Software
- Android Platform Tools (ADB/Fastboot)
- Device-specific USB drivers (Windows)
- Manufacturer-specific tools (Mi Unlock Tool, Odin, etc.)
Knowledge
- Basic command line usage
- Device model and variant identification
- Ability to follow instructions precisely
Manufacturer Policy Overview
| Manufacturer | Method | Wait Time | Restrictions | Success Rate |
|---|---|---|---|---|
| Google Pixel | Fastboot command | None | None | 99% |
| OnePlus | Fastboot command | None | None | 95% |
| Nothing | Fastboot command | None | None | 90% |
| Xiaomi/Redmi/POCO | Mi Unlock Tool | 7-30 days | Mi Account required | 85% |
| Motorola | Unlock code | None | Permanent warning | 80% |
| Samsung | Unofficial (Odin) | None | Exynos only, Knox trips | 60% |
| Huawei | No longer supported | N/A | Impossible since 2018 | 0% |
Notes:
- US carrier-locked models (Verizon, AT&T) often cannot unlock bootloader
- Always verify your specific model's unlockability
IMPORTANT
Bootloader Unlock: Wall of Shame
This community-maintained repository tracks companies that make bootloader unlocking difficult or impossible. Check it before buying a new device.
or
IMPORTANT
Wikipedia/Bootloader unlocking
Browse this page on wikipedia that lists and tracks android bootloader unlocking Click me ↗.
Universal Preparation (All Devices)
Complete these steps regardless of manufacturer before attempting bootloader unlock.
Step 1: Enable Developer Options
- Open Settings
- Navigate to About Phone (or About Device)
- Find Build Number
- Tap Build Number 7 times rapidly
- Enter your PIN/password when prompted
- "Developer options now enabled" message appears
Step 2: Enable Critical Developer Settings
- Go to Settings > System > Developer Options
- Enable OEM Unlocking (critical - required for unlock)
- Enable USB Debugging (allows computer communication)
- Enable USB Debugging (Security Settings) if available
If OEM Unlocking is missing or greyed out:
- Connect to WiFi and wait 24-48 hours
- Try different network (mobile data vs WiFi)
- Some carrier devices permanently block this option
- Device may not support unlocking
Step 3: Install Platform Tools
Windows:
- Download Platform Tools
- Extract to
C:\platform-tools\ - Add to PATH or use Command Prompt in that directory
macOS:
brew install android-platform-toolsLinux (Ubuntu/Debian):
sudo apt install android-tools-adb android-tools-fastbootLinux (Arch):
sudo pacman -S android-toolsStep 4: Install USB Drivers (Windows Only)
Download and install manufacturer-specific drivers:
- Google USB Driver (Pixel)
- Samsung USB Driver
- Xiaomi USB Driver: included with Mi Unlock Tool
- For other OEMs, check this list: OEM USB Drivers
Step 5: Test ADB Connection
- Connect device to computer via USB
- Select File Transfer mode on device
- Allow USB debugging when prompted (check "Always allow from this computer")
- Open terminal/command prompt
- Test connection:
adb devicesExpected output:
List of devices attached
1234567890ABCDEF deviceIf device not listed:
- Reconnect USB cable
- Try different USB port
- Reinstall drivers (Windows)
- Verify USB debugging is enabled
Step 6: Backup Your Data
Essential backups:
- Photos and videos (Google Photos, cloud storage)
- Contacts (Google Contacts sync)
- Messages (SMS Backup & Restore)
- App data (Google Backup, Helium)
- Important documents
- Two-factor authentication recovery codes
Reminder: Unlocking bootloader will erase EVERYTHING.
Manufacturer-Specific Guides
Select your device manufacturer for detailed instructions.
Google Pixel
Models: All Pixel devices (Pixel 1 through Pixel 9 series)
Steps:
Complete Universal Preparation
Boot to fastboot mode:
adb reboot bootloaderHardware method: Power off, then hold Power + Volume Down
- Verify fastboot connection:
fastboot devices- Unlock bootloader:
fastboot flashing unlockUse Volume keys to navigate to "Unlock the bootloader"
Press Power button to confirm
Device will factory reset and reboot
Verify unlock:
adb reboot bootloader
fastboot getvar unlockedShould return: unlocked: yes
Notes:
- Simplest unlock process
- No waiting period or approval needed
- Carrier models should work (verify OEM Unlocking available)
Xiaomi / Redmi / POCO
Requirements:
- Mi Account (active for 7+ days on the device)
- Mi Unlock Tool (Windows only)
- 7-30 day waiting period
Phase 1: Apply for Unlock Permission
Add Mi Account to device
- Settings > Additional Settings > Developer Options
- Mi Unlock Status > Add account and device
- Keep device connected to internet
Wait for approval (7-30 days)
- Global ROM: Usually 7 days (168 hours)
- China ROM: Usually 30 days (720 hours)
- Check Mi Unlock Status for remaining time
Phase 2: Unlock with Mi Unlock Tool
Download Mi Unlock Tool (Windows)
Install and launch Mi Unlock Tool
Boot device to fastboot mode:
adb reboot bootloaderConnect device to computer via USB
Sign in to Mi Unlock Tool with same Mi Account
Click "Unlock" button
Tool will check eligibility and unlock device
Device will factory reset and reboot
Troubleshooting:
- "Couldn't verify device": Wait full waiting period
- "Account not bound": Ensure Mi Account added to device
- "Unlock failed": Try different USB port, reinstall drivers
TIP
Bypass Mi Unlock Waiting Period
Some users report success using older Mi Unlock Tool versions or modified tools. check this XDA Guide. Proceed with caution.
OnePlus
Models: Most OnePlus devices (verify T-Mobile variants separately)
Steps:
Complete Universal Preparation
Boot to fastboot mode:
adb reboot bootloader- Verify fastboot connection:
fastboot devices- Unlock bootloader (try both commands):
fastboot oem unlockOr for newer models:
fastboot flashing unlockUse Volume keys to select "UNLOCK THE BOOTLOADER"
Press Power to confirm
Device will factory reset and reboot
Notes:
- Straightforward process like Pixel
- T-Mobile variants may have restrictions
- Some models show "Bootloader Unlocked" warning on boot
Samsung Galaxy
Critical: US and Canadian Snapdragon models generally CANNOT unlock bootloader. International Exynos models can unlock but Knox permanently trips.
Compatibility Check:
Install "Phone INFO SAM" app from Play Store
Check "OEM Lock" status:
- "ON (U)" = Permanently locked (cannot unlock)
- "OFF" = May be unlockable
Unlock Process (Exynos Only):
Complete Universal Preparation
Power off device completely
Enter Download Mode:
- Hold Volume Down + Power (or Volume Down + Bixby + Power)
- When warning appears, press Volume Up
Long press Volume Up to unlock bootloader
Follow on-screen warnings
Device will factory reset
Shows "Custom" on boot screen (Knox permanently tripped)
Knox Consequences:
- Knox EFUSE physically burned (permanent, cannot revert)
- Samsung Pay disabled
- Secure Folder disabled
- Samsung Pass disabled
- Samsung Health may not work
- Warranty permanently void
- Resale value significantly reduced
Alternative: Consider buying international Exynos model if bootloader unlock is priority.
Motorola
Steps:
Phase 1: Obtain Unlock Code
Sign in or create Motorola account
Complete Universal Preparation
Boot to fastboot mode:
adb reboot bootloader- Get device identifier:
fastboot oem get_unlock_dataCopy the returned string (combine all lines, remove spaces and "(bootloader)" text)
Submit string on Motorola website
Receive unlock code via email (usually within hours)
Phase 2: Apply Unlock Code
Boot to fastboot mode if not already there
Apply unlock code:
fastboot oem unlock UNLOCK_CODEReplace UNLOCK_CODE with code from email
Confirm unlock on device screen
Device will factory reset and reboot
Notes:
- Shows permanent "Bootloader Unlocked" warning on every boot
- Warranty void
- Process usually smooth once code received
Nothing Phone
Models: Nothing Phone (1), (2), (2a)
Steps:
Complete Universal Preparation
Boot to fastboot mode:
adb reboot bootloader- Unlock bootloader:
fastboot flashing unlockUse Volume keys to select unlock option
Press Power to confirm
Device will factory reset and reboot
Notes:
- Similar to Pixel process
- Good community support
- Nothing OS specific considerations minimal
Sony Xperia
Steps:
Phase 1: Check Eligibility
Visit Sony Developer Portal
Enter IMEI (dial
*#06#)Check if "bootloader unlock allowed: yes"
- If no: Device cannot be unlocked
Phase 2: Get Unlock Code
Create Sony Developer account
Enter device details and IMEI
Receive unlock code
Phase 3: Unlock
Boot to fastboot mode
Apply unlock code:
fastboot oem unlock 0xUNLOCK_CODEReplace UNLOCK_CODE with provided code
- Device unlocks and reboots
DRM Keys Loss:
- Camera quality degrades (especially low-light)
- Some DRM-protected content may not play
- Cannot be reversed
- Some custom ROMs include camera fixes
Other Manufacturers
ASUS ROG Phone:
- Official unlock tool available from ASUS
- Download from ASUS support site
- Follow in-app instructions
Realme:
- Deep Testing app method
- 7-day waiting period
- Limited model support
OPPO:
- Deep Testing app method
- 7-day waiting period
- Very limited model support
Huawei/Honor:
- No longer supported since 2018
- Cannot unlock newer models
Post-Unlock Steps
After successfully unlocking bootloader:
Step 1: Initial Setup
Device boots to setup wizard (all data erased).
- Complete Android setup process
- Re-enable Developer Options (tap Build Number 7 times)
- Enable USB Debugging again
- Optionally re-enable OEM Unlocking (for future modifications)
Step 2: Verify Unlock
adb reboot bootloader
fastboot getvar unlockedShould return: unlocked: yes or unlocked: 1
Or:
fastboot oem device-infoLook for "Device unlocked: true"
Step 3: Next Steps
Typical progression:
Install Custom Recovery (optional but recommended)
- TWRP Installation Guide
- Enables easier rooting and backups
Root Your Device
- Magisk Guide (most popular)
- KernelSU Guide (advanced)
- APatch Guide (alternative)
Post-Root Configuration
- Install essential apps: Root Apps Collection
- Configure ad blocking: Ad Blocking Guide
- Debloat device: Debloating Guide
Step 4: Security Considerations
Important reminders:
- Banking apps may detect unlocked bootloader
- Set up strong screen lock
- Only install trusted software
- Be cautious with root permissions
- Keep device software updated
Troubleshooting
OEM Unlocking Missing or Greyed Out
Causes:
- Carrier restriction (permanent)
- FRP (Factory Reset Protection) active
- Device not connected to internet
- Insufficient wait time after initial setup
Solutions:
- Connect to WiFi and wait 24-48 hours
- Try mobile data instead of WiFi (or vice versa)
- Remove Google account, factory reset, wait 48 hours
- If carrier device, may be permanently locked
Fastboot Not Recognized
Symptoms: Computer doesn't detect device in fastboot mode
Solutions:
- Install proper USB drivers (Windows)
- Try different USB port (USB 2.0 often more reliable)
- Use different USB cable (must support data transfer)
- Boot to fastboot using hardware keys instead of ADB
- Try different computer
- Disable USB Selective Suspend (Windows Power Options)
"Remote: Not Allowed" Error
Causes:
- OEM Unlocking not enabled
- Device doesn't support unlocking
- Carrier restriction
Solutions:
- Verify OEM Unlocking is enabled in Developer Options
- Check device compatibility
- Verify not carrier-locked model
Device Won't Boot After Unlock
Symptoms: Stuck on boot logo or bootloop
Solutions:
- Wait 10 minutes (first boot after unlock can be slow)
- Force restart: Hold Power button 10-15 seconds
- Boot to recovery and wipe cache
- Factory reset from recovery
- Flash stock firmware via fastboot
Prevention: Always download stock firmware before unlocking for emergency recovery.
"Waiting for Device" Message
Causes: Fastboot/ADB connection issues
Solutions:
- Verify device appears in
fastboot devicesoradb devices - Reinstall USB drivers (Windows)
- Try different USB port
- Use USB 2.0 port instead of USB 3.0
- Disable antivirus temporarily
- Run command prompt as administrator (Windows)
Unlock Process Interrupted
If power loss or disconnect during unlock:
- Reboot to fastboot mode
- Attempt unlock command again
- If bootloop, flash stock boot.img:
fastboot flash boot boot.img
fastboot reboot- If still issues, flash complete stock firmware
Additional Resources
Official Documentation:
Community Resources:
- XDA Developers Forums - Device-specific guides
- Bootloader Unlock Wall of Shame - Manufacturer restrictions tracker
Emergency Recovery:
- Keep stock firmware downloaded
- Know your device's EDL/download mode
- Bookmark device-specific unbrick guides
Related Guides:
- Main Rooting Guide - Complete overview
- Custom Recovery Installation - Next step
- Magisk Root Guide - Primary root method
- FAQ - Additional Q&A
- Troubleshooting Guide - Common issues
Safety Reminder
Bootloader unlocking is the essential first step for Android customization, but it comes with permanent consequences:
- All data will be erased
- Warranty will be void
- Security will be reduced
- Some apps may not work
Only proceed if:
- You understand the risks
- You have backed up all data
- You accept the consequences
- You can handle troubleshooting
When ready: Proceed to Custom Recovery Installation or Root Installation
✨ Good luck with your Android customization journey.