FIXONIC
SellSavedMy Fixonic
Official iFixit API visual reference

How to unlock the bootloader of an Android Phone

Unlocking the Bootloader allows you to install...

iFixit Library Android Phone Moderate 2 minutes - 1 hour Guide 152629
Open the authorised source
Licensed iFixit integration

This attributed iFixit guide is displayed through Fixonic's recorded commercial API permission. iFixit remains the independent source and author of the procedure.

Guide overview

Before you begin

Unlocking the Bootloader allows you to install custom firmware on your Android phone and gives you full access privileges to make modifications to the phone. Such modifications could involve changing some of the pre-loaded software or could even include replacing the entire operating system. Some bootloaders are not locked at all, some can be unlocked using a standard fastboot command, others need an unlock code from the manufacturer. There are also phones that do not include an unlocking method at all and can only be unlocked through a software exploit. These locked down devices will typically stem from a carrier deal. In this guide I´ll only be covering the unlocking of bootloaders with the standard fastboot command. Warnings Unlocking the bootloader will reset your phone, so make sure you have all your data backed up!This might void your warranty with some manufacturers.An unlocked bootloader will trip the Play Integrity API (formerly SafetyNet Attestation API) which can cause some services like GPay to stop working.This will make your device vulnerable against hackers with physical access to your device, so don´t do this to a device you intend to carry state/company secrets on. Additional information Wikipedia: Bootloader unlockingOfficial Android website: Locking/Unlocking the BootloaderXDA developers

Step 1

Finding the Build Number

  • First, we need to find the Build Number.
  • Usually you can find it under About Phone > Build Number or System > About Phone > Build Number, but since it varies from device to device using the search function is usually the easiest way.
Step 2

Unlocking developer options

  • Now you just need to tap the Build number repeatedly, until you get a confirmation message saying "You are now a developer!". I already enabled developer options on my device, so I don’t need to do it again.
  • You might be prompted to enter your lock screen password, if you have one set up.
Step 3

Allowing OEM unlocking

  • In the developer options, find the OEM unlocking option and enable it.
  • You might be prompted to enter your lock screen password, if you have one set up.
Step 4

Enable USB debugging

  • In the developer options, find the USB debugging option and enable it.
Step 5

Connect your phone to your computer

  • Plug your phone into your computer via a USB-C to USB-A Cable.
  • If you have a bad cable you might encounter some problems. Some older devices also dislike USB 3 in fastboot mode.
  • Pull down the notification shade and select Charging this device via USB.
  • Select the option File transfer/Android Auto.
  • On some older devices this option might be called MTP instead.
Step 6

Allowing your computer to run ADB commands on your device

  • Open the terminal application on your computer with the SDK Platform Tools installed and enter adb devices
  • This should trigger a popup on your device. Make sure to have the checkmark ticked and click Allow.
  • I haven’t added the platform-tools-folder to PATH. That’s why I need to open my terminal window in the platform-tools-folder and enter .\ as a prefix to my commands.
  • You can run the command again to check if it worked. It should now say device instead of unauthorized.
Step 7

Unlocking the bootloader

  • Enter the command adb reboot bootloader
  • Wait a couple seconds until your device rebooted into the bootloader, then enter the command fastboot flashing unlock
  • Some devices might use the command fastboot oem unlock instead.
  • If you receive an error message along the lines of FAILED (remote: 'Failed to unlock, decrypt failed!'), your phone has a locked bootloader and needs an unlock code from the manufacturer.
  • If you're stuck at < waiting for any device > and have already confirmed that your connection is stable, you may need to update your phone's USB driver.
  • You should now see a prompt similar to the one shown in the picture. Use the volume rocker to choose the Unlock the bootloader-option and confirm by pressing the power button.