Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add install restricted screen on installation with locked bootloader #3236

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

TychoVrahe
Copy link
Contributor

Somehow we didn't add it with the last T2B1 bootloader changes.

Also fixes residual "attestation present" wording. Especially the return message when failing to install might be a reason to add this to earliest production bootloader version, as its something a user see in trezorctl and suite can react to it too, so having two version might be annoying.

@TychoVrahe TychoVrahe self-assigned this Aug 24, 2023
Comment on lines 191 to 199
#ifdef USE_OPTIGA
if (r == UPLOAD_ERR_BOOTLOADER_LOCKED) {
ui_screen_install_restricted();
} else {
ui_screen_fail();
}
#else
ui_screen_fail();
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's avoid the ifdef here, and instead redefine ui_screen_install_restricted to ui_screen_fail if there is no optiga.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TychoVrahe TychoVrahe merged commit 6d9e432 into master Aug 25, 2023
8 checks passed
@TychoVrahe TychoVrahe deleted the tychovrahe/bl_locked/screen branch August 25, 2023 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants