Pavol Rusnak
581e46ff87
Merge pull request #845 from trezor/prusnak/webusb-popup
...
Don't show WebUSB popup in firmware, in bootloader only if no firmware present
2020-02-19 18:18:01 +01:00
Pavol Rusnak
efbb7aed80
Merge pull request #863 from trezor/prusnak/monero-unlock_time
...
core/monero: add confirmation dialog for unlock_time
2020-02-19 17:33:08 +01:00
Tomas Susanka
3d91a0643d
legacy: add comment to startup.S
2020-02-19 14:51:29 +00:00
Pavol Rusnak
7944c1a837
core/monero: add confirmation dialog for unlock_time
2020-02-19 14:31:45 +00:00
Pavol Rusnak
a808cc9190
core/apps: await require_confirm should be called without return
2020-02-19 14:31:45 +00:00
Tomas Susanka
2e2f5fd421
docs/legacy: MEMORY_PROTECT needs to be 0 for custom built
2020-02-18 14:28:44 +00:00
Tomas Susanka
394fad9d6d
docs/common: add note on session id / state size
2020-02-18 13:55:55 +00:00
Tomas Susanka
cfa14dcca0
legacy: improve script/setup
...
I believe the files were not cleared properly and switching between
emulator and firmware builds may have been troublesome.
Two changes:
1. `git clean` cleans only in the working tree and subdirectories.
We need to clear the related projects as well.
2. `vendor/QR-Code-generator/c/qrcodegen.{o,d}` are not git ignored
and since we use the `X` flag they are not removed. Changing to `x`,
which also removes untracked files.
2020-02-18 13:39:24 +00:00
Tomas Susanka
171067ffff
docs/common: add link to passphrase migration
2020-02-18 12:54:42 +00:00
Tomas Susanka
02f2158c1d
docs: passphrase migration info
2020-02-18 12:44:33 +00:00
Tomas Susanka
577daf09fe
tests: introduce --ui-check-missing to test/remove missing tests
2020-02-18 09:33:21 +01:00
Pavol Rusnak
b5446bd125
crypto: fix last commit
2020-02-17 19:16:54 +00:00
Pavol Rusnak
1859b5b588
crypto: update bip39bruteforce.c to segwit-in-p2sh
2020-02-17 19:01:43 +00:00
matejcik
1d41141a1f
core/emulator: properly ignore inotify problems ( fixes #854 )
2020-02-17 12:33:38 +01:00
Pavol Rusnak
2958a97c87
Merge pull request #830 from trezor/tsusanka/fw-upgrade
...
FW Update: Request a small chunk first to make the UI smoother
2020-02-15 13:08:33 +01:00
matejcik
0d3e1b2479
tests: better way to shut down test suite when connection to device is lost
2020-02-13 16:30:36 +01:00
matejcik
e61b7d28e9
all: do not send state in PassphraseAck (not needed for compatibility)
2020-02-13 15:44:50 +01:00
matejcik
3959600760
python/protobuf: do not warn for unknown enum values ( fixes #832 )
2020-02-13 15:37:14 +01:00
matejcik
e9003d0742
tests/upgrade_tests: extract and simplify for_all decorator
2020-02-13 15:37:14 +01:00
matejcik
cdb7a7eb68
Merge pull request #840 from trezor/matejcik/sys-exit
...
wipe code activation tests
2020-02-13 15:11:33 +01:00
Pavol Rusnak
215020a592
legacy: show webusb popup only in bootloader and only if firmware is not installed
2020-02-12 21:01:06 +00:00
Pavol Rusnak
07cd73ce57
core: show webusb popup only in bootloader and only if firmware is not installed
2020-02-12 20:47:05 +00:00
matejcik
0ec628ccd4
legacy: fix CALLBACK checker
2020-02-12 17:18:51 +01:00
matejcik
1cc1382153
python/trezorctl: improve get-session
2020-02-12 17:18:50 +01:00
matejcik
b6fca537c9
tests: remove wipe_code_activate test fixture
2020-02-12 15:45:17 +01:00
matejcik
81a03edf61
python/debuglink: add docstrings, rename functions for clearer usage
2020-02-12 15:38:18 +01:00
matejcik
4c8c96272c
emu: fix flag options with defaults
...
Click REALLY INSISTS you provide on/off switches for your options.
You can use is_flag, but then the presence of the option changes based
on the default value.
Which makes sense, really:
@option("-f", "foobar", is_flag=True, default=False)
you would expect `./cli -f` to have `foobar is True`
whereas with
@option("-f", "foobar", is_flag=True, default=True)
you would expect `./cli -f` to have `foobar is False`, otherwise it's a
no-op
this becomes fun with `default=os.environ.get("SOMETHING")`, because
then the effect of the option CHANGES with a value of environment
variable!
there's two ways around this:
a) don't use defaults, update the flag explicitly, like:
foobar = foobar or os.environ.get("FOOBAR") == "1"
b) forget about is_flag and specify an on/off switch, where the default
value works as intended
since the latter is also technically speaking more correct, i'm doing it
2020-02-12 13:32:05 +01:00
matejcik
271da3fa39
python: add detailed logging to emulator runner
2020-02-12 13:31:58 +01:00
matejcik
1bcf856946
tests: simplify change_wipe_code test with PIN queuing
2020-02-12 13:31:31 +01:00
matejcik
ba3d90b994
tests: add wipe code activation test
2020-02-12 13:31:31 +01:00
matejcik
7a253a6c0b
python/debuglink: properly clean up at end of "with client"
2020-02-12 13:31:31 +01:00
matejcik
c14429c445
all: shut down emulator on error_shutdown
2020-02-12 13:31:31 +01:00
Tomas Susanka
b4846e484a
docs/common: add links and fix some typos
2020-02-12 09:45:33 +00:00
matejcik
d3b88a37be
core: do not catch SystemExit in handle_session ( #826 )
2020-02-12 10:36:42 +01:00
matejcik
94b85efba1
python/debuglink: make pin sequences configurable
2020-02-12 10:36:42 +01:00
Tomas Susanka
f947fe97cc
core: fix style
2020-02-11 16:41:43 +01:00
Tomas Susanka
0a13f7a441
core: properly limit passphrase to 50 bytes
2020-02-11 15:39:08 +00:00
Tomas Susanka
2c0504ad1c
Merge pull request #803 from trezor/passphrase
...
Passphrase Redesign
2020-02-11 16:01:59 +01:00
matejcik
1ebaaa7e77
python/emulator: increase tolerances
...
This should help in CI where things can sometimes take a long time.
2020-02-11 13:20:35 +01:00
matejcik
a375460afc
python/emulator: fix timeout parameter in emulator.wait()
2020-02-11 13:20:35 +01:00
matejcik
3d1fefe38a
legacy: make sure nanopb_generator is ready
2020-02-11 13:19:37 +01:00
matejcik
05a1d6f771
core/debug: add "show arbitrary screen" capability, for easier prototyping
2020-02-11 11:53:34 +01:00
matejcik
8c75c94125
ci: ensure system Python 3.7 is used even if other pythons are available
2020-02-11 11:53:34 +01:00
matejcik
c01d04f26e
common/protob: drop a default field declaration
...
which triggers nanopb bug https://github.com/nanopb/nanopb/issues/487
2020-02-11 11:53:34 +01:00
matejcik
37ab510622
ci: remove sleeps for coverage, restore Monero
...
with the new emulator runner, this should be more stable
This reverts commit 1480f5a25c
.
2020-02-11 11:19:56 +01:00
matejcik
741c0c8888
core: improve stability of Monero test runner
2020-02-11 11:16:28 +01:00
Tomas Susanka
8a499b3067
ci: run coverage only for core
2020-02-10 16:12:46 +00:00
Tomas Susanka
f4c38af825
ci: use 'extends' instead of yaml anchors
...
We might refactor the ci folder a bit more using this but I believe it
is fine for now.
Should solve #835 .
2020-02-10 16:12:46 +00:00
matejcik
4b0d8d5f6d
python/trezorctl: tweak error message in get-session
2020-02-10 16:22:48 +01:00
matejcik
7f63cf28b0
python: only set session_id from Features on firmwares that send it
2020-02-10 16:15:45 +01:00