Giter Site home page Giter Site logo

crackercat / huawei-honor-unlock-bootloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vcka/huawei-honor-unlock-bootloader

0.0 0.0 0.0 2.96 MB

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

License: Apache License 2.0

Python 92.36% Shell 7.64%

huawei-honor-unlock-bootloader's Introduction

huawei-honor-unlock-bootloader

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.

huawei-honor-unlock-bootloader's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.