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

[LIVE-11184][Europa] Firmware update support #6775

Merged
merged 7 commits into from
May 2, 2024

Conversation

ofreyssinet-ledger
Copy link
Contributor

@ofreyssinet-ledger ofreyssinet-ledger commented Apr 29, 2024

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • Europa firmware update.
    • Europa device localisation

πŸ“ Description

Some fixes necessary to fully support firmware updates of Europa via LLM & LLD:

  • device-core: the minimum supported version for isBootloaderVersionSupported and isDeviceLocalizationSupported were incorrect for Europa, which led to an incorrect parsing of the getVersion response:
    • Device localisation now works fine on Europa.
  • LLD: the "restore" step of the firmware update was only added for devices supporting device localisation. It should also take into account support of custom lock screen. Given the issue listed previously, Europa was considered as not supporting localisation, therefore highlighting this issue because the restore step was missing, and the update flow broken.

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

Copy link

vercel bot commented Apr 29, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Apr 29, 2024 3:56pm
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Apr 29, 2024 3:56pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Apr 29, 2024 3:56pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Apr 29, 2024 3:56pm
web-tools ⬜️ Ignored (Inspect) Visit Preview Apr 29, 2024 3:56pm

@live-github-bot live-github-bot bot added desktop Has changes in LLD common Has changes in live-common labels Apr 29, 2024
Copy link
Contributor Author

@ofreyssinet-ledger ofreyssinet-ledger Apr 29, 2024

Choose a reason for hiding this comment

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

just a small refacto here, for improved readability

@ofreyssinet-ledger ofreyssinet-ledger marked this pull request as ready for review May 2, 2024 07:40
@ofreyssinet-ledger ofreyssinet-ledger requested review from a team as code owners May 2, 2024 07:40
@@ -166,7 +166,6 @@ const EarlySecurityChecks = ({
closeFwUpdateDrawer();
restartChecksAfterUpdate();
},
deviceHasPin: deviceModelId !== DeviceModelId.stax, // early security checks are triggered only if the device is in one of the steps prior to setting a PIN code
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this prop gets overridden so it's useless here

@mbertin-ledger mbertin-ledger merged commit 4d1d7bb into develop May 2, 2024
55 of 60 checks passed
@mbertin-ledger mbertin-ledger deleted the feat/europa-fw-update branch May 2, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common desktop Has changes in LLD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants