1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-28 10:29:04 +00:00
Commit Graph

13944 Commits

Author SHA1 Message Date
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
Martin Milata
1c7e8d5391 ci: always post UI report comment 2024-11-11 17:10:09 +01:00
Martin Milata
b40ce852ea build(core/translations): check order.json for holes
[no changelog]
2024-11-08 16:11:28 +01:00
cepetr
79cf4959d3 refactor(core): improve button driver (add interrupt support)
[no changelog]
2024-11-07 08:48:21 +01:00
tychovrahe
375a27978f feat(core): switch screenshot button to 's'
[no changelog]
2024-11-07 08:48:21 +01:00
tychovrahe
435fbd6e8c feat(core): add power button to button driver
[no changelog]
2024-11-07 08:48:21 +01:00
Martin Milata
0f8a2955ec fix(core/translations): preserve model groups when running cli.py gen
[no changelog]
2024-11-06 19:07:15 +01:00
Martin Milata
5bc2f8d1ec build(core): check if language versions match firmware
[no changelog]
2024-11-06 19:07:15 +01:00
Lukas Bielesch
7a61d8e858 chore(core) Translate hard-coded 'Enable labeling' string 2024-11-06 18:34:05 +01:00
Martin Milata
18d2372c10 chore(core): new signed translations for 2.8.0, 2.8.1, 2.8.3 2024-11-06 15:57:31 +01:00
Martin Milata
e558ec1c98 chore(core): bump version to 2.8.6
[no changelog]
2024-11-06 15:57:31 +01:00