mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-17 01:52:02 +00:00
feat(core): bootloader_ci: wipe device without confirmation
This commit is contained in:
parent
79fad70b05
commit
2643ee2ab8
@ -3,7 +3,8 @@
|
|||||||
This bootloader always runs into bootloader mode, waits for firmware to be
|
This bootloader always runs into bootloader mode, waits for firmware to be
|
||||||
uploaded, then runs the firmware.
|
uploaded, then runs the firmware.
|
||||||
|
|
||||||
Storage is not erased. If you wish to erase storage, do it inside your test.
|
Storage is not erased. If you wish to erase storage you can send WipeDevice
|
||||||
|
message to the bootloader.
|
||||||
|
|
||||||
All user interaction is removed (no clicking or confirmations required)
|
All user interaction is removed (no clicking or confirmations required)
|
||||||
so that it can be used in an automated way for tests.
|
so that it can be used in an automated way for tests.
|
||||||
|
@ -114,17 +114,6 @@ static secbool bootloader_usb_loop(const vendor_header *const vhdr,
|
|||||||
process_msg_Ping(USB_IFACE_NUM, msg_size, buf);
|
process_msg_Ping(USB_IFACE_NUM, msg_size, buf);
|
||||||
break;
|
break;
|
||||||
case 5: // WipeDevice
|
case 5: // WipeDevice
|
||||||
ui_fadeout();
|
|
||||||
ui_screen_wipe_confirm();
|
|
||||||
ui_fadein();
|
|
||||||
int response = ui_user_input(INPUT_CONFIRM | INPUT_CANCEL);
|
|
||||||
if (INPUT_CANCEL == response) {
|
|
||||||
ui_fadeout();
|
|
||||||
ui_screen_info(secfalse, vhdr, hdr);
|
|
||||||
ui_fadein();
|
|
||||||
send_user_abort(USB_IFACE_NUM, "Wipe cancelled");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
ui_fadeout();
|
ui_fadeout();
|
||||||
ui_screen_wipe();
|
ui_screen_wipe();
|
||||||
ui_fadein();
|
ui_fadein();
|
||||||
|
Loading…
Reference in New Issue
Block a user