Skip to content

flash: server returns "success" but validation did not return a token (v1.1.1) #8

Description

@jsnmcclintock-cloud

Summary

On a locked-bootloader device in Mi Assistant mode, flash prints Server message: success and then immediately fails with Error: Validation did not return a token, so the flash cannot start.. The server accepts the package, but the tool doesn't extract a token from the validation response, so sideload never starts. There's no --dump-json/--verbose on flash to inspect the response, and no query command exposes the token, so the documented --token workaround can't be used either.

Environment

  • Sensitivity 1.1.1 (sensitivity-cli, Windows x86_64 artifact)
  • Windows 10 (19045)
  • Device: Redmi Pad (yunluo), EEA - reported by info as yunluo_eea_global
  • Current firmware: V14.0.3.0.TLYEUXM (MIUI 14 / Android 13)
  • Target ROM: OS1.0.11.0.ULYEUXM official EEA Recovery ROM (local zip)

Setup is healthy

  • doctor, detect, and info all succeed:
Image

Steps to reproduce

  1. Boot device to stock recovery → Connect with Mi Assistant.
  2. Run: sensitivity-cli flash "C:\...\rom.zip" --profile eea --codename yunluo --wipe --yes

Actual
Image

Identical result without --profile/--codename.

Expected
After Server message: success, the token is extracted from the validation response and sideload proceeds.

Possibly related (JSON parsing on same device/region):
Image
Image

Together with the token failure, this suggests the decrypted miotaV3 response is being parsed against an unexpected schema/field names (or differing AES key/IV framing) for this device/region - the data seems to arrive, but field extraction fails.

Asks

  1. Could the flash validation-response parser be checked for the token field name/path? Since the server returns success, the token is likely present but under an unexpected key.
  2. Could --dump-json and/or -v/--verbose be enabled on flash so the raw decrypted response can be inspected?
  3. Is there a supported way to obtain the token for manual use with --token?

Happy to run diagnostic builds or commands. Thanks for the tool.

Activity

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions