Page MenuHomePhabricator

D11660.id39116.diff
No OneTemporary

D11660.id39116.diff

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

Mime Type
text/plain
Expires
Wed, Jan 8, 9:47 AM (1 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2816016
Default Alt Text
D11660.id39116.diff (1 KB)

Event Timeline