Skip to content

Releases

v1.0.30

Choose a tag to compare

@github-actions github-actions released this 25 Nov 04:14

Bootloader Studio 1.0.30 is a bug-fix release for the unlock approval stage.

Fixed

  • 10005 Invalid nonce param: Xiaomi made /api/v2/nonce single-use. The app previously reused the nonce consumed by /api/v2/unlock/device/clear for /api/v3/ahaUnlock, so the server rejected the unlock request.
  • Fresh nonce for every unlock attempt: a new nonce is requested immediately before each ahaUnlock call instead of reusing the preflight nonce.
  • Nonce retry: a 10004/10005 rejection now retries once with a fresh nonce and does not repeat clearDevice, because that would consume the new nonce before it can be used.
  • Eligibility cache: the clearDevice result (notice, cleanOrNot) is still reused briefly for the same device, but its nonce is never reused.
  • Authentication retry: when unlock returns 10001, the account is refreshed and the next attempt receives its own fresh nonce.

Verification

  • 115 unit tests pass, including a simulated 10005 rejection and retry.
  • Version: 1.0.30 (versionCode 31).

Notes

  • No re-login is required. Existing Xiaomi sessions remain valid.
  • Use the universal APK if you are unsure which ABI your device needs.

Full Changelog: v1.0.29...v1.0.30

Bootloader Studio 1.0.29

Choose a tag to compare

@github-actions github-actions released this 22 Nov 16:45

Bootloader Studio 1.0.29 is a bug-fix release focused on the native Xiaomi
login and unlock session exchange.

Fixed

  • Native session exchange: serviceLogin/STS requests are now scoped to the
    passport cookies, without the web-only markers that made Xiaomi skip
    ssecurity.
  • STS compatibility: pre-signed STS locations, serviceToken delivered in
    response headers, and the legacy redirect fallback for ssecurity are all
    supported.
  • Region/host mismatch: the service token is sent to the STS host that
    issued it instead of a region-config guess.
  • Session handling: recoverable Xiaomi failures (JSON error codes, missing
    STS token) keep the saved session and stay retryable. Only an explicit
    HTTP 401/403 or sign-in page clears it.
  • HTTP 401/403 during unlock: the account is refreshed once and the request
    is retried before reporting an error.
  • Cookie capture: the newest passToken, deviceId, and userId win, and
    account cookies take precedence over unlock-domain cookies. The remaining
    browser cookies (cUserId, passport_*, unlockApi_*) are persisted so the
    native exchange has the full cookie set.
  • Stale credentials: when Xiaomi rejects a session, the WebView cookie jar
    is cleared too, so the next login cannot reuse a dead pass token.
  • WebView reliability: aborted or superseded main-frame loads are ignored or
    retried automatically, and STS completion is detected from both HTML and
    rendered text (the JSON STS page renders as plain text).

Added

  • Identity verification: when Xiaomi requires an SMS/e-mail identity check,
    the app opens the notification URL in a WebView that shares the login cookie
    jar, then resolves the account again. Backing out keeps the session and shows
    Retry on the account screen.

Notes

  • Sessions saved by 1.0.28 are migrated automatically to the new cookie-aware
    storage. A new sign-in is only needed if Xiaomi explicitly rejects the stored
    credentials.
  • Debug HTTP/WebView logging was removed from the build, and local HAR captures
    are now gitignored.

Downloads

Use app-universal-release.apk for sideloading on most devices.

Requirements

  • Android 9 (API 28) or newer on the host device
  • USB host/OTG support
  • A second Android device in fastboot mode with an eligible Xiaomi account

Unlocking the bootloader erases all data and may void the warranty. Use this
app only on devices you own and at your own risk.

Full changelog: v1.0.28...v1.0.29

Bootloader Studio 1.0.28

Choose a tag to compare

@github-actions github-actions released this 19 Nov 10:00

Initial public release of Bootloader Studio 1.0.28.

Highlights

  • Official Xiaomi server-authorized bootloader unlock flow
  • USB fastboot token staging and post-unlock verification
  • Encrypted session storage using the Android Keystore (AES/GCM)
  • Localized Xiaomi error messages with the raw server response preserved
  • Signed per-ABI APKs plus a universal APK

Downloads

Use app-universal-release.apk for sideloading on most devices.

Requirements

  • Android 9 (API 28) or newer on the host device
  • USB host/OTG support
  • A second Android device in fastboot mode with an eligible Xiaomi account

Unlocking the bootloader erases all data and may void the warranty. Use this
app only on devices you own and at your own risk.

Full changelog: https://github.com/nexarioneo/BootloaderS/commits/v1.0.28