Skip to content

fastboot stage fails with 'Failed to get the number of bytes to download' on POCO F7 (onyx / Snapdragon 8s Gen 4) #214

Open

Description

@9M2PJU

Device & Environment

  • Device: POCO F7 (onyx / 25053PC47G)
  • Chipset: Qualcomm Snapdragon 8s Gen 4 (SM8735)
  • OS: HyperOS 2 / Android 16
  • Host OS: Arch Linux (x86_64)
  • Fastboot version: fastboot version 37.0.0-android-tools and Google Platform-Tools 37.0.1
  • Tool Version: MiUnlockTool (latest main)

Prerequisites Met

  • Account has unlock permission in Xiaomi Community
  • Device bound in Developer Options -> Mi Unlock Status
  • Waiting period completed
  • Login & region selection successful (Region: MY, Datacenter: Singapore)
  • API request /api/v3/ahaUnlock succeeded with code: 0 and returned valid encryptData

Problem Description

After the server returns code: 0 with the signed encryptData payload, miunlock writes the binary to disk and executes:

fastboot stage <filename>
fastboot oem unlock

The fastboot stage step immediately fails with:

Sending '/home/x/1789924175encryptData' (0 KB)     FAILED (remote: 'Failed to get the number of bytes to download')
fastboot: error: Command failed

Root Cause / Technical Context

On newer Qualcomm Snapdragon bootloaders (Qualcomm ABL on Snapdragon 8s Gen 4 / SM8735), the bootloader does not support the stage: fastboot command. The unhandled command falls through to the download handler in ABL with a null argument, triggering the error string:

FastbootFail("Failed to get the number of bytes to download");

Is there an alternative command or staging protocol supported for newer Qualcomm ABL bootloaders under Linux?

Activity

  1. kloopi commented on Oct 29, 2026

    @kloopi

    i have the same issue has it fixed yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions