Ir para o conteúdo principal
How to unlock the bootloader of an Android Phone

How to unlock the bootloader of an Android Phone

Sebastian

Sebastian e 3 outros colaboradores

Última atualização em April 4, 2025

2 minutos - 1 hora
Moderado
Guia colaborativo

Introdução

Ir para o passo 1

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

  1. How to unlock the bootloader of an Android Phone, Finding the Build Number: passo 1, imagem 1 %32 How to unlock the bootloader of an Android Phone, Finding the Build Number: passo 1, imagem 2 %32 How to unlock the bootloader of an Android Phone, Finding the Build Number: passo 1, imagem 3 %32
    • 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.

  2. How to unlock the bootloader of an Android Phone, Unlocking developer options: passo 2, imagem 1 %32 How to unlock the bootloader of an Android Phone, Unlocking developer options: passo 2, imagem 2 %32
    • 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.

  3. How to unlock the bootloader of an Android Phone, Allowing OEM unlocking: passo 3, imagem 1 %32
    • 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.

  4. How to unlock the bootloader of an Android Phone, Enable USB debugging: passo 4, imagem 1 %32
    • In the developer options, find the USB debugging option and enable it.

  5. How to unlock the bootloader of an Android Phone, Connect your phone to your computer: passo 5, imagem 1 %32 How to unlock the bootloader of an Android Phone, Connect your phone to your computer: passo 5, imagem 2 %32
    • 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.

  6. How to unlock the bootloader of an Android Phone, Allowing your computer to run ADB commands on your device: passo 6, imagem 1 %32 How to unlock the bootloader of an Android Phone, Allowing your computer to run ADB commands on your device: passo 6, imagem 2 %32
    • 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.

  7. How to unlock the bootloader of an Android Phone, Unlocking the bootloader: passo 7, imagem 1 %32
    • 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.

Conclusão

To relock your bootloader just run the command fastboot flashing lock

Only lock your bootloader while running stock firmware, or else your device will be bricked!

82 outras pessoas executaram este guia.

Sebastian

Membro desde: 08/19/18

28.705 Reputação

Autoria de 71 guias

Equipe

German Translators Membro de German Translators

Community

36 Membros

Autoria de 1.223 guias

33Comentários do guia

You have shared a very useful post i really like it keep going on, thanks for sharing such an informative content about Samsung Bootloader Unlock with us. I like to visit this helpful blog again for further updates on this beneficial post.☺️

File Rehab - Responder

I'm using a Nokia G60 I was offered.

When I try "fastboot oem unlock" I get:

FAILED (remote: 'Failed to unlock, decrypt failed!')

Please update the guide for such cases.

Thank you

Bruno - Responder

As far as I know, Nokia phones need an unlock code from the manufacturer. I don't have much experience with this, so I suggest you ask/search around on forums like xda developers or reddit. It might even help to directly ask the Nokia support for help. Depending on who you end up with they might even help you out.

Sebastian -

did it work with any realme device?

ëĺäžäžÿ - Responder

Realme requires you to run an app beforehand, but the rest of the process should be pretty similar.

Sebastian -

Comentar

Visualizações:

Últimas 24 horas: 263

Últimos 7 dias: 1,609

Últimos 30 dias: 8,028

Ao todo: 253,668