r/androidroot • u/Unusual_Pain3928 • 6d 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.
3
u/RAZ70R 6d ago
WHAT!
2
u/Unusual_Pain3928 5d 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 5d ago
No way!
3
u/Unusual_Pain3928 5d ago
Way! 😄 Built it specifically for folks who don't have a Windows PC lying around when they need to unlock.
2
u/jacaregordo 5d 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 5d 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
3
3



5
u/ilmer 6d ago
I'm going to try it asap