1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 12:08:59 +00:00
Commit Graph

13904 Commits

Author SHA1 Message Date
matejcik
dfac2ae4dd style(python): upgrade debuglink.py to 3.10 style type annotations 2024-11-12 16:55:17 +01:00
matejcik
3a8f92f64d tests(core): fix upgrade tests 2024-11-12 16:55:17 +01:00
Martin Milata
cc77425f39 test(core): fix T2T1 FIDO2 test
Submodule update only.

[no changelog]
2024-11-12 16:55:17 +01:00
Martin Milata
87a01a9bfb test(core): fix T3T1 U2F test
[no changelog]
2024-11-12 16:55:17 +01:00
Martin Milata
ea815eba93 test(core): fix test_reset_bip39_t2
[no changelog]
2024-11-12 16:55:17 +01:00
obrusvit
4b53a3ea9d fix(tests): fix T3B1 persistance test 2024-11-12 16:55:17 +01:00
obrusvit
69770a42f4 fix(tests): fix click tests race condition 2024-11-12 16:55:17 +01:00
obrusvit
a22f1d3760 fix(tests): assert multiple in slip39 checklist 2024-11-12 16:55:17 +01:00
matejcik
e199d2bcaf fix(tests): fix persistence tests, enable T3B1 2024-11-12 16:55:17 +01:00
matejcik
8d2f0a6566 style: make style_check passing 2024-11-12 16:55:17 +01:00
matejcik
ac5a5147e9 style(core/rust): fix linter complaints 2024-11-12 16:55:17 +01:00
matejcik
31958b7fb8 fix(core): restore ellipsis functionality on TR 2024-11-12 16:55:17 +01:00
matejcik
d4423b3569 fix(tests): correctly check that backup flow was aborted 2024-11-12 16:55:17 +01:00
matejcik
fbc2c828ec fix(tests): do not place recorded.zip into the destdir
instead, download it to a temp location, as the Prophecy (and authors of
urlretrieve) foretold
2024-11-12 16:55:17 +01:00
matejcik
0a6c5504ef fix(core): fix cancel behavior in SignMessage 2024-11-12 16:55:17 +01:00
matejcik
73c8149528 fix(tests): do not trip deadlock detection in autolock test 2024-11-12 16:55:17 +01:00
matejcik
b6b827cf7b chore: update fixtures 2024-11-12 16:55:17 +01:00
matejcik
0be96cb70b chore(core/rust): add uDebug capability to more places 2024-11-12 16:55:17 +01:00
matejcik
ef90546324 fix(python): opportunistically catch a debuglink desync
In certain cases a DebugLinkState response can get stalled and debuglink
will not read it -- i.e., a situation analogous to wirelink de-sync.
There doesn't seem to be a good way to force-sync debuglink the same way
wirelink does it, but we can detect a wrong response to a
DebugLinkGetState and skip it.
2024-11-12 16:55:17 +01:00
matejcik
a4bd771e3b style: fix style problems 2024-11-12 16:55:17 +01:00
matejcik
3f9e37abb4 style(core/rust): avoid unused warning 2024-11-12 16:55:17 +01:00
matejcik
12cf208237 fix(tests): stop waiting for background task after a timeout
Otherwise a test can hang if the result is not returned. This is not
even covered by pytest-timeout because if a test fails, the call to
task.kill() happens during teardown, and pytest-timeout doesn't cover
that.
2024-11-12 16:55:17 +01:00
matejcik
f4240d6309 chore(python): improve recovery type deprecation warning 2024-11-12 16:55:17 +01:00
matejcik
b48c36c2bf fix(python): improve robustness of TrezorClientDebugLink setup
* improve sync_responses to work on uninitialized instance
* sync responses at construction time
2024-11-12 16:55:17 +01:00
matejcik
e1b4a4a79a fix(core): allow Ping while locked
same behavior as on Trezor One
2024-11-12 16:55:17 +01:00
matejcik
adc3516ac6 feat(core): drop support for after-step-hook
This was necessary for hooking display.refresh() with the old UI toolkit.
With the new one, we explicitly refresh the display after every paint, so
implicit after-step refresh seems no longer necessary.
2024-11-12 16:55:17 +01:00
matejcik
9e911605da refactor(core/ui): reusable timers 2024-11-12 16:55:17 +01:00
matejcik
d385667b4a fix(tests): restore test functionality on legacy
The global layout related changes were wrong for T1 where debuglink
behavior is significantly different; in particular, it is not always
possible to communicate over debuglink.

