fix(core): return to homescreen after successful BLE pairing
What changed, and why it matters
This is a minor user-interface fix. After you successfully pair a new Bluetooth device with the Trezor hardware wallet, the menu now correctly returns to the main home screen instead of staying in the pairing menu. There is no direct security vulnerability here; it is a usability polish change.
No security action required. Treat as a normal UI/UX fix.
Security signals we found
No cryptographic or authentication changes
No buffer overflow, injection, or privilege escalation patterns
UI flow correction only
No references to CVEs, advisories, or security reports
Evidence from the diff
The commit adds a single line in core/src/apps/homescreen/device_menu.py that raises ExitDeviceMenu after pair_new_device() succeeds. This forces the UI flow back to the homescreen. The change does not alter cryptographic, authentication, or Bluetooth bonding logic. It only affects the post-pairing navigation state.
Changed components
core/src/apps/homescreen/device_menu.pyInspect captured patch +1 / −0
diff --git a/core/src/apps/homescreen/device_menu.py b/core/src/apps/homescreen/device_menu.py
index fd82fdad5..8a4621ce2 100644
--- a/core/src/apps/homescreen/device_menu.py
+++ b/core/src/apps/homescreen/device_menu.py
@@ -232,6 +232,7 @@ async def handle_PairDevice() -> None:
paired_devices = [_get_hostinfo(bond, hostname_map) for bond in ble.get_bonds()]
if len(paired_devices) < ble.MAX_BONDS:
await pair_new_device()
+ raise ExitDeviceMenu # return to homescreen
else:
await show_warning(
"device_pair",
Why this scored 18/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.