matejcik
495dca10da
chore(core/rust): add uDebug capability to more places
2024-10-16 16:23:46 +02:00
matejcik
ede3c95c3f
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-10-16 16:23:46 +02:00
matejcik
c22dc2ffc4
style: fix style problems
2024-10-16 16:23:46 +02:00
matejcik
7ef1ce7b4b
style(core/rust): avoid unused warning
2024-10-16 16:23:46 +02:00
matejcik
6c218d8d6c
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-10-16 16:23:46 +02:00
matejcik
38395c16ce
chore(python): improve recovery type deprecation warning
2024-10-16 16:23:46 +02:00
matejcik
84292a66b4
fix(python): improve robustness of TrezorClientDebugLink setup
...
* improve sync_responses to work on uninitialized instance
* sync responses at construction time
2024-10-16 16:23:46 +02:00
matejcik
526bd8afff
fix(core): allow Ping while locked
...
same behavior as on Trezor One
2024-10-16 16:23:46 +02:00
matejcik
dd7f5289e2
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-10-16 16:23:46 +02:00
matejcik
adaf0b7871
refactor(core/ui): reusable timers
2024-10-16 16:23:46 +02:00
matejcik
3de77db2b8
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-10-16 16:23:46 +02:00
matejcik
7578f77ce8
feat(tests): sync received responses
...
to prevent "unexpected response to Initialize" errors
2024-10-16 16:23:46 +02:00
matejcik
2869c805d2
docs(core): add changelog
2024-10-16 16:23:46 +02:00
matejcik
c6bd058db3
style: fix complaining lints & formatters
2024-10-16 16:23:46 +02:00
matejcik
fe7ceeec4b
fix(core): correctly repaint ShowMore component when requested
2024-10-16 16:23:46 +02:00
matejcik
33a200a0e9
tests: fix small irregularities
2024-10-16 16:23:45 +02:00
matejcik
ad96676f18
refactor(core): improve recovery_enter_share
2024-10-16 16:23:45 +02:00
matejcik
83d2fd4832
tests: use read_layout everywhere
2024-10-16 16:23:45 +02:00
matejcik
9aa2c6123a
docs(core): Layout lifecycle documentation
2024-10-16 16:23:45 +02:00
matejcik
fcc5658221
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-10-16 16:23:45 +02:00
matejcik
f86bdca4b7
fix(core/ui): repaint the title of Progress layout when requested
2024-10-16 16:23:45 +02:00
matejcik
df6483c269
feat(core): unify RustLayout, implement single global layout
2024-10-16 16:23:45 +02:00
matejcik
532d461a02
refactor(core/rust): introduce layout lifecycle states on Rust side
2024-10-16 16:23:45 +02:00
matejcik
e7bc73bebc
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-10-16 16:23:45 +02:00
matejcik
027a6ce8f0
build(core): fix random order seed when using zsh
2024-10-16 16:23:45 +02:00
matejcik
bddcfa0878
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-10-16 16:23:45 +02:00
matejcik
9d834d2ec7
feat(core): add mailbox as a simplified version of chan
2024-10-16 16:23:45 +02:00
matejcik
d88ecc1c24
refactor(core): remove debuglink support from main handle_session
...
It is being moved into a custom handler for the debug app.
2024-10-16 16:23:45 +02:00
matejcik
1f1eaa68a6
refactor(core): remove unused features from loop.race
2024-10-16 16:23:45 +02:00
matejcik
5686f46a03
feat(core): introduce timeout to loop.wait()
2024-10-16 16:23:45 +02:00
tychovrahe
0f84d51051
refactor(core): expose USE_TOUCH and USE_BUTTON to uPy
...
[no changelog]
2024-10-16 16:23:45 +02:00
matejcik
e9bb598d2f
refactor(core/rust): create a single code path allowed to modify SwipeFlow state
2024-10-16 16:23:45 +02:00
M1nd3r
7b6ce56ac3
fix(core): remove redundant AES_GCM flag in SConscript.firmware
...
[no changelog]
2024-10-16 16:19:28 +02:00
Martin Milata
a2a189ceb3
chore(core): update common/models.json
...
source: https://github.com/trezor/trezor-suite/blob/develop/packages/connect/src/data/models.ts
2024-10-14 15:49:38 +02:00
Martin Milata
7e00697625
chore(common): add mapping of which fw versions were released for which model
2024-10-14 15:49:38 +02:00
Ondřej Vejpustek
2d5d7201d5
feat(core): allow benchmark only in debug
...
[no changelog]
2024-10-11 16:35:34 +02:00
Ondřej Vejpustek
e8f8d0e7af
build(core): move argument parsing together
...
[no changelog]
2024-10-11 16:35:34 +02:00
Ondřej Vejpustek
cf38460286
build(core): hide benchmark application behind compilation flag
...
[no changelog]
2024-10-11 16:35:34 +02:00
Ondřej Vejpustek
c8faac952a
feat(python): implement benchmark application interface
2024-10-11 16:35:34 +02:00
Ondřej Vejpustek
52d85d1f39
feat(core): implement benchmark application
2024-10-11 16:35:34 +02:00
Ondřej Vejpustek
b436b39091
chore(core): add benchmark messages
...
[no changelog]
2024-10-11 16:35:34 +02:00
obrusvit
3f1d2059ca
chore(core): update fixtures
2024-10-10 19:14:16 +02:00
obrusvit
cdaec13af0
feat(core): add more IT/PT translations
2024-10-10 19:14:16 +02:00
obrusvit
08845d410d
fix(core/ui): add 2nd version of continue anyway
...
To distinguish between prompt and a question.
2024-10-10 19:14:16 +02:00
obrusvit
faa209b5d9
fix(core/ui): use correct labels at a few places
...
[no changelog]
2024-10-10 19:14:16 +02:00
obrusvit
3475354a1a
fix(core/ui): fix title of XPUB success screen
2024-10-10 19:14:16 +02:00
Andrew Kozlik
911fe2a526
feat(core): Implement extend_mnemonics() for SLIP-39.
...
[no changelog]
2024-10-10 12:52:06 +02:00
tychovrahe
d71d9e9c34
feat(core): add T3W1 emulator build
...
[no changelog]
2024-10-09 15:06:40 +02:00
tychovrahe
a0c885d244
fix(core): fix T3T1 MCU definition for emulator
...
[no changelog]
2024-10-09 15:06:40 +02:00
tychovrahe
915d4fca94
feat(core): add support for T3W1, on F4
...
[no changelog]
2024-10-09 15:06:40 +02:00