/Xiaomi-HyperOS-BootLoader-Bypass-Python-Port

A PoC that exploits a vulnerability to bypass the Xiaomi HyperOS community restrictions of BootLoader unlocked account bindings.

Primary LanguagePython

Xiaomi HyperOS BootLoader Bypass (Python port)

A python port of MlgmXyysd's Xiaomi HyperOS BootLoader Bypass (Version: 1.0).

This port can be used as direct replacement of the php script.

All other usage steps and risks are identical to the original.

Requirements

⚙️ How to use

Step 3 onward copied from the original.

  1. Fullfill the requirements
  2. python bypass.py
  3. Tap repeatedly on the Settings - About Phone - MIUI Version to enable Development Options.
  4. Enable OEM Unlocking, USB Debugging and USB Debugging (Security Settings) in Settings - Additional Settings - Development Options.
  5. Log in an valid* Xiaomi account.
  6. Connect phone to PC via wired interface.
  7. Check Always allow from this computer and click OK.
  1. Wait and follow the prompts of script.
  2. After successful binding, you can use the official unlock tool to check the time you need to wait.
  3. During the waiting period, please use the device normally, keep the SIM card inserted, do not log out of your account or turn off Find My Phone, and do not re-bind the device until it is successfully unlocked. The device will automatically send HeartBeat packets to the server every once in a while.