You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fastboot stage fails with 'Failed to get the number of bytes to download' on POCO F7 (onyx / Snapdragon 8s Gen 4) #214
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
kloopi commentedon Oct 29, 2026
i have the same issue has it fixed yet?