AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 18 Bitcoin

fix(prodtest): remove st hal calls from prodtest emulator

Public commit record

What the developer wrote

Authored by cepetr

62/100 · Adequate
fix(prodtest): remove st hal calls from prodtest emulator

[no changelog]
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a build or runtime problem in the Trezor hardware wallet's production-test firmware when it is compiled for the software emulator. It wraps real hardware calls (deinitializing the Bluetooth module and UART, resetting the NRF chip, and entering direct test mode) inside a check that skips them on the emulator. There is no direct user security impact; it is a build/test-harness fix.

Recommended action

No security action required. Treat as a normal build/test fix. If reviewing, verify that the emulator path still returns cli_ok and does not leave the BLE stack in an inconsistent state for test scripts.

Security signals we found

01

Hardware abstraction layer (HAL) calls gated by emulator preprocessor macro

02

Production-test command functions modified to skip physical BLE/NRF operations in emulator builds

03

No input validation, buffer handling, or cryptographic code changed

Risk score

Why this scored 18/100

Our methodology →
Potential impact 2/30
Exploitability 1/25
Stealth signal 1/15
Affected reach 2/15
Confidence 8/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.