Commit Graph

1139 Commits

Author SHA1 Message Date
matejcik
5e261d5efe fix(python): allow THP session id 255
[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
776355e003 refactor(python): streamline record_screen functionality
The function as written didn't really belong into debuglink, so it was
moved to trezorctl, and emu.py can import it from there. Also improved
type annotations, simplified implementation, and made sure that
recording is properly stopped even on an error.

[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
8ebd829152 fix(python): improve session handling and unlocking
* for trezorctl, implement custom version of `ensure_unlocked()` on
  TrezorConnection, so that we can reuse the standard session which
  unlocked the device
* move some of the passphrase handling into TrezorConnection in order
  to avoid get_default_session, which has to call its own
  ensure_unlocked()
* clean up features handling in client.get_session(), to properly handle
  the case that features are locked

[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
debe4b6c59 fix(python): allow client.ensure_unlocked() to proceed on an uninitialized device
[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
6401bacd72 fix(python): do not warn about session id when in bootloader mode
[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
26186e484e fix(python/thp): correctly handle maximum allowable THP message size
[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
0d5d6b9d88 chore(python): invalidate session even if EndSession call fails
[no changelog]
2026-02-03 14:47:31 +01:00
Roman Zeyde
76b2775539 fix(python): support older releases without Features.capabilities
Otherwise, `test_cardano_address_does_not_change_by_upgrade` fail on older releases.

[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
6e3018509b refactor(python): rework session-based API
Co-authored-by: M1nd3r <petrsedlacek.km@seznam.cz>
Co-authored-by: Roman Zeyde <roman.zeyde@satoshilabs.com>

[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
61783a059d refactor(python): move protocols out of transport
[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
c474c03e42 chore(python): bump version to 0.20
to indicate a big API break

[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
fe10e429cd style(python): improve type annotations at trezorlib.transport
[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
1a2c9bf438 refactor(python): better handling of TREZOR_BLE flag
[no changelog]
2026-02-03 14:47:31 +01:00
Ioan Bizău
9bcf69ecc7 fix(tests): visit menus on all pages
[no changelog]
2026-01-28 16:03:25 +02:00
Martin Pastyřík
379484d6ec fix(core): remove host static public key from protobuf message
[no changelog]
2026-01-27 14:54:38 +01:00
kopecdav
19ff65bf89 feat(python): Update trezorctl telemetry command with battery_cycle field.
[no changelog]
2026-01-23 12:54:34 +01:00
tychovrahe
239605c3f9 fix(python): send DebugLinkOptigaSetSecMax via debuglink
[no changelog]
2026-01-23 12:00:45 +01:00
tychovrahe
04ec4b251e feat(python): add command for reading out telemetry data
[no changelog]
2026-01-19 12:58:56 +01:00
tychovrahe
1143f5e0ed chore(core): add messages for reading out telemetry data
[no changelog]
2026-01-19 12:58:56 +01:00
Roman Zeyde
9e1f7077eb chore(python): re-introduce sleep when starting Tropic emulator
It seems that even if the model is listening for connections it sometimes needs up to 2 seconds more before it actually correctly processes requests.

See #6128.

[no changelog]
2026-01-19 12:36:01 +01:00
Ioan Bizău
ac2fea3310 feat(tests): return selected menu item
[no changelog]
2026-01-14 09:56:42 +02:00
Ioan Bizău
6c55926bb0 feat(tests): get Bolt FIDO account name
[no changelog]
2026-01-14 09:56:42 +02:00
tychovrahe
e2bfa90870 feat(core): introduce secmon downgrade protection 2026-01-13 09:30:29 +01:00
PrisionMike
fa41268709 feat(tron): add TriggerSmartContract support.
- Blind signing TRON smart contracts.
- Only contract address shown to user.
- USDT,USDD transfer tested.
- Fee layout imperfect. To be fixed later.

[no changelog]
2026-01-12 14:42:11 -05:00
Roman Zeyde
1ec290d540 fix(python): avoid dropping WebUSB chunks in case of a timeout
`libusb1` may return the received data even in case of a timeout
292143c8f4/usb1/__init__.py (L1567)
2026-01-09 11:26:36 +01:00
M1nd3r
8202077e15 tests: upgrade upgrade tests
- allow upgrade tests to distinguish between core models

[no changelog]
2026-01-06 17:55:35 +01:00
Roman Zeyde
9c966372cb chore(common): deprecate uploading language blob during firmware update
Remove unused protobuf field from `RebootToBootloader`.

[no changelog]
2026-01-06 17:20:18 +01:00
Roman Zeyde
4d5290d033 chore(python): deprecate uploading language blob during firmware update 2026-01-06 17:20:18 +01:00
Roman Zeyde
55edd1ada4 chore(python): remove deprecation-related comment
[no changelog]
2026-01-06 17:20:18 +01:00
Jun Luo
4375c211f9 feat(tron): add TransferContract support
Allows native TRX transfer
[no changelog]

Co-authored-by: PrisionMike <su.sh2396@gmail.com>
2026-01-06 03:57:42 -05:00
cepetr
0974bcbc42 feat(core): add trezorctl set-log-filter command
[no changelog]
2025-12-12 15:18:35 +01:00
tychovrahe
68dfb2628a feat(core): send build version in features 2025-12-09 14:48:38 +01:00
Ioan Bizău
a867fa67c3 chore(tests): visit menu items in info flow
[no changelog]
2025-11-25 11:53:05 +02:00
M1nd3r
78487cee6b chore(core, tools, common): improve type annotation, resolve issues
[no changelog]
2025-11-21 11:34:28 +01:00
Pavol Rusnak
fdc9976d9a fix(python): remove ecdsa dependency, use cryptography
[no changelog]
2025-11-20 10:51:55 +01:00
Ioan Bizău
b7b51b384a feat(tests,eckhart): open menu items
[no changelog]
2025-11-19 15:03:29 +02:00
Ioan Bizău
08bfae0880 feat(tests): traverse flow menus
[no changelog]
2025-11-19 15:03:29 +02:00
Roman Zeyde
cdb9b26a10 chore(python): remove an old helper script
[no changelog]
2025-11-19 06:43:31 +01:00
Roman Zeyde
e94ccb973a chore(python): remove 'beta' channel support
[no changelog]
2025-11-15 18:25:49 +01:00
PrisionMike
0468fa14aa fix(tron): update tron to use session
- Minor code fixes to old PR by overcat
- Only build Tron for debug builds
- Updated message index
- Updated text fixtures
[no changelog]
2025-11-12 10:07:50 +01:00
Jun Luo
590d3e98b2 feat(common,core,python,tests): add tron.get_address support.
[no changelog]
2025-11-12 10:07:50 +01:00
Ioan Bizău
cc7978f6fd refactor: use create_connection
[no changelog]
2025-11-06 17:58:16 +02:00
Ioan Bizău
c06cf9b2ee chore: remove sleep
[no changelog]
2025-11-06 17:58:16 +02:00
Martin Pastyřík
d2516f1d07 feat(core): functions for Evolu spam protection
[no changelog]
2025-11-05 10:22:37 +01:00
tychovrahe
25dadcef95 feat(core): notify host on power status change using internal notification system
[no changelog]
2025-10-30 08:36:38 +01:00
Martin Milata
e2f3e3b0fa feat(core): add emulated BLE interfaces
[no changelog]
2025-10-29 21:18:32 +01:00
matejcik
76bc9f6271 chore(python): tweak to optional requirements 2025-10-21 00:52:14 +02:00
matejcik
9faa614ad6 docs(python): changelog for 0.20.0-dev0 2025-10-21 00:52:14 +02:00
matejcik
2410b3c31c chore(python): bump version to 0.20.0-dev0 2025-10-21 00:52:14 +02:00
M1nd3r
c74ba8942b chore: add nrf keys to ModelKeys
[no changelog]
2025-10-17 15:08:19 +02:00