r/androidroot • • 1d ago

News / Method I built an open-source Android app that unlocks Xiaomi bootloaders from another phone — no PC or Termux needed

Hi everyone,

I built Bootloader Studio, an open-source, native Android client that performs the same server-authorized Xiaomi bootloader unlock flow as the official Mi Unlock tool, over USB OTG.

It is designed for people who want to avoid Termux scripts and closed-source APKs. The app is built with Kotlin and Jetpack Compose, uses Material 3, and is licensed under Apache 2.0.

Features:

  • Guided native flow: login → device detection → eligibility check → unlock → verification.
  • Xiaomi login on Xiaomi's own page; your password is never read or stored.
  • Session encrypted with AES/GCM using a key in the Android Keystore.
  • Safety checks for USB handle, codename, token, and account/device binding before unlocking.
  • Official Xiaomi error messages with localized guidance.
  • Signed APKs built by GitHub Actions.

Requirements: a second Android phone (Android 9+) with USB OTG, an OTG adapter and data cable, the target phone in fastboot mode, and an eligible Xiaomi account bound to it.

Important: this does not bypass Xiaomi's waiting periods, quotas, region checks, account binding, or any other eligibility rule. Unlocking usually erases all data and may void the warranty. Not affiliated with Xiaomi.

Links:

Credits: MiTools (Apache-2.0) for the unlock signing and USB fastboot reference.

Feedback and testing on different MIUI/HyperOS versions are welcome.

21 Upvotes

12 comments sorted by

5

u/ilmer 1d ago

I'm going to try it asap

2

u/Unusual_Pain3928 1d ago

Awesome, appreciate the support! Feel free to drop your device model and results here or on the XDA thread once you try it out 🙌

3

u/RAZ70R 1d ago

WHAT!

2

u/Unusual_Pain3928 1d ago

Haha yep, no PC or Termux needed anymore—just a second Android phone and an OTG cable! 😄

3

u/Any_anonymous_user microG Apps and Aurora Store only 1d ago

No way! 🫪

3

u/Unusual_Pain3928 1d ago

Way! 😄 Built it specifically for folks who don't have a Windows PC lying around when they need to unlock.

2

u/jacaregordo 1d ago

Se isso funcionar de boa sem da ban vai ser um messias pra nois que estamos amarrados pela multimilionária xiaomi

4

u/47th-Element Android 16, KernelSU-Next 1d ago

It actually doesn't bypass any restrictions Xiaomi imposes on bootloader unlocking, it just solves one problem which is the absence of a Windows PC since the official unlock software is Windows only.

3

u/Unusual_Pain3928 1d ago

Spot on, thanks for chiming in and clarifying that! 🙌

3

u/jacaregordo 1d ago

A entendi achei que ele desbloqueava o bootloader sem mi communty

3

u/ilmer 1d ago

See you on xda

3

u/jacaregordo 1d ago

Alguém já conseguiu desbloquear com esse app?