-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't use StrongBox on Android (#2231)
- Loading branch information
Showing
3 changed files
with
190 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/node_modules/@synonymdev/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageBase.java b/node_modules/@synonymdev/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageBase.java | ||
index 5c82167..c5e0907 100644 | ||
--- a/node_modules/@synonymdev/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageBase.java | ||
+++ b/node_modules/@synonymdev/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageBase.java | ||
@@ -409,6 +409,7 @@ abstract public class CipherStorageBase implements CipherStorage { | ||
if (null == isStrongboxAvailable || isStrongboxAvailable.get()) { | ||
if (null == isStrongboxAvailable) isStrongboxAvailable = new AtomicBoolean(false); | ||
|
||
+ /* | ||
try { | ||
secretKey = tryGenerateStrongBoxSecurityKey(alias); | ||
|
||
@@ -416,6 +417,7 @@ abstract public class CipherStorageBase implements CipherStorage { | ||
} catch (GeneralSecurityException | ProviderException ex) { | ||
Log.w(LOG_TAG, "StrongBox security storage is not available.", ex); | ||
} | ||
+ */ | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters