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

Acquire WakeLock when hosting Swissbit SCUs #86

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

TSchmiedlechner
Copy link
Member

@TSchmiedlechner TSchmiedlechner commented Sep 4, 2024

This PR acquires an Android WakeLock from the Middleware when it's hosting a Swissbit Hardware SCU. While not required in most cases, in some slow-hardware scenarios (on payment terminals) Android seems to switch off parts of the CPU or the device management or the system clock, which resets the Swissbit TSE and enforces constant self-tests.

As these self tests take ~30 seconds, this renders the TSE unusable on these devices. A WakeLock seems to prevent this.

  • Add WakeLock
  • Update Swissbit SCU to 1.3.62

@TSchmiedlechner TSchmiedlechner merged commit 8d42b84 into master Sep 5, 2024
2 checks passed
@TSchmiedlechner TSchmiedlechner deleted the user/tsc/wake-lock branch September 5, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants