Switch the device to fastboot mode.
Power off the device. (Note: Go to the settings menu and disable the fastboot function, or power off the device, remove the battery, and then wait for at least 2 seconds before reinstalling the battery.) For a mobile phone, press and hold the volume down and power keys simultaneously for at least 10 seconds (for a tablet, press and hold the volume up and power keys).
Connect the device to the computer.
Connect the device to the computer using a USB cable. From the computer, open the command window, enter the directory where the ADB toolkit is installed, and check that the device is connected to the computer properly. To do so, enter fastboot devices, and press Enter, if a message such as 9e42530e fastboot is displayed, the connection is set up properly.
Run the unlocking command.
In the computer’s command window, enter fastboot oem unlock password, for example, fastboot oem unlock 1234567812345678.
Complete the device bootloader unlocking.
Enter the unlocking password. Your device then restarts. (If the password entered is correct, the device will be restored to its factory settings, after which the device restarts and enters standby mode. The device’s bootloader is unlocked. If the password entered is incorrect, a message is displayed and the device enters standby mode.)
Check whether the unlocking succeeded.
Repeat steps 1 and 2. In the computer’s command window, enter fastboot oem get-bootinfo, the bootloader lock state of your device is displayed. Bootloader Lock State: LOCKED indicates that the bootloader is still locked. Re-perform the unlocking procedure and check that the password is correctly entered. Bootloader Lock State: UNLOCKED indicates that your device’s bootloader has been unlocked. You can then install a third-party firmware.
To lock the bootloader after unlocking it: 1. Restore the device’s software to the Huawei official version using a microSD card. 2. Switch the device to fastboot mode, and enter fastboot oem relock password (password is a 16-digit number) in the computer’s command window. 3. The device then restarts, and the bootloader lock state turns to Bootloader Lock State: UNLOCKED.