Learn how to unlock your Android device's bootloader safely
The bootloader is a piece of code that runs before your operating system starts. It tells the phone how to boot up and load the operating system. By default, most Android devices come with a locked bootloader to prevent unauthorized modifications.
Since unlocking the bootloader will factory reset your device, make sure to back up all important data including photos, contacts, messages, and app data.
You'll need to set up Android Debug Bridge (ADB) and Fastboot on your computer:
On your Android device:
If you don't see the OEM unlocking option, your device may not support bootloader unlocking or you need to use a carrier-specific method.
Connect your Android device to your computer with a USB cable.
When prompted on your device, allow USB debugging.
Open a command prompt or terminal window and type:
You should see your device listed. If not, check your USB connection and make sure USB debugging is enabled.
Enter the following command:
Your device will restart into fastboot mode.
Verify your device is detected in fastboot mode:
You should see your device listed with a serial number.
Enter the command to unlock the bootloader:
For older devices, you might need to use:
A confirmation screen will appear on your device. Use the volume buttons to navigate and the power button to confirm.
Your device will be wiped and the bootloader will be unlocked. This may take a few minutes.
Once the unlock is complete, reboot your device:
The first boot after unlocking will take longer than usual.
Your device will now show a warning at startup indicating that the bootloader is unlocked and the device is less secure. This is normal.
Google Pixel devices follow the standard method, but require you to enable OEM unlocking first.
Samsung devices require unlocking the bootloader through the download mode and often require additional steps.
Xiaomi devices require obtaining an unlock code from Xiaomi's website.
OnePlus devices have a more straightforward unlocking process.
Problem: When typing ADB or fastboot commands, you get "command not found" errors.
Solution: Make sure you've properly installed ADB and fastboot, and that they're in your system PATH or you're running commands from the directory containing the tools.
Problem: Your device doesn't show up when running adb devices or fastboot devices.
Solution:
Problem: The "OEM Unlock" option is not visible in Developer Options.
Solution: This usually means:
Problem: You receive an "unlock failed" message when trying to unlock the bootloader.
Solution:
Problem: Your device gets stuck at the bootloader or manufacturer logo after unlocking.
Solution:
Disclaimer: This guide is provided for educational purposes only. Unlocking your bootloader may void your warranty and can potentially damage your device if not done correctly. Always research the specific method for your device model before proceeding.