Skip to content

Commit 6f360ca

Browse files
authored
Do not validate encrypted data (#523)
1 parent 645ea41 commit 6f360ca

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

AndroidSDKCore/src/main/java/com/leanplum/internal/VarCache.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -426,19 +426,11 @@ public static void loadDiffs() {
426426
varsSignature);
427427
String deviceId = aesContext.decodePreference(defaults, Constants.Params.DEVICE_ID, null);
428428
if (deviceId != null) {
429-
if (Util.isValidDeviceId(deviceId)) {
430-
APIConfig.getInstance().setDeviceId(deviceId);
431-
} else {
432-
Log.d("Invalid stored device id found: \"" + deviceId + "\"; discarding.");
433-
}
429+
APIConfig.getInstance().setDeviceId(deviceId);
434430
}
435431
String userId = aesContext.decodePreference(defaults, Constants.Params.USER_ID, null);
436432
if (userId != null) {
437-
if (Util.isValidUserId(userId)) {
438-
APIConfig.getInstance().setUserId(userId);
439-
} else {
440-
Log.d("Invalid stored user id found: \"" + userId + "\"; discarding.");
441-
}
433+
APIConfig.getInstance().setUserId(userId);
442434
}
443435
String loggingEnabled = aesContext.decodePreference(defaults, Constants.Keys.LOGGING_ENABLED,
444436
"false");

0 commit comments

Comments
 (0)