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.
- Python 3.6+
- Python Packages
pip install adbutils pycryptodome
- adbutils
- pycryptodome
Step 3 onward copied from the original.
- Fullfill the requirements
python bypass.py
- Tap repeatedly on the
Settings - About Phone - MIUI Version
to enableDevelopment Options
. - Enable
OEM Unlocking
,USB Debugging
andUSB Debugging (Security Settings)
inSettings - Additional Settings - Development Options
. - Log in an valid* Xiaomi account.
- Connect phone to PC via wired interface.
- Check
Always allow from this computer
and clickOK
.
- * See "Unlocking Requirements" above.
- Wait and follow the prompts of script.
- After successful binding, you can use the official unlock tool to check the time you need to wait.
- 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 sendHeartBeat
packets to the server every once in a while.