MlgmXyysd / Xiaomi-HyperOS-BootLoader-Bypass

A PoC that exploits a vulnerability to bypass the Xiaomi HyperOS community restrictions of BootLoader unlocked account bindings.
https://www.neko.ink/
2.1k stars 272 forks source link
android android-development bootloader bootloader-unlock hyperos miui xiaomi

Xiaomi HyperOS BootLoader Bypass

Version: 1.0 δΈ­ζ–‡ζ–‡ζ‘£ ζ—₯本θͺž

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

Feel free pull request if you want :)

πŸ’˜ php-adb

The project proudly uses the php-adb library.

β˜• Buy me a Coffee

✨ If you like my projects, you can buy me a coffee at:

⚠️ Warning

After unlocking the BootLoader, you may encounter the following situations:

If you're experiencing any of the above, you should take all the responsibility yourself as this is the risk you may encounter when unlocking BootLoader. This obviously does not cover all risks. You've been warned.

If you're experiencing any of the above, consider yourself damned. Ever since Xiaomi restricted unlocking BootLoader, it has been against Xiaomi's 'geek' spirit and even the GPL. Xiaomi's restrictions on BootLoader unlocking are endless, and there's nothing we as developers can do about it.

πŸ“² Unlocking requirements

βš™οΈ How to use

  1. Download and install PHP 8.0+ for your system from the official website.
  2. Enable OpenSSL and Curl extension in php.ini. (And/or set extension_dir to your PHP's ext directory if script not work.)
  3. Place adb.php in php-adb to the directory.
  4. Download platform-tools and place them in libraries. Note: Mac OS needs to rename adb to adb-darwin.
  5. Open a terminal and use PHP interpreter to execute the script.
  1. Tap repeatedly on the Settings - About Phone - MIUI Version to enable Development Options.
  2. Enable OEM Unlocking, USB Debugging and USB Debugging (Security Settings) in Settings - Additional Settings - Development Options.
  3. Log in an valid* Xiaomi account.
  4. Connect phone to PC via wired interface.
  5. 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.

πŸ“– Workaround

πŸ”– FAQs

βš–οΈ License

No license, you are only allowed to use this project. All copyright (and link, etc.) in this software is not allowed to be deleted or changed without permission. All rights are reserved by MeowCat Studio, Meow Mobile and NekoYuzu.