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

chore[SIW-1040]: Make Android crypto key available only with unlocked device #8

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

LazyAfternoons
Copy link
Contributor

@LazyAfternoons LazyAfternoons commented Apr 15, 2024

Short description

This PR sets the cryptographic key accessibility on Android.
We want the key to be usable only when the device has been unlocked.

List of Changes

  • Use the method setUnlockedDeviceRequired when generating a key for the attestation. This option is only available for API level 28, hence the guard.

How Has This Been Tested?

Test the example app by generating a new attestation.

@LazyAfternoons LazyAfternoons marked this pull request as ready for review April 15, 2024 13:13
Copy link
Contributor

@hevelius hevelius left a comment

Choose a reason for hiding this comment

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

LGTM. Tested on Android device and it works as expected.

@LazyAfternoons LazyAfternoons merged commit e9d3fe6 into main Apr 16, 2024
9 checks passed
@LazyAfternoons LazyAfternoons deleted the SIW-1040-android-key-accessibility branch April 16, 2024 09:20
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