I have no responsibility for anything that might happen to your device!

How to unlock the bootloader of Huawei Y5 2018 (DRA-L01) without Huawei's unlock code!

Hello everyone, today I want to share with you a guide for how to unlock the bootloader of Huawei Y5 2018 aka Huawei Y5 Prime 2018 with codename DRA-L01. It might work on other models too (not only DRA-L01), I don't know, I haven't tested it. In fact, it might also work on other phones with MediaTek processors.
What you will need:


Steps:
  1. Firstly, you will need Python. Download it from python.org if you are on Windows, or if you are on Linux, install the python3 package from your package manager.
  2. You will need to get a piece of software named mtkclient by bkerler from here. Read the README for more information for how to install it.
  3. WARNING! mtkclient is a powerful piece of software that, if not used correctly, can lead to severe damage to your device. Be careful.

  4. Once you get it working, put your phone into BROM mode. You can do this by powering off your device first, connecting it with a USB cable to your computer and then holding volume-up and volume-down buttons (not the power button). You can make sure the computer detects your device correctly by launching ./mtk_gui (or mtk_gui.bat if on Windows). Make sure mtk_gui detects your device.
  5. Execute the following commands:

    WARNING! This will wipe your device! Make sure you have a backup available!

    
    python mtk e metadata,userdata,md_udc
    python mtk da seccfg unlock
    python mtk reset
    
            
    If you get an error from the first command that an 'md_udc' partition was not found, you can ignore it. Then, disconnect the USB cable. If the phone does not boot automatically, try to power it on manually.

In this stage, my phone couldn't boot. It rebooted unsuccessfully three times and then prompted me if I wanted it to boot to erecovery. I booted to erecovery and then a message popped up that my "hard drive was severely damaged" and a button to perform a "low-level format". I tapped the button, it formatted the memory, and after 15 minutes of waiting the phone finally booted successfully.


Other: OK, this was the guide. I hope you found this helpful.


Original post on XDA Forums