Skip to content

Commit

Permalink
Disable strongbox on keystore writable IC
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-flores authored and davidz25 committed Apr 11, 2023
1 parent 45662cd commit e2ba82a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,14 @@ private Collection<X509Certificate> ensureCredentialKey(byte[] challenge) {

mKeyPair = null;
boolean isStrongBoxBacked = false;
/* Disable StrongBox usage for now, see Issue #259 for details
PackageManager pm = mContext.getPackageManager();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P &&
pm.hasSystemFeature(PackageManager.FEATURE_STRONGBOX_KEYSTORE)) {
isStrongBoxBacked = true;
builder.setIsStrongBoxBacked(true);
}
*/
kpg.initialize(builder.build());
mKeyPair = kpg.generateKeyPair();
Log.i(TAG, "CredentialKey created, strongBoxBacked=" + isStrongBoxBacked);
Expand Down

0 comments on commit e2ba82a

Please sign in to comment.