r/PocoPhones
•
u/Unusual_Pain3928
•
3d ago
•
1
Apps/Mods 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/ilmer 2d ago
Wow, nicely done. What do you mean by otg adapter? USB-C tot USB-C cable?
2
u/deadly_poison7 2d ago
Wait, let me see if I’ve got this right: this doesn’t bypass the reservation process on the Xiaomi Community, does it? I still need to successfully make a reservation first, in order to link my account via the "Mi Unlock" option in the developer settings—is that correct?
It’s a fucking nightmare; I’ve been trying for 3 weeks now, but I can’t manage it—not even with scripts.
2
u/Cheap_Phrase_710 21h ago
Got this error