trezor / trezor-user-env

Development tool for Trezor developers
25 stars 28 forks source link

Please add possibility to set PIN on device via TrezorUserEnvLink #248

Open bosomt opened 1 week ago

bosomt commented 1 week ago

Please add possibility to set PIN on device via TrezorUserEnvLink.api We have test for mobile app /that does not support device management / that we want to automatize that requires connected locked model One device

Test steps:

1. Connect device 
2. Device is recognized by system
3. Device displays PIN matrix
4. Application renders PIN matrix
5. After entering incorrect PIN you are asked to reenter pin or open help
6. After entering correct PIN device is unlocked and discovery starts
Hannsek commented 1 week ago

So this is only for model 1?

Do we really have to do this test?

bosomt commented 1 week ago

Its only for model one in this test, as this is only model that starts with USB connection enabled before it gets unlocked But it can be used in different tests for different model.

For example for autolock feature.

  1. TS5 with autolock enabled
  2. Add account
  3. you are asked to enter pin on device

Probably most of users has PIN enabled so it would be great to extend automated tests