Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32554287
D11660.1767194479.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D11660.1767194479.diff
View Options
diff --git a/native/android/app/src/main/java/app/comm/android/fbjni/CommMMKV.java b/native/android/app/src/main/java/app/comm/android/fbjni/CommMMKV.java
--- a/native/android/app/src/main/java/app/comm/android/fbjni/CommMMKV.java
+++ b/native/android/app/src/main/java/app/comm/android/fbjni/CommMMKV.java
@@ -1,5 +1,6 @@
package app.comm.android.fbjni;
+import android.util.Log;
import app.comm.android.MainApplication;
import app.comm.android.fbjni.CommSecureStore;
import app.comm.android.fbjni.PlatformSpecificTools;
@@ -54,10 +55,14 @@
return;
}
- String encryptionKey =
- CommSecureStore.get(SECURE_STORE_MMKV_ENCRYPTION_KEY_ID);
- String identifier =
- CommSecureStore.get(SECURE_STORE_MMKV_IDENTIFIER_KEY_ID);
+ String encryptionKey = null, identifier = null;
+ try {
+ encryptionKey =
+ CommSecureStore.get(SECURE_STORE_MMKV_ENCRYPTION_KEY_ID);
+ identifier = CommSecureStore.get(SECURE_STORE_MMKV_IDENTIFIER_KEY_ID);
+ } catch (Exception e) {
+ Log.w("COMM", "Failed to get MMKV keys from CommSecureStore", e);
+ }
if (encryptionKey == null || identifier == null) {
assignInitializationData();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 31, 3:21 PM (3 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5873982
Default Alt Text
D11660.1767194479.diff (1 KB)
Attached To
Mode
D11660: [native] Recreate CommMMKV keys if they can't be loaded
Attached
Detach File
Event Timeline
Log In to Comment