This change reverts to the old behavior for T1B1 and keeps the new one
only for core-based models.
2024-11-12 16:55:17 +01:00
matejcik
617db52f43 feat(tests): sync received responses
to prevent "unexpected response to Initialize" errors
2024-11-12 16:55:17 +01:00
matejcik
2ddb811683 docs(core): add changelog 2024-11-12 16:55:17 +01:00
matejcik
11ae7a92ab style: fix complaining lints & formatters 2024-11-12 16:55:17 +01:00
matejcik
577c36614e fix(core): correctly repaint ShowMore component when requested 2024-11-12 16:55:17 +01:00
matejcik
adc9b523be tests: fix small irregularities 2024-11-12 16:55:17 +01:00
matejcik
cd25071a29 refactor(core): improve recovery_enter_share 2024-11-12 16:55:17 +01:00
matejcik
82290c2e5c tests: use read_layout everywhere 2024-11-12 16:55:17 +01:00
matejcik
e3a478044d docs(core): Layout lifecycle documentation 2024-11-12 16:55:17 +01:00
matejcik
84d7597d52 feat(core): show progress before starting to wipe device
This doesn't actually advance the progress while device erase is ongoing, but at least the user sees a loader.
2024-11-12 16:55:17 +01:00
matejcik
eb97bafeef fix(core/ui): repaint the title of Progress layout when requested 2024-11-12 16:55:17 +01:00
matejcik
0e8dcbb498 feat(core): unify RustLayout, implement single global layout 2024-11-12 16:55:17 +01:00
matejcik
df368413c6 refactor(core/rust): introduce layout lifecycle states on Rust side 2024-11-12 16:55:17 +01:00
matejcik
c8f3ebfa21 refactor(core/ui): improve LayoutObj initialization
* RequestPaint message is sent at construction time to force calculation
  of number of pages
* given that Attach corresponds to "start the layout" message, Child now
  responds to Attach the same way it responds to RequestPaint, by
  force-repainting everything.
2024-11-12 16:55:17 +01:00
matejcik
81b3fda665 build(core): fix random order seed when using zsh 2024-11-12 16:55:17 +01:00
matejcik
1fc7d41b8d fix(core): set default value for do_not_restart
otherwise if _handle_single_message raises an exception (which is
fortunately not something that should generally happen), the
finally-block would fail on "referenced before assignment"
2024-11-12 16:55:17 +01:00
matejcik
98dde40729 feat(core): add mailbox as a simplified version of chan 2024-11-12 16:55:17 +01:00
matejcik
7617bc8c25 refactor(core): remove debuglink support from main handle_session
It is being moved into a custom handler for the debug app.
2024-11-12 16:55:17 +01:00
matejcik
0334b42c8e refactor(core): remove unused features from loop.race 2024-11-12 16:55:17 +01:00
matejcik
b7b09b8836 feat(core): introduce timeout to loop.wait() 2024-11-12 16:55:17 +01:00
tychovrahe
1efb684544 refactor(core): expose USE_TOUCH and USE_BUTTON to uPy
[no changelog]
2024-11-12 16:55:17 +01:00
matejcik
dbe6c1c664 refactor(core/rust): create a single code path allowed to modify SwipeFlow state 2024-11-12 16:55:17 +01:00
tychovrahe
0d3af6a96a fix(core): fix firmware hashing on U5
[no changelog]
2024-11-12 12:55:36 +01:00