Tips & Tutorials

How to Unlock Bootloader on Huawei P20 – Complete Guide

Here we have a detailed guide on how to unlock bootloader for Huawei P20, P20 Pro and P20 Lite. The latest Huawei P20 smartphone series was just recently announced and finally, the device has started shipping to customers. Users who have already gotten their P20 smartphone can read the steps ahead to unlock bootloader on it. Now, as to why anyone would want to unlock the bootloader? For starters, unlocking the bootloader will allow to flash system files on the new Huawei P20 smartphone series — be it root or a custom ROM. Further, enthusiasts would be looking forward to run root apps on the new hardware and in order to do so, the first step is to unlock the bootloader.

Huawei does allow you to unlock the bootloader officially. However, it ships each phone with a locked one for better security and reliability as not all users are inclined to modify system files. Before we actually proceed to the steps, it is vital that you have a backup made of all your data and apps on the Huawei P20. If you are unsure about how to backup, we have given important backup tips that would prove quite helpful. Right after you are done with the unlock bootloader procedure, you would be able to do system-level modifications. Some of the popular mods include, TWRP recovery, root and installing custom ROMs.

Unlock Bootloader on Huawei P20

Disclaimer: All the tools, mods or ROMs mentioned below belong to their respective owners/developers. We (TeamAndroid.com) or the developers are not to be held responsible if you damage or brick your device. We don’t have you on gun point to try out this tutorial 😉

There are some other interesting posts on Team Android, We think you might like the following posts:

If you are planning to root your phone in the future, you might be interested in reading the benefits of rooting your phone.

If you are a developer and would want to unlock the bootloader, we recommend doing that before you set up the Google Play Store, install apps or anything because the security feature in Android clears out everything from your phone when unlocking bootloader of the phone.

Huawei P20 USB Drivers

You will need to connect your Android phone with the computer. For that, please make sure you have installed the USB drivers for properly. If not, you can download the latest Huawei official drivers from our Android USB Drivers section here:

Download Huawei P20 USB drivers!

Now, let’s proceed with the tutorial below to unlock Huawei P20 bootloader.

How to Unlock Bootloader on Huawei P20

Here is the complete and easy guide to unlock the bootloader on Huawei P20. This is very similar to how you unlock bootloader on other Huawei devices. Please read the entire tutorial and all the steps once before you actually perform it on your Huawei P20.

Prerequisites:

  • Make sure the Fastboot, ADB and USB Drivers are installed on your PC. You can install them on your PC by following this guide if they are not already installed.
  • Enable Developer Options by going to Settings > About Phone and tapping on build number multiple times.
  • Enable USB Debugging in Settings > Developer Options. Make sure that the USB Debugging is checked. [How to Enable USB Debugging]
  • Go to Settings > Developer Options and enable ‘OEM Unlocking’.
  • Backup all the data as unlocking the bootloader will delete all of your data.
  • Charge your phone up to 50% first and make sure your phone does not shut down during the procedure or it might damage your phone.
  • Note down the IMEI number and serial number in Settings > About > Status.
  • You can also find these numbers on the box of your phone.
  • Dial *#*#1357946#*#* on your phone and note down the product ID.

Get Unlock Code from Huawei Website

Step-1: Go to Huawei’s unlock website and sign up for an account. Login if you already have an account.

Step-2: Go to Downloads and select Unlock Bootloader.

Step-3: You’ll see a form. Fill the form with all the information you wrote down in the above section.

Step-4: Click on “Commit” after filling out all the information.

Step-5: You’ll see an unlock code immediately. Note down the unlock code.

Unlock Bootloader Using ADB and Fastboot

Step-6: Now connect your device to your PC. Make sure the developer options and OEM are enabled.

Step-7: Open the command prompt and enter the following command.

adb reboot bootloader

Step-8: Your phone will reboot and enter into bootloader mode.

Step-9: Now enter the following command to finally unlock the bootloader.

fastboot oem unlock [unlock code]

Step-10: Enter the unlock code you got from Huawei at the place of [unlock code].

Congratulations, the bootloader of your device is now unlocked. Your device will now reset and all data will be removed.

Backup and Other Important Tips

Done with the USB drivers? Perfect. The tutorial is on the next page, but first, please take a look at the following tips and important points you need to take care of. These are important, as we don’t want anyone losing their personal data or apps:

Always backup your important data that you might need after you install a new custom ROM, an official software update or anything else. Make a backup for just in case, you never know when anything might go wrong. See below for some tips on how to backup data:

If you already have a custom recovery (ClockworkMod, TWRP etc.) installed on your phone, we strongly recommend a backup using that as it creates a complete image of your existing phone / phone set up.

A few more optional tips that you should remember:

1. Having problems connecting your Android phone to the computer? You need to enable USB debugging mode. See here: How to Enable USB Debugging — for Gingerbread, Ice Cream Sandwich, Jelly Bean, KitKat, Lollipop, Marshmallow, Nougat and Oreo.

2. Make sure your Android device is charged up to 80-85% battery level. This might help you: How to Check Battery Percentage. Why? Because, if your phone goes off suddenly while installing a custom ROM, flashing an official firmware update or installing mods etc. — your phone might get bricked or go dead permanently. No one wants that, right?

3. Most of the tutorials and how-to guides on Team Android are for factory unlocked Android phones and phones. We recommend not to try our guides if your phone is locked to a carrier, unless we have specified the carrier name or device model.

4. [IMPORTANT] Copy all the backup files from your SD card to your computer as internal memory will be wiped clean while unlocking the bootloader.

You may also like to check out our Huawei P20 section for official firmware updates, custom ROMs, tips and other tutorials.