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

Fixes for Android Keystore Capabilities on older Android devices. #398

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

davidz25
Copy link
Contributor

Android devices shipping with versions before Android 12 are not required to set their KeyMint version number in the properties android.hardware.hardware_keystore and android.hardware.strongbox_keystore. Add code to work around this.

In the Secure Area Test App, show name for API level and also show the First API Level and its name (the First API level is the API level the device shipped with).

Also add code to work around Android Keystore creating software-backed keys if its Keymint version does not support the requested features.

Test: Manually tested on Pixels 4XL, 4a, 7a, 7 Pro, 8 Pro.

Android devices shipping with versions before Android 12
are not required to set their KeyMint version number in the
properties android.hardware.hardware_keystore and
android.hardware.strongbox_keystore. Add code to work around
this.

In the Secure Area Test App, show name for API level and also
show the First API Level and its name (the First API level
is the API level the device shipped with).

Also add code to work around Android Keystore creating
software-backed keys if its Keymint version does not
support the requested features.

Test: Manually tested on Pixels 4XL, 4a, 7a, 7 Pro, 8 Pro.
@davidz25 davidz25 merged commit 1c0d838 into master Oct 30, 2023
5 checks passed
@davidz25 davidz25 deleted the ks-capabilities-on-old-phone branch October 30, 2023 14:47
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