Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 AFa1dSDK.java 源代码,内容仅作参考
package com.appsflyer.internal;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Application;
import android.app.UiModeManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.media.AudioTrack;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Process;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.MotionEvent;
import android.view.ViewConfiguration;
import android.view.WindowManager;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;
import androidx.autofill.HintConstants;
import androidx.constraintlayout.core.motion.utils.TypedValues;
import com.applovin.sdk.AppLovinEventTypes;
import com.appsflyer.AFInAppEventParameterName;
import com.appsflyer.AFInAppEventType;
import com.appsflyer.AFKeystoreWrapper;
import com.appsflyer.AFLogger;
import com.appsflyer.AFVersionDeclaration;
import com.appsflyer.AppsFlyerConversionListener;
import com.appsflyer.AppsFlyerInAppPurchaseValidatorListener;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.PurchaseHandler;
import com.appsflyer.attribution.AppsFlyerRequestListener;
import com.appsflyer.attribution.RequestError;
import com.appsflyer.deeplink.DeepLinkListener;
import com.appsflyer.deeplink.DeepLinkResult;
import com.appsflyer.internal.AFa1gSDK;
import com.appsflyer.internal.AFa1uSDK;
import com.appsflyer.internal.AFb1cSDK;
import com.appsflyer.internal.AFb1iSDK;
import com.appsflyer.internal.AFc1wSDK;
import com.appsflyer.internal.AFd1iSDK;
import com.appsflyer.internal.AFd1wSDK;
import com.appsflyer.internal.AFf1bSDK;
import com.appsflyer.internal.AFf1pSDK;
import com.appsflyer.internal.components.network.http.ResponseNetwork;
import com.appsflyer.internal.platform_extension.PluginInfo;
import com.google.android.gms.common.GoogleApiAvailability;
import com.ironsource.sdk.controller.y;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
import com.tapjoy.TapjoyConstants;
import com.yandex.mobile.ads.mediation.base.MintegralMediationDataParser;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.net.HttpURLConnection;
import java.net.URI;
import java.security.KeyStoreException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.Properties;
import java.util.TimeZone;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public final class AFa1dSDK extends AppsFlyerLib {
public static volatile AppsFlyerConversionListener AFInAppEventParameterName = null;
static AppsFlyerInAppPurchaseValidatorListener AFInAppEventType = null;
public static final String AFKeystoreWrapper;
@VisibleForTesting
private static AFa1dSDK AFLogger = null;
@VisibleForTesting
private static String afInfoLog = null;
private static int onAppOpenAttribution = 0;
private static int onConversionDataFail = 0;
private static int onDeepLinking = 1;
public static final String valueOf;
static final String values;
private String AFVersionDeclaration;
private Application AppsFlyer2dXConversionCallback;
String afErrorLog;
private Map<Long, String> afErrorLogForExcManagerOnly;
public AFa1eSDK afRDLog;
private boolean onAppOpenAttributionNative;
private Map<String, Object> onAttributionFailureNative;
private AFb1lSDK onConversionDataSuccess;
private boolean onInstallConversionDataLoadedNative;
@NonNull
private final AFc1xSDK onResponse;
private SharedPreferences onResponseErrorNative;
private String onResponseNative;
private long afDebugLog = -1;
private long afWarnLog = -1;
private long getLevel = TimeUnit.SECONDS.toMillis(5);
private boolean AFLogger$LogLevel = false;
private final AFb1ySDK init = new AFb1ySDK();
private boolean onInstallConversionFailureNative = false;
private boolean onDeepLinkingNative = false;
private final Executor onAttributionFailure = Executors.newSingleThreadExecutor();
public static class AnonymousClass1 {
static final int[] values;
static {
int[] iArr = new int[AppsFlyerProperties.EmailsCryptType.values().length];
values = iArr;
try {
iArr[AppsFlyerProperties.EmailsCryptType.SHA256.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
values[AppsFlyerProperties.EmailsCryptType.NONE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
}
}
public class AFa1vSDK implements AFd1uSDK {
private AFa1vSDK() {
}
private static boolean AFKeystoreWrapper() {
if (AFa1dSDK.AFInAppEventParameterName != null) {
return true;
}
return false;
}
@Override
public final void AFInAppEventParameterName(AFd1xSDK<?> aFd1xSDK, AFc1aSDK aFc1aSDK) {
JSONObject AFInAppEventParameterName;
AFb1rSDK AFInAppEventParameterName2;
if (aFd1xSDK instanceof AFd1gSDK) {
AFd1gSDK aFd1gSDK = (AFd1gSDK) aFd1xSDK;
boolean z11 = aFd1xSDK instanceof AFd1eSDK;
if (z11 && AFKeystoreWrapper()) {
AFd1eSDK aFd1eSDK = (AFd1eSDK) aFd1xSDK;
boolean z12 = true;
if (aFd1eSDK.AFKeystoreWrapper != AFc1aSDK.SUCCESS && aFd1eSDK.AFInAppEventType != 1) {
z12 = false;
}
if (z12) {
AFe1lSDK aFe1lSDK = new AFe1lSDK(aFd1eSDK, AFa1dSDK.this.AFKeystoreWrapper().afInfoLog());
AFd1wSDK afWarnLog = AFa1dSDK.this.AFKeystoreWrapper().afWarnLog();
afWarnLog.valueOf.execute(new AFd1wSDK.AnonymousClass3(aFe1lSDK));
}
}
if (aFc1aSDK == AFc1aSDK.SUCCESS) {
AFa1dSDK aFa1dSDK = AFa1dSDK.this;
aFa1dSDK.values(AFa1dSDK.values(aFa1dSDK)).valueOf("sentSuccessfully", "true");
if (!(aFd1xSDK instanceof AFd1dSDK) && (AFInAppEventParameterName2 = new AFe1pSDK(AFa1dSDK.values(AFa1dSDK.this)).AFInAppEventParameterName()) != null && AFInAppEventParameterName2.AFKeystoreWrapper()) {
String str = AFInAppEventParameterName2.AFKeystoreWrapper;
AFLogger.afDebugLog("Resending Uninstall token to AF servers: ".concat(String.valueOf(str)));
AFe1pSDK.AFInAppEventParameterName(str);
}
ResponseNetwork responseNetwork = ((AFd1mSDK) aFd1gSDK).afDebugLog;
if (responseNetwork != null && (AFInAppEventParameterName = AFb1vSDK.AFInAppEventParameterName((String) responseNetwork.getBody())) != null) {
AFa1dSDK.AFKeystoreWrapper(AFa1dSDK.this, AFInAppEventParameterName.optBoolean("send_background", false));
}
if (z11) {
AFa1dSDK.AFKeystoreWrapper(AFa1dSDK.this, System.currentTimeMillis());
return;
}
return;
}
return;
}
if ((aFd1xSDK instanceof AFe1lSDK) && aFc1aSDK != AFc1aSDK.SUCCESS) {
AFe1nSDK aFe1nSDK = new AFe1nSDK(AFa1dSDK.this.AFKeystoreWrapper());
AFd1wSDK afWarnLog2 = AFa1dSDK.this.AFKeystoreWrapper().afWarnLog();
afWarnLog2.valueOf.execute(new AFd1wSDK.AnonymousClass3(aFe1nSDK));
}
}
@Override
public final void AFInAppEventType(AFd1xSDK<?> aFd1xSDK) {
if (aFd1xSDK instanceof AFd1eSDK) {
AFa1dSDK.this.AFKeystoreWrapper().afDebugLog().values(((AFd1gSDK) aFd1xSDK).afErrorLog.afRDLog);
}
}
public AFa1vSDK(AFa1dSDK aFa1dSDK, byte b11) {
this();
}
@Override
public final void values(AFd1xSDK<?> aFd1xSDK) {
}
}
public class AFa1wSDK implements Runnable {
private final AFa1sSDK AFKeystoreWrapper;
public AFa1wSDK(AFa1dSDK aFa1dSDK, AFa1sSDK aFa1sSDK, byte b11) {
this(aFa1sSDK);
}
@Override
public final void run() {
AFa1dSDK.AFKeystoreWrapper(AFa1dSDK.this, this.AFKeystoreWrapper);
}
private AFa1wSDK(AFa1sSDK aFa1sSDK) {
this.AFKeystoreWrapper = aFa1sSDK;
}
}
public class AFa1ySDK implements Runnable {
private final AFa1sSDK AFInAppEventType;
public AFa1ySDK(AFa1dSDK aFa1dSDK, AFa1sSDK aFa1sSDK, byte b11) {
this(aFa1sSDK);
}
@Override
public final void run() {
AFd1gSDK aFd1gSDK;
if (this.AFInAppEventType.AFKeystoreWrapper()) {
AFd1eSDK aFd1eSDK = new AFd1eSDK(this.AFInAppEventType, AFa1dSDK.this.AFKeystoreWrapper());
aFd1eSDK.afErrorLogForExcManagerOnly = AFa1dSDK.valueOf(AFa1dSDK.this);
aFd1gSDK = aFd1eSDK;
} else {
aFd1gSDK = new AFd1gSDK(this.AFInAppEventType, AFa1dSDK.this.AFKeystoreWrapper());
}
AFd1wSDK afWarnLog = AFa1dSDK.this.AFKeystoreWrapper().afWarnLog();
afWarnLog.valueOf.execute(new AFd1wSDK.AnonymousClass3(aFd1gSDK));
}
private AFa1ySDK(AFa1sSDK aFa1sSDK) {
this.AFInAppEventType = aFa1sSDK;
}
}
static {
AFInAppEventType();
values = "244";
Object[] objArr = new Object[1];
valueOf("\u0000", false, (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 1, 217 - (ViewConfiguration.getJumpTapTimeout() >> 16), (TypedValue.complexToFraction(0, 0.0f, 0.0f) > 0.0f ? 1 : (TypedValue.complexToFraction(0, 0.0f, 0.0f) == 0.0f ? 0 : -1)) + 1, objArr);
String substring = "6.11.0".substring(0, "6.11.0".lastIndexOf(((String) objArr[0]).intern()));
AFKeystoreWrapper = substring;
afInfoLog = "https://%sstats.%s/stats";
StringBuilder sb2 = new StringBuilder();
sb2.append(substring);
sb2.append("/androidevent?buildnumber=6.11.0&app_id=");
valueOf = sb2.toString();
AFInAppEventType = null;
AFInAppEventParameterName = null;
AFLogger = new AFa1dSDK();
int i11 = onDeepLinking + 3;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
}
@VisibleForTesting
public AFa1dSDK() {
AFVersionDeclaration.init();
this.onResponse = new AFc1xSDK();
AFd1wSDK afWarnLog = AFKeystoreWrapper().afWarnLog();
afWarnLog.AFInAppEventType.add(new AFa1vSDK(this, (byte) 0));
}
public static void AFInAppEventType() {
onConversionDataFail = 171;
}
public static long AFKeystoreWrapper(AFa1dSDK aFa1dSDK, long j11) {
int i11 = onAppOpenAttribution + 23;
int i12 = i11 % 128;
onDeepLinking = i12;
int i13 = i11 % 2;
aFa1dSDK.afWarnLog = j11;
int i14 = i12 + 65;
onAppOpenAttribution = i14 % 128;
if ((i14 % 2 != 0 ? (char) 26 : 'G') == 'G') {
return j11;
}
throw null;
}
private boolean AFLogger() {
int i11 = onAppOpenAttribution + 115;
onDeepLinking = i11 % 128;
char c11 = i11 % 2 == 0 ? ' ' : 'T';
long j11 = this.afDebugLog;
if (c11 == ' ' ? j11 > 1 : j11 > 0) {
long currentTimeMillis = System.currentTimeMillis() - this.afDebugLog;
Locale locale = Locale.US;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss.SSS Z", locale);
String valueOf2 = valueOf(simpleDateFormat, this.afDebugLog);
String valueOf3 = valueOf(simpleDateFormat, this.afWarnLog);
if ((currentTimeMillis < this.getLevel ? 'b' : '0') == 'b') {
int i12 = onAppOpenAttribution + 59;
onDeepLinking = i12 % 128;
if (i12 % 2 != 0) {
if (!isStopped()) {
AFLogger.afInfoLog(String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nThis launch is blocked: %s ms < %s ms", valueOf2, valueOf3, Long.valueOf(currentTimeMillis), Long.valueOf(this.getLevel)));
return true;
}
} else {
isStopped();
throw null;
}
}
if (!(isStopped())) {
int i13 = onAppOpenAttribution + 21;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
AFLogger.afInfoLog(String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nSending launch (+%s ms)", valueOf2, valueOf3, Long.valueOf(currentTimeMillis)));
}
} else {
if (!(isStopped())) {
AFLogger.afInfoLog("Sending first launch for this session!");
}
}
int i15 = onAppOpenAttribution + 29;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
return false;
}
private long AFLogger$LogLevel(Context context) {
long j11;
long currentTimeMillis;
int i11 = onAppOpenAttribution + 21;
onDeepLinking = i11 % 128;
if ((i11 % 2 == 0 ? '5' : (char) 19) != 19) {
j11 = AFKeystoreWrapper(context).getLong("AppsFlyerTimePassedSincePrevLaunch", 0L);
currentTimeMillis = System.currentTimeMillis();
values(context).AFInAppEventParameterName("AppsFlyerTimePassedSincePrevLaunch", currentTimeMillis);
if (!(j11 > 0)) {
return -1L;
}
} else {
j11 = AFKeystoreWrapper(context).getLong("AppsFlyerTimePassedSincePrevLaunch", 0L);
currentTimeMillis = System.currentTimeMillis();
values(context).AFInAppEventParameterName("AppsFlyerTimePassedSincePrevLaunch", currentTimeMillis);
if (j11 <= 0) {
return -1L;
}
}
long j12 = currentTimeMillis - j11;
int i12 = onAppOpenAttribution + 9;
onDeepLinking = i12 % 128;
return (i12 % 2 == 0 ? (char) 16 : '<') != '<' ? j12 * 1000 : j12 / 1000;
}
public void AFVersionDeclaration() {
try {
AFe1hSDK aFe1hSDK = new AFe1hSDK();
if ((valueOf(aFe1hSDK, AFKeystoreWrapper(this.AppsFlyer2dXConversionCallback)) ? 'B' : '&') != '&') {
int i11 = onDeepLinking + 15;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
values(aFe1hSDK);
int i13 = onDeepLinking + 23;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
}
} catch (Throwable th2) {
AFLogger.afErrorLog(th2.getMessage(), th2);
}
}
private AFf1nSDK afDebugLog() {
AFf1nSDK aFf1nSDK = new AFf1nSDK(new Runnable() {
@Override
public final void run() {
AFa1dSDK.this.getLevel();
}
}, AFKeystoreWrapper().AFInAppEventType());
int i11 = onAppOpenAttribution + 109;
onDeepLinking = i11 % 128;
if (!(i11 % 2 == 0)) {
return aFf1nSDK;
}
throw null;
}
@VisibleForTesting
private boolean afErrorLog() {
int i11 = onDeepLinking + 57;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
AFKeystoreWrapper().values().AFInAppEventType("AF_PREINSTALL_DISABLED");
throw null;
}
boolean AFInAppEventType2 = AFKeystoreWrapper().values().AFInAppEventType("AF_PREINSTALL_DISABLED");
int i12 = onAppOpenAttribution + 51;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
return AFInAppEventType2;
}
private static boolean afErrorLogForExcManagerOnly(Context context) {
int i11 = onAppOpenAttribution;
int i12 = i11 + 25;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
if (context != null) {
int i14 = i11 + 41;
onDeepLinking = i14 % 128;
if (i14 % 2 == 0) {
}
}
return false;
}
private void afInfoLog() {
AFf1iSDK AFVersionDeclaration = AFKeystoreWrapper().AFVersionDeclaration();
AFf1nSDK afDebugLog = afDebugLog();
Runnable AFInAppEventParameterName2 = AFInAppEventParameterName(afDebugLog);
AFVersionDeclaration.valueOf(afDebugLog);
AFVersionDeclaration.valueOf(new AFf1gSDK(AFInAppEventParameterName2));
AFVersionDeclaration.valueOf(new AFf1oSDK(AFInAppEventParameterName2, AFKeystoreWrapper()));
AFVersionDeclaration.valueOf(new AFf1hSDK(AFInAppEventParameterName2, AFKeystoreWrapper()));
if (!afErrorLog()) {
int i11 = onAppOpenAttribution + 27;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
AFVersionDeclaration.AFInAppEventType(this.AppsFlyer2dXConversionCallback, AFInAppEventParameterName2, AFKeystoreWrapper());
int i13 = onAppOpenAttribution + 113;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
}
AFf1pSDK[] AFKeystoreWrapper2 = AFVersionDeclaration.AFKeystoreWrapper();
int length = AFKeystoreWrapper2.length;
int i15 = 0;
while (true) {
if (i15 >= length) {
return;
}
int i16 = onDeepLinking + 101;
onAppOpenAttribution = i16 % 128;
int i17 = i16 % 2;
AFKeystoreWrapper2[i15].AFInAppEventParameterName(this.AppsFlyer2dXConversionCallback);
i15++;
}
}
private static String afRDLog() {
int i11 = onAppOpenAttribution + 99;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
String AFKeystoreWrapper2 = AFKeystoreWrapper(AppsFlyerProperties.APP_ID);
int i13 = onDeepLinking + 29;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
return AFKeystoreWrapper2;
}
private boolean afWarnLog() {
int i11 = onDeepLinking + 101;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
Map<String, Object> map = this.onAttributionFailureNative;
if ((map == null) || map.isEmpty()) {
return false;
}
int i13 = onDeepLinking + 41;
onAppOpenAttribution = i13 % 128;
return !(i13 % 2 != 0);
}
public void getLevel() {
ScheduledExecutorService AFKeystoreWrapper2;
Runnable runnable;
long j11;
int i11 = onAppOpenAttribution + 47;
onDeepLinking = i11 % 128;
if (!(i11 % 2 != 0)) {
AFKeystoreWrapper2 = AFKeystoreWrapper().AFKeystoreWrapper();
runnable = new Runnable() {
@Override
public final void run() {
AFa1dSDK.this.AFVersionDeclaration();
}
};
j11 = 1;
} else {
AFKeystoreWrapper2 = AFKeystoreWrapper().AFKeystoreWrapper();
runnable = new Runnable() {
@Override
public final void run() {
AFa1dSDK.this.AFVersionDeclaration();
}
};
j11 = 0;
}
AFKeystoreWrapper(AFKeystoreWrapper2, runnable, j11, TimeUnit.MILLISECONDS);
}
public static Map valueOf(AFa1dSDK aFa1dSDK) {
int i11 = onDeepLinking;
int i12 = i11 + 115;
onAppOpenAttribution = i12 % 128;
int i13 = i12 % 2;
Map<String, Object> map = aFa1dSDK.onAttributionFailureNative;
int i14 = i11 + 21;
onAppOpenAttribution = i14 % 128;
if ((i14 % 2 != 0 ? '\f' : '3') != '3') {
int i15 = 66 / 0;
}
return map;
}
public static Application values(AFa1dSDK aFa1dSDK) {
int i11 = onAppOpenAttribution + 23;
onDeepLinking = i11 % 128;
boolean z11 = i11 % 2 != 0;
Application application = aFa1dSDK.AppsFlyer2dXConversionCallback;
if (!z11) {
int i12 = 70 / 0;
}
return application;
}
public final void AFInAppEventParameterName(@NonNull Context context) {
AFc1xSDK aFc1xSDK = this.onResponse;
if (context != null) {
int i11 = onDeepLinking;
int i12 = i11 + 1;
onAppOpenAttribution = i12 % 128;
if (!(i12 % 2 != 0)) {
AFc1zSDK aFc1zSDK = aFc1xSDK.AFKeystoreWrapper;
if (context != null) {
int i13 = i11 + 19;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
aFc1zSDK.AFKeystoreWrapper = context.getApplicationContext();
}
} else {
AFc1zSDK aFc1zSDK2 = aFc1xSDK.AFKeystoreWrapper;
throw null;
}
}
int i15 = onDeepLinking + 15;
onAppOpenAttribution = i15 % 128;
int i16 = i15 % 2;
}
@Override
public final void addPushNotificationDeepLinkPath(String... strArr) {
char c11;
char c12;
int i11 = onDeepLinking + 37;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
c11 = 19;
} else {
c11 = 'W';
}
if (c11 != 19) {
List<String> asList = Arrays.asList(strArr);
List<List<String>> list = AFKeystoreWrapper().onResponseErrorNative().AFLogger;
if (!list.contains(asList)) {
c12 = '\t';
} else {
c12 = '\r';
}
if (c12 != '\r') {
int i12 = onAppOpenAttribution + 89;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
list.add(asList);
return;
}
return;
}
AFKeystoreWrapper().onResponseErrorNative().AFLogger.contains(Arrays.asList(strArr));
throw null;
}
@Override
public final void anonymizeUser(boolean z11) {
char c11;
int i11 = onAppOpenAttribution + 101;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("anonymizeUser", String.valueOf(z11));
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, z11);
int i13 = onDeepLinking + 21;
onAppOpenAttribution = i13 % 128;
if (i13 % 2 != 0) {
c11 = '*';
} else {
c11 = 22;
}
if (c11 != 22) {
int i14 = 66 / 0;
}
}
@Override
public final void appendParametersToDeepLinkingURL(String str, Map<String, String> map) {
char c11;
int i11 = onDeepLinking + 91;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
c11 = 'L';
} else {
c11 = ':';
}
if (c11 != 'L') {
AFb1tSDK onResponseErrorNative = AFKeystoreWrapper().onResponseErrorNative();
onResponseErrorNative.valueOf = str;
onResponseErrorNative.values = map;
int i12 = onAppOpenAttribution + 87;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
return;
}
AFb1tSDK onResponseErrorNative2 = AFKeystoreWrapper().onResponseErrorNative();
onResponseErrorNative2.valueOf = str;
onResponseErrorNative2.values = map;
throw null;
}
@Override
public final void enableFacebookDeferredApplinks(boolean z11) {
boolean z12;
int i11 = onDeepLinking;
int i12 = i11 + 77;
onAppOpenAttribution = i12 % 128;
if (i12 % 2 != 0) {
z12 = true;
} else {
z12 = false;
}
this.onDeepLinkingNative = z11;
if (!z12) {
int i13 = i11 + 9;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
return;
}
throw null;
}
@Override
@Nullable
public final String getAppsFlyerUID(@NonNull Context context) {
char c11;
boolean z11;
char c12;
int i11 = onAppOpenAttribution + 83;
onDeepLinking = i11 % 128;
if (i11 % 2 == 0) {
c11 = 'R';
} else {
c11 = 'Z';
}
boolean z12 = false;
if (c11 != 'Z') {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("getAppsFlyerUID", new String[1]);
if (context == null) {
c12 = 'Q';
} else {
c12 = '\'';
}
} else {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("getAppsFlyerUID", new String[0]);
if (context == null) {
z11 = false;
} else {
z11 = true;
}
}
}
@Override
public final String getAttributionId(Context context) {
char c11;
try {
String values2 = new AFb1wSDK(context, AFKeystoreWrapper()).values();
int i11 = onAppOpenAttribution + 79;
onDeepLinking = i11 % 128;
if (i11 % 2 == 0) {
c11 = '`';
} else {
c11 = '\b';
}
if (c11 != '`') {
return values2;
}
throw null;
} catch (Throwable th2) {
AFLogger.afErrorLog("Could not collect facebook attribution id. ", th2);
return null;
}
}
@Override
public final String getHostName() {
boolean z11;
int i11 = onDeepLinking + 9;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
z11 = true;
} else {
z11 = false;
}
if (!z11) {
return AFKeystoreWrapper().onAppOpenAttributionNative().AFKeystoreWrapper();
}
AFKeystoreWrapper().onAppOpenAttributionNative().AFKeystoreWrapper();
throw null;
}
@Override
public final String getHostPrefix() {
char c11;
int i11 = onDeepLinking + 9;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
String valueOf2 = AFKeystoreWrapper().onAppOpenAttributionNative().valueOf();
int i13 = onAppOpenAttribution + 55;
onDeepLinking = i13 % 128;
if (i13 % 2 == 0) {
c11 = 18;
} else {
c11 = 15;
}
if (c11 != 18) {
return valueOf2;
}
int i14 = 44 / 0;
return valueOf2;
}
@Override
public final String getOutOfStore(Context context) {
boolean z11;
char c11;
int i11 = onAppOpenAttribution + 99;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
String string = AppsFlyerProperties.getInstance().getString("api_store_value");
boolean z12 = false;
if (string != null) {
z11 = false;
} else {
z11 = true;
}
if (!z11) {
int i13 = onAppOpenAttribution + 99;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
return string;
}
String AFInAppEventParameterName2 = AFInAppEventParameterName(context, "AF_STORE");
if (AFInAppEventParameterName2 != null) {
z12 = true;
}
if (!z12) {
AFLogger.afInfoLog("No out-of-store value set");
int i15 = onAppOpenAttribution + 105;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
c11 = 'C';
} else {
c11 = 17;
}
if (c11 != 'C') {
return null;
}
throw null;
}
return AFInAppEventParameterName2;
}
@Override
public final String getSdkVersion() {
char c11;
int i11 = onAppOpenAttribution + 75;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
AFb1bSDK AFKeystoreWrapper2 = AFKeystoreWrapper();
AFKeystoreWrapper2.AFLogger$LogLevel().AFKeystoreWrapper("getSdkVersion", new String[0]);
AFKeystoreWrapper2.values();
String AFInAppEventParameterName2 = AFc1ySDK.AFInAppEventParameterName();
int i13 = onDeepLinking + 87;
onAppOpenAttribution = i13 % 128;
if (i13 % 2 != 0) {
c11 = 1;
} else {
c11 = 'c';
}
if (c11 != 1) {
return AFInAppEventParameterName2;
}
throw null;
}
@Override
public final AppsFlyerLib init(@NonNull String str, AppsFlyerConversionListener appsFlyerConversionListener, @NonNull Context context) {
char c11;
boolean z11;
String str2;
int i11 = onAppOpenAttribution + 37;
int i12 = i11 % 128;
onDeepLinking = i12;
int i13 = i11 % 2;
if (this.onInstallConversionDataLoadedNative) {
c11 = 7;
} else {
c11 = 16;
}
if (c11 != 16) {
int i14 = i12 + 55;
onAppOpenAttribution = i14 % 128;
int i15 = i14 % 2;
return this;
}
this.onInstallConversionDataLoadedNative = true;
AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFKeystoreWrapper = str;
AFc1qSDK.valueOf(str);
if (context != null) {
z11 = true;
} else {
z11 = false;
}
if (!z11) {
AFLogger.afWarnLog("context is null, Google Install Referrer will be not initialized");
} else {
this.AppsFlyer2dXConversionCallback = (Application) context.getApplicationContext();
AFInAppEventParameterName(context);
AFKeystoreWrapper().afDebugLog().AFKeystoreWrapper = System.currentTimeMillis();
AFKeystoreWrapper().onAppOpenAttribution().valueOf();
AFKeystoreWrapper().AFLogger().values(new AFe1zSDK() {
@Override
public final void onRemoteConfigUpdateFinished(AFd1cSDK aFd1cSDK) {
AFa1dSDK.this.AFInAppEventType(aFd1cSDK);
}
});
afInfoLog();
this.onResponse.AppsFlyer2dXConversionCallback().values();
AFb1jSDK.AFInAppEventParameterName = this.AppsFlyer2dXConversionCallback;
}
AFb1uSDK AFLogger$LogLevel = AFKeystoreWrapper().AFLogger$LogLevel();
String[] strArr = new String[2];
strArr[0] = str;
if (appsFlyerConversionListener == null) {
str2 = MintegralMediationDataParser.FAIL_NULL_VALUE;
} else {
int i16 = onAppOpenAttribution + 7;
onDeepLinking = i16 % 128;
int i17 = i16 % 2;
str2 = "conversionDataListener";
}
strArr[1] = str2;
AFLogger$LogLevel.AFKeystoreWrapper("init", strArr);
AFLogger.AFKeystoreWrapper(String.format("Initializing AppsFlyer SDK: (v%s.%s)", "6.11.0", values));
AFInAppEventParameterName = appsFlyerConversionListener;
return this;
}
@Override
public final boolean isPreInstalledApp(Context context) {
boolean z11;
boolean z12 = false;
try {
if ((context.getPackageManager().getApplicationInfo(context.getPackageName(), 0).flags & 1) != 0) {
z11 = true;
} else {
z11 = false;
}
if (z11) {
int i11 = onDeepLinking;
int i12 = i11 + 41;
onAppOpenAttribution = i12 % 128;
int i13 = i12 % 2;
int i14 = i11 + 19;
onAppOpenAttribution = i14 % 128;
if (i14 % 2 != 0) {
z12 = true;
}
if (!z12) {
return true;
}
throw null;
}
} catch (PackageManager.NameNotFoundException e11) {
AFLogger.afErrorLog("Could not check if app is pre installed", e11);
}
return false;
}
@Override
@Deprecated
public final boolean isStopped() {
char c11;
int i11 = onDeepLinking + 121;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
c11 = ':';
} else {
c11 = 31;
}
if (c11 == 31) {
boolean AFInAppEventType2 = AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFInAppEventType();
int i12 = onAppOpenAttribution + 115;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
return AFInAppEventType2;
}
AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFInAppEventType();
throw null;
}
@Override
public final void logEvent(Context context, String str, Map<String, Object> map) {
int i11 = onDeepLinking + 33;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
logEvent(context, str, map, null);
int i13 = onDeepLinking + 65;
onAppOpenAttribution = i13 % 128;
if ((i13 % 2 != 0 ? (char) 0 : (char) 11) == 0) {
throw null;
}
}
@Override
public final void logLocation(Context context, double d11, double d12) {
boolean z11;
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("logLocation", String.valueOf(d11), String.valueOf(d12));
HashMap hashMap = new HashMap();
hashMap.put(AFInAppEventParameterName.LONGTITUDE, Double.toString(d12));
hashMap.put(AFInAppEventParameterName.LATITUDE, Double.toString(d11));
AFKeystoreWrapper(context, AFInAppEventType.LOCATION_COORDINATES, hashMap);
int i11 = onDeepLinking + 121;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
z11 = true;
} else {
z11 = false;
}
if (!z11) {
} else {
throw null;
}
}
@Override
public final void logSession(Context context) {
int i11 = onDeepLinking + 39;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
boolean z11 = false;
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("logSession", new String[0]);
AFKeystoreWrapper().AFLogger$LogLevel().AFInAppEventType();
AFInAppEventType(context, AFe1fSDK.logSession);
AFKeystoreWrapper(context, (String) null, (Map<String, Object>) null);
int i13 = onDeepLinking + 105;
onAppOpenAttribution = i13 % 128;
if (i13 % 2 != 0) {
z11 = true;
}
if (!z11) {
} else {
throw null;
}
}
@Override
public final void onPause(Context context) {
int i11 = onAppOpenAttribution + 27;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
AFKeystoreWrapper().onDeepLinkingNative().valueOf(context);
int i13 = onAppOpenAttribution + 115;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
}
@Override
@Deprecated
public final void performOnAppAttribution(@NonNull Context context, @NonNull URI uri) {
boolean z11;
char c11;
if (uri != null) {
z11 = true;
} else {
z11 = false;
}
if (z11) {
int i11 = onAppOpenAttribution + 11;
onDeepLinking = i11 % 128;
if (i11 % 2 != 0) {
if (!uri.toString().isEmpty()) {
if (context == null) {
AFb1tSDK onResponseErrorNative = AFKeystoreWrapper().onResponseErrorNative();
StringBuilder sb2 = new StringBuilder("Context is \"");
sb2.append(context);
sb2.append("\"");
onResponseErrorNative.AFInAppEventType(sb2.toString(), DeepLinkResult.Error.NETWORK);
int i12 = onAppOpenAttribution + 63;
onDeepLinking = i12 % 128;
if (i12 % 2 == 0) {
c11 = '\\';
} else {
c11 = '&';
}
if (c11 != '&') {
int i13 = 67 / 0;
return;
}
return;
}
AFKeystoreWrapper().onResponseErrorNative();
AFb1tSDK.values(context, new HashMap(), Uri.parse(uri.toString()));
return;
}
} else {
uri.toString().isEmpty();
throw null;
}
}
AFb1tSDK onResponseErrorNative2 = AFKeystoreWrapper().onResponseErrorNative();
StringBuilder sb3 = new StringBuilder("Link is \"");
sb3.append(uri);
sb3.append("\"");
onResponseErrorNative2.AFInAppEventType(sb3.toString(), DeepLinkResult.Error.NETWORK);
}
@Override
public final void performOnDeepLinking(@NonNull final Intent intent, @NonNull Context context) {
char c11;
char c12;
int i11 = onDeepLinking;
int i12 = i11 + 89;
onAppOpenAttribution = i12 % 128;
int i13 = i12 % 2;
if (intent == null) {
c11 = '\b';
} else {
c11 = '%';
}
if (c11 != '%') {
int i14 = i11 + 89;
onAppOpenAttribution = i14 % 128;
if (i14 % 2 != 0) {
AFKeystoreWrapper().onResponseErrorNative().AFInAppEventType("performOnDeepLinking was called with null intent", DeepLinkResult.Error.DEVELOPER_ERROR);
int i15 = 88 / 0;
} else {
AFKeystoreWrapper().onResponseErrorNative().AFInAppEventType("performOnDeepLinking was called with null intent", DeepLinkResult.Error.DEVELOPER_ERROR);
}
int i16 = onDeepLinking + 31;
onAppOpenAttribution = i16 % 128;
if (i16 % 2 != 0) {
int i17 = 80 / 0;
return;
}
return;
}
if (context == null) {
int i18 = i11 + 33;
onAppOpenAttribution = i18 % 128;
if (i18 % 2 != 0) {
c12 = 'N';
} else {
c12 = '/';
}
if (c12 == '/') {
AFKeystoreWrapper().onResponseErrorNative().AFInAppEventType("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
return;
} else {
AFKeystoreWrapper().onResponseErrorNative().AFInAppEventType("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
throw null;
}
}
final Context applicationContext = context.getApplicationContext();
AFInAppEventParameterName(applicationContext);
AFKeystoreWrapper().AFInAppEventType().execute(new Runnable() {
@Override
public final void run() {
AFa1dSDK.this.values(applicationContext, intent);
}
});
}
@Override
public final void registerConversionListener(Context context, AppsFlyerConversionListener appsFlyerConversionListener) {
int i11 = onDeepLinking + 95;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
boolean z11 = false;
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("registerConversionListener", new String[0]);
values(appsFlyerConversionListener);
int i13 = onAppOpenAttribution + 63;
onDeepLinking = i13 % 128;
if (i13 % 2 == 0) {
z11 = true;
}
if (!z11) {
} else {
throw null;
}
}
@Override
public final void registerValidatorListener(Context context, AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener) {
char c11;
boolean z11;
int i11 = onAppOpenAttribution + 9;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("registerValidatorListener", new String[0]);
AFLogger.afDebugLog("registerValidatorListener called");
if (appsFlyerInAppPurchaseValidatorListener == null) {
c11 = 'J';
} else {
c11 = 26;
}
if (c11 != 'J') {
AFInAppEventType = appsFlyerInAppPurchaseValidatorListener;
return;
}
int i13 = onAppOpenAttribution + 19;
onDeepLinking = i13 % 128;
if (i13 % 2 == 0) {
z11 = false;
} else {
z11 = true;
}
AFLogger.afDebugLog("registerValidatorListener null listener");
if (!z11) {
int i14 = 60 / 0;
}
}
@Override
public final void sendAdRevenue(Context context, Map<String, Object> map) {
char c11;
AFInAppEventParameterName(context);
AFe1iSDK aFe1iSDK = new AFe1iSDK();
int valueOf2 = valueOf(AFKeystoreWrapper(context));
aFe1iSDK.values().put("ad_network", map);
aFe1iSDK.values().put("adrevenue_counter", Integer.valueOf(valueOf2));
Activity activity = null;
if (context instanceof Activity) {
int i11 = onAppOpenAttribution + 27;
onDeepLinking = i11 % 128;
if (i11 % 2 == 0) {
c11 = '8';
} else {
c11 = '/';
}
if (c11 == '/') {
activity = (Activity) context;
} else {
throw null;
}
} else {
int i12 = onAppOpenAttribution + 95;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
}
AFInAppEventType(aFe1iSDK, activity);
}
@Override
public final void sendInAppPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
boolean z11;
PurchaseHandler afRDLog;
char c11;
int i11 = onDeepLinking + 95;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
z11 = false;
} else {
z11 = true;
}
if (z11) {
AFInAppEventParameterName(context);
afRDLog = AFKeystoreWrapper().afRDLog();
} else {
AFInAppEventParameterName(context);
afRDLog = AFKeystoreWrapper().afRDLog();
String[] strArr = new String[0];
strArr[1] = "purchases";
}
int i12 = onDeepLinking + 59;
onAppOpenAttribution = i12 % 128;
if (i12 % 2 != 0) {
c11 = 'W';
} else {
c11 = '&';
}
if (c11 != 'W') {
} else {
throw null;
}
}
@Override
public final void sendPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
char c11;
int i11 = onAppOpenAttribution + 49;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
AFInAppEventParameterName(context);
PurchaseHandler afRDLog = AFKeystoreWrapper().afRDLog();
if (afRDLog.values(map, purchaseValidationCallback, "subscriptions")) {
AFd1rSDK aFd1rSDK = new AFd1rSDK(map, purchaseValidationCallback, afRDLog.valueOf);
AFd1wSDK aFd1wSDK = afRDLog.AFInAppEventParameterName;
aFd1wSDK.valueOf.execute(new AFd1wSDK.AnonymousClass3(aFd1rSDK));
int i13 = onAppOpenAttribution + 21;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
}
int i15 = onDeepLinking + 13;
onAppOpenAttribution = i15 % 128;
if (i15 % 2 != 0) {
c11 = '@';
} else {
c11 = 5;
}
if (c11 != '@') {
} else {
throw null;
}
}
@Override
public final void sendPushNotificationData(@NonNull Activity activity) {
boolean z11;
char c11;
String AFInAppEventType2;
long j11;
char c12;
char c13;
int i11 = onAppOpenAttribution + 51;
int i12 = i11 % 128;
onDeepLinking = i12;
int i13 = i11 % 2;
if (activity != null) {
int i14 = i12 + 51;
onAppOpenAttribution = i14 % 128;
if (i14 % 2 == 0) {
if (activity.getIntent() != null) {
AFb1uSDK AFLogger$LogLevel = AFKeystoreWrapper().AFLogger$LogLevel();
String localClassName = activity.getLocalClassName();
StringBuilder sb2 = new StringBuilder("activity_intent_");
sb2.append(activity.getIntent().toString());
AFLogger$LogLevel.AFKeystoreWrapper("sendPushNotificationData", localClassName, sb2.toString());
AFInAppEventType2 = AFInAppEventType(activity);
this.AFVersionDeclaration = AFInAppEventType2;
if (AFInAppEventType2 == null) {
int i15 = onDeepLinking + 43;
onAppOpenAttribution = i15 % 128;
int i16 = i15 % 2;
long currentTimeMillis = System.currentTimeMillis();
if (this.afErrorLogForExcManagerOnly == null) {
AFLogger.afInfoLog("pushes: initializing pushes history..");
this.afErrorLogForExcManagerOnly = new ConcurrentHashMap();
j11 = currentTimeMillis;
} else {
try {
long j12 = AppsFlyerProperties.getInstance().getLong("pushPayloadMaxAging", TapjoyConstants.SESSION_ID_INACTIVITY_TIME);
j11 = currentTimeMillis;
for (Long l11 : this.afErrorLogForExcManagerOnly.keySet()) {
try {
JSONObject jSONObject = new JSONObject(this.AFVersionDeclaration);
JSONObject jSONObject2 = new JSONObject(this.afErrorLogForExcManagerOnly.get(l11));
if (jSONObject.opt("pid").equals(jSONObject2.opt("pid")) && jSONObject.opt("c").equals(jSONObject2.opt("c"))) {
StringBuilder sb3 = new StringBuilder("PushNotificationMeasurement: A previous payload with same PID and campaign was already acknowledged! (old: ");
sb3.append(jSONObject2);
sb3.append(", new: ");
sb3.append(jSONObject);
sb3.append(")");
AFLogger.afInfoLog(sb3.toString());
this.AFVersionDeclaration = null;
return;
}
if (currentTimeMillis - l11.longValue() > j12) {
c12 = 1;
} else {
c12 = 'a';
}
if (c12 == 1) {
this.afErrorLogForExcManagerOnly.remove(l11);
}
if (l11.longValue() <= j11) {
c13 = 'S';
} else {
c13 = '\\';
}
if (c13 == 'S') {
j11 = l11.longValue();
}
} catch (Throwable th2) {
th = th2;
StringBuilder sb4 = new StringBuilder("Error while handling push notification measurement: ");
sb4.append(th.getClass().getSimpleName());
AFLogger.afErrorLog(sb4.toString(), th);
if (this.afErrorLogForExcManagerOnly.size() == AppsFlyerProperties.getInstance().getInt("pushPayloadHistorySize", 2)) {
}
this.afErrorLogForExcManagerOnly.put(Long.valueOf(currentTimeMillis), this.AFVersionDeclaration);
start(activity);
return;
}
}
} catch (Throwable th3) {
th = th3;
j11 = currentTimeMillis;
}
}
if (this.afErrorLogForExcManagerOnly.size() == AppsFlyerProperties.getInstance().getInt("pushPayloadHistorySize", 2)) {
StringBuilder sb5 = new StringBuilder("pushes: removing oldest overflowing push (oldest push:");
sb5.append(j11);
sb5.append(")");
AFLogger.afInfoLog(sb5.toString());
this.afErrorLogForExcManagerOnly.remove(Long.valueOf(j11));
}
this.afErrorLogForExcManagerOnly.put(Long.valueOf(currentTimeMillis), this.AFVersionDeclaration);
start(activity);
return;
}
return;
}
} else {
activity.getIntent();
throw null;
}
}
if (activity != null) {
z11 = false;
} else {
z11 = true;
}
if (z11) {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("sendPushNotificationData", "activity_null");
} else {
int i17 = onDeepLinking + 105;
onAppOpenAttribution = i17 % 128;
if (i17 % 2 != 0) {
c11 = 'K';
} else {
c11 = '1';
}
if (c11 != 'K') {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("sendPushNotificationData", activity.getLocalClassName(), "activity_intent_null");
} else {
AFb1uSDK AFLogger$LogLevel2 = AFKeystoreWrapper().AFLogger$LogLevel();
String[] strArr = new String[4];
strArr[0] = activity.getLocalClassName();
strArr[1] = "activity_intent_null";
AFLogger$LogLevel2.AFKeystoreWrapper("sendPushNotificationData", strArr);
}
}
AFInAppEventType2 = AFInAppEventType(activity);
this.AFVersionDeclaration = AFInAppEventType2;
if (AFInAppEventType2 == null) {
}
}
@Override
public final void setAdditionalData(Map<String, Object> map) {
boolean z11;
int i11 = onDeepLinking + 79;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
z11 = false;
} else {
z11 = true;
}
if (z11) {
if (map != null) {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setAdditionalData", map.toString());
AppsFlyerProperties.getInstance().setCustomData(new JSONObject(map).toString());
}
int i12 = onDeepLinking + 27;
onAppOpenAttribution = i12 % 128;
int i13 = i12 % 2;
return;
}
throw null;
}
@Override
public final void setAndroidIdData(String str) {
char c11;
int i11 = onAppOpenAttribution + 23;
onDeepLinking = i11 % 128;
if (i11 % 2 == 0) {
c11 = 6;
} else {
c11 = '_';
}
if (c11 != '_') {
AFb1uSDK AFLogger$LogLevel = AFKeystoreWrapper().AFLogger$LogLevel();
String[] strArr = new String[0];
strArr[1] = str;
AFLogger$LogLevel.AFKeystoreWrapper("setAndroidIdData", strArr);
} else {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setAndroidIdData", str);
}
this.afErrorLog = str;
int i12 = onAppOpenAttribution + 123;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
}
@Override
public final void setAppId(String str) {
int i11 = onDeepLinking + 83;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setAppId", str);
AFInAppEventParameterName(AppsFlyerProperties.APP_ID, str);
int i13 = onAppOpenAttribution + 15;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
}
@Override
public final void setAppInviteOneLink(String str) {
char c11;
int i11 = onDeepLinking + 103;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
AFb1uSDK AFLogger$LogLevel = AFKeystoreWrapper().AFLogger$LogLevel();
boolean z11 = false;
String[] strArr = new String[0];
strArr[1] = str;
AFLogger$LogLevel.AFKeystoreWrapper("setAppInviteOneLink", strArr);
AFLogger.afInfoLog("setAppInviteOneLink = ".concat(String.valueOf(str)));
if (str != null) {
z11 = true;
}
} else {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setAppInviteOneLink", str);
AFLogger.afInfoLog("setAppInviteOneLink = ".concat(String.valueOf(str)));
if (str != null) {
c11 = 'Q';
} else {
c11 = 'S';
}
}
AFInAppEventParameterName(AppsFlyerProperties.ONELINK_ID, str);
}
@Override
public final void setCollectAndroidID(boolean z11) {
int i11 = onDeepLinking + 59;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setCollectAndroidID", String.valueOf(z11));
AFInAppEventParameterName(AppsFlyerProperties.COLLECT_ANDROID_ID, Boolean.toString(z11));
AFInAppEventParameterName(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, Boolean.toString(z11));
int i13 = onAppOpenAttribution + 43;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
}
@Override
public final void setCollectIMEI(boolean z11) {
char c11;
int i11 = onDeepLinking + 71;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
c11 = '\n';
} else {
c11 = '8';
}
if (c11 != '8') {
AFb1uSDK AFLogger$LogLevel = AFKeystoreWrapper().AFLogger$LogLevel();
String[] strArr = new String[1];
strArr[1] = String.valueOf(z11);
AFLogger$LogLevel.AFKeystoreWrapper("setCollectIMEI", strArr);
} else {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setCollectIMEI", String.valueOf(z11));
}
AFInAppEventParameterName(AppsFlyerProperties.COLLECT_IMEI, Boolean.toString(z11));
AFInAppEventParameterName(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, Boolean.toString(z11));
}
@Override
@Deprecated
public final void setCollectOaid(boolean z11) {
char c11;
int i11 = onDeepLinking + 43;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
c11 = ';';
} else {
c11 = '!';
}
if (c11 != '!') {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setCollectOaid", String.valueOf(z11));
} else {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setCollectOaid", String.valueOf(z11));
}
AFInAppEventParameterName(AppsFlyerProperties.COLLECT_OAID, Boolean.toString(z11));
}
@Override
public final void setCurrencyCode(String str) {
int i11 = onAppOpenAttribution + 99;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setCurrencyCode", str);
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.CURRENCY_CODE, str);
int i13 = onAppOpenAttribution + 95;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
}
@Override
public final void setCustomerIdAndLogSession(String str, @NonNull Context context) {
boolean z11;
char c11;
char c12;
char c13;
int i11 = onAppOpenAttribution + 79;
onDeepLinking = i11 % 128;
if (i11 % 2 == 0) {
z11 = false;
} else {
z11 = true;
}
if (!z11) {
int i12 = 51 / 0;
if (context == null) {
return;
}
} else {
if (context != null) {
c11 = 'N';
} else {
c11 = '#';
}
if (c11 == '#') {
return;
}
}
if (AFInAppEventParameterName()) {
setCustomerUserId(str);
StringBuilder sb2 = new StringBuilder("CustomerUserId set: ");
sb2.append(str);
sb2.append(" - Initializing AppsFlyer Tacking");
AFLogger.afInfoLog(sb2.toString(), true);
String referrer = AppsFlyerProperties.getInstance().getReferrer(context);
AFInAppEventType(context, AFe1fSDK.setCustomerIdAndLogSession);
String str2 = AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFKeystoreWrapper;
if (referrer == null) {
c12 = '\t';
} else {
c12 = 20;
}
if (c12 == '\t') {
referrer = "";
}
String str3 = referrer;
if (context instanceof Activity) {
c13 = 'J';
} else {
c13 = ',';
}
if (c13 == 'J') {
((Activity) context).getIntent();
}
valueOf(context, null, null, str3, null);
return;
}
setCustomerUserId(str);
AFLogger.afInfoLog("waitForCustomerUserId is false; setting CustomerUserID: ".concat(String.valueOf(str)), true);
int i13 = onAppOpenAttribution + 23;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
}
@Override
public final void setCustomerUserId(String str) {
char c11;
int i11 = onDeepLinking + 31;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setCustomerUserId", str);
AFLogger.afInfoLog("setCustomerUserId = ".concat(String.valueOf(str)));
AFInAppEventParameterName(AppsFlyerProperties.APP_USER_ID, str);
AFInAppEventParameterName(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false);
int i13 = onAppOpenAttribution + 61;
onDeepLinking = i13 % 128;
if (i13 % 2 == 0) {
c11 = '@';
} else {
c11 = '6';
}
if (c11 == '6') {
} else {
throw null;
}
}
@Override
public final void setDebugLog(boolean z11) {
char c11;
boolean z12;
AFLogger.LogLevel logLevel;
int i11 = onAppOpenAttribution + 75;
int i12 = i11 % 128;
onDeepLinking = i12;
int i13 = i11 % 2;
if (z11) {
c11 = 'L';
} else {
c11 = '=';
}
if (c11 != 'L') {
logLevel = AFLogger.LogLevel.NONE;
} else {
int i14 = i12 + 97;
onAppOpenAttribution = i14 % 128;
if (i14 % 2 != 0) {
z12 = false;
} else {
z12 = true;
}
if (z12) {
logLevel = AFLogger.LogLevel.DEBUG;
} else {
AFLogger.LogLevel logLevel2 = AFLogger.LogLevel.NONE;
throw null;
}
}
setLogLevel(logLevel);
}
@Override
public final void setDisableAdvertisingIdentifiers(boolean z11) {
char c11;
boolean z12;
int i11 = onAppOpenAttribution + 85;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z11)));
if (!z11) {
c11 = 'B';
} else {
c11 = '\t';
}
if (c11 != 'B') {
int i13 = onDeepLinking + 45;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
z12 = false;
} else {
int i15 = onAppOpenAttribution + 109;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
z12 = true;
}
AFa1eSDK.AFInAppEventType = Boolean.valueOf(z12);
AppsFlyerProperties.getInstance().remove("advertiserIdEnabled");
AppsFlyerProperties.getInstance().remove("advertiserId");
}
@Override
public final void setDisableNetworkData(boolean z11) {
char c11;
char c12;
int i11 = onAppOpenAttribution + 55;
onDeepLinking = i11 % 128;
if (i11 % 2 == 0) {
c11 = 'V';
} else {
c11 = 'Z';
}
if (c11 != 'V') {
AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z11)));
AFInAppEventParameterName(AppsFlyerProperties.DISABLE_NETWORK_DATA, z11);
int i12 = onDeepLinking + 59;
onAppOpenAttribution = i12 % 128;
if (i12 % 2 != 0) {
c12 = 2;
} else {
c12 = 'Q';
}
if (c12 != 2) {
return;
} else {
throw null;
}
}
AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z11)));
AFInAppEventParameterName(AppsFlyerProperties.DISABLE_NETWORK_DATA, z11);
throw null;
}
@Override
public final void setExtension(String str) {
char c11;
int i11 = onDeepLinking + 31;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
c11 = 'O';
} else {
c11 = 16;
}
if (c11 != 'O') {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setExtension", str);
} else {
AFb1uSDK AFLogger$LogLevel = AFKeystoreWrapper().AFLogger$LogLevel();
String[] strArr = new String[0];
strArr[0] = str;
AFLogger$LogLevel.AFKeystoreWrapper("setExtension", strArr);
}
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EXTENSION, str);
int i12 = onDeepLinking + 37;
onAppOpenAttribution = i12 % 128;
int i13 = i12 % 2;
}
@Override
public final void setHost(@Nullable String str, @NonNull String str2) {
boolean z11;
int i11 = onDeepLinking + 79;
onAppOpenAttribution = i11 % 128;
boolean z12 = true;
if (i11 % 2 != 0) {
z11 = false;
} else {
z11 = true;
}
if (z11) {
if (AFb1rSDK.values(str2)) {
z12 = false;
}
} else {
int i12 = 61 / 0;
if (!AFb1rSDK.values(str2)) {
z12 = false;
}
}
}
@Override
public final void setImeiData(String str) {
int i11 = onAppOpenAttribution + 105;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setImeiData", str);
AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFInAppEventType = str;
int i13 = onAppOpenAttribution + 13;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
}
@Override
public final void setIsUpdate(boolean z11) {
boolean z12;
int i11 = onAppOpenAttribution + 75;
onDeepLinking = i11 % 128;
if (i11 % 2 == 0) {
z12 = false;
} else {
z12 = true;
}
if (z12) {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setIsUpdate", String.valueOf(z11));
} else {
AFb1uSDK AFLogger$LogLevel = AFKeystoreWrapper().AFLogger$LogLevel();
String[] strArr = new String[0];
strArr[0] = String.valueOf(z11);
AFLogger$LogLevel.AFKeystoreWrapper("setIsUpdate", strArr);
}
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.IS_UPDATE, z11);
int i12 = onAppOpenAttribution + 47;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
}
@Override
public final void setLogLevel(@NonNull AFLogger.LogLevel logLevel) {
char c11;
boolean z11;
int i11 = onAppOpenAttribution + 23;
onDeepLinking = i11 % 128;
if (i11 % 2 != 0) {
if (logLevel.getLevel() > AFLogger.LogLevel.NONE.getLevel()) {
c11 = 'O';
} else {
c11 = 6;
}
if (c11 != 'O') {
int i12 = onAppOpenAttribution + 125;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
z11 = false;
} else {
z11 = true;
}
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("log", String.valueOf(z11));
AppsFlyerProperties.getInstance().set("logLevel", logLevel.getLevel());
return;
}
logLevel.getLevel();
AFLogger.LogLevel.NONE.getLevel();
throw null;
}
@Override
public final void setMinTimeBetweenSessions(int i11) {
char c11;
int i12 = onAppOpenAttribution + 73;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
this.getLevel = TimeUnit.SECONDS.toMillis(i11);
int i14 = onDeepLinking + 41;
onAppOpenAttribution = i14 % 128;
if (i14 % 2 != 0) {
c11 = 'B';
} else {
c11 = 'K';
}
if (c11 != 'B') {
} else {
throw null;
}
}
@Override
public final void setOaidData(String str) {
boolean z11;
int i11 = onDeepLinking + 47;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setOaidData", str);
AFa1eSDK.valueOf = str;
int i13 = onAppOpenAttribution + 87;
onDeepLinking = i13 % 128;
if (i13 % 2 == 0) {
z11 = false;
} else {
z11 = true;
}
if (z11) {
} else {
throw null;
}
}
@Override
public final void setOneLinkCustomDomain(String... strArr) {
int i11 = onDeepLinking + 95;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
boolean z11 = true;
AFLogger.afDebugLog(String.format("setOneLinkCustomDomain %s", Arrays.toString(strArr)));
AFb1tSDK.AFInAppEventParameterName = strArr;
int i13 = onDeepLinking + 25;
onAppOpenAttribution = i13 % 128;
if (i13 % 2 != 0) {
z11 = false;
}
if (z11) {
} else {
throw null;
}
}
@Override
public final void setOutOfStore(String str) {
char c11;
int i11 = onDeepLinking;
int i12 = i11 + 73;
onAppOpenAttribution = i12 % 128;
if (i12 % 2 == 0) {
if (str != null) {
c11 = 'J';
} else {
c11 = '6';
}
if (c11 != '6') {
int i13 = i11 + 27;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
String lowerCase = str.toLowerCase(Locale.getDefault());
AppsFlyerProperties.getInstance().set("api_store_value", lowerCase);
AFLogger.afInfoLog("Store API set with value: ".concat(String.valueOf(lowerCase)), true);
int i15 = onDeepLinking + 121;
onAppOpenAttribution = i15 % 128;
int i16 = i15 % 2;
return;
}
AFLogger.valueOf("Cannot set setOutOfStore with null");
int i17 = onAppOpenAttribution + 109;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
return;
}
throw null;
}
@Override
public final void setPartnerData(@NonNull String str, Map<String, Object> map) {
char c11;
boolean z11;
String concat;
boolean z12;
if (this.onConversionDataSuccess == null) {
this.onConversionDataSuccess = new AFb1lSDK();
}
AFb1lSDK aFb1lSDK = this.onConversionDataSuccess;
if (str != null) {
c11 = 28;
} else {
c11 = 'U';
}
if (c11 == 28) {
int i11 = onAppOpenAttribution + 49;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
boolean z13 = false;
if (str.isEmpty()) {
z11 = true;
} else {
z11 = false;
}
if (!z11) {
if (map != null) {
int i13 = onDeepLinking + 73;
onAppOpenAttribution = i13 % 128;
if (i13 % 2 != 0) {
z12 = true;
} else {
z12 = false;
}
if (!z12) {
if (!map.isEmpty()) {
StringBuilder sb2 = new StringBuilder("Setting partner data for ");
sb2.append(str);
sb2.append(": ");
sb2.append(map);
AFLogger.afDebugLog(sb2.toString());
int length = new JSONObject(map).toString().length();
if (length > 1000) {
AFLogger.afWarnLog("Partner data 1000 characters limit exceeded");
HashMap hashMap = new HashMap();
hashMap.put("error", "limit exceeded: ".concat(String.valueOf(length)));
aFb1lSDK.AFInAppEventParameterName.put(str, hashMap);
return;
}
aFb1lSDK.valueOf.put(str, map);
aFb1lSDK.AFInAppEventParameterName.remove(str);
return;
}
} else {
map.isEmpty();
throw null;
}
}
if (aFb1lSDK.valueOf.remove(str) != null) {
z13 = true;
}
if (!z13) {
concat = "Partner data is missing or `null`";
} else {
concat = "Cleared partner data for ".concat(str);
}
AFLogger.afWarnLog(concat);
return;
}
}
AFLogger.afWarnLog("Partner ID is missing or `null`");
}
@Override
public final void setPhoneNumber(String str) {
char c11;
int i11 = onAppOpenAttribution + 9;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
this.onResponseNative = AFa1aSDK.AFInAppEventType(str);
int i13 = onAppOpenAttribution + 71;
onDeepLinking = i13 % 128;
if (i13 % 2 == 0) {
c11 = 28;
} else {
c11 = '+';
}
if (c11 != 28) {
return;
}
int i14 = 84 / 0;
}
@Override
public final void setPluginInfo(@NonNull PluginInfo pluginInfo) {
boolean z11;
int i11 = onAppOpenAttribution + 25;
onDeepLinking = i11 % 128;
if (i11 % 2 == 0) {
z11 = false;
} else {
z11 = true;
}
if (z11) {
Objects.requireNonNull(pluginInfo);
AFKeystoreWrapper().init().values(pluginInfo);
} else {
Objects.requireNonNull(pluginInfo);
AFKeystoreWrapper().init().values(pluginInfo);
throw null;
}
}
@Override
public final void setPreinstallAttribution(String str, String str2, String str3) {
char c11;
boolean z11;
AFLogger.afDebugLog("setPreinstallAttribution API called");
JSONObject jSONObject = new JSONObject();
if (str != null) {
int i11 = onDeepLinking + 69;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
try {
jSONObject.put("pid", str);
} catch (JSONException e11) {
AFLogger.afErrorLog(e11.getMessage(), e11);
}
}
if (str2 != null) {
c11 = 'J';
} else {
c11 = '?';
}
if (c11 != '?') {
jSONObject.put("c", str2);
}
if (str3 != null) {
z11 = true;
} else {
z11 = false;
}
if (z11) {
int i13 = onAppOpenAttribution + 63;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
jSONObject.put("af_siteid", str3);
}
if (jSONObject.has("pid")) {
int i15 = onDeepLinking + 3;
onAppOpenAttribution = i15 % 128;
if (i15 % 2 != 0) {
AFInAppEventParameterName("preInstallName", jSONObject.toString());
int i16 = 50 / 0;
return;
} else {
AFInAppEventParameterName("preInstallName", jSONObject.toString());
return;
}
}
AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
}
@Override
public final void setResolveDeepLinkURLs(String... strArr) {
char c11;
String format;
int i11 = onDeepLinking + 55;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
c11 = '0';
} else {
c11 = '_';
}
if (c11 != '_') {
Object[] objArr = new Object[0];
objArr[0] = Arrays.toString(strArr);
format = String.format("setResolveDeepLinkURLs %s", objArr);
} else {
format = String.format("setResolveDeepLinkURLs %s", Arrays.toString(strArr));
}
AFLogger.afDebugLog(format);
List<String> list = AFb1tSDK.AFKeystoreWrapper;
list.clear();
list.addAll(Arrays.asList(strArr));
}
@Override
@Deprecated
public final void setSharingFilter(@NonNull String... strArr) {
char c11;
int i11 = onAppOpenAttribution + 77;
onDeepLinking = i11 % 128;
if (i11 % 2 == 0) {
c11 = 'N';
} else {
c11 = 'Y';
}
setSharingFilterForPartners(strArr);
if (c11 == 'Y') {
int i12 = onAppOpenAttribution + 1;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
return;
}
throw null;
}
@Override
@Deprecated
public final void setSharingFilterForAllPartners() {
int i11 = onDeepLinking + 81;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
setSharingFilterForPartners("all");
int i13 = onDeepLinking + 7;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
}
@Override
public final void setSharingFilterForPartners(String... strArr) {
char c11;
this.afRDLog = new AFa1eSDK(strArr);
int i11 = onDeepLinking + 63;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
c11 = 17;
} else {
c11 = '_';
}
if (c11 != 17) {
return;
}
int i12 = 47 / 0;
}
@Override
public final void setUserEmails(String... strArr) {
int i11 = onAppOpenAttribution + 55;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setUserEmails", strArr);
setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
int i13 = onDeepLinking + 125;
onAppOpenAttribution = i13 % 128;
if (!(i13 % 2 == 0)) {
int i14 = 8 / 0;
}
}
@Override
public final void start(@NonNull Context context) {
int i11 = onAppOpenAttribution + 95;
onDeepLinking = i11 % 128;
char c11 = i11 % 2 == 0 ? ')' : 'U';
start(context, null);
if (c11 != 'U') {
throw null;
}
}
@Override
public final void stop(boolean z11, Context context) {
char c11;
int i11 = onDeepLinking + 13;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
AFInAppEventParameterName(context);
AFKeystoreWrapper().AppsFlyer2dXConversionCallback().values = z11;
AFKeystoreWrapper().onInstallConversionFailureNative().AFKeystoreWrapper();
if (z11) {
c11 = 'c';
} else {
c11 = '9';
}
if (c11 == 'c') {
int i13 = onDeepLinking + 81;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
values(context).valueOf("is_stop_tracking_used", true);
}
}
@Override
public final void subscribeForDeepLink(@NonNull DeepLinkListener deepLinkListener) {
int i11 = onAppOpenAttribution + 43;
onDeepLinking = i11 % 128;
if (!(i11 % 2 != 0)) {
subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
int i12 = 91 / 0;
} else {
subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
}
int i13 = onAppOpenAttribution + 83;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
}
@Override
public final void unregisterConversionListener() {
boolean z11;
int i11 = onDeepLinking + 17;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
z11 = false;
} else {
z11 = true;
}
if (!z11) {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("unregisterConversionListener", new String[1]);
} else {
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("unregisterConversionListener", new String[0]);
}
AFInAppEventParameterName = null;
}
@Override
public final void updateServerUninstallToken(Context context, String str) {
boolean z11;
AFInAppEventParameterName(context);
AFe1pSDK aFe1pSDK = new AFe1pSDK(context);
if (str != null && !str.trim().isEmpty()) {
AFLogger.afInfoLog("[register] Firebase Refreshed Token = ".concat(str));
AFb1rSDK AFInAppEventParameterName2 = aFe1pSDK.AFInAppEventParameterName();
if (AFInAppEventParameterName2 == null || !str.equals(AFInAppEventParameterName2.AFKeystoreWrapper)) {
long currentTimeMillis = System.currentTimeMillis();
if (AFInAppEventParameterName2 != null && currentTimeMillis - AFInAppEventParameterName2.AFInAppEventType <= TimeUnit.SECONDS.toMillis(2L)) {
z11 = false;
} else {
z11 = true;
}
AFb1rSDK aFb1rSDK = new AFb1rSDK(str, currentTimeMillis, !z11);
aFe1pSDK.AFInAppEventParameterName.valueOf("afUninstallToken", aFb1rSDK.AFKeystoreWrapper);
aFe1pSDK.AFInAppEventParameterName.AFInAppEventParameterName("afUninstallToken_received_time", aFb1rSDK.AFInAppEventType);
aFe1pSDK.AFInAppEventParameterName.valueOf("afUninstallToken_queued", aFb1rSDK.AFKeystoreWrapper());
if (z11) {
AFe1pSDK.AFInAppEventParameterName(str);
return;
}
return;
}
return;
}
AFLogger.afWarnLog("[register] Firebase Token is either empty or null and was not registered.");
}
@Override
public final void validateAndLogInAppPurchase(Context context, String str, String str2, String str3, String str4, String str5, Map<String, String> map) {
String obj;
Intent intent;
AFb1uSDK AFLogger$LogLevel = AFKeystoreWrapper().AFLogger$LogLevel();
String[] strArr = new String[6];
strArr[0] = str;
strArr[1] = str2;
strArr[2] = str3;
strArr[3] = str4;
strArr[4] = str5;
if (map == null) {
obj = "";
} else {
obj = map.toString();
}
strArr[5] = obj;
AFLogger$LogLevel.AFKeystoreWrapper("validateAndTrackInAppPurchase", strArr);
if (!isStopped()) {
StringBuilder sb2 = new StringBuilder("Validate in app called with parameters: ");
sb2.append(str3);
sb2.append(" ");
sb2.append(str4);
sb2.append(" ");
sb2.append(str5);
AFLogger.afInfoLog(sb2.toString());
}
if (str != null && str4 != null && str2 != null && str5 != null && str3 != null) {
Context applicationContext = context.getApplicationContext();
String str6 = AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFKeystoreWrapper;
if (context instanceof Activity) {
intent = ((Activity) context).getIntent();
} else {
intent = null;
}
new Thread(new AFa1jSDK(applicationContext, str6, str, str2, str3, str4, str5, map, intent)).start();
return;
}
AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener = AFInAppEventType;
if (appsFlyerInAppPurchaseValidatorListener != null) {
appsFlyerInAppPurchaseValidatorListener.onValidateInAppFailure("Please provide purchase parameters");
}
}
@Override
public final void waitForCustomerUserId(boolean z11) {
char c11;
int i11 = onAppOpenAttribution + 21;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
AFLogger.afInfoLog("initAfterCustomerUserID: ".concat(String.valueOf(z11)), true);
AFInAppEventParameterName(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, z11);
int i13 = onAppOpenAttribution + 19;
onDeepLinking = i13 % 128;
if (i13 % 2 == 0) {
c11 = '!';
} else {
c11 = '\b';
}
if (c11 == '\b') {
} else {
throw null;
}
}
public static void AFInAppEventType(AFa1dSDK aFa1dSDK) {
int i11 = onDeepLinking + 7;
onAppOpenAttribution = i11 % 128;
boolean z11 = i11 % 2 != 0;
aFa1dSDK.afErrorLogForExcManagerOnly();
if (z11) {
throw null;
}
}
public static void AFKeystoreWrapper(AFa1dSDK aFa1dSDK, AFa1sSDK aFa1sSDK) {
int i11 = onDeepLinking + 113;
onAppOpenAttribution = i11 % 128;
boolean z11 = i11 % 2 == 0;
aFa1dSDK.values(aFa1sSDK);
if (!z11) {
throw null;
}
}
private String afErrorLog(Context context) {
int i11 = onDeepLinking + 55;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 == 0) {
SharedPreferences AFKeystoreWrapper2 = AFKeystoreWrapper(context);
if ((AFKeystoreWrapper2.contains("INSTALL_STORE") ? '\t' : (char) 7) != 7) {
int i12 = onAppOpenAttribution + 85;
onDeepLinking = i12 % 128;
if (i12 % 2 != 0) {
return AFKeystoreWrapper2.getString("INSTALL_STORE", null);
}
AFKeystoreWrapper2.getString("INSTALL_STORE", null);
throw null;
}
String afWarnLog = afRDLog(context) ? afWarnLog(context) : null;
values(context).valueOf("INSTALL_STORE", afWarnLog);
return afWarnLog;
}
AFKeystoreWrapper(context).contains("INSTALL_STORE");
throw null;
}
private static boolean afRDLog(Context context) {
int i11 = onAppOpenAttribution + 23;
onDeepLinking = i11 % 128;
boolean z11 = true;
if (i11 % 2 == 0) {
int i12 = 84 / 0;
}
}
private String afWarnLog(Context context) {
int i11 = onDeepLinking + 63;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 == 0) {
String string = AppsFlyerProperties.getInstance().getString("api_store_value");
if ((string != null ? 'M' : '0') != '0') {
int i12 = onAppOpenAttribution + 101;
onDeepLinking = i12 % 128;
if (i12 % 2 == 0) {
int i13 = 39 / 0;
}
return string;
}
return AFInAppEventParameterName(context, "AF_STORE");
}
AppsFlyerProperties.getInstance().getString("api_store_value");
throw null;
}
public static AFa1dSDK valueOf() {
AFa1dSDK aFa1dSDK;
int i11 = onAppOpenAttribution;
int i12 = i11 + 115;
onDeepLinking = i12 % 128;
if ((i12 % 2 == 0 ? '!' : 'J') != 'J') {
aFa1dSDK = AFLogger;
int i13 = 62 / 0;
} else {
aFa1dSDK = AFLogger;
}
int i14 = i11 + 29;
onDeepLinking = i14 % 128;
if ((i14 % 2 == 0 ? (char) 25 : 'N') != 25) {
return aFa1dSDK;
}
int i15 = 8 / 0;
return aFa1dSDK;
}
public void values(Context context, Intent intent) {
AFInAppEventParameterName(context);
AFb1tSDK onResponseErrorNative = AFKeystoreWrapper().onResponseErrorNative();
AFb1dSDK afInfoLog2 = AFKeystoreWrapper().afInfoLog();
Uri AFKeystoreWrapper2 = AFb1tSDK.AFKeystoreWrapper(intent);
boolean z11 = false;
if (!(AFKeystoreWrapper2 == null)) {
int i11 = onDeepLinking + 123;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
int i12 = 43 / 0;
}
}
if (afInfoLog2.AFInAppEventParameterName("ddl_sent")) {
if ((!z11 ? (char) 23 : '>') == 23) {
onResponseErrorNative.AFInAppEventType("No direct deep link", null);
return;
}
}
onResponseErrorNative.values(new HashMap(), intent, context);
}
@Override
public final void logEvent(@NonNull Context context, String str, Map<String, Object> map, AppsFlyerRequestListener appsFlyerRequestListener) {
HashMap hashMap = map == null ? null : new HashMap(map);
AFInAppEventParameterName(context);
AFe1bSDK aFe1bSDK = new AFe1bSDK();
aFe1bSDK.AFLogger = str;
aFe1bSDK.AFInAppEventParameterName = appsFlyerRequestListener;
if (hashMap != null && hashMap.containsKey(AFInAppEventParameterName.TOUCH_OBJ)) {
HashMap hashMap2 = new HashMap();
Object obj = hashMap.get(AFInAppEventParameterName.TOUCH_OBJ);
if (obj instanceof MotionEvent) {
MotionEvent motionEvent = (MotionEvent) obj;
HashMap hashMap3 = new HashMap();
hashMap3.put("x", Float.valueOf(motionEvent.getX()));
hashMap3.put(y.f45798f, Float.valueOf(motionEvent.getY()));
hashMap2.put("loc", hashMap3);
hashMap2.put("pf", Float.valueOf(motionEvent.getPressure()));
hashMap2.put("rad", Float.valueOf(motionEvent.getTouchMajor() / 2.0f));
} else {
hashMap2.put("error", "Parsing failed due to invalid input in 'af_touch_obj'.");
AFLogger.valueOf("Parsing failed due to invalid input in 'af_touch_obj'.");
}
Map<String, ?> singletonMap = Collections.singletonMap("tch_data", hashMap2);
hashMap.remove(AFInAppEventParameterName.TOUCH_OBJ);
aFe1bSDK.valueOf(singletonMap);
}
aFe1bSDK.values = hashMap;
AFb1uSDK AFLogger$LogLevel = AFKeystoreWrapper().AFLogger$LogLevel();
String[] strArr = new String[2];
strArr[0] = str;
Map map2 = aFe1bSDK.values;
if (map2 == null) {
map2 = new HashMap();
}
strArr[1] = new JSONObject(map2).toString();
AFLogger$LogLevel.AFKeystoreWrapper("logEvent", strArr);
if (str == null) {
AFInAppEventType(context, AFe1fSDK.logEvent);
}
AFInAppEventType(aFe1bSDK, context instanceof Activity ? (Activity) context : null);
}
@Override
public final void start(@NonNull Context context, String str) {
int i11 = onAppOpenAttribution + 67;
onDeepLinking = i11 % 128;
char c11 = i11 % 2 == 0 ? '_' : (char) 31;
start(context, str, null);
if (c11 == '_') {
throw null;
}
int i12 = onDeepLinking + 11;
onAppOpenAttribution = i12 % 128;
if ((i12 % 2 != 0 ? '3' : '\t') != '\t') {
throw null;
}
}
@Override
public final void subscribeForDeepLink(@NonNull DeepLinkListener deepLinkListener, long j11) {
int i11 = onAppOpenAttribution + 97;
onDeepLinking = i11 % 128;
if (!(i11 % 2 != 0)) {
AFKeystoreWrapper().onResponseErrorNative().AFInAppEventType = deepLinkListener;
AFb1pSDK.afErrorLog = j11;
int i12 = 94 / 0;
} else {
AFKeystoreWrapper().onResponseErrorNative().AFInAppEventType = deepLinkListener;
AFb1pSDK.afErrorLog = j11;
}
}
private static boolean AFInAppEventType(String str, boolean z11) {
int i11 = onAppOpenAttribution + 3;
onDeepLinking = i11 % 128;
if (!(i11 % 2 != 0)) {
AppsFlyerProperties.getInstance().getBoolean(str, z11);
throw null;
}
boolean z12 = AppsFlyerProperties.getInstance().getBoolean(str, z11);
int i12 = onAppOpenAttribution + 1;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
return z12;
}
public static boolean AFKeystoreWrapper(AFa1dSDK aFa1dSDK, boolean z11) {
int i11 = onAppOpenAttribution;
int i12 = i11 + 97;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
aFa1dSDK.onInstallConversionFailureNative = z11;
int i14 = i11 + 11;
onDeepLinking = i14 % 128;
int i15 = i14 % 2;
return z11;
}
private static void afDebugLog(Context context) {
try {
boolean z11 = false;
if (((context.getPackageManager().getPackageInfo(context.getPackageName(), 0).applicationInfo.flags & 32768) != 0 ? '1' : '7') != '7') {
int i11 = onAppOpenAttribution + 101;
onDeepLinking = i11 % 128;
if (i11 % 2 != 0) {
if (context.getResources().getIdentifier("appsflyer_backup_rules", "xml", context.getPackageName()) == 0) {
z11 = true;
}
if (!z11) {
AFLogger.afInfoLog("appsflyer_backup_rules.xml detected, using AppsFlyer defined backup rules for AppsFlyer SDK data", true);
int i12 = onDeepLinking + 81;
onAppOpenAttribution = i12 % 128;
if (i12 % 2 != 0) {
throw null;
}
return;
}
AFLogger.valueOf("'allowBackup' is set to true; appsflyer_backup_rules.xml not detected.\nAppsFlyer shared preferences should be excluded from auto backup by adding: <exclude domain=\"sharedpref\" path=\"appsflyer-data\"/> to the Application's <full-backup-content> rules");
return;
}
context.getResources().getIdentifier("appsflyer_backup_rules", "xml", context.getPackageName());
throw null;
}
} catch (Exception e11) {
AFLogger.afErrorLogForExcManagerOnly("checkBackupRules Exception", e11);
AFLogger.afRDLog("checkBackupRules Exception: ".concat(String.valueOf(e11)));
}
}
public static String valueOf(SimpleDateFormat simpleDateFormat, long j11) {
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
String format = simpleDateFormat.format(new Date(j11));
int i11 = onDeepLinking + 11;
onAppOpenAttribution = i11 % 128;
if ((i11 % 2 != 0 ? '/' : '&') == '&') {
return format;
}
throw null;
}
@Override
public final void start(@NonNull Context context, String str, final AppsFlyerRequestListener appsFlyerRequestListener) {
if (AFKeystoreWrapper().onDeepLinkingNative().AFInAppEventType()) {
int i11 = onDeepLinking + 93;
onAppOpenAttribution = i11 % 128;
if (!(i11 % 2 == 0)) {
throw null;
}
return;
}
if (!this.onInstallConversionDataLoadedNative) {
AFLogger.afWarnLog("ERROR: AppsFlyer SDK is not initialized! The API call 'start()' must be called after the 'init(String, AppsFlyerConversionListener)' API method, which should be called on the Application's onCreate.");
if (str == null) {
int i12 = onAppOpenAttribution + 67;
onDeepLinking = i12 % 128;
if (i12 % 2 == 0) {
throw null;
}
if (appsFlyerRequestListener != null) {
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1fSDK.AFInAppEventType);
return;
}
return;
}
}
AFInAppEventParameterName(context);
final AFe1gSDK afDebugLog = AFKeystoreWrapper().afDebugLog();
afDebugLog.AFInAppEventParameterName(AFa1tSDK.AFKeystoreWrapper(context));
this.AppsFlyer2dXConversionCallback = (Application) context.getApplicationContext();
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("start", str);
String str2 = values;
AFLogger.afInfoLog(String.format("Starting AppsFlyer: (v%s.%s)", "6.11.0", str2));
StringBuilder sb2 = new StringBuilder("Build Number: ");
sb2.append(str2);
AFLogger.afInfoLog(sb2.toString());
AppsFlyerProperties.getInstance().loadProperties(this.AppsFlyer2dXConversionCallback.getApplicationContext());
if ((!TextUtils.isEmpty(str) ? (char) 20 : '`') != '`') {
int i13 = onDeepLinking + 29;
onAppOpenAttribution = i13 % 128;
if (i13 % 2 == 0) {
AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFKeystoreWrapper = str;
AFc1qSDK.valueOf(str);
} else {
AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFKeystoreWrapper = str;
AFc1qSDK.valueOf(str);
throw null;
}
} else if (TextUtils.isEmpty(AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFKeystoreWrapper)) {
int i14 = onAppOpenAttribution + 17;
onDeepLinking = i14 % 128;
if ((i14 % 2 == 0 ? (char) 5 : 'U') != 5) {
AFLogger.afWarnLog("ERROR: AppsFlyer SDK is not initialized! You must provide AppsFlyer Dev-Key either in the 'init' API method (should be called on Application's onCreate),or in the start() API (should be called on Activity's onCreate).");
if (!(appsFlyerRequestListener != null)) {
return;
}
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1fSDK.AFInAppEventType);
return;
}
AFLogger.afWarnLog("ERROR: AppsFlyer SDK is not initialized! You must provide AppsFlyer Dev-Key either in the 'init' API method (should be called on Application's onCreate),or in the start() API (should be called on Activity's onCreate).");
throw null;
}
AFKeystoreWrapper().AFLogger().values((AFe1zSDK) null);
afErrorLogForExcManagerOnly();
afDebugLog(this.AppsFlyer2dXConversionCallback.getBaseContext());
if (!(this.onDeepLinkingNative ? false : true)) {
AFInAppEventType(this.AppsFlyer2dXConversionCallback.getApplicationContext());
}
AFc1xSDK aFc1xSDK = this.onResponse;
if (aFc1xSDK.AFInAppEventParameterName == null) {
aFc1xSDK.AFInAppEventParameterName = new AFb1eSDK(aFc1xSDK.valueOf(), aFc1xSDK.onResponseErrorNative());
}
aFc1xSDK.AFInAppEventParameterName.AFInAppEventType(context, new AFb1iSDK.AFa1wSDK() {
@Override
public final void AFInAppEventType(@Nullable Context context2) {
AFLogger.afInfoLog("onBecameBackground");
AFe1gSDK aFe1gSDK = afDebugLog;
long currentTimeMillis = System.currentTimeMillis();
long j11 = aFe1gSDK.afRDLog;
if (j11 != 0) {
long j12 = currentTimeMillis - j11;
if (j12 > 0 && j12 < 1000) {
j12 = 1000;
}
long seconds = TimeUnit.MILLISECONDS.toSeconds(j12);
aFe1gSDK.AFVersionDeclaration = seconds;
aFe1gSDK.AFInAppEventParameterName.AFInAppEventParameterName("prev_session_dur", seconds);
} else {
AFLogger.afInfoLog("Metrics: fg ts is missing");
}
AFLogger.afInfoLog("callStatsBackground background call");
AFa1dSDK.this.AFInAppEventType(new WeakReference<>(context2));
AFa1dSDK.this.AFKeystoreWrapper().onAppOpenAttribution().AFKeystoreWrapper();
AFb1uSDK AFLogger$LogLevel = AFa1dSDK.this.AFKeystoreWrapper().AFLogger$LogLevel();
if (AFLogger$LogLevel.afInfoLog()) {
AFLogger$LogLevel.valueOf();
if (context2 != null && !AppsFlyerLib.getInstance().isStopped()) {
AFLogger$LogLevel.AFInAppEventParameterName(context2.getPackageName(), context2.getPackageManager(), AFa1dSDK.this.AFKeystoreWrapper());
}
AFLogger$LogLevel.AFKeystoreWrapper();
} else {
AFLogger.afDebugLog("RD status is OFF");
}
AFa1dSDK.this.AFKeystoreWrapper().getLevel().AFInAppEventType();
}
@Override
public final void AFKeystoreWrapper(@Nullable Activity activity) {
afDebugLog.AFKeystoreWrapper();
AFa1dSDK.this.AFKeystoreWrapper().AFLogger().values((AFe1zSDK) null);
AFa1dSDK.AFInAppEventType(AFa1dSDK.this);
int values2 = AFa1dSDK.this.values(AFa1dSDK.AFKeystoreWrapper(activity), false);
AFLogger.afInfoLog("onBecameForeground");
if (values2 < 2) {
AFa1dSDK.this.AFKeystoreWrapper().getLevel().values();
}
AFe1dSDK aFe1dSDK = new AFe1dSDK();
AFa1dSDK.this.AFKeystoreWrapper().onResponseErrorNative().values(aFe1dSDK.values(), activity.getIntent(), activity.getApplication());
AFa1dSDK aFa1dSDK = AFa1dSDK.this;
aFe1dSDK.AFInAppEventParameterName = appsFlyerRequestListener;
aFa1dSDK.AFInAppEventType(aFe1dSDK, activity);
}
});
int i15 = onDeepLinking + 57;
onAppOpenAttribution = i15 % 128;
int i16 = i15 % 2;
}
public void AFInAppEventType(AFd1cSDK aFd1cSDK) {
int i11 = onDeepLinking + 5;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
AFd1cSDK aFd1cSDK2 = AFd1cSDK.SUCCESS;
throw null;
}
if ((aFd1cSDK == AFd1cSDK.SUCCESS ? (char) 24 : 'J') != 'J') {
AFKeystoreWrapper().onAppOpenAttribution().AFInAppEventType();
}
int i12 = onDeepLinking + 17;
onAppOpenAttribution = i12 % 128;
int i13 = i12 % 2;
}
public final AFb1bSDK AFKeystoreWrapper() {
int i11 = onAppOpenAttribution + 7;
int i12 = i11 % 128;
onDeepLinking = i12;
int i13 = i11 % 2;
AFc1xSDK aFc1xSDK = this.onResponse;
int i14 = i12 + 59;
onAppOpenAttribution = i14 % 128;
if (!(i14 % 2 != 0)) {
return aFc1xSDK;
}
throw null;
}
@Override
public final void setUserEmails(AppsFlyerProperties.EmailsCryptType emailsCryptType, String... strArr) {
ArrayList arrayList = new ArrayList(strArr.length + 1);
arrayList.add(emailsCryptType.toString());
arrayList.addAll(Arrays.asList(strArr));
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper("setUserEmails", (String[]) arrayList.toArray(new String[strArr.length + 1]));
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EMAIL_CRYPT_TYPE, emailsCryptType.getValue());
HashMap hashMap = new HashMap();
ArrayList arrayList2 = new ArrayList();
int length = strArr.length;
String str = null;
int i11 = 0;
while (true) {
if ((i11 < length ? '2' : (char) 22) != '2') {
break;
}
String str2 = strArr[i11];
if (AnonymousClass1.values[emailsCryptType.ordinal()] != 2) {
arrayList2.add(AFa1aSDK.AFInAppEventType(str2));
str = "sha256_el_arr";
} else {
arrayList2.add(str2);
str = "plain_el_arr";
}
i11++;
int i12 = onAppOpenAttribution + 13;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
}
hashMap.put(str, arrayList2);
AppsFlyerProperties.getInstance().setUserEmails(new JSONObject(hashMap).toString());
int i14 = onAppOpenAttribution + 27;
onDeepLinking = i14 % 128;
if (i14 % 2 == 0) {
throw null;
}
}
private static String AFKeystoreWrapper(String str) {
int i11 = onAppOpenAttribution + 59;
onDeepLinking = i11 % 128;
if ((i11 % 2 == 0 ? (char) 2 : '9') != 2) {
return AppsFlyerProperties.getInstance().getString(str);
}
AppsFlyerProperties.getInstance().getString(str);
throw null;
}
@VisibleForTesting
private void valueOf(Context context, String str, Map<String, Object> map, String str2, String str3) {
AFa1sSDK aFe1dSDK;
int i11 = onDeepLinking;
int i12 = i11 + 109;
onAppOpenAttribution = i12 % 128;
if ((i12 % 2 != 0 ? 'L' : 'P') != 'L') {
if (str != null) {
int i13 = i11 + 75;
onAppOpenAttribution = i13 % 128;
if (i13 % 2 != 0) {
str.trim().isEmpty();
throw null;
}
if (!str.trim().isEmpty()) {
aFe1dSDK = new AFe1bSDK();
int i14 = onDeepLinking + 15;
onAppOpenAttribution = i14 % 128;
int i15 = i14 % 2;
AFInAppEventParameterName(context);
aFe1dSDK.AFLogger = str;
aFe1dSDK.values = map;
aFe1dSDK.afDebugLog = str2;
aFe1dSDK.AFKeystoreWrapper = str3;
AFInAppEventParameterName(aFe1dSDK);
return;
}
}
aFe1dSDK = new AFe1dSDK();
AFInAppEventParameterName(context);
aFe1dSDK.AFLogger = str;
aFe1dSDK.values = map;
aFe1dSDK.afDebugLog = str2;
aFe1dSDK.AFKeystoreWrapper = str3;
AFInAppEventParameterName(aFe1dSDK);
return;
}
throw null;
}
private void AFKeystoreWrapper(Context context, String str, Map<String, Object> map) {
Activity activity;
AFe1bSDK aFe1bSDK = new AFe1bSDK();
aFe1bSDK.AFLogger = str;
aFe1bSDK.values = map;
if ((context instanceof Activity ? '\n' : 'P') != 'P') {
activity = (Activity) context;
int i11 = onDeepLinking + 79;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
} else {
int i13 = onDeepLinking + 89;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
activity = null;
}
AFInAppEventType(aFe1bSDK, activity);
}
private String AFVersionDeclaration(Context context) {
String level;
int i11 = onDeepLinking + 43;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
SharedPreferences AFKeystoreWrapper2 = AFKeystoreWrapper(context);
String AFKeystoreWrapper3 = AFKeystoreWrapper("preInstallName");
if (AFKeystoreWrapper3 != null) {
return AFKeystoreWrapper3;
}
if (!AFKeystoreWrapper2.contains("preInstallName")) {
if (afRDLog(context)) {
int i13 = onDeepLinking + 7;
onAppOpenAttribution = i13 % 128;
if (i13 % 2 != 0) {
level = getLevel(context);
int i14 = 71 / 0;
} else {
level = getLevel(context);
}
}
if (!(AFKeystoreWrapper3 == null)) {
int i15 = onDeepLinking + 47;
onAppOpenAttribution = i15 % 128;
int i16 = i15 % 2;
values(context).valueOf("preInstallName", AFKeystoreWrapper3);
}
} else {
AFKeystoreWrapper3 = AFKeystoreWrapper2.getString("preInstallName", null);
}
if (!(AFKeystoreWrapper3 == null)) {
AFInAppEventParameterName("preInstallName", AFKeystoreWrapper3);
}
int i17 = onAppOpenAttribution + 55;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
return AFKeystoreWrapper3;
}
private String getLevel(Context context) {
File AFLogger2;
int i11 = onDeepLinking + 93;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
AFLogger2 = AFLogger(AFInAppEventParameterName("ro.appsflyer.preinstall.path"));
int i12 = 93 / 0;
} else {
AFLogger2 = AFLogger(AFInAppEventParameterName("ro.appsflyer.preinstall.path"));
}
if (!(AFInAppEventType(AFLogger2) ? false : true)) {
int i13 = onAppOpenAttribution + 85;
onDeepLinking = i13 % 128;
if (i13 % 2 != 0) {
AFLogger2 = AFLogger("/data/local/tmp/pre_install.appsflyer");
} else {
AFLogger("/data/local/tmp/pre_install.appsflyer");
throw null;
}
}
if (AFInAppEventType(AFLogger2)) {
int i14 = onAppOpenAttribution + 51;
onDeepLinking = i14 % 128;
if ((i14 % 2 == 0 ? '.' : '!') == '.') {
AFLogger("/etc/pre_install.appsflyer");
throw null;
}
AFLogger2 = AFLogger("/etc/pre_install.appsflyer");
}
if ((AFInAppEventType(AFLogger2) ? 'W' : '5') != '5') {
int i15 = onDeepLinking + 111;
onAppOpenAttribution = i15 % 128;
if (i15 % 2 == 0) {
return null;
}
throw null;
}
String valueOf2 = valueOf(AFLogger2, context.getPackageName());
int i16 = onAppOpenAttribution + 105;
onDeepLinking = i16 % 128;
if (i16 % 2 != 0) {
return valueOf2;
}
throw null;
}
public void AFInAppEventType(AFf1nSDK aFf1nSDK) {
boolean z11;
SharedPreferences AFKeystoreWrapper2 = AFKeystoreWrapper(this.AppsFlyer2dXConversionCallback);
int AFInAppEventType2 = AFKeystoreWrapper().values().values.AFInAppEventType("appsFlyerCount", 0);
boolean z12 = AFKeystoreWrapper2.getBoolean(AppsFlyerProperties.NEW_REFERRER_SENT, false);
if (aFf1nSDK.AFInAppEventType == AFf1pSDK.AFa1wSDK.NOT_STARTED) {
int i11 = onDeepLinking + 87;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 == 0) {
z11 = true;
if ((AFInAppEventType2 != 1 ? 'P' : '!') == '!') {
int i12 = onDeepLinking + 101;
onAppOpenAttribution = i12 % 128;
if (i12 % 2 != 0) {
int i13 = 81 / 0;
}
values(new AFe1hSDK());
return;
}
return;
}
}
z11 = false;
if ((AFInAppEventType2 != 1 ? 'P' : '!') == '!') {
}
}
public final void AFInAppEventParameterName(Context context, Intent intent) {
int i11 = onDeepLinking + 35;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
if (intent.getStringExtra("appsflyer_preinstall") != null) {
valueOf(intent.getStringExtra("appsflyer_preinstall"));
}
AFLogger.afInfoLog("****** onReceive called *******");
AppsFlyerProperties.getInstance();
String stringExtra = intent.getStringExtra(TapjoyConstants.TJC_REFERRER);
AFLogger.afInfoLog("Play store referrer: ".concat(String.valueOf(stringExtra)));
if ((stringExtra != null ? (char) 7 : (char) 27) != 27) {
int i13 = onDeepLinking + 63;
onAppOpenAttribution = i13 % 128;
if (i13 % 2 == 0) {
values(context).valueOf(TapjoyConstants.TJC_REFERRER, stringExtra);
AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
appsFlyerProperties.set("AF_REFERRER", stringExtra);
appsFlyerProperties.AFKeystoreWrapper = stringExtra;
if (AppsFlyerProperties.getInstance().values()) {
AFLogger.afInfoLog("onReceive: isLaunchCalled");
AFInAppEventType(context, AFe1fSDK.onReceive);
valueOf(context, stringExtra);
return;
}
return;
}
values(context).valueOf(TapjoyConstants.TJC_REFERRER, stringExtra);
AppsFlyerProperties appsFlyerProperties2 = AppsFlyerProperties.getInstance();
appsFlyerProperties2.set("AF_REFERRER", stringExtra);
appsFlyerProperties2.AFKeystoreWrapper = stringExtra;
AppsFlyerProperties.getInstance().values();
throw null;
}
}
@NonNull
private AFf1pSDK[] AFLogger$LogLevel() {
int i11 = onAppOpenAttribution + 41;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
AFf1pSDK[] AFKeystoreWrapper2 = AFKeystoreWrapper().AFVersionDeclaration().AFKeystoreWrapper();
int i13 = onDeepLinking + 13;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
return AFKeystoreWrapper2;
}
public final void AFKeystoreWrapper(Context context, Map<String, ? super String> map) {
boolean AFInAppEventType2;
AFa1gSDK.AFa1xSDK AFInAppEventParameterName2;
int i11 = onDeepLinking + 125;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
AFInAppEventType2 = AFInAppEventType(AppsFlyerProperties.DISABLE_NETWORK_DATA, false);
AFInAppEventParameterName2 = AFKeystoreWrapper().onResponseNative().AFInAppEventParameterName(context);
map.put("network", AFInAppEventParameterName2.valueOf);
} else {
AFInAppEventType2 = AFInAppEventType(AppsFlyerProperties.DISABLE_NETWORK_DATA, false);
AFInAppEventParameterName2 = AFKeystoreWrapper().onResponseNative().AFInAppEventParameterName(context);
map.put("network", AFInAppEventParameterName2.valueOf);
}
if (!AFInAppEventType2) {
String str = AFInAppEventParameterName2.AFInAppEventParameterName;
if (str != null) {
map.put("carrier", str);
}
}
int i12 = onAppOpenAttribution + 7;
onDeepLinking = i12 % 128;
if (!(i12 % 2 != 0)) {
int i13 = 70 / 0;
}
}
public final void values(Context context, String str) {
JSONArray jSONArray;
JSONArray jSONArray2;
JSONObject jSONObject;
AFLogger.afDebugLog("received a new (extra) referrer: ".concat(String.valueOf(str)));
try {
try {
long currentTimeMillis = System.currentTimeMillis();
String string = AFKeystoreWrapper(context).getString("extraReferrers", null);
if (string == null) {
jSONObject = new JSONObject();
jSONArray2 = new JSONArray();
} else {
JSONObject jSONObject2 = new JSONObject(string);
if (jSONObject2.has(str)) {
jSONArray = new JSONArray((String) jSONObject2.get(str));
} else {
jSONArray = new JSONArray();
int i11 = onDeepLinking + 95;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
}
jSONArray2 = jSONArray;
jSONObject = jSONObject2;
}
if ((((long) jSONArray2.length()) < 5 ? '#' : ']') == '#') {
int i13 = onDeepLinking + 1;
onAppOpenAttribution = i13 % 128;
if ((i13 % 2 != 0 ? 'Y' : 'B') == 'B') {
jSONArray2.put(currentTimeMillis);
} else {
jSONArray2.put(currentTimeMillis);
throw null;
}
}
if (jSONObject.length() >= 4) {
int i14 = onAppOpenAttribution + 47;
onDeepLinking = i14 % 128;
int i15 = i14 % 2;
AFInAppEventParameterName(jSONObject);
int i16 = onAppOpenAttribution + 39;
onDeepLinking = i16 % 128;
int i17 = i16 % 2;
}
jSONObject.put(str, jSONArray2.toString());
values(context).valueOf("extraReferrers", jSONObject.toString());
} catch (JSONException e11) {
AFLogger.afErrorLogForExcManagerOnly("error at addReferrer", e11);
}
} catch (Throwable th2) {
StringBuilder sb2 = new StringBuilder("Couldn't save referrer - ");
sb2.append(str);
sb2.append(": ");
AFLogger.afErrorLog(sb2.toString(), th2);
}
}
private static void afInfoLog(Context context) {
int i11;
if (AFa1fSDK.AFInAppEventType()) {
AFLogger.afRDLog("OPPO device found");
i11 = 23;
} else {
i11 = 18;
}
int i12 = Build.VERSION.SDK_INT;
if (i12 >= i11 && !AFInAppEventType(AppsFlyerProperties.DISABLE_KEYSTORE, true)) {
StringBuilder sb2 = new StringBuilder("OS SDK is=");
sb2.append(i12);
sb2.append("; use KeyStore");
AFLogger.afRDLog(sb2.toString());
AFKeystoreWrapper aFKeystoreWrapper = new AFKeystoreWrapper(context);
if (!aFKeystoreWrapper.valueOf()) {
aFKeystoreWrapper.valueOf = AFb1xSDK.values(new WeakReference(context));
aFKeystoreWrapper.AFKeystoreWrapper = 0;
aFKeystoreWrapper.AFInAppEventParameterName(aFKeystoreWrapper.AFInAppEventParameterName());
} else {
String AFInAppEventParameterName2 = aFKeystoreWrapper.AFInAppEventParameterName();
synchronized (aFKeystoreWrapper.AFInAppEventParameterName) {
aFKeystoreWrapper.AFKeystoreWrapper++;
AFLogger.afInfoLog("Deleting key with alias: ".concat(String.valueOf(AFInAppEventParameterName2)));
try {
synchronized (aFKeystoreWrapper.AFInAppEventParameterName) {
aFKeystoreWrapper.AFInAppEventType.deleteEntry(AFInAppEventParameterName2);
}
} catch (KeyStoreException e11) {
StringBuilder sb3 = new StringBuilder("Exception ");
sb3.append(e11.getMessage());
sb3.append(" occurred");
AFLogger.afErrorLog(sb3.toString(), e11);
}
}
aFKeystoreWrapper.AFInAppEventParameterName(aFKeystoreWrapper.AFInAppEventParameterName());
}
AFInAppEventParameterName("KSAppsFlyerId", aFKeystoreWrapper.AFInAppEventType());
AFInAppEventParameterName("KSAppsFlyerRICounter", String.valueOf(aFKeystoreWrapper.AFKeystoreWrapper()));
return;
}
StringBuilder sb4 = new StringBuilder("OS SDK is=");
sb4.append(i12);
sb4.append("; no KeyStore usage");
AFLogger.afRDLog(sb4.toString());
}
private void AFInAppEventType(Context context) {
this.onAttributionFailureNative = new HashMap();
final long currentTimeMillis = System.currentTimeMillis();
final AFa1uSDK.AFa1wSDK aFa1wSDK = new AFa1uSDK.AFa1wSDK() {
@Override
public final void AFInAppEventParameterName(String str, String str2, String str3) {
if (str != null) {
AFLogger.afInfoLog("Facebook Deferred AppLink data received: ".concat(str));
AFa1dSDK.valueOf(AFa1dSDK.this).put("link", str);
if (str2 != null) {
AFa1dSDK.valueOf(AFa1dSDK.this).put("target_url", str2);
}
if (str3 != null) {
HashMap hashMap = new HashMap();
HashMap hashMap2 = new HashMap();
hashMap2.put("promo_code", str3);
hashMap.put("deeplink_context", hashMap2);
AFa1dSDK.valueOf(AFa1dSDK.this).put("extras", hashMap);
}
} else {
AFa1dSDK.valueOf(AFa1dSDK.this).put("link", "");
}
AFa1dSDK.valueOf(AFa1dSDK.this).put("ttr", String.valueOf(System.currentTimeMillis() - currentTimeMillis));
}
@Override
public final void AFInAppEventType(String str) {
AFa1dSDK.valueOf(AFa1dSDK.this).put("error", str);
}
};
try {
Class.forName("com.facebook.FacebookSdk").getMethod("sdkInitialize", Context.class).invoke(null, context);
final Class<?> cls = Class.forName("com.facebook.applinks.AppLinkData");
Class<?> cls2 = Class.forName("com.facebook.applinks.AppLinkData$CompletionHandler");
Method method = cls.getMethod("fetchDeferredAppLinkData", Context.class, String.class, cls2);
Object newProxyInstance = Proxy.newProxyInstance(cls2.getClassLoader(), new Class[]{cls2}, new InvocationHandler() {
@Override
public final Object invoke(Object obj, Method method2, Object[] objArr) throws Throwable {
String str;
String str2;
String str3;
Bundle bundle;
if (method2.getName().equals("onDeferredAppLinkDataFetched")) {
Object obj2 = objArr[0];
if (obj2 != null) {
Bundle bundle2 = (Bundle) Bundle.class.cast(cls.getMethod("getArgumentBundle", new Class[0]).invoke(cls.cast(obj2), new Object[0]));
if (bundle2 != null) {
str2 = bundle2.getString("com.facebook.platform.APPLINK_NATIVE_URL");
str3 = bundle2.getString("target_url");
Bundle bundle3 = bundle2.getBundle("extras");
if (bundle3 != null && (bundle = bundle3.getBundle("deeplink_context")) != null) {
str = bundle.getString("promo_code");
} else {
str = null;
}
} else {
str = null;
str2 = null;
str3 = null;
}
AFa1wSDK aFa1wSDK2 = aFa1wSDK;
if (aFa1wSDK2 != null) {
aFa1wSDK2.AFInAppEventParameterName(str2, str3, str);
}
} else {
AFa1wSDK aFa1wSDK3 = aFa1wSDK;
if (aFa1wSDK3 != null) {
aFa1wSDK3.AFInAppEventParameterName(null, null, null);
}
}
return null;
}
AFa1wSDK aFa1wSDK4 = aFa1wSDK;
if (aFa1wSDK4 != null) {
aFa1wSDK4.AFInAppEventType("onDeferredAppLinkDataFetched invocation failed");
}
return null;
}
});
String string = context.getString(context.getResources().getIdentifier("facebook_app_id", TypedValues.Custom.S_STRING, context.getPackageName()));
if (TextUtils.isEmpty(string)) {
int i11 = onAppOpenAttribution + 33;
onDeepLinking = i11 % 128;
if (i11 % 2 != 0) {
aFa1wSDK.AFInAppEventType("Facebook app id not defined in resources");
return;
} else {
aFa1wSDK.AFInAppEventType("Facebook app id not defined in resources");
throw null;
}
}
method.invoke(null, context, string, newProxyInstance);
} catch (ClassNotFoundException e11) {
AFLogger.afErrorLogForExcManagerOnly("FB class missing error", e11);
aFa1wSDK.AFInAppEventType(e11.toString());
} catch (IllegalAccessException e12) {
AFLogger.afErrorLogForExcManagerOnly("FB illegal access", e12);
aFa1wSDK.AFInAppEventType(e12.toString());
} catch (NoSuchMethodException e13) {
AFLogger.afErrorLogForExcManagerOnly("FB method missing error", e13);
aFa1wSDK.AFInAppEventType(e13.toString());
} catch (InvocationTargetException e14) {
AFLogger.afErrorLogForExcManagerOnly("FB invocation error", e14);
aFa1wSDK.AFInAppEventType(e14.toString());
}
}
private void valueOf(Context context, String str) {
byte b11 = 0;
AFa1sSDK values2 = new AFe1eSDK().values(AFKeystoreWrapper().values().values.AFInAppEventType("appsFlyerCount", 0));
values2.afDebugLog = str;
if (str != null) {
int i11 = onDeepLinking + 39;
onAppOpenAttribution = i11 % 128;
char c11 = i11 % 2 != 0 ? '\n' : '\f';
int length = str.length();
if (c11 != '\n') {
if (!(length > 5)) {
return;
}
} else if (length <= 3) {
return;
}
int i12 = onAppOpenAttribution + 19;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
if (valueOf(values2, AFKeystoreWrapper(context))) {
AFKeystoreWrapper(AFKeystoreWrapper().AFKeystoreWrapper(), new AFa1wSDK(this, values2, b11), 5L, TimeUnit.MILLISECONDS);
}
}
}
private static boolean AFLogger(Context context) {
boolean z11;
int i11 = onDeepLinking + 13;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 == 0) {
}
return ((!z11 ? '\n' : '@') == '\n' && valueOf(context)) ? false : true;
}
private void afErrorLogForExcManagerOnly() {
int i11 = onDeepLinking + 107;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
if (AFd1nSDK.afInfoLog()) {
return;
}
AFb1bSDK AFKeystoreWrapper2 = AFKeystoreWrapper();
AFd1wSDK afWarnLog = AFKeystoreWrapper2.afWarnLog();
afWarnLog.valueOf.execute(new AFd1wSDK.AnonymousClass3(new AFd1nSDK(AFKeystoreWrapper2)));
int i13 = onDeepLinking + 95;
onAppOpenAttribution = i13 % 128;
if ((i13 % 2 != 0 ? (char) 0 : '>') != '>') {
throw null;
}
}
private String AFKeystoreWrapper(SimpleDateFormat simpleDateFormat, Context context) {
String str;
int i11 = onAppOpenAttribution + 115;
onDeepLinking = i11 % 128;
if (i11 % 2 != 0) {
String string = AFKeystoreWrapper(context).getString("appsFlyerFirstInstall", null);
if (string == null) {
if (afRDLog(context)) {
AFLogger.afDebugLog("AppsFlyer: first launch detected");
str = simpleDateFormat.format(new Date());
int i12 = onAppOpenAttribution + 109;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
} else {
int i14 = onDeepLinking + 47;
onAppOpenAttribution = i14 % 128;
int i15 = i14 % 2;
str = "";
}
string = str;
values(context).valueOf("appsFlyerFirstInstall", string);
}
AFLogger.afInfoLog("AppsFlyer: first launch date: ".concat(String.valueOf(string)));
return string;
}
AFKeystoreWrapper(context).getString("appsFlyerFirstInstall", null);
throw null;
}
private static File AFLogger(String str) {
int i11 = onAppOpenAttribution + 81;
int i12 = i11 % 128;
onDeepLinking = i12;
try {
} catch (Throwable th2) {
AFLogger.afErrorLog(th2.getMessage(), th2);
}
if (!(i11 % 2 == 0)) {
if ((str != null ? (char) 27 : (char) 30) != 30) {
int i13 = i12 + 1;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
if (str.trim().length() > 0) {
return new File(str.trim());
}
}
int i15 = onAppOpenAttribution + 105;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
return null;
}
throw null;
}
private static void AFInAppEventParameterName(JSONObject jSONObject) {
String str;
ArrayList arrayList = new ArrayList();
Iterator<String> keys = jSONObject.keys();
int i11 = onDeepLinking + 101;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
while (true) {
if (!keys.hasNext()) {
break;
}
try {
JSONArray jSONArray = new JSONArray((String) jSONObject.get(keys.next()));
for (int i13 = 0; i13 < jSONArray.length(); i13++) {
arrayList.add(Long.valueOf(jSONArray.getLong(i13)));
}
} catch (JSONException e11) {
AFLogger.afErrorLogForExcManagerOnly("error at timeStampArr", e11);
}
}
Collections.sort(arrayList);
Iterator<String> keys2 = jSONObject.keys();
loop2: while (true) {
str = null;
while (keys2.hasNext()) {
int i14 = onDeepLinking + 11;
onAppOpenAttribution = i14 % 128;
if ((i14 % 2 != 0 ? 'Z' : (char) 2) == 'Z') {
throw null;
}
if (str != null) {
break loop2;
}
String next = keys2.next();
try {
JSONArray jSONArray2 = new JSONArray((String) jSONObject.get(next));
int i15 = 0;
while (true) {
if (i15 < jSONArray2.length()) {
if (jSONArray2.getLong(i15) != ((Long) arrayList.get(0)).longValue()) {
int i16 = onDeepLinking + 35;
onAppOpenAttribution = i16 % 128;
int i17 = i16 % 2;
if (jSONArray2.getLong(i15) != ((Long) arrayList.get(1)).longValue()) {
int i18 = onAppOpenAttribution + 69;
onDeepLinking = i18 % 128;
int i19 = i18 % 2;
if (jSONArray2.getLong(i15) == ((Long) arrayList.get(arrayList.size() - 1)).longValue()) {
break;
}
i15++;
str = next;
}
}
}
}
} catch (JSONException e12) {
AFLogger.afErrorLogForExcManagerOnly("error at manageExtraReferrers", e12);
}
}
break loop2;
}
if (str != null) {
int i21 = onAppOpenAttribution + 53;
onDeepLinking = i21 % 128;
char c11 = i21 % 2 == 0 ? (char) 22 : 'X';
jSONObject.remove(str);
if (c11 == 22) {
throw null;
}
}
}
private boolean valueOf(AFa1sSDK aFa1sSDK, SharedPreferences sharedPreferences) {
boolean z11;
boolean z12;
int values2 = values(sharedPreferences, false);
if ((values2 != 1) || (aFa1sSDK instanceof AFe1hSDK)) {
int i11 = onAppOpenAttribution + 21;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
z11 = false;
} else {
z11 = true;
}
if (!(sharedPreferences.getBoolean(AppsFlyerProperties.NEW_REFERRER_SENT, false))) {
int i13 = onAppOpenAttribution + 77;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
if (values2 == 1) {
z12 = true;
if (!z12) {
if (!(z11)) {
return false;
}
}
return true;
}
}
int i15 = onAppOpenAttribution + 101;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
z12 = false;
if (!z12) {
}
return true;
}
private void valueOf(Map<String, Object> map, boolean z11) {
int i11 = onAppOpenAttribution + 65;
onDeepLinking = i11 % 128;
if (i11 % 2 != 0) {
map.put("platformextension", this.init.valueOf());
if ((z11 ? (char) 24 : '=') != 24) {
return;
}
map.put("platform_extension_v2", AFKeystoreWrapper().init().valueOf());
int i12 = onDeepLinking + 61;
onAppOpenAttribution = i12 % 128;
int i13 = i12 % 2;
return;
}
map.put("platformextension", this.init.valueOf());
throw null;
}
public static String values() {
String AFKeystoreWrapper2;
int i11 = onDeepLinking + 83;
onAppOpenAttribution = i11 % 128;
if ((i11 % 2 != 0 ? 'Y' : '\r') != 'Y') {
AFKeystoreWrapper2 = AFKeystoreWrapper(AppsFlyerProperties.APP_USER_ID);
} else {
AFKeystoreWrapper2 = AFKeystoreWrapper(AppsFlyerProperties.APP_USER_ID);
int i12 = 96 / 0;
}
int i13 = onAppOpenAttribution + 119;
onDeepLinking = i13 % 128;
if (i13 % 2 == 0) {
throw null;
}
return AFKeystoreWrapper2;
}
private static void values(AppsFlyerConversionListener appsFlyerConversionListener) {
int i11 = onDeepLinking + 67;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
if (appsFlyerConversionListener == null) {
return;
}
AFInAppEventParameterName = appsFlyerConversionListener;
int i13 = onDeepLinking + 47;
onAppOpenAttribution = i13 % 128;
if (i13 % 2 != 0) {
throw null;
}
}
public static synchronized SharedPreferences AFKeystoreWrapper(Context context) {
SharedPreferences sharedPreferences;
synchronized (AFa1dSDK.class) {
int i11 = onDeepLinking + 81;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
if (valueOf().onResponseErrorNative == null) {
int i13 = onDeepLinking + 47;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
valueOf().onResponseErrorNative = context.getApplicationContext().getSharedPreferences("appsflyer-data", 0);
}
sharedPreferences = valueOf().onResponseErrorNative;
}
return sharedPreferences;
}
private void values(AFa1sSDK aFa1sSDK) {
String str;
String concat;
Context context = AFKeystoreWrapper().onInstallConversionDataLoadedNative().AFKeystoreWrapper;
if (!(context == null)) {
SharedPreferences AFKeystoreWrapper2 = AFKeystoreWrapper(context);
AppsFlyerProperties.getInstance().saveProperties(AFKeystoreWrapper2);
if (!AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFInAppEventType()) {
StringBuilder sb2 = new StringBuilder("sendWithEvent from activity: ");
sb2.append(context.getClass().getName());
AFLogger.afInfoLog(sb2.toString());
}
boolean AFKeystoreWrapper3 = aFa1sSDK.AFKeystoreWrapper();
Map<String, ?> AFInAppEventType2 = AFInAppEventType(aFa1sSDK);
String str2 = (String) AFInAppEventType2.get("appsflyerKey");
if (!(str2 == null) && str2.length() != 0) {
if (!isStopped()) {
AFLogger.afInfoLog("AppsFlyerLib.sendWithEvent");
}
int values2 = values(AFKeystoreWrapper2, false);
AFf1bSDK aFf1bSDK = new AFf1bSDK(this.onResponse);
String str3 = "";
kotlin.jvm.internal.s.j(aFa1sSDK, "");
boolean AFKeystoreWrapper4 = aFa1sSDK.AFKeystoreWrapper();
boolean z11 = aFa1sSDK instanceof AFe1iSDK;
boolean z12 = aFa1sSDK instanceof AFe1eSDK;
if (!(aFa1sSDK instanceof AFe1hSDK)) {
if ((z12 ? '&' : 'a') == 'a') {
if (z11) {
str = AFf1bSDK.AFLogger;
if (str == null) {
str = aFf1bSDK.AFInAppEventParameterName.AFInAppEventType(AFf1bSDK.AFInAppEventType);
}
} else if (AFKeystoreWrapper4) {
int i11 = onDeepLinking;
int i12 = i11 + 9;
onAppOpenAttribution = i12 % 128;
int i13 = i12 % 2;
if (values2 < 2) {
int i14 = i11 + 61;
onAppOpenAttribution = i14 % 128;
if (i14 % 2 != 0) {
AFf1bSDK.Companion companion = AFf1bSDK.INSTANCE;
throw null;
}
str = AFf1bSDK.afInfoLog;
if (str == null) {
str = aFf1bSDK.AFInAppEventParameterName.AFInAppEventType(AFf1bSDK.AFKeystoreWrapper);
}
} else {
str = AFf1bSDK.AFVersionDeclaration;
if ((str == null ? 'T' : 'b') == 'T') {
str = aFf1bSDK.AFInAppEventParameterName.AFInAppEventType(AFf1bSDK.afErrorLog);
}
}
} else {
str = AFf1bSDK.getLevel;
if (str == null) {
str = aFf1bSDK.AFInAppEventParameterName.AFInAppEventType(AFf1bSDK.afDebugLog);
}
}
StringBuilder sb3 = new StringBuilder();
sb3.append(str);
sb3.append(aFf1bSDK.AFInAppEventType.values().AFInAppEventType.AFKeystoreWrapper.getPackageName());
String AFInAppEventType3 = AFf1bSDK.AFInAppEventType(sb3.toString(), z11);
StringBuilder sb4 = new StringBuilder();
sb4.append(AFInAppEventType3);
String AFKeystoreWrapper5 = aFf1bSDK.AFInAppEventType.values().AFKeystoreWrapper();
concat = !(AFKeystoreWrapper5 != null) ? "&channel=".concat(String.valueOf(AFKeystoreWrapper5)) : null;
if (concat != null) {
int i15 = onDeepLinking + 115;
onAppOpenAttribution = i15 % 128;
int i16 = i15 % 2;
} else {
str3 = concat;
}
sb4.append(str3);
String obj = sb4.toString();
AFInAppEventType(AFInAppEventType2);
AFa1ySDK aFa1ySDK = new AFa1ySDK(this, aFa1sSDK.AFKeystoreWrapper(obj).valueOf(AFInAppEventType2).values(values2), r1);
if (AFKeystoreWrapper3) {
byte b11 = 0;
for (AFf1pSDK aFf1pSDK : AFLogger$LogLevel()) {
if (aFf1pSDK.AFInAppEventType == AFf1pSDK.AFa1wSDK.STARTED) {
StringBuilder sb5 = new StringBuilder("Failed to get ");
sb5.append(aFf1pSDK.AFInAppEventParameterName);
sb5.append(" referrer, wait ...");
AFLogger.afDebugLog(sb5.toString());
b11 = 1;
}
}
if ((this.onDeepLinkingNative ? '/' : (char) 18) != 18) {
if ((afWarnLog() ? (byte) 0 : (byte) 91) != 0) {
AFLogger.afDebugLog("fetching Facebook deferred AppLink data, wait ...");
r1 = 1;
if (AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFKeystoreWrapper()) {
r1 = 1;
}
}
}
r1 = b11;
if (AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFKeystoreWrapper()) {
}
}
AFKeystoreWrapper(AFKeystoreWrapper().AFKeystoreWrapper(), aFa1ySDK, r1 == 0 ? 500L : 0L, TimeUnit.MILLISECONDS);
return;
}
}
str = AFf1bSDK.afRDLog;
if (str == null) {
str = aFf1bSDK.AFInAppEventParameterName.AFInAppEventType(AFf1bSDK.valueOf);
}
StringBuilder sb32 = new StringBuilder();
sb32.append(str);
sb32.append(aFf1bSDK.AFInAppEventType.values().AFInAppEventType.AFKeystoreWrapper.getPackageName());
String AFInAppEventType32 = AFf1bSDK.AFInAppEventType(sb32.toString(), z11);
StringBuilder sb42 = new StringBuilder();
sb42.append(AFInAppEventType32);
String AFKeystoreWrapper52 = aFf1bSDK.AFInAppEventType.values().AFKeystoreWrapper();
if (!(AFKeystoreWrapper52 != null)) {
}
if (concat != null) {
}
sb42.append(str3);
String obj2 = sb42.toString();
AFInAppEventType(AFInAppEventType2);
AFa1ySDK aFa1ySDK2 = new AFa1ySDK(this, aFa1sSDK.AFKeystoreWrapper(obj2).valueOf(AFInAppEventType2).values(values2), r1);
if (AFKeystoreWrapper3) {
}
AFKeystoreWrapper(AFKeystoreWrapper().AFKeystoreWrapper(), aFa1ySDK2, r1 == 0 ? 500L : 0L, TimeUnit.MILLISECONDS);
return;
}
AFLogger.afDebugLog("Not sending data yet, waiting for dev key");
AppsFlyerRequestListener appsFlyerRequestListener = aFa1sSDK.AFInAppEventParameterName;
if (appsFlyerRequestListener != null) {
int i17 = onAppOpenAttribution + 39;
onDeepLinking = i17 % 128;
if (i17 % 2 != 0) {
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1fSDK.AFInAppEventType);
return;
} else {
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1fSDK.AFInAppEventType);
throw null;
}
}
return;
}
AFLogger.afDebugLog("sendWithEvent - got null context. skipping event/launch.");
}
private static void valueOf(Map<String, Object> map) {
int i11 = onDeepLinking + 15;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
String string = AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.ONELINK_ID);
String string2 = AppsFlyerProperties.getInstance().getString("onelinkVersion");
if (!(string == null)) {
map.put("onelink_id", string);
}
if (string2 == null) {
return;
}
int i13 = onAppOpenAttribution + 49;
onDeepLinking = i13 % 128;
char c11 = i13 % 2 == 0 ? 'a' : 'H';
map.put("onelink_ver", string2);
if (c11 != 'H') {
throw null;
}
}
public final void AFInAppEventType(WeakReference<Context> weakReference) {
if (weakReference.get() == null) {
return;
}
AFLogger.afInfoLog("app went to background");
SharedPreferences AFKeystoreWrapper2 = AFKeystoreWrapper(weakReference.get());
AppsFlyerProperties.getInstance().saveProperties(AFKeystoreWrapper2);
long j11 = AFKeystoreWrapper().afDebugLog().AFVersionDeclaration;
HashMap hashMap = new HashMap();
String str = AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFKeystoreWrapper;
if (str != null) {
String AFKeystoreWrapper3 = AFKeystoreWrapper("KSAppsFlyerId");
if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, false)) {
int i11 = onAppOpenAttribution + 49;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
hashMap.put(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, "true");
}
AFc1wSDK.AFa1ySDK AFInAppEventParameterName2 = AFa1eSDK.AFInAppEventParameterName(weakReference.get().getContentResolver());
if ((AFInAppEventParameterName2 != null ? '\f' : '*') == '\f') {
hashMap.put("amazon_aid", AFInAppEventParameterName2.AFInAppEventType);
hashMap.put("amazon_aid_limit", String.valueOf(AFInAppEventParameterName2.AFKeystoreWrapper));
int i13 = onDeepLinking + 33;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
}
String string = AppsFlyerProperties.getInstance().getString("advertiserId");
if (string != null) {
hashMap.put("advertiserId", string);
}
hashMap.put("app_id", weakReference.get().getPackageName());
hashMap.put("devkey", str);
hashMap.put("uid", AFb1xSDK.values(weakReference));
hashMap.put("time_in_app", String.valueOf(j11));
hashMap.put("statType", "user_closed_app");
hashMap.put(TapjoyConstants.TJC_PLATFORM, "Android");
hashMap.put("launch_counter", Integer.toString(values(AFKeystoreWrapper2, false)));
hashMap.put(AppsFlyerProperties.CHANNEL, AFKeystoreWrapper().values().AFKeystoreWrapper());
if (AFKeystoreWrapper3 != null) {
int i15 = onDeepLinking + 89;
onAppOpenAttribution = i15 % 128;
int i16 = i15 % 2;
} else {
AFKeystoreWrapper3 = "";
}
hashMap.put("originalAppsflyerId", AFKeystoreWrapper3);
if (this.onInstallConversionFailureNative) {
AFf1xSDK aFf1xSDK = new AFf1xSDK();
aFf1xSDK.afWarnLog = isStopped();
AFd1gSDK aFd1gSDK = new AFd1gSDK((AFf1xSDK) aFf1xSDK.values(AFKeystoreWrapper().values().values.AFInAppEventType("appsFlyerCount", 0)).valueOf(hashMap).AFKeystoreWrapper(String.format(afInfoLog, AppsFlyerLib.getInstance().getHostPrefix(), valueOf().getHostName())), AFKeystoreWrapper());
AFd1wSDK afWarnLog = AFKeystoreWrapper().afWarnLog();
afWarnLog.valueOf.execute(new AFd1wSDK.AnonymousClass3(aFd1gSDK));
return;
}
AFLogger.afDebugLog("Stats call is disabled, ignore ...");
return;
}
AFLogger.afWarnLog("[callStats] AppsFlyer's SDK cannot send any event without providing DevKey.");
}
private int AFKeystoreWrapper(SharedPreferences sharedPreferences, String str, boolean z11) {
int i11 = onAppOpenAttribution + 43;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
int i13 = sharedPreferences.getInt(str, 0);
if (!(z11 ? false : true)) {
int i14 = onDeepLinking + 61;
onAppOpenAttribution = i14 % 128;
int i15 = i14 % 2;
i13++;
sharedPreferences.edit().putInt(str, i13).apply();
int i16 = onDeepLinking + 51;
onAppOpenAttribution = i16 % 128;
int i17 = i16 % 2;
}
if ((AFKeystoreWrapper().AFLogger$LogLevel().afInfoLog() ? '\t' : (char) 24) == '\t') {
AFKeystoreWrapper().AFLogger$LogLevel().values(String.valueOf(i13));
}
return i13;
}
private int valueOf(SharedPreferences sharedPreferences) {
int i11 = onAppOpenAttribution + 77;
onDeepLinking = i11 % 128;
if (i11 % 2 == 0) {
}
return AFKeystoreWrapper(sharedPreferences, "appsFlyerAdRevenueCount", true);
}
public static boolean valueOf(Context context) {
int i11 = onDeepLinking + 99;
onAppOpenAttribution = i11 % 128;
try {
} catch (Throwable th2) {
AFLogger.afErrorLog("WARNING: Google play services is unavailable. ", th2);
}
if (!(i11 % 2 == 0)) {
int i12 = 41 / 0;
if (GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) == 0) {
}
try {
context.getPackageManager().getPackageInfo("com.google.android.gms", 0);
return true;
} catch (PackageManager.NameNotFoundException e11) {
AFLogger.afErrorLog("WARNING: Google Play Services is unavailable. ", e11);
return false;
}
}
int i13 = onDeepLinking + 47;
int i14 = i13 % 128;
onAppOpenAttribution = i14;
int i15 = i13 % 2;
int i16 = i14 + 47;
context = i16 % 128;
onDeepLinking = context;
int i17 = i16 % 2;
return true;
}
private static void valueOf(String str) {
try {
if (!(new JSONObject(str).has("pid"))) {
AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
return;
}
int i11 = onDeepLinking + 109;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
AFInAppEventParameterName("preInstallName", str);
int i13 = onAppOpenAttribution + 35;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
} catch (JSONException e11) {
AFLogger.afErrorLog("Error parsing JSON for preinstall", e11);
}
}
private static void AFInAppEventParameterName(String str, String str2) {
int i11 = onAppOpenAttribution + 7;
onDeepLinking = i11 % 128;
if ((i11 % 2 == 0 ? (char) 15 : '*') == 15) {
AppsFlyerProperties.getInstance().set(str, str2);
throw null;
}
AppsFlyerProperties.getInstance().set(str, str2);
int i12 = onAppOpenAttribution + 47;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
}
private static void AFKeystoreWrapper(@NonNull ScheduledExecutorService scheduledExecutorService, Runnable runnable, long j11, TimeUnit timeUnit) {
int i11 = onDeepLinking + 89;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
try {
scheduledExecutorService.schedule(runnable, j11, timeUnit);
int i13 = onDeepLinking + 71;
onAppOpenAttribution = i13 % 128;
if ((i13 % 2 != 0 ? 'N' : (char) 27) != 27) {
throw null;
}
} catch (RejectedExecutionException e11) {
AFLogger.afErrorLog("scheduleJob failed with RejectedExecutionException Exception", e11);
} catch (Throwable th2) {
AFLogger.afErrorLog("scheduleJob failed with Exception", th2);
}
}
private static void AFInAppEventParameterName(String str, boolean z11) {
int i11 = onDeepLinking + 105;
onAppOpenAttribution = i11 % 128;
if ((i11 % 2 != 0 ? 'S' : '`') != 'S') {
AppsFlyerProperties.getInstance().set(str, z11);
} else {
AppsFlyerProperties.getInstance().set(str, z11);
throw null;
}
}
public final boolean AFInAppEventParameterName() {
int i11 = onDeepLinking + 79;
onAppOpenAttribution = i11 % 128;
if (!(i11 % 2 != 0)) {
}
int i12 = onDeepLinking + 111;
onAppOpenAttribution = i12 % 128;
if (i12 % 2 == 0) {
return false;
}
throw null;
}
private Runnable AFInAppEventParameterName(final AFf1nSDK aFf1nSDK) {
Runnable runnable;
int i11 = onDeepLinking + 99;
onAppOpenAttribution = i11 % 128;
if ((i11 % 2 != 0 ? (char) 28 : (char) 29) != 29) {
runnable = new Runnable() {
@Override
public final void run() {
AFa1dSDK.this.AFInAppEventType(aFf1nSDK);
}
};
int i12 = 6 / 0;
} else {
runnable = new Runnable() {
@Override
public final void run() {
AFa1dSDK.this.AFInAppEventType(aFf1nSDK);
}
};
}
int i13 = onAppOpenAttribution + 45;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
return runnable;
}
public static Map<String, Object> AFInAppEventParameterName(Map<String, Object> map) {
int i11 = onDeepLinking + 99;
onAppOpenAttribution = i11 % 128;
if (i11 % 2 != 0) {
map.containsKey("meta");
throw null;
}
if ((map.containsKey("meta") ? (char) 15 : (char) 22) != 22) {
return (Map) map.get("meta");
}
HashMap hashMap = new HashMap();
map.put("meta", hashMap);
int i12 = onAppOpenAttribution + 117;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
return hashMap;
}
@NonNull
@Deprecated
public static String AFKeystoreWrapper(HttpURLConnection httpURLConnection) {
String obj;
InputStreamReader inputStreamReader;
Throwable th2;
BufferedReader bufferedReader;
StringBuilder sb2 = new StringBuilder();
char c11 = 'B';
try {
try {
InputStream errorStream = httpURLConnection.getErrorStream();
boolean z11 = false;
if (errorStream == null) {
errorStream = httpURLConnection.getInputStream();
}
inputStreamReader = new InputStreamReader(errorStream);
try {
bufferedReader = new BufferedReader(inputStreamReader);
while (true) {
try {
String readLine = bufferedReader.readLine();
if ((readLine != null ? 'B' : '\t') != 'B') {
bufferedReader.close();
inputStreamReader.close();
break;
}
int i11 = onAppOpenAttribution + 21;
onDeepLinking = i11 % 128;
if ((i11 % 2 == 0 ? (char) 3 : 'B') != 'B') {
break;
}
sb2.append(z11 ? '\n' : "");
sb2.append(readLine);
z11 = true;
} catch (Throwable th3) {
th2 = th3;
try {
StringBuilder sb3 = new StringBuilder("Could not read connection response from: ");
sb3.append(httpURLConnection.getURL().toString());
AFLogger.afErrorLog(sb3.toString(), th2);
if (bufferedReader != null) {
bufferedReader.close();
}
if (inputStreamReader == null) {
c11 = ',';
}
if (c11 != ',') {
inputStreamReader.close();
}
int i12 = onAppOpenAttribution + 71;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
obj = sb2.toString();
new JSONObject(obj);
return obj;
} catch (Throwable th4) {
if (bufferedReader != null) {
try {
bufferedReader.close();
} catch (Throwable th5) {
AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th5);
throw th4;
}
}
if (inputStreamReader != null) {
int i14 = onAppOpenAttribution + 31;
onDeepLinking = i14 % 128;
int i15 = i14 % 2;
inputStreamReader.close();
}
throw th4;
}
}
}
} catch (Throwable th6) {
bufferedReader = null;
th2 = th6;
}
} catch (Throwable th7) {
inputStreamReader = null;
th2 = th7;
bufferedReader = null;
}
} catch (Throwable th8) {
AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th8);
}
obj = sb2.toString();
try {
new JSONObject(obj);
return obj;
} catch (JSONException e11) {
AFLogger.afErrorLogForExcManagerOnly("error while parsing readServerResponse", e11);
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("string_response", obj);
return jSONObject.toString();
} catch (JSONException e12) {
AFLogger.afErrorLogForExcManagerOnly("RESPONSE_NOT_JSON error", e12);
return new JSONObject().toString();
}
}
}
private static String valueOf(File file, String str) {
FileReader fileReader;
Properties properties;
try {
try {
try {
properties = new Properties();
fileReader = new FileReader(file);
} catch (Throwable th2) {
AFLogger.afErrorLog(th2.getMessage(), th2);
return null;
}
try {
properties.load(fileReader);
AFLogger.afInfoLog("Found PreInstall property!");
String property = properties.getProperty(str);
try {
fileReader.close();
} catch (Throwable th3) {
AFLogger.afErrorLog(th3.getMessage(), th3);
}
return property;
} catch (FileNotFoundException unused) {
StringBuilder sb2 = new StringBuilder("PreInstall file wasn't found: ");
sb2.append(file.getAbsolutePath());
AFLogger.afDebugLog(sb2.toString());
if (fileReader != null) {
fileReader.close();
}
return null;
} catch (Throwable th4) {
th = th4;
AFLogger.afErrorLog(th.getMessage(), th);
if (fileReader != null) {
fileReader.close();
}
int i11 = onAppOpenAttribution + 101;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
return null;
}
} catch (FileNotFoundException unused2) {
fileReader = null;
} catch (Throwable th5) {
th = th5;
fileReader = null;
}
} catch (Throwable th6) {
if (fileReader != null) {
try {
fileReader.close();
} catch (Throwable th7) {
AFLogger.afErrorLog(th7.getMessage(), th7);
throw th6;
}
}
int i13 = onDeepLinking + 33;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
throw th6;
}
}
@SuppressLint({"HardwareIds"})
private void AFInAppEventParameterName(Context context, Map<String, Object> map) {
AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
String str = null;
if (appsFlyerProperties.getBoolean(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, false)) {
int i11 = onAppOpenAttribution + 75;
onDeepLinking = i11 % 128;
r5 = i11 % 2 != 0 ? '3' : (char) 6;
map.put(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, "true");
if (r5 != '3') {
throw null;
}
return;
}
AFb1dSDK afInfoLog2 = AFKeystoreWrapper().afInfoLog();
String values2 = AFKeystoreWrapper().AppsFlyer2dXConversionCallback().values(afInfoLog2);
if (!AFb1rSDK.AFKeystoreWrapper(values2)) {
map.put("imei", values2);
}
boolean z11 = appsFlyerProperties.getBoolean(AppsFlyerProperties.COLLECT_ANDROID_ID, false);
String AFInAppEventType2 = afInfoLog2.AFInAppEventType("androidIdCached", (String) null);
if (z11) {
int i12 = onAppOpenAttribution + 41;
onDeepLinking = i12 % 128;
if (i12 % 2 == 0) {
int i13 = 48 / 0;
}
}
String str2 = this.afErrorLog;
if (str2 != null) {
str = str2;
}
if (str != null) {
int i14 = onAppOpenAttribution + 17;
onDeepLinking = i14 % 128;
int i15 = i14 % 2;
afInfoLog2.valueOf("androidIdCached", str);
map.put("android_id", str);
} else {
AFLogger.afInfoLog("Android ID was not collected.");
}
AFc1wSDK.AFa1ySDK values3 = AFa1eSDK.values(context);
if (values3 != null) {
HashMap hashMap = new HashMap();
hashMap.put("isManual", values3.valueOf);
hashMap.put("val", values3.AFInAppEventType);
Boolean bool = values3.AFKeystoreWrapper;
if (!(bool == null)) {
hashMap.put("isLat", bool);
}
map.put("oaid", hashMap);
}
}
private static void valueOf(String str, boolean z11, int i11, int i12, int i13, Object[] objArr) {
char[] cArr;
String str2;
if (str != null) {
cArr = str.toCharArray();
}
char[] cArr2 = cArr;
synchronized (AFg1hSDK.values) {
char[] cArr3 = new char[i13];
AFg1hSDK.AFInAppEventParameterName = 0;
while (true) {
int i14 = AFg1hSDK.AFInAppEventParameterName;
if (i14 >= i13) {
break;
}
AFg1hSDK.AFKeystoreWrapper = cArr2[i14];
cArr3[AFg1hSDK.AFInAppEventParameterName] = (char) (AFg1hSDK.AFKeystoreWrapper + i12);
int i15 = AFg1hSDK.AFInAppEventParameterName;
cArr3[i15] = (char) (cArr3[i15] - onConversionDataFail);
AFg1hSDK.AFInAppEventParameterName = i15 + 1;
}
if (i11 > 0) {
AFg1hSDK.valueOf = i11;
char[] cArr4 = new char[i13];
System.arraycopy(cArr3, 0, cArr4, 0, i13);
int i16 = AFg1hSDK.valueOf;
System.arraycopy(cArr4, 0, cArr3, i13 - i16, i16);
int i17 = AFg1hSDK.valueOf;
System.arraycopy(cArr4, i17, cArr3, 0, i13 - i17);
}
if (z11) {
char[] cArr5 = new char[i13];
AFg1hSDK.AFInAppEventParameterName = 0;
while (true) {
int i18 = AFg1hSDK.AFInAppEventParameterName;
if (i18 >= i13) {
break;
}
cArr5[i18] = cArr3[(i13 - i18) - 1];
AFg1hSDK.AFInAppEventParameterName = i18 + 1;
}
cArr3 = cArr5;
}
str2 = new String(cArr3);
}
objArr[0] = str2;
}
private void AFInAppEventType(Context context, AFe1fSDK aFe1fSDK) {
int i11 = onDeepLinking + 125;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
AFInAppEventParameterName(context);
AFe1gSDK afDebugLog = AFKeystoreWrapper().afDebugLog();
AFe1mSDK AFKeystoreWrapper2 = AFa1tSDK.AFKeystoreWrapper(context);
if ((afDebugLog.AFInAppEventParameterName() ? '\'' : (char) 24) == '\'') {
int i13 = onAppOpenAttribution + 45;
onDeepLinking = i13 % 128;
if ((i13 % 2 == 0 ? (char) 11 : (char) 15) == 15) {
afDebugLog.valueOf.put("api_name", aFe1fSDK.toString());
afDebugLog.AFInAppEventParameterName(AFKeystoreWrapper2);
} else {
afDebugLog.valueOf.put("api_name", aFe1fSDK.toString());
afDebugLog.AFInAppEventParameterName(AFKeystoreWrapper2);
throw null;
}
}
afDebugLog.AFKeystoreWrapper();
}
@SuppressLint({"PrivateApi"})
private static String AFInAppEventParameterName(String str) {
int i11 = onDeepLinking + 85;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
String str2 = null;
try {
str2 = (String) Class.forName("android.os.SystemProperties").getMethod("get", String.class).invoke(null, str);
} catch (Throwable th2) {
AFLogger.afErrorLog(th2.getMessage(), th2);
}
int i13 = onAppOpenAttribution + 65;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
return str2;
}
private static boolean values(@NonNull SharedPreferences sharedPreferences) {
int i11 = onDeepLinking + 27;
onAppOpenAttribution = i11 % 128;
char c11 = i11 % 2 != 0 ? '!' : (char) 1;
boolean parseBoolean = Boolean.parseBoolean(sharedPreferences.getString("sentSuccessfully", null));
if (c11 != 1) {
int i12 = 49 / 0;
}
return parseBoolean;
}
private static void values(Context context, Map<String, Object> map) {
String str;
WindowManager windowManager = (WindowManager) context.getSystemService("window");
if (windowManager != null) {
int i11 = onDeepLinking + 7;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
int rotation = windowManager.getDefaultDisplay().getRotation();
if (rotation == 0) {
str = TtmlNode.TAG_P;
} else if (rotation == 1) {
str = "l";
} else if (rotation == 2) {
str = "pr";
} else if (rotation != 3) {
str = "";
} else {
int i13 = onAppOpenAttribution + 113;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
str = "lr";
}
map.put("sc_o", str);
int i15 = onDeepLinking + 25;
onAppOpenAttribution = i15 % 128;
int i16 = i15 % 2;
}
int i17 = onAppOpenAttribution + 113;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
}
@Nullable
@VisibleForTesting
private String AFInAppEventParameterName(Context context, String str) {
if (context != null) {
AFInAppEventParameterName(context);
return AFKeystoreWrapper().values().values(str);
}
int i11 = onDeepLinking + 89;
int i12 = i11 % 128;
onAppOpenAttribution = i12;
if ((i11 % 2 != 0 ? 'K' : '-') == 'K') {
throw null;
}
int i13 = i12 + 45;
onDeepLinking = i13 % 128;
if (i13 % 2 != 0) {
return null;
}
throw null;
}
@VisibleForTesting
public final void AFInAppEventType(@NonNull AFa1sSDK aFa1sSDK, @Nullable Activity activity) {
Context context;
String obj;
int i11 = onAppOpenAttribution + 9;
onDeepLinking = i11 % 128;
if ((i11 % 2 == 0 ? 'E' : ']') != 'E') {
context = AFKeystoreWrapper().onInstallConversionDataLoadedNative().AFKeystoreWrapper;
} else {
context = AFKeystoreWrapper().onInstallConversionDataLoadedNative().AFKeystoreWrapper;
int i12 = 63 / 0;
}
if (AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFKeystoreWrapper == null) {
AFLogger.afWarnLog("[LogEvent/Launch] AppsFlyer's SDK cannot send any event without providing DevKey.");
AppsFlyerRequestListener appsFlyerRequestListener = aFa1sSDK.AFInAppEventParameterName;
if (!(appsFlyerRequestListener != null)) {
return;
}
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1fSDK.AFInAppEventType);
int i13 = onAppOpenAttribution + 125;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
return;
}
String referrer = AppsFlyerProperties.getInstance().getReferrer(context);
aFa1sSDK.afDebugLog = (referrer == null ? '6' : (char) 7) != '6' ? referrer : "";
aFa1sSDK.AFKeystoreWrapper = obj;
AFInAppEventParameterName(aFa1sSDK);
}
private void values(Context context, boolean z11, Map<String, Object> map, int i11) {
HashMap hashMap = new HashMap();
hashMap.put("cpu_abi", AFInAppEventParameterName("ro.product.cpu.abi"));
hashMap.put("cpu_abi2", AFInAppEventParameterName("ro.product.cpu.abi2"));
hashMap.put("arch", AFInAppEventParameterName("os.arch"));
hashMap.put("build_display_id", AFInAppEventParameterName("ro.build.display.id"));
if (z11) {
int i12 = onDeepLinking + 49;
onAppOpenAttribution = i12 % 128;
if (i12 % 2 != 0) {
AFInAppEventType(context, hashMap);
} else {
AFInAppEventType(context, hashMap);
}
}
hashMap.put("dim", AFKeystoreWrapper().onAttributionFailureNative().valueOf(context));
map.put("deviceData", hashMap);
}
public static String AFInAppEventParameterName(AFb1dSDK aFb1dSDK, String str) {
int i11 = onDeepLinking + 11;
onAppOpenAttribution = i11 % 128;
if (!(i11 % 2 != 0)) {
String AFInAppEventType2 = aFb1dSDK.AFInAppEventType("CACHED_CHANNEL", (String) null);
if ((AFInAppEventType2 != null ? (char) 2 : '=') != '=') {
int i12 = onDeepLinking + 99;
onAppOpenAttribution = i12 % 128;
int i13 = i12 % 2;
return AFInAppEventType2;
}
aFb1dSDK.valueOf("CACHED_CHANNEL", str);
return str;
}
aFb1dSDK.AFInAppEventType("CACHED_CHANNEL", (String) null);
throw null;
}
private void AFInAppEventParameterName(AFa1sSDK aFa1sSDK) {
boolean z11;
byte b11 = 0;
if (aFa1sSDK.AFLogger == null) {
int i11 = onDeepLinking + 55;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
z11 = true;
} else {
int i13 = onAppOpenAttribution + 13;
onDeepLinking = i13 % 128;
int i14 = i13 % 2;
z11 = false;
}
if (AFInAppEventParameterName()) {
AFLogger.afInfoLog("CustomerUserId not set, reporting is disabled", true);
return;
}
if ((z11 ? '&' : '%') != '%') {
if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.LAUNCH_PROTECT_ENABLED, true)) {
if (AFLogger()) {
int i15 = onDeepLinking + 117;
onAppOpenAttribution = i15 % 128;
if ((i15 % 2 != 0 ? '$' : '!') == '!') {
AppsFlyerRequestListener appsFlyerRequestListener = aFa1sSDK.AFInAppEventParameterName;
if (appsFlyerRequestListener != null) {
appsFlyerRequestListener.onError(RequestError.EVENT_TIMEOUT, AFb1fSDK.AFInAppEventParameterName);
return;
}
return;
}
throw null;
}
} else {
AFLogger.afInfoLog("Allowing multiple launches within a 5 second time window.");
}
this.afDebugLog = System.currentTimeMillis();
}
AFKeystoreWrapper(AFKeystoreWrapper().AFKeystoreWrapper(), new AFa1wSDK(this, aFa1sSDK, b11), 0L, TimeUnit.MILLISECONDS);
}
public final void values(Context context, Map<String, Object> map, Uri uri) {
AFInAppEventParameterName(context);
if (!map.containsKey("af_deeplink")) {
String values2 = values(uri.toString());
AFb1tSDK onResponseErrorNative = AFKeystoreWrapper().onResponseErrorNative();
String str = onResponseErrorNative.valueOf;
if (str != null) {
if ((onResponseErrorNative.values != null ? '#' : (char) 4) == '#') {
int i11 = onAppOpenAttribution + 79;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
if (values2.contains(str)) {
int i13 = onDeepLinking + 83;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
Uri.Builder buildUpon = Uri.parse(values2).buildUpon();
Uri.Builder buildUpon2 = Uri.EMPTY.buildUpon();
Iterator<Map.Entry<String, String>> it = onResponseErrorNative.values.entrySet().iterator();
int i15 = onAppOpenAttribution + 93;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
while (true) {
if ((it.hasNext() ? 'L' : 'Y') == 'Y') {
break;
}
int i17 = onDeepLinking + 49;
onAppOpenAttribution = i17 % 128;
int i18 = i17 % 2;
Map.Entry<String, String> next = it.next();
buildUpon.appendQueryParameter(next.getKey(), next.getValue());
buildUpon2.appendQueryParameter(next.getKey(), next.getValue());
}
values2 = buildUpon.build().toString();
map.put("appended_query_params", buildUpon2.build().getEncodedQuery());
}
}
}
map.put("af_deeplink", values2);
}
HashMap hashMap = new HashMap();
hashMap.put("link", uri.toString());
AFd1iSDK aFd1iSDK = new AFd1iSDK(AFKeystoreWrapper(), UUID.randomUUID(), uri);
if ((aFd1iSDK.getLevel() ? 'B' : '\'') == 'B') {
map.put("isBrandedDomain", Boolean.TRUE);
}
AFa1fSDK.values(context, hashMap, uri);
if (aFd1iSDK.AFLogger$LogLevel()) {
aFd1iSDK.afErrorLog = values(hashMap);
AFd1wSDK afWarnLog = AFKeystoreWrapper().afWarnLog();
afWarnLog.valueOf.execute(new AFd1wSDK.AnonymousClass3(aFd1iSDK));
return;
}
AFKeystoreWrapper().onResponseErrorNative().AFInAppEventType(hashMap);
}
private void AFInAppEventType(Map<String, Object> map) {
boolean z11;
int i11 = onAppOpenAttribution + 3;
onDeepLinking = i11 % 128;
if (i11 % 2 == 0) {
}
if (z11 || map.get("advertiserId") == null) {
return;
}
try {
if (AFb1rSDK.AFKeystoreWrapper(this.afErrorLog) && map.remove("android_id") != null) {
AFLogger.afInfoLog("validateGaidAndIMEI :: removing: android_id");
}
if ((AFb1rSDK.AFKeystoreWrapper(AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFInAppEventType) ? 'I' : '\b') == 'I') {
int i12 = onAppOpenAttribution + 93;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
if (map.remove("imei") != null) {
int i14 = onDeepLinking + 17;
onAppOpenAttribution = i14 % 128;
if (i14 % 2 != 0) {
AFLogger.afInfoLog("validateGaidAndIMEI :: removing: imei");
throw null;
}
AFLogger.afInfoLog("validateGaidAndIMEI :: removing: imei");
}
}
int i15 = onDeepLinking + 103;
onAppOpenAttribution = i15 % 128;
int i16 = i15 % 2;
} catch (Exception e11) {
AFLogger.afErrorLog("failed to remove IMEI or AndroidID key from params; ", e11);
}
}
private static void AFInAppEventParameterName(Map<String, Object> map, AFe1gSDK aFe1gSDK) {
HashMap hashMap = new HashMap(aFe1gSDK.AFInAppEventType);
aFe1gSDK.AFInAppEventType.clear();
aFe1gSDK.AFInAppEventParameterName.valueOf("gcd");
if ((!hashMap.isEmpty() ? '3' : '$') != '$') {
int i11 = onAppOpenAttribution + 31;
onDeepLinking = i11 % 128;
if (!(i11 % 2 == 0)) {
AFInAppEventParameterName(map).put("gcd", hashMap);
} else {
AFInAppEventParameterName(map).put("gcd", hashMap);
throw null;
}
}
}
@WorkerThread
public final Map<String, Object> AFInAppEventType(AFa1sSDK aFa1sSDK) {
Object obj;
String str;
String str2;
AFe1sSDK aFe1sSDK;
String str3;
PackageManager.NameNotFoundException nameNotFoundException;
String str4;
SharedPreferences sharedPreferences;
AppsFlyerProperties appsFlyerProperties;
String str5;
AFc1wSDK.AFa1ySDK AFInAppEventParameterName2;
SharedPreferences sharedPreferences2;
AFa1eSDK aFa1eSDK;
Object obj2;
PackageInfo packageInfo;
Object values2;
UiModeManager uiModeManager;
Object systemService;
Context context = AFKeystoreWrapper().onInstallConversionDataLoadedNative().AFKeystoreWrapper;
String str6 = AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFKeystoreWrapper;
String str7 = aFa1sSDK.AFLogger;
Map map = aFa1sSDK.values;
if (map == null) {
map = new HashMap();
}
Object jSONObject = new JSONObject(map).toString();
String str8 = aFa1sSDK.afDebugLog;
SharedPreferences AFKeystoreWrapper2 = AFKeystoreWrapper(context);
boolean AFKeystoreWrapper3 = aFa1sSDK.AFKeystoreWrapper();
Object obj3 = aFa1sSDK.AFKeystoreWrapper;
Map<String, Object> map2 = aFa1sSDK.valueOf;
AFa1eSDK.AFKeystoreWrapper(context, map2);
Boolean bool = AFa1eSDK.AFInAppEventType;
if (bool == null || bool.booleanValue()) {
obj = obj3;
str = "Exception while collecting facebook's attribution ID. ";
str2 = "yyyy-MM-dd_HHmmssZ";
} else {
obj = obj3;
str2 = "yyyy-MM-dd_HHmmssZ";
str = "Exception while collecting facebook's attribution ID. ";
AFInAppEventParameterName(map2).put("ad_ids_disabled", Boolean.TRUE);
}
long time = new Date().getTime();
Object[] objArr = new Object[1];
valueOf("\ufffb\u0003\uffff\n\ufff5\ufff7\u0006\u0003\ufff7\n\t", true, 6 - TextUtils.indexOf((CharSequence) "", '0'), (ViewConfiguration.getPressedStateDuration() >> 16) + 277, (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 12, objArr);
map2.put(((String) objArr[0]).intern(), Long.toString(time));
Object AFInAppEventType2 = AFa1xSDK.AFInAppEventType(context, time);
if (AFInAppEventType2 != null) {
map2.put("cksm_v1", AFInAppEventType2);
}
try {
if (!isStopped()) {
StringBuilder sb2 = new StringBuilder("******* sendTrackingWithEvent: ");
sb2.append(AFKeystoreWrapper3 ? "Launch" : str7);
AFLogger.afInfoLog(sb2.toString());
} else {
AFLogger.afInfoLog("Reporting has been stopped");
}
AFKeystoreWrapper().onInstallConversionFailureNative().values();
try {
List asList = Arrays.asList(context.getPackageManager().getPackageInfo(context.getPackageName(), 4096).requestedPermissions);
if (!asList.contains("android.permission.INTERNET")) {
AFLogger.afWarnLog("Permission android.permission.INTERNET is missing in the AndroidManifest.xml");
}
if (!asList.contains("android.permission.ACCESS_NETWORK_STATE")) {
AFLogger.afWarnLog("Permission android.permission.ACCESS_NETWORK_STATE is missing in the AndroidManifest.xml");
}
if (Build.VERSION.SDK_INT > 32 && !asList.contains("com.google.android.gms.permission.AD_ID")) {
AFLogger.afWarnLog("Permission com.google.android.gms.permission.AD_ID is missing in the AndroidManifest.xml");
}
} catch (Exception e11) {
AFLogger.afErrorLog("Exception while validation permissions. ", e11);
}
Object[] objArr2 = new Object[1];
valueOf("\u0000", true, (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)), (AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1)) + 219, TextUtils.indexOf("", "") + 1, objArr2);
map2.put("af_events_api", ((String) objArr2[0]).intern());
Object[] objArr3 = new Object[1];
valueOf("\u000b\ufffb�\u0007\ufffa", true, (ViewConfiguration.getScrollBarSize() >> 8) + 2, 274 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), 6 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), objArr3);
map2.put(((String) objArr3[0]).intern(), Build.BRAND);
map2.put(TapjoyConstants.TJC_NOTIFICATION_DEVICE_PREFIX, Build.DEVICE);
map2.put(AppLovinEventTypes.USER_VIEWED_PRODUCT, Build.PRODUCT);
int i11 = Build.VERSION.SDK_INT;
map2.put("sdk", Integer.toString(i11));
map2.put("model", Build.MODEL);
map2.put("deviceType", Build.TYPE);
values(context, map2);
AppsFlyerProperties appsFlyerProperties2 = AppsFlyerProperties.getInstance();
AFe1sSDK afErrorLogForExcManagerOnly = AFKeystoreWrapper().afErrorLogForExcManagerOnly();
AFe1gSDK afDebugLog = AFKeystoreWrapper().afDebugLog();
if (AFKeystoreWrapper3) {
if (afRDLog(context)) {
if (appsFlyerProperties2.isOtherSdkStringDisabled()) {
aFe1sSDK = afErrorLogForExcManagerOnly;
} else {
aFe1sSDK = afErrorLogForExcManagerOnly;
map2.put("batteryLevel", String.valueOf(AFKeystoreWrapper().onConversionDataSuccess().AFInAppEventType(context).AFKeystoreWrapper));
}
afInfoLog(context);
if (i11 >= 23) {
systemService = context.getSystemService((Class<Object>) UiModeManager.class);
uiModeManager = (UiModeManager) systemService;
} else {
uiModeManager = (UiModeManager) context.getSystemService("uimode");
}
if (uiModeManager != null && uiModeManager.getCurrentModeType() == 4) {
map2.put("tv", Boolean.TRUE);
}
if (AFe1oSDK.valueOf(context)) {
map2.put("inst_app", Boolean.TRUE);
}
} else {
aFe1sSDK = afErrorLogForExcManagerOnly;
}
map2.put("timepassedsincelastlaunch", Long.toString(AFLogger$LogLevel(context)));
valueOf(map2);
AFInAppEventParameterName(map2, afDebugLog);
Object obj4 = this.onResponseNative;
if (obj4 != null) {
map2.put(HintConstants.AUTOFILL_HINT_PHONE, obj4);
}
if (!TextUtils.isEmpty(str8)) {
map2.put(TapjoyConstants.TJC_REFERRER, str8);
}
Object string = AFKeystoreWrapper2.getString("extraReferrers", null);
if (string != null) {
map2.put("extraReferrers", string);
}
String referrer = appsFlyerProperties2.getReferrer(context);
if (!TextUtils.isEmpty(referrer) && map2.get(TapjoyConstants.TJC_REFERRER) == null) {
map2.put(TapjoyConstants.TJC_REFERRER, referrer);
}
long j11 = afDebugLog.AFVersionDeclaration;
if (j11 != 0) {
map2.put("prev_session_dur", Long.valueOf(j11));
}
Application application = AFb1jSDK.AFInAppEventParameterName;
map2.put("exception_number", Long.valueOf(application == null ? -1L : AFKeystoreWrapper(application).getLong("exception_number", 0L)));
AFb1lSDK aFb1lSDK = this.onConversionDataSuccess;
if (aFb1lSDK != null) {
if (!aFb1lSDK.valueOf.isEmpty()) {
map2.put("partner_data", aFb1lSDK.valueOf);
}
if (!aFb1lSDK.AFInAppEventParameterName.isEmpty()) {
AFInAppEventParameterName(map2).put("partner_data", aFb1lSDK.AFInAppEventParameterName);
aFb1lSDK.AFInAppEventParameterName = new HashMap();
}
}
} else {
aFe1sSDK = afErrorLogForExcManagerOnly;
values(context, map2, str7);
}
Object AFKeystoreWrapper4 = AFKeystoreWrapper("KSAppsFlyerId");
String AFKeystoreWrapper5 = AFKeystoreWrapper("KSAppsFlyerRICounter");
if (AFKeystoreWrapper4 != null && AFKeystoreWrapper5 != null && Integer.valueOf(AFKeystoreWrapper5).intValue() > 0) {
map2.put("reinstallCounter", AFKeystoreWrapper5);
map2.put("originalAppsflyerId", AFKeystoreWrapper4);
}
Object AFKeystoreWrapper6 = AFKeystoreWrapper(AppsFlyerProperties.ADDITIONAL_CUSTOM_DATA);
if (AFKeystoreWrapper6 != null) {
map2.put("customData", AFKeystoreWrapper6);
}
map2.putAll(this.onResponse.afErrorLog().AFInAppEventParameterName());
String string2 = appsFlyerProperties2.getString(AppsFlyerProperties.EXTENSION);
if (string2 != null && string2.length() > 0) {
map2.put(AppsFlyerProperties.EXTENSION, string2);
}
String AFKeystoreWrapper7 = AFKeystoreWrapper().values().AFKeystoreWrapper();
String AFInAppEventParameterName3 = AFInAppEventParameterName(values(context), AFKeystoreWrapper7);
if ((AFInAppEventParameterName3 != null && !AFInAppEventParameterName3.equals(AFKeystoreWrapper7)) || (AFInAppEventParameterName3 == null && AFKeystoreWrapper7 != null)) {
map2.put("af_latestchannel", AFKeystoreWrapper7);
}
String afErrorLog = afErrorLog(context);
if (afErrorLog != null) {
map2.put("af_installstore", afErrorLog.toLowerCase(Locale.getDefault()));
}
String AFVersionDeclaration = AFVersionDeclaration(context);
if (AFVersionDeclaration != null) {
map2.put("af_preinstall_name", AFVersionDeclaration.toLowerCase(Locale.getDefault()));
}
String afWarnLog = afWarnLog(context);
if (afWarnLog != null) {
map2.put("af_currentstore", afWarnLog.toLowerCase(Locale.getDefault()));
}
if (str6 != null && str6.length() > 0) {
map2.put("appsflyerKey", str6);
} else {
String str9 = AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFKeystoreWrapper;
if (str9 != null && str9.length() > 0) {
map2.put("appsflyerKey", str9);
} else {
AFLogger.afInfoLog("AppsFlyer dev key is missing!!! Please use AppsFlyerLib.getInstance().setAppsFlyerKey(...) to set it. ");
AFLogger.afInfoLog("AppsFlyer will not track this event.");
return null;
}
}
Object values3 = values();
if (values3 != null) {
map2.put("appUserId", values3);
}
Object string3 = appsFlyerProperties2.getString(AppsFlyerProperties.USER_EMAILS);
if (string3 != null) {
map2.put("user_emails", string3);
} else {
String AFKeystoreWrapper8 = AFKeystoreWrapper(AppsFlyerProperties.USER_EMAIL);
if (AFKeystoreWrapper8 != null) {
map2.put("sha1_el", AFa1aSDK.valueOf(AFKeystoreWrapper8));
}
}
if (str7 != null) {
map2.put("eventName", str7);
map2.put("eventValue", jSONObject);
}
if (afRDLog() != null) {
map2.put(AppsFlyerProperties.APP_ID, AFKeystoreWrapper(AppsFlyerProperties.APP_ID));
}
String AFKeystoreWrapper9 = AFKeystoreWrapper(AppsFlyerProperties.CURRENCY_CODE);
if (AFKeystoreWrapper9 != null) {
if (AFKeystoreWrapper9.length() != 3) {
StringBuilder sb3 = new StringBuilder("WARNING: currency code should be 3 characters!!! '");
sb3.append(AFKeystoreWrapper9);
sb3.append("' is not a legal value.");
AFLogger.afWarnLog(sb3.toString());
}
map2.put("currency", AFKeystoreWrapper9);
}
Object AFKeystoreWrapper10 = AFKeystoreWrapper(AppsFlyerProperties.IS_UPDATE);
if (AFKeystoreWrapper10 != null) {
map2.put("isUpdate", AFKeystoreWrapper10);
}
map2.put("af_preinstalled", Boolean.toString(isPreInstalledApp(context)));
if (appsFlyerProperties2.getBoolean(AppsFlyerProperties.COLLECT_FACEBOOK_ATTR_ID, true)) {
try {
try {
} catch (PackageManager.NameNotFoundException e12) {
str3 = str;
nameNotFoundException = e12;
}
try {
context.getPackageManager().getApplicationInfo("com.facebook.katana", 0);
str4 = getAttributionId(context);
} catch (PackageManager.NameNotFoundException e13) {
nameNotFoundException = e13;
str3 = str;
AFLogger.afErrorLogForExcManagerOnly("com.facebook.katana not found", nameNotFoundException, true);
AFLogger.afWarnLog(str3);
str4 = null;
if (str4 != null) {
}
AFInAppEventParameterName(context, map2);
values2 = AFb1xSDK.values(new WeakReference(context));
if (values2 != null) {
}
map2.put("lang", Locale.getDefault().getDisplayLanguage());
map2.put("lang_code", Locale.getDefault().getLanguage());
map2.put("country", Locale.getDefault().getCountry());
valueOf(map2, AFKeystoreWrapper3);
AFKeystoreWrapper(context, (Map<String, ? super String>) map2);
String str10 = str2;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(str10, Locale.US);
map2.put("installDate", valueOf(simpleDateFormat, context.getPackageManager().getPackageInfo(context.getPackageName(), 0).firstInstallTime));
packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
if (packageInfo.versionCode > AFKeystoreWrapper2.getInt("versionCode", 0)) {
}
AFc1ySDK values4 = AFKeystoreWrapper().values();
map2.put("app_version_code", Integer.toString(packageInfo.versionCode));
Context context2 = values4.AFInAppEventType.AFKeystoreWrapper;
map2.put("app_version_name", AFa1fSDK.AFInAppEventType(context2, context2.getPackageName()));
map2.put("targetSDKver", Integer.valueOf(values4.AFInAppEventType.AFKeystoreWrapper.getApplicationInfo().targetSdkVersion));
long j12 = packageInfo.firstInstallTime;
try {
long j13 = packageInfo.lastUpdateTime;
appsFlyerProperties = appsFlyerProperties2;
str5 = str7;
try {
Locale locale = Locale.US;
sharedPreferences = AFKeystoreWrapper2;
try {
map2.put("date1", new SimpleDateFormat(str10, locale).format(new Date(j12)));
map2.put("date2", new SimpleDateFormat(str10, locale).format(new Date(j13)));
Object AFKeystoreWrapper11 = AFKeystoreWrapper(simpleDateFormat, context);
Object[] objArr4 = new Object[1];
valueOf("\u000f\b�\u0002\uffde\ufffb\u000e\uffff\u0000\u0003\f\r\u000e₩\ufffb", false, (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 8, 272 - TextUtils.indexOf((CharSequence) "", '0', 0), (ViewConfiguration.getWindowTouchSlop() >> 8) + 15, objArr4);
map2.put(((String) objArr4[0]).intern(), AFKeystoreWrapper11);
} catch (Throwable th2) {
th = th2;
AFLogger.afErrorLog("Exception while collecting app version data ", th, true);
this.onAppOpenAttributionNative = AFe1pSDK.values(context);
StringBuilder sb4 = new StringBuilder("didConfigureTokenRefreshService=");
sb4.append(this.onAppOpenAttributionNative);
AFLogger.afDebugLog(sb4.toString());
if (!this.onAppOpenAttributionNative) {
}
if (AFKeystoreWrapper3) {
}
if (!AFKeystoreWrapper3) {
}
if (AFKeystoreWrapper("advertiserId") == null) {
}
AFInAppEventParameterName2 = AFa1eSDK.AFInAppEventParameterName(context.getContentResolver());
if (AFInAppEventParameterName2 != null) {
}
map2.put("registeredUninstall", Boolean.valueOf(AFe1pSDK.values(sharedPreferences)));
sharedPreferences2 = sharedPreferences;
int values5 = values(sharedPreferences2, AFKeystoreWrapper3);
map2.put("counter", Integer.toString(values5));
map2.put("iaecounter", Integer.toString(AFInAppEventType(sharedPreferences2, str5 != null)));
if (AFKeystoreWrapper3) {
}
map2.put("isFirstCall", Boolean.toString(!values(sharedPreferences2)));
values(context, AFKeystoreWrapper3, map2, values5);
new AFa1aSDK();
map2.put("af_v", AFa1aSDK.valueOf(map2));
new AFa1aSDK();
map2.put("af_v2", AFa1aSDK.values(map2));
map2.put("ivc", Boolean.valueOf(afErrorLogForExcManagerOnly(context)));
if (sharedPreferences2.contains("is_stop_tracking_used")) {
}
HashMap hashMap = new HashMap();
hashMap.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
hashMap.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
map2.put("cell", hashMap);
map2.put("sig", aFe1sSDK.valueOf());
map2.put("last_boot_time", Long.valueOf(aFe1sSDK.AFInAppEventParameterName()));
map2.put("disk", aFe1sSDK.AFInAppEventType());
aFa1eSDK = this.afRDLog;
if (aFa1eSDK != null) {
}
return map2;
}
} catch (Throwable th3) {
th = th3;
sharedPreferences = AFKeystoreWrapper2;
}
} catch (Throwable th4) {
th = th4;
sharedPreferences = AFKeystoreWrapper2;
appsFlyerProperties = appsFlyerProperties2;
}
this.onAppOpenAttributionNative = AFe1pSDK.values(context);
StringBuilder sb42 = new StringBuilder("didConfigureTokenRefreshService=");
sb42.append(this.onAppOpenAttributionNative);
AFLogger.afDebugLog(sb42.toString());
if (!this.onAppOpenAttributionNative) {
}
if (AFKeystoreWrapper3) {
}
if (!AFKeystoreWrapper3) {
}
if (AFKeystoreWrapper("advertiserId") == null) {
}
AFInAppEventParameterName2 = AFa1eSDK.AFInAppEventParameterName(context.getContentResolver());
if (AFInAppEventParameterName2 != null) {
}
map2.put("registeredUninstall", Boolean.valueOf(AFe1pSDK.values(sharedPreferences)));
sharedPreferences2 = sharedPreferences;
int values52 = values(sharedPreferences2, AFKeystoreWrapper3);
map2.put("counter", Integer.toString(values52));
map2.put("iaecounter", Integer.toString(AFInAppEventType(sharedPreferences2, str5 != null)));
if (AFKeystoreWrapper3) {
appsFlyerProperties.AFInAppEventParameterName = true;
}
map2.put("isFirstCall", Boolean.toString(!values(sharedPreferences2)));
values(context, AFKeystoreWrapper3, map2, values52);
new AFa1aSDK();
map2.put("af_v", AFa1aSDK.valueOf(map2));
new AFa1aSDK();
map2.put("af_v2", AFa1aSDK.values(map2));
map2.put("ivc", Boolean.valueOf(afErrorLogForExcManagerOnly(context)));
if (sharedPreferences2.contains("is_stop_tracking_used")) {
}
HashMap hashMap2 = new HashMap();
hashMap2.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
hashMap2.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
map2.put("cell", hashMap2);
map2.put("sig", aFe1sSDK.valueOf());
map2.put("last_boot_time", Long.valueOf(aFe1sSDK.AFInAppEventParameterName()));
map2.put("disk", aFe1sSDK.AFInAppEventType());
aFa1eSDK = this.afRDLog;
if (aFa1eSDK != null) {
map2.put("sharing_filter", obj2);
}
return map2;
}
} catch (Throwable th5) {
AFLogger.afErrorLog(str, th5);
str4 = null;
if (str4 != null) {
}
AFInAppEventParameterName(context, map2);
values2 = AFb1xSDK.values(new WeakReference(context));
if (values2 != null) {
}
map2.put("lang", Locale.getDefault().getDisplayLanguage());
map2.put("lang_code", Locale.getDefault().getLanguage());
map2.put("country", Locale.getDefault().getCountry());
valueOf(map2, AFKeystoreWrapper3);
AFKeystoreWrapper(context, (Map<String, ? super String>) map2);
String str102 = str2;
SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat(str102, Locale.US);
map2.put("installDate", valueOf(simpleDateFormat2, context.getPackageManager().getPackageInfo(context.getPackageName(), 0).firstInstallTime));
packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
if (packageInfo.versionCode > AFKeystoreWrapper2.getInt("versionCode", 0)) {
}
AFc1ySDK values42 = AFKeystoreWrapper().values();
map2.put("app_version_code", Integer.toString(packageInfo.versionCode));
Context context22 = values42.AFInAppEventType.AFKeystoreWrapper;
map2.put("app_version_name", AFa1fSDK.AFInAppEventType(context22, context22.getPackageName()));
map2.put("targetSDKver", Integer.valueOf(values42.AFInAppEventType.AFKeystoreWrapper.getApplicationInfo().targetSdkVersion));
long j122 = packageInfo.firstInstallTime;
long j132 = packageInfo.lastUpdateTime;
appsFlyerProperties = appsFlyerProperties2;
str5 = str7;
Locale locale2 = Locale.US;
sharedPreferences = AFKeystoreWrapper2;
map2.put("date1", new SimpleDateFormat(str102, locale2).format(new Date(j122)));
map2.put("date2", new SimpleDateFormat(str102, locale2).format(new Date(j132)));
Object AFKeystoreWrapper112 = AFKeystoreWrapper(simpleDateFormat2, context);
Object[] objArr42 = new Object[1];
valueOf("\u000f\b�\u0002\uffde\ufffb\u000e\uffff\u0000\u0003\f\r\u000e₩\ufffb", false, (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 8, 272 - TextUtils.indexOf((CharSequence) "", '0', 0), (ViewConfiguration.getWindowTouchSlop() >> 8) + 15, objArr42);
map2.put(((String) objArr42[0]).intern(), AFKeystoreWrapper112);
this.onAppOpenAttributionNative = AFe1pSDK.values(context);
StringBuilder sb422 = new StringBuilder("didConfigureTokenRefreshService=");
sb422.append(this.onAppOpenAttributionNative);
AFLogger.afDebugLog(sb422.toString());
if (!this.onAppOpenAttributionNative) {
}
if (AFKeystoreWrapper3) {
}
if (!AFKeystoreWrapper3) {
}
if (AFKeystoreWrapper("advertiserId") == null) {
}
AFInAppEventParameterName2 = AFa1eSDK.AFInAppEventParameterName(context.getContentResolver());
if (AFInAppEventParameterName2 != null) {
}
map2.put("registeredUninstall", Boolean.valueOf(AFe1pSDK.values(sharedPreferences)));
sharedPreferences2 = sharedPreferences;
int values522 = values(sharedPreferences2, AFKeystoreWrapper3);
map2.put("counter", Integer.toString(values522));
map2.put("iaecounter", Integer.toString(AFInAppEventType(sharedPreferences2, str5 != null)));
if (AFKeystoreWrapper3) {
}
map2.put("isFirstCall", Boolean.toString(!values(sharedPreferences2)));
values(context, AFKeystoreWrapper3, map2, values522);
new AFa1aSDK();
map2.put("af_v", AFa1aSDK.valueOf(map2));
new AFa1aSDK();
map2.put("af_v2", AFa1aSDK.values(map2));
map2.put("ivc", Boolean.valueOf(afErrorLogForExcManagerOnly(context)));
if (sharedPreferences2.contains("is_stop_tracking_used")) {
}
HashMap hashMap22 = new HashMap();
hashMap22.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
hashMap22.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
map2.put("cell", hashMap22);
map2.put("sig", aFe1sSDK.valueOf());
map2.put("last_boot_time", Long.valueOf(aFe1sSDK.AFInAppEventParameterName()));
map2.put("disk", aFe1sSDK.AFInAppEventType());
aFa1eSDK = this.afRDLog;
if (aFa1eSDK != null) {
}
return map2;
}
if (str4 != null) {
map2.put("fb", str4);
}
}
AFInAppEventParameterName(context, map2);
try {
values2 = AFb1xSDK.values(new WeakReference(context));
if (values2 != null) {
map2.put("uid", values2);
}
} catch (Exception e14) {
StringBuilder sb5 = new StringBuilder("ERROR: could not get uid ");
sb5.append(e14.getMessage());
AFLogger.afErrorLog(sb5.toString(), e14);
}
try {
map2.put("lang", Locale.getDefault().getDisplayLanguage());
} catch (Exception e15) {
AFLogger.afErrorLog("Exception while collecting display language name. ", e15);
}
try {
map2.put("lang_code", Locale.getDefault().getLanguage());
} catch (Exception e16) {
AFLogger.afErrorLog("Exception while collecting display language code. ", e16);
}
try {
map2.put("country", Locale.getDefault().getCountry());
} catch (Exception e17) {
AFLogger.afErrorLog("Exception while collecting country name. ", e17);
}
valueOf(map2, AFKeystoreWrapper3);
AFKeystoreWrapper(context, (Map<String, ? super String>) map2);
String str1022 = str2;
SimpleDateFormat simpleDateFormat22 = new SimpleDateFormat(str1022, Locale.US);
try {
map2.put("installDate", valueOf(simpleDateFormat22, context.getPackageManager().getPackageInfo(context.getPackageName(), 0).firstInstallTime));
} catch (Exception e18) {
AFLogger.afErrorLog("Exception while collecting install date. ", e18);
}
try {
packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
if (packageInfo.versionCode > AFKeystoreWrapper2.getInt("versionCode", 0)) {
values(context).AFKeystoreWrapper("versionCode", packageInfo.versionCode);
}
AFc1ySDK values422 = AFKeystoreWrapper().values();
map2.put("app_version_code", Integer.toString(packageInfo.versionCode));
Context context222 = values422.AFInAppEventType.AFKeystoreWrapper;
map2.put("app_version_name", AFa1fSDK.AFInAppEventType(context222, context222.getPackageName()));
map2.put("targetSDKver", Integer.valueOf(values422.AFInAppEventType.AFKeystoreWrapper.getApplicationInfo().targetSdkVersion));
long j1222 = packageInfo.firstInstallTime;
long j1322 = packageInfo.lastUpdateTime;
appsFlyerProperties = appsFlyerProperties2;
} catch (Throwable th6) {
th = th6;
sharedPreferences = AFKeystoreWrapper2;
appsFlyerProperties = appsFlyerProperties2;
str5 = str7;
}
} catch (Throwable th7) {
AFLogger.afErrorLog(th7.getLocalizedMessage(), th7, true);
}
try {
str5 = str7;
Locale locale22 = Locale.US;
sharedPreferences = AFKeystoreWrapper2;
map2.put("date1", new SimpleDateFormat(str1022, locale22).format(new Date(j1222)));
map2.put("date2", new SimpleDateFormat(str1022, locale22).format(new Date(j1322)));
Object AFKeystoreWrapper1122 = AFKeystoreWrapper(simpleDateFormat22, context);
Object[] objArr422 = new Object[1];
valueOf("\u000f\b�\u0002\uffde\ufffb\u000e\uffff\u0000\u0003\f\r\u000e₩\ufffb", false, (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 8, 272 - TextUtils.indexOf((CharSequence) "", '0', 0), (ViewConfiguration.getWindowTouchSlop() >> 8) + 15, objArr422);
map2.put(((String) objArr422[0]).intern(), AFKeystoreWrapper1122);
} catch (Throwable th8) {
th = th8;
sharedPreferences = AFKeystoreWrapper2;
str5 = str7;
AFLogger.afErrorLog("Exception while collecting app version data ", th, true);
this.onAppOpenAttributionNative = AFe1pSDK.values(context);
StringBuilder sb4222 = new StringBuilder("didConfigureTokenRefreshService=");
sb4222.append(this.onAppOpenAttributionNative);
AFLogger.afDebugLog(sb4222.toString());
if (!this.onAppOpenAttributionNative) {
}
if (AFKeystoreWrapper3) {
}
if (!AFKeystoreWrapper3) {
}
if (AFKeystoreWrapper("advertiserId") == null) {
}
AFInAppEventParameterName2 = AFa1eSDK.AFInAppEventParameterName(context.getContentResolver());
if (AFInAppEventParameterName2 != null) {
}
map2.put("registeredUninstall", Boolean.valueOf(AFe1pSDK.values(sharedPreferences)));
sharedPreferences2 = sharedPreferences;
int values5222 = values(sharedPreferences2, AFKeystoreWrapper3);
map2.put("counter", Integer.toString(values5222));
map2.put("iaecounter", Integer.toString(AFInAppEventType(sharedPreferences2, str5 != null)));
if (AFKeystoreWrapper3) {
}
map2.put("isFirstCall", Boolean.toString(!values(sharedPreferences2)));
values(context, AFKeystoreWrapper3, map2, values5222);
new AFa1aSDK();
map2.put("af_v", AFa1aSDK.valueOf(map2));
new AFa1aSDK();
map2.put("af_v2", AFa1aSDK.values(map2));
map2.put("ivc", Boolean.valueOf(afErrorLogForExcManagerOnly(context)));
if (sharedPreferences2.contains("is_stop_tracking_used")) {
}
HashMap hashMap222 = new HashMap();
hashMap222.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
hashMap222.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
map2.put("cell", hashMap222);
map2.put("sig", aFe1sSDK.valueOf());
map2.put("last_boot_time", Long.valueOf(aFe1sSDK.AFInAppEventParameterName()));
map2.put("disk", aFe1sSDK.AFInAppEventType());
aFa1eSDK = this.afRDLog;
if (aFa1eSDK != null) {
}
return map2;
}
this.onAppOpenAttributionNative = AFe1pSDK.values(context);
StringBuilder sb42222 = new StringBuilder("didConfigureTokenRefreshService=");
sb42222.append(this.onAppOpenAttributionNative);
AFLogger.afDebugLog(sb42222.toString());
if (!this.onAppOpenAttributionNative) {
map2.put("tokenRefreshConfigured", Boolean.FALSE);
}
if (AFKeystoreWrapper3) {
if (this.AFVersionDeclaration != null) {
if (map2.get("af_deeplink") != null) {
AFLogger.afDebugLog("Skip 'af' payload as deeplink was found by path");
} else {
JSONObject jSONObject2 = new JSONObject(this.AFVersionDeclaration);
jSONObject2.put("isPush", "true");
map2.put("af_deeplink", jSONObject2.toString());
}
}
this.AFVersionDeclaration = null;
map2.put("open_referrer", obj);
}
if (!AFKeystoreWrapper3) {
try {
map2.putAll(AFKeystoreWrapper().getLevel().valueOf());
} catch (Exception e19) {
AFLogger.afErrorLogForExcManagerOnly("error while getting sensors data", e19);
StringBuilder sb6 = new StringBuilder("Unexpected exception from AFSensorManager: ");
sb6.append(e19.getMessage());
AFLogger.afRDLog(sb6.toString());
}
}
if (AFKeystoreWrapper("advertiserId") == null) {
AFa1eSDK.AFKeystoreWrapper(context, map2);
map2.put("GAID_retry", String.valueOf(AFKeystoreWrapper("advertiserId") != null));
}
AFInAppEventParameterName2 = AFa1eSDK.AFInAppEventParameterName(context.getContentResolver());
if (AFInAppEventParameterName2 != null) {
map2.put("amazon_aid", AFInAppEventParameterName2.AFInAppEventType);
map2.put("amazon_aid_limit", String.valueOf(AFInAppEventParameterName2.AFKeystoreWrapper));
}
map2.put("registeredUninstall", Boolean.valueOf(AFe1pSDK.values(sharedPreferences)));
sharedPreferences2 = sharedPreferences;
int values52222 = values(sharedPreferences2, AFKeystoreWrapper3);
map2.put("counter", Integer.toString(values52222));
map2.put("iaecounter", Integer.toString(AFInAppEventType(sharedPreferences2, str5 != null)));
if (AFKeystoreWrapper3 && values52222 == 1) {
appsFlyerProperties.AFInAppEventParameterName = true;
}
map2.put("isFirstCall", Boolean.toString(!values(sharedPreferences2)));
values(context, AFKeystoreWrapper3, map2, values52222);
new AFa1aSDK();
map2.put("af_v", AFa1aSDK.valueOf(map2));
new AFa1aSDK();
map2.put("af_v2", AFa1aSDK.values(map2));
map2.put("ivc", Boolean.valueOf(afErrorLogForExcManagerOnly(context)));
if (sharedPreferences2.contains("is_stop_tracking_used")) {
map2.put("istu", String.valueOf(sharedPreferences2.getBoolean("is_stop_tracking_used", false)));
}
HashMap hashMap2222 = new HashMap();
hashMap2222.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
hashMap2222.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
map2.put("cell", hashMap2222);
map2.put("sig", aFe1sSDK.valueOf());
map2.put("last_boot_time", Long.valueOf(aFe1sSDK.AFInAppEventParameterName()));
map2.put("disk", aFe1sSDK.AFInAppEventType());
aFa1eSDK = this.afRDLog;
if (aFa1eSDK != null && (obj2 = aFa1eSDK.AFInAppEventParameterName) != null) {
map2.put("sharing_filter", obj2);
}
return map2;
}
private static String values(@Nullable String str) {
String str2;
if (str == null) {
return null;
}
if ((str.matches("fb\\d*?://authorize.*") ? 'B' : ']') == ']' || !str.contains("access_token")) {
return str;
}
int i11 = onAppOpenAttribution + 101;
onDeepLinking = i11 % 128;
if (i11 % 2 != 0) {
String AFInAppEventType2 = AFInAppEventType(str);
if (AFInAppEventType2.length() == 0) {
int i12 = onAppOpenAttribution + 97;
onDeepLinking = i12 % 128;
int i13 = i12 % 2;
return str;
}
ArrayList arrayList = new ArrayList();
if (AFInAppEventType2.contains("&")) {
arrayList = new ArrayList(Arrays.asList(AFInAppEventType2.split("&")));
} else {
arrayList.add(AFInAppEventType2);
int i14 = onAppOpenAttribution + 57;
onDeepLinking = i14 % 128;
int i15 = i14 % 2;
}
StringBuilder sb2 = new StringBuilder();
Iterator it = arrayList.iterator();
while (it.hasNext()) {
int i16 = onDeepLinking + 93;
onAppOpenAttribution = i16 % 128;
if (i16 % 2 != 0) {
str2 = (String) it.next();
int i17 = 3 / 0;
if (str2.contains("access_token")) {
it.remove();
} else {
if ((sb2.length() == 0 ? ':' : (char) 27) == ':') {
if (!str2.startsWith("?")) {
sb2.append("?");
}
} else {
sb2.append("&");
}
sb2.append(str2);
}
} else {
str2 = (String) it.next();
if (str2.contains("access_token")) {
it.remove();
} else {
if ((sb2.length() == 0 ? ':' : (char) 27) == ':') {
}
sb2.append(str2);
}
}
}
String replace = str.replace(AFInAppEventType2, sb2.toString());
int i18 = onDeepLinking + 57;
onAppOpenAttribution = i18 % 128;
int i19 = i18 % 2;
return replace;
}
AFInAppEventType(str).length();
throw null;
}
private AFd1iSDK.AFa1zSDK values(final Map<String, String> map) {
AFd1iSDK.AFa1zSDK aFa1zSDK = new AFd1iSDK.AFa1zSDK() {
@Override
public final void AFInAppEventType(String str) {
AFa1dSDK.this.AFKeystoreWrapper().onResponseErrorNative().AFInAppEventType(str, DeepLinkResult.Error.NETWORK);
}
@Override
public final void valueOf(Map<String, String> map2) {
for (String str : map2.keySet()) {
map.put(str, map2.get(str));
}
AFa1dSDK.this.AFKeystoreWrapper().onResponseErrorNative().AFInAppEventType(map);
}
};
int i11 = onDeepLinking + 83;
onAppOpenAttribution = i11 % 128;
if ((i11 % 2 != 0 ? 'H' : (char) 18) == 18) {
return aFa1zSDK;
}
throw null;
}
private static void values(Context context, Map<String, Object> map, String str) {
int i11 = onAppOpenAttribution + 3;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
SharedPreferences AFKeystoreWrapper2 = AFKeystoreWrapper(context);
SharedPreferences.Editor edit = AFKeystoreWrapper2.edit();
try {
String string = AFKeystoreWrapper2.getString("prev_event_name", null);
if (string != null) {
JSONObject jSONObject = new JSONObject();
jSONObject.put("prev_event_timestamp", AFKeystoreWrapper2.getLong("prev_event_timestamp", -1L));
jSONObject.put("prev_event_name", string);
map.put("prev_event", jSONObject);
int i13 = onDeepLinking + 9;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
}
edit.putString("prev_event_name", str).putLong("prev_event_timestamp", System.currentTimeMillis()).apply();
} catch (Exception e11) {
AFLogger.afErrorLog("Error while processing previous event.", e11);
}
}
public final AFb1dSDK values(Context context) {
int i11 = onAppOpenAttribution + 17;
onDeepLinking = i11 % 128;
if ((i11 % 2 == 0 ? (char) 23 : 'D') == 'D') {
AFInAppEventParameterName(context);
return AFKeystoreWrapper().afInfoLog();
}
AFInAppEventParameterName(context);
AFKeystoreWrapper().afInfoLog();
throw null;
}
public final int values(SharedPreferences sharedPreferences, boolean z11) {
int i11 = onDeepLinking + 9;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
int AFKeystoreWrapper2 = AFKeystoreWrapper(sharedPreferences, "appsFlyerCount", z11);
int i13 = onDeepLinking + 69;
onAppOpenAttribution = i13 % 128;
if (i13 % 2 == 0) {
return AFKeystoreWrapper2;
}
throw null;
}
private void AFInAppEventType(Context context, Map<String, Object> map) {
int i11 = onDeepLinking + 125;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
AFb1cSDK.AFa1vSDK AFInAppEventType2 = AFKeystoreWrapper().onConversionDataSuccess().AFInAppEventType(context);
map.put("btl", Float.toString(AFInAppEventType2.AFKeystoreWrapper));
String str = AFInAppEventType2.AFInAppEventParameterName;
if (!(str == null)) {
map.put("btch", str);
int i13 = onDeepLinking + 117;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
}
}
private static String AFInAppEventType(Activity activity) {
Intent intent;
String string;
int i11 = onAppOpenAttribution;
int i12 = i11 + 67;
onDeepLinking = i12 % 128;
String str = null;
if (i12 % 2 == 0) {
int i13 = 38 / 0;
if (activity == null) {
return null;
}
} else if (activity == null) {
return null;
}
int i14 = i11 + 61;
onDeepLinking = i14 % 128;
if (!(i14 % 2 == 0)) {
intent = activity.getIntent();
if (intent == null) {
return null;
}
} else {
intent = activity.getIntent();
int i15 = 3 / 0;
if ((intent != null ? 'U' : 'Q') != 'U') {
return null;
}
}
try {
Bundle extras = intent.getExtras();
if (!(extras != null)) {
return null;
}
int i16 = onAppOpenAttribution + 49;
onDeepLinking = i16 % 128;
if (i16 % 2 == 0) {
string = extras.getString("af");
try {
int i17 = 64 / 0;
} catch (Throwable th2) {
th = th2;
str = string;
AFLogger.afErrorLog(th.getMessage(), th);
return str;
}
} else {
string = extras.getString("af");
}
} catch (Throwable th3) {
th = th3;
}
}
private static String AFInAppEventType(String str) {
int indexOf = str.indexOf(63);
if ((indexOf == -1 ? (char) 7 : 'O') == 7) {
int i11 = onDeepLinking + 61;
onAppOpenAttribution = i11 % 128;
int i12 = i11 % 2;
return "";
}
String substring = str.substring(indexOf);
int i13 = onDeepLinking + 55;
onAppOpenAttribution = i13 % 128;
int i14 = i13 % 2;
return substring;
}
private static boolean AFInAppEventType(File file) {
if (file != null) {
int i11 = onAppOpenAttribution + 15;
onDeepLinking = i11 % 128;
int i12 = i11 % 2;
if (file.exists()) {
int i13 = onDeepLinking + 61;
onAppOpenAttribution = i13 % 128;
if (!(i13 % 2 != 0)) {
return false;
}
throw null;
}
}
int i14 = onAppOpenAttribution + 9;
onDeepLinking = i14 % 128;
int i15 = i14 % 2;
return true;
}
private int AFInAppEventType(SharedPreferences sharedPreferences, boolean z11) {
int i11 = onAppOpenAttribution + 113;
onDeepLinking = i11 % 128;
if ((i11 % 2 == 0 ? '9' : ')') != '9') {
return AFKeystoreWrapper(sharedPreferences, "appsFlyerInAppEventCount", z11);
}
AFKeystoreWrapper(sharedPreferences, "appsFlyerInAppEventCount", z11);
throw null;
}
}