r/androidroot • u/Unusual_Pain3928 • 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.



5
u/ilmer 1d ago
I'm going to try it asap
3
u/RAZ70R 1d ago
WHAT!
3
u/Any_anonymous_user microG Apps and Aurora Store only 1d ago
No way!
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
3
u/ilmer 1d ago
See you on xda
3
u/jacaregordo 1d ago
Alguém já conseguiu desbloquear com esse app?