Huawei Honor Unlock Bootloader Save Abandoned

A simple tool for managing Huawei/Honor devices to unlock bootloader

Project README

huawei-honor-unlock-bootloader

I know that the code is horrible to read, and you should not have an unexpected error because the code is not designed to. It's a basic script I made to unlock during many hours the bootloader of my Honor 5x and 8x several years ago, after huawei closed their official website. And I put it on github to send it to a friend.

Today, this script is no longer functional, Huawei bootloader phones has additional security to block the bruteforce.


Summary

After closing the official EMUI website, which allowed you to retrieve the code to unlock the bootloader of Huawei/Honor phones, here is a python script to test many possible codes.

It uses a bruteforce method, based on the IMEI identifier to generate unlocking codes.

This will most likely only work on European versions, because these only use numbers in the bootloader unlock code.

I've only had the opportunity to test it on European versions:

  • Honor 5x 8x and 9x
  • Honor view 10 and 20
  • Honor 10 lite
  • Huawei p20 lite
  • Huawei Y6 2019
  • Huawei p30

Instructions

  1. Enable developer options in Android.

  2. Enable USB debugging in Android.

  3. Connect your device to the computer and launch the script.

    Windows:

    C:\WINDOWS\system32> python unlock.py
    

    Linux:

    $ python3 unlock.py
    

    The device is going to ask for authorisation, which you'll have to allow.
    Please also check the checkbox "Always allow from this computer".

  4. Wait for the application to detect your device. The device info should appear.

  5. Enter the (first) IMEI.

  6. Start the bruteforce.
    (this may take several hours days) so get a cup of coffee ☕ and go to sleep. ?

  7. If the correct code is found, your phone will either be instantly unlocked or prompt you with an additional confirmation dialogue on the target device.
    (all data will be erased on unlock!)

FAQ & Troubleshooting

- The application doesn't work. Is there anything I should have installed?
Yes, it was developed in python so it needs it to run, version 3. You can install the latest version from here or by using Windows Store.

- The app on Windows doesn't detect my device even though it's connected and USB debugging is enabled. What could be the issue?
Windows most likely doesn't recognise your device in ADB mode. Install the universal ADB drivers from here, reboot your PC and try again.

- My phone reboots every 5 failed attempts
We are aware of this and have implemented an automatic intentional reboot after 4 attempts.
You can manually enable this feature in the code.
The script will also automatically detect this behaviour. For this to work reliably, please check the checkbox "Always allow from this computer" in the adb dialogue.

- The script displays "command invalid"
Huawei has removed the unlock command in EMUI 10.
Downgrade your software and try again.

Open Source Agenda is not affiliated with "Huawei Honor Unlock Bootloader" Project. README Source: SkyEmie/huawei-honor-unlock-bootloader
Stars
406
Open Issues
3
Last Commit
1 year ago
License

Open Source Agenda Badge

Open Source Agenda Rating