Skip to content

fix(firmware): detect bitcoin-only variant in flash preview#348

Merged
BitHighlander merged 1 commit into
developfrom
fix/flash-detect-bitcoin-only
Jul 12, 2026
Merged

fix(firmware): detect bitcoin-only variant in flash preview#348
BitHighlander merged 1 commit into
developfrom
fix/flash-detect-bitcoin-only

Conversation

@BitHighlander

Copy link
Copy Markdown
Collaborator

The flash-preview screen read a bitcoin-only .bin as full multi-chain — generic v7.15.0 'What's New' (Zcash/Solana/TON/etc.) and no variant indicator. The device can't report firmware_variant until it boots the new firmware, so flash-time detection must come from the binary.

  • analyzeFirmware scans the payload for the embedded KeepKeyBTC/EmulatorBTC literal (compiled in only under #if BITCOIN_ONLY, fsm_msg_common.h) → isBitcoinOnly. Verified true on the rc7 btc-only bin (payload eec35ee3), false on a full build (b8824d55).
  • FirmwareDropZone shows a BITCOIN-ONLY badge and threads the flag to the preview.
  • FirmwareUpgradePreview renders a single honest Bitcoin-only card + headline instead of the multi-chain notes.

Follow-up to #347.

The flash-preview screen read a bitcoin-only .bin as full multi-chain — it
showed the generic v7.15.0 'What's New' (Zcash/Solana/TON/etc., none of which
a btc-only device can touch) and no variant indicator. The device can't report
firmware_variant until it BOOTS the new firmware, so flash-time detection must
come from the binary itself.

- analyzeFirmware scans the payload for the embedded 'KeepKeyBTC'/'EmulatorBTC'
  literal (compiled in only under #if BITCOIN_ONLY, fsm_msg_common.h); returns
  isBitcoinOnly. Verified true on the rc7 btc-only bin, false on a full build.
- FirmwareDropZone shows a BITCOIN-ONLY badge and threads the flag to the preview.
- FirmwareUpgradePreview renders a single honest Bitcoin-only card + headline
  instead of the multi-chain release notes when isBitcoinOnly.
@BitHighlander BitHighlander merged commit 990301f into develop Jul 12, 2026
1 check passed
@BitHighlander BitHighlander deleted the fix/flash-detect-bitcoin-only branch July 12, 2026 02:56
@BitHighlander

Copy link
Copy Markdown
Collaborator Author

Backed out of develop and consolidated into a single reviewable PR: #353 (branch btc-only). The change itself is unchanged — this was a history cleanup so btc-only ships as one PR. Nothing to do here.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant