Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 AFa1eSDK.java 源代码,内容仅作参考
package com.appsflyer.internal;
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.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Process;
import android.os.StrictMode;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.annotation.NonNull;
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.deeplink.DeepLinkListener;
import com.appsflyer.deeplink.DeepLinkResult;
import com.appsflyer.internal.AFa1uSDK;
import com.appsflyer.internal.AFb1iSDK;
import com.appsflyer.internal.AFc1bSDK;
import com.appsflyer.internal.AFc1uSDK;
import com.appsflyer.internal.AFd1nSDK;
import com.appsflyer.internal.components.network.http.ResponseNetwork;
import com.appsflyer.internal.platform_extension.PluginInfo;
import com.exponea.sdk.models.Constants;
import com.google.android.gms.common.GoogleApiAvailability;
import com.inappstory.sdk.stories.ui.widgets.readerscreen.generated.ElementGenerator;
import com.sumsub.sentry.Device;
import j$.util.DesugarTimeZone;
import java.io.BufferedReader;
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.nio.charset.Charset;
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.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.jmrtd.cbeff.ISO781611;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import sinet.startup.inDriver.data.OrdersData;
import x9.a;
public final class AFa1eSDK extends AppsFlyerLib {
public static final String AFInAppEventType;
public static final String AFKeystoreWrapper;
private static String afErrorLog = null;
private static AFa1eSDK afRDLog = null;
private static int onAttributionFailure = 0;
private static int onDeepLinking = 1;
private static int onResponse;
static AppsFlyerInAppPurchaseValidatorListener valueOf;
static final String values;
String AFLogger;
private Map<Long, String> AFLogger$LogLevel;
public AFa1cSDK afInfoLog;
private String getLevel;
private Application init;
private boolean onAppOpenAttributionNative;
private String onAttributionFailureNative;
@NonNull
private final AFc1ySDK onConversionDataFail;
private SharedPreferences onConversionDataSuccess;
private boolean onInstallConversionFailureNative;
private Map<String, Object> onResponseErrorNative;
private AFb1lSDK onResponseNative;
public volatile AppsFlyerConversionListener AFInAppEventParameterName = null;
private long afDebugLog = -1;
private long afWarnLog = -1;
private long AFVersionDeclaration = TimeUnit.SECONDS.toMillis(5);
private boolean afErrorLogForExcManagerOnly = false;
private final AFb1xSDK onInstallConversionDataLoadedNative = new AFb1xSDK();
private boolean AppsFlyer2dXConversionCallback = false;
private boolean onDeepLinkingNative = false;
private final Executor onAppOpenAttribution = Executors.newSingleThreadExecutor();
static class AnonymousClass5 {
static final int[] valueOf;
static {
int[] iArr = new int[AppsFlyerProperties.EmailsCryptType.values().length];
valueOf = iArr;
try {
iArr[AppsFlyerProperties.EmailsCryptType.SHA256.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
valueOf[AppsFlyerProperties.EmailsCryptType.NONE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
}
}
public class AFa1vSDK implements Runnable {
private final AFa1qSDK AFInAppEventParameterName;
AFa1vSDK(AFa1eSDK aFa1eSDK, AFa1qSDK aFa1qSDK, byte b15) {
this(aFa1qSDK);
}
@Override
public final void run() {
AFa1eSDK.valueOf(AFa1eSDK.this, this.AFInAppEventParameterName);
}
private AFa1vSDK(AFa1qSDK aFa1qSDK) {
this.AFInAppEventParameterName = aFa1qSDK;
}
}
class AFa1wSDK implements AFc1cSDK {
private AFa1wSDK() {
}
@Override
public final void AFInAppEventParameterName(AFd1zSDK<?> aFd1zSDK) {
}
@Override
public final void AFInAppEventType(AFd1zSDK<?> aFd1zSDK, AFd1ySDK aFd1ySDK) {
JSONObject AFKeystoreWrapper;
AFb1uSDK AFInAppEventParameterName;
if (aFd1zSDK instanceof AFd1hSDK) {
AFd1hSDK aFd1hSDK = (AFd1hSDK) aFd1zSDK;
boolean z15 = aFd1zSDK instanceof AFd1fSDK;
if (z15 && values()) {
AFd1fSDK aFd1fSDK = (AFd1fSDK) aFd1zSDK;
if (aFd1fSDK.valueOf == AFd1ySDK.SUCCESS || aFd1fSDK.AFInAppEventType == 1) {
AFe1pSDK aFe1pSDK = new AFe1pSDK(aFd1fSDK, AFa1eSDK.this.AFInAppEventType().values());
AFc1bSDK AFVersionDeclaration = AFa1eSDK.this.AFInAppEventType().AFVersionDeclaration();
AFVersionDeclaration.AFKeystoreWrapper.execute(new AFc1bSDK.AnonymousClass4(aFe1pSDK));
}
}
if (aFd1ySDK == AFd1ySDK.SUCCESS) {
AFa1eSDK aFa1eSDK = AFa1eSDK.this;
aFa1eSDK.values(AFa1eSDK.AFInAppEventType(aFa1eSDK)).AFInAppEventParameterName("sentSuccessfully", "true");
if (!(aFd1zSDK instanceof AFd1eSDK) && (AFInAppEventParameterName = new AFe1ySDK(AFa1eSDK.AFInAppEventType(AFa1eSDK.this)).AFInAppEventParameterName()) != null && AFInAppEventParameterName.AFKeystoreWrapper()) {
String str = AFInAppEventParameterName.valueOf;
AFLogger.afDebugLog("Resending Uninstall token to AF servers: ".concat(String.valueOf(str)));
AFe1ySDK.valueOf(str);
}
ResponseNetwork responseNetwork = ((AFd1oSDK) aFd1hSDK).afErrorLog;
if (responseNetwork != null && (AFKeystoreWrapper = AFb1vSDK.AFKeystoreWrapper((String) responseNetwork.getBody())) != null) {
AFa1eSDK.valueOf(AFa1eSDK.this, AFKeystoreWrapper.optBoolean("send_background", false));
}
if (z15) {
AFa1eSDK.AFKeystoreWrapper(AFa1eSDK.this, System.currentTimeMillis());
return;
}
return;
}
return;
}
if ((aFd1zSDK instanceof AFe1pSDK) && aFd1ySDK != AFd1ySDK.SUCCESS) {
AFe1rSDK aFe1rSDK = new AFe1rSDK(AFa1eSDK.this.AFInAppEventType());
AFc1bSDK AFVersionDeclaration2 = AFa1eSDK.this.AFInAppEventType().AFVersionDeclaration();
AFVersionDeclaration2.AFKeystoreWrapper.execute(new AFc1bSDK.AnonymousClass4(aFe1rSDK));
}
}
@Override
public final void values(AFd1zSDK<?> aFd1zSDK) {
if (aFd1zSDK instanceof AFd1fSDK) {
AFa1eSDK.this.AFInAppEventType().afDebugLog().AFKeystoreWrapper(((AFd1hSDK) aFd1zSDK).afInfoLog.AFLogger);
}
}
AFa1wSDK(AFa1eSDK aFa1eSDK, byte b15) {
this();
}
private boolean values() {
return AFa1eSDK.this.AFInAppEventParameterName != null;
}
}
public class AFa1ySDK implements Runnable {
private final AFa1qSDK values;
AFa1ySDK(AFa1eSDK aFa1eSDK, AFa1qSDK aFa1qSDK, byte b15) {
this(aFa1qSDK);
}
@Override
public final void run() {
AFd1hSDK aFd1hSDK;
if (this.values.AFInAppEventParameterName()) {
AFd1fSDK aFd1fSDK = new AFd1fSDK(this.values, AFa1eSDK.this.AFInAppEventType());
aFd1fSDK.AFVersionDeclaration = AFa1eSDK.values(AFa1eSDK.this);
aFd1hSDK = aFd1fSDK;
} else {
aFd1hSDK = new AFd1hSDK(this.values, AFa1eSDK.this.AFInAppEventType());
}
AFc1bSDK AFVersionDeclaration = AFa1eSDK.this.AFInAppEventType().AFVersionDeclaration();
AFVersionDeclaration.AFKeystoreWrapper.execute(new AFc1bSDK.AnonymousClass4(aFd1hSDK));
}
private AFa1ySDK(AFa1qSDK aFa1qSDK) {
this.values = aFa1qSDK;
}
}
static {
values();
values = "262";
AFKeystoreWrapper = "6.12";
afErrorLog = "https://%sstats.%s/stats";
StringBuilder sb5 = new StringBuilder();
sb5.append("6.12");
sb5.append("/androidevent?buildnumber=6.12.2&app_id=");
AFInAppEventType = sb5.toString();
valueOf = null;
afRDLog = new AFa1eSDK();
int i15 = onDeepLinking + 93;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
}
public AFa1eSDK() {
AFVersionDeclaration.init();
this.onConversionDataFail = new AFc1ySDK();
AFc1bSDK AFVersionDeclaration = AFInAppEventType().AFVersionDeclaration();
AFVersionDeclaration.values.add(new AFa1wSDK(this, (byte) 0));
}
static void AFInAppEventParameterName(AFa1eSDK aFa1eSDK) {
int i15 = onDeepLinking + 75;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
aFa1eSDK.afWarnLog();
int i17 = onDeepLinking + 21;
onAttributionFailure = i17 % 128;
if (i17 % 2 != 0) {
int i18 = 65 / 0;
}
}
static Application AFInAppEventType(AFa1eSDK aFa1eSDK) {
int i15 = onAttributionFailure + 33;
int i16 = i15 % 128;
onDeepLinking = i16;
int i17 = i15 % 2;
Application application = aFa1eSDK.init;
if (i17 == 0) {
int i18 = 57 / 0;
}
int i19 = i16 + 35;
onAttributionFailure = i19 % 128;
if (i19 % 2 == 0) {
return application;
}
throw null;
}
static long AFKeystoreWrapper(AFa1eSDK aFa1eSDK, long j15) {
int i15 = onDeepLinking;
int i16 = i15 + 95;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
aFa1eSDK.afWarnLog = j15;
if (i17 != 0) {
throw null;
}
int i18 = i15 + 77;
onAttributionFailure = i18 % 128;
int i19 = i18 % 2;
return j15;
}
private boolean AFLogger() {
boolean AFKeystoreWrapper2;
int i15 = onAttributionFailure + 119;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
AFKeystoreWrapper2 = AFInAppEventType().AFInAppEventParameterName().AFKeystoreWrapper("AF_PREINSTALL_DISABLED");
int i16 = 93 / 0;
} else {
AFKeystoreWrapper2 = AFInAppEventType().AFInAppEventParameterName().AFKeystoreWrapper("AF_PREINSTALL_DISABLED");
}
int i17 = onAttributionFailure + 79;
onDeepLinking = i17 % 128;
if (i17 % 2 != 0) {
return AFKeystoreWrapper2;
}
throw null;
}
private boolean AFLogger$LogLevel() {
Map<String, Object> map = this.onResponseErrorNative;
if (map != null) {
int i15 = onAttributionFailure + 75;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
if (!map.isEmpty()) {
int i17 = onDeepLinking + 5;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
return true;
}
return false;
}
return false;
}
@NonNull
private AFf1pSDK[] AFVersionDeclaration() {
int i15 = onAttributionFailure + 73;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFf1pSDK[] valueOf2 = AFInAppEventType().AFLogger$LogLevel().valueOf();
int i17 = onAttributionFailure + 43;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
return valueOf2;
}
private void afDebugLog() {
AFf1oSDK AFLogger$LogLevel = AFInAppEventType().AFLogger$LogLevel();
AFf1qSDK afErrorLog2 = afErrorLog();
Runnable AFKeystoreWrapper2 = AFKeystoreWrapper(afErrorLog2);
AFLogger$LogLevel.AFKeystoreWrapper(afErrorLog2);
AFLogger$LogLevel.AFKeystoreWrapper(new AFf1jSDK(AFKeystoreWrapper2));
AFLogger$LogLevel.AFKeystoreWrapper(new AFf1nSDK(AFKeystoreWrapper2, AFInAppEventType()));
AFLogger$LogLevel.AFKeystoreWrapper(new AFf1mSDK(AFKeystoreWrapper2, AFInAppEventType()));
if (!AFLogger()) {
int i15 = onAttributionFailure + 21;
onDeepLinking = i15 % 128;
if (i15 % 2 != 0) {
AFLogger$LogLevel.values(this.init, AFKeystoreWrapper2, AFInAppEventType());
int i16 = onDeepLinking + 29;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
} else {
AFLogger$LogLevel.values(this.init, AFKeystoreWrapper2, AFInAppEventType());
throw null;
}
}
AFf1pSDK[] valueOf2 = AFLogger$LogLevel.valueOf();
int length = valueOf2.length;
int i18 = 0;
while (i18 < length) {
int i19 = onDeepLinking + 1;
onAttributionFailure = i19 % 128;
if (i19 % 2 != 0) {
valueOf2[i18].valueOf(this.init);
i18 += 12;
} else {
valueOf2[i18].valueOf(this.init);
i18++;
}
int i25 = onDeepLinking + 51;
onAttributionFailure = i25 % 128;
int i26 = i25 % 2;
}
}
private AFf1qSDK afErrorLog() {
AFf1qSDK aFf1qSDK = new AFf1qSDK(new Runnable() {
@Override
public final void run() {
AFa1eSDK.this.afErrorLogForExcManagerOnly();
}
}, AFInAppEventType().AFInAppEventType());
int i15 = onDeepLinking + 45;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
return aFf1qSDK;
}
throw null;
}
public void afErrorLogForExcManagerOnly() {
ScheduledExecutorService valueOf2;
Runnable runnable;
long j15;
int i15 = onAttributionFailure + 25;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
valueOf2 = AFInAppEventType().valueOf();
runnable = new Runnable() {
@Override
public final void run() {
AFa1eSDK.this.getLevel();
}
};
j15 = 1;
} else {
valueOf2 = AFInAppEventType().valueOf();
runnable = new Runnable() {
@Override
public final void run() {
AFa1eSDK.this.getLevel();
}
};
j15 = 0;
}
AFInAppEventParameterName(valueOf2, runnable, j15, TimeUnit.MILLISECONDS);
}
private static void afInfoLog(Context context) {
try {
if ((context.getPackageManager().getPackageInfo(context.getPackageName(), 0).applicationInfo.flags & 32768) == 0) {
return;
}
int i15 = onDeepLinking + 9;
onAttributionFailure = i15 % 128;
if (i15 % 2 != 0) {
int i16 = 16 / 0;
}
} catch (Exception e15) {
AFLogger.afErrorLogForExcManagerOnly("checkBackupRules Exception", e15);
AFLogger.afRDLog("checkBackupRules Exception: ".concat(String.valueOf(e15)));
}
}
private static String afRDLog() {
int i15 = onAttributionFailure + 121;
onDeepLinking = i15 % 128;
if (i15 % 2 != 0) {
return values(AppsFlyerProperties.APP_ID);
}
values(AppsFlyerProperties.APP_ID);
throw null;
}
private void afWarnLog() {
int i15 = onDeepLinking + 21;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
if (AFd1lSDK.afInfoLog()) {
int i17 = onAttributionFailure + 83;
onDeepLinking = i17 % 128;
if (i17 % 2 != 0) {
return;
} else {
throw null;
}
}
AFc1xSDK AFInAppEventType2 = AFInAppEventType();
AFc1bSDK AFVersionDeclaration = AFInAppEventType2.AFVersionDeclaration();
AFVersionDeclaration.AFKeystoreWrapper.execute(new AFc1bSDK.AnonymousClass4(new AFd1lSDK(AFInAppEventType2)));
}
public void getLevel() {
try {
AFe1lSDK aFe1lSDK = new AFe1lSDK();
if (AFInAppEventParameterName(aFe1lSDK, values(this.init))) {
int i15 = onAttributionFailure + 91;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
valueOf(aFe1lSDK);
int i17 = onAttributionFailure + 1;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
}
int i19 = onDeepLinking + 53;
onAttributionFailure = i19 % 128;
int i25 = i19 % 2;
} catch (Throwable th4) {
AFLogger.afErrorLog(th4.getMessage(), th4);
}
}
static void valueOf(AFa1eSDK aFa1eSDK, AFa1qSDK aFa1qSDK) {
int i15 = onDeepLinking + 55;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
aFa1eSDK.valueOf(aFa1qSDK);
int i17 = onDeepLinking + 83;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
}
static void values() {
onResponse = 139;
}
@Override
public final void addPushNotificationDeepLinkPath(String... strArr) {
int i15 = onDeepLinking + 95;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
List<String> asList = Arrays.asList(strArr);
List<List<String>> list = AFInAppEventType().AppsFlyer2dXConversionCallback().AFInAppEventType;
if (!list.contains(asList)) {
list.add(asList);
int i16 = onDeepLinking + 23;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
return;
}
return;
}
AFInAppEventType().AppsFlyer2dXConversionCallback().AFInAppEventType.contains(Arrays.asList(strArr));
throw null;
}
@Override
public final void anonymizeUser(boolean z15) {
int i15 = onDeepLinking + 99;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("anonymizeUser", String.valueOf(z15));
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, z15);
int i17 = onDeepLinking + 5;
onAttributionFailure = i17 % 128;
if (i17 % 2 != 0) {
int i18 = 34 / 0;
}
}
@Override
public final void appendParametersToDeepLinkingURL(String str, Map<String, String> map) {
int i15 = onDeepLinking + 1;
onAttributionFailure = i15 % 128;
if (i15 % 2 != 0) {
AFb1sSDK AppsFlyer2dXConversionCallback = AFInAppEventType().AppsFlyer2dXConversionCallback();
AppsFlyer2dXConversionCallback.AFKeystoreWrapper = str;
AppsFlyer2dXConversionCallback.values = map;
int i16 = 14 / 0;
return;
}
AFb1sSDK AppsFlyer2dXConversionCallback2 = AFInAppEventType().AppsFlyer2dXConversionCallback();
AppsFlyer2dXConversionCallback2.AFKeystoreWrapper = str;
AppsFlyer2dXConversionCallback2.values = map;
}
@Override
public final void enableFacebookDeferredApplinks(boolean z15) {
int i15 = onAttributionFailure;
int i16 = i15 + 49;
onDeepLinking = i16 % 128;
int i17 = i16 % 2;
this.onDeepLinkingNative = z15;
int i18 = i15 + 33;
onDeepLinking = i18 % 128;
int i19 = i18 % 2;
}
@Override
public final String getAppsFlyerUID(@NonNull Context context) {
int i15 = onAttributionFailure + 105;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("getAppsFlyerUID", new String[0]);
} else {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("getAppsFlyerUID", new String[0]);
}
}
@Override
public final String getAttributionId(Context context) {
try {
String AFInAppEventType2 = new AFa1dSDK(context, AFInAppEventType()).AFInAppEventType();
int i15 = onAttributionFailure + 19;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
return AFInAppEventType2;
} catch (Throwable th4) {
AFLogger.afErrorLog("Could not collect facebook attribution id. ", th4);
return null;
}
}
@Override
public final String getHostName() {
int i15 = onDeepLinking + 63;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
String AFInAppEventParameterName = AFInAppEventType().onInstallConversionFailureNative().AFInAppEventParameterName();
int i17 = onAttributionFailure + 83;
onDeepLinking = i17 % 128;
if (i17 % 2 != 0) {
return AFInAppEventParameterName;
}
throw null;
}
@Override
public final String getHostPrefix() {
String valueOf2;
int i15 = onDeepLinking + 51;
onAttributionFailure = i15 % 128;
if (i15 % 2 != 0) {
valueOf2 = AFInAppEventType().onInstallConversionFailureNative().valueOf();
int i16 = 58 / 0;
} else {
valueOf2 = AFInAppEventType().onInstallConversionFailureNative().valueOf();
}
int i17 = onAttributionFailure + 119;
onDeepLinking = i17 % 128;
if (i17 % 2 != 0) {
return valueOf2;
}
throw null;
}
@Override
public final String getOutOfStore(Context context) {
String string;
int i15 = onDeepLinking + 45;
onAttributionFailure = i15 % 128;
if (i15 % 2 != 0) {
string = AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.AF_STORE_FROM_API);
int i16 = 36 / 0;
} else {
string = AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.AF_STORE_FROM_API);
}
}
@Override
public final String getSdkVersion() {
int i15 = onDeepLinking + 91;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
AFc1xSDK AFInAppEventType2 = AFInAppEventType();
AFInAppEventType2.afErrorLogForExcManagerOnly().AFInAppEventParameterName("getSdkVersion", new String[0]);
AFInAppEventType2.AFInAppEventParameterName();
String valueOf2 = AFb1gSDK.valueOf();
int i17 = onAttributionFailure + 1;
onDeepLinking = i17 % 128;
if (i17 % 2 == 0) {
int i18 = 93 / 0;
}
return valueOf2;
}
@Override
public final AppsFlyerLib init(@NonNull String str, AppsFlyerConversionListener appsFlyerConversionListener, @NonNull Context context) {
String str2;
if (this.onAppOpenAttributionNative) {
return this;
}
this.onAppOpenAttributionNative = true;
AFInAppEventType().afWarnLog().AFInAppEventParameterName = str;
AFa1aSDK.AFInAppEventType(str);
if (context != null) {
this.init = (Application) context.getApplicationContext();
AFKeystoreWrapper(context);
AFInAppEventType().afDebugLog().values = System.currentTimeMillis();
AFInAppEventType().onConversionDataSuccess().values();
AFInAppEventType().afRDLog().AFInAppEventParameterName(new AFd1bSDK() {
@Override
public final void onRemoteConfigUpdateFinished(AFd1dSDK aFd1dSDK) {
AFa1eSDK.this.AFInAppEventParameterName(aFd1dSDK);
}
});
afDebugLog();
this.onConversionDataFail.afWarnLog().AFInAppEventParameterName();
int i15 = onAttributionFailure + 85;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
} else {
AFLogger.afWarnLog("context is null, Google Install Referrer will be not initialized");
}
AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
String[] strArr = new String[2];
strArr[0] = str;
if (appsFlyerConversionListener == null) {
int i17 = onDeepLinking + 47;
onAttributionFailure = i17 % 128;
if (i17 % 2 == 0) {
str2 = "null";
} else {
throw null;
}
} else {
int i18 = onAttributionFailure + 69;
onDeepLinking = i18 % 128;
int i19 = i18 % 2;
str2 = "conversionDataListener";
}
strArr[1] = str2;
afErrorLogForExcManagerOnly.AFInAppEventParameterName("init", strArr);
AFLogger.AFInAppEventType(String.format("Initializing AppsFlyer SDK: (v%s.%s)", "6.12.2", values));
this.AFInAppEventParameterName = appsFlyerConversionListener;
int i25 = onAttributionFailure + ISO781611.SMT_TAG;
onDeepLinking = i25 % 128;
if (i25 % 2 == 0) {
int i26 = 27 / 0;
}
return this;
}
@Override
public final boolean isPreInstalledApp(Context context) {
int i15 = onDeepLinking + 79;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
try {
} catch (PackageManager.NameNotFoundException e15) {
AFLogger.afErrorLog("Could not check if app is pre installed", e15);
}
if ((context.getPackageManager().getApplicationInfo(context.getPackageName(), 0).flags & 1) != 0) {
int i17 = onDeepLinking + 1;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
return true;
}
int i19 = onDeepLinking + 113;
onAttributionFailure = i19 % 128;
int i25 = i19 % 2;
return false;
}
@Override
@Deprecated
public final boolean isStopped() {
int i15 = onDeepLinking + 49;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
boolean AFKeystoreWrapper2 = AFInAppEventType().afWarnLog().AFKeystoreWrapper();
int i17 = onDeepLinking + 103;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
return AFKeystoreWrapper2;
}
@Override
public final void logEvent(Context context, String str, Map<String, Object> map) {
int i15 = onDeepLinking + 15;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
logEvent(context, str, map, null);
if (i16 != 0) {
int i17 = 68 / 0;
}
int i18 = onDeepLinking + 103;
onAttributionFailure = i18 % 128;
if (i18 % 2 != 0) {
int i19 = 62 / 0;
}
}
@Override
public final void logLocation(Context context, double d15, double d16) {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("logLocation", String.valueOf(d15), String.valueOf(d16));
HashMap hashMap = new HashMap();
hashMap.put(AFInAppEventParameterName.LONGITUDE, Double.toString(d16));
hashMap.put(AFInAppEventParameterName.LATITUDE, Double.toString(d15));
AFInAppEventType(context, AFInAppEventType.LOCATION_COORDINATES, hashMap);
int i15 = onDeepLinking + 115;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
}
@Override
public final void logSession(Context context) {
int i15 = onAttributionFailure + 41;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("logSession", new String[0]);
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName();
AFInAppEventType(context, AFe1nSDK.logSession);
AFInAppEventType(context, null, null);
int i17 = onDeepLinking + 47;
onAttributionFailure = i17 % 128;
if (i17 % 2 == 0) {
} else {
throw null;
}
}
@Override
public final void onPause(Context context) {
int i15 = onAttributionFailure + 5;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFInAppEventType().onResponseNative().AFInAppEventType(context);
int i17 = onDeepLinking + 43;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
}
@Override
@Deprecated
public final void performOnAppAttribution(@NonNull Context context, @NonNull URI uri) {
int i15 = onDeepLinking + 121;
onAttributionFailure = i15 % 128;
if (i15 % 2 != 0) {
int i16 = 83 / 0;
}
AFb1sSDK AppsFlyer2dXConversionCallback = AFInAppEventType().AppsFlyer2dXConversionCallback();
StringBuilder sb5 = new StringBuilder("Link is \"");
sb5.append(uri);
sb5.append("\"");
AppsFlyer2dXConversionCallback.AFKeystoreWrapper(sb5.toString(), DeepLinkResult.Error.NETWORK);
}
@Override
public final void performOnDeepLinking(@NonNull final Intent intent, @NonNull Context context) {
if (intent == null) {
AFInAppEventType().AppsFlyer2dXConversionCallback().AFKeystoreWrapper("performOnDeepLinking was called with null intent", DeepLinkResult.Error.DEVELOPER_ERROR);
return;
}
if (context == null) {
int i15 = onAttributionFailure + ISO781611.SMT_TAG;
onDeepLinking = i15 % 128;
if (i15 % 2 != 0) {
AFInAppEventType().AppsFlyer2dXConversionCallback().AFKeystoreWrapper("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
int i16 = onAttributionFailure + 113;
onDeepLinking = i16 % 128;
int i17 = i16 % 2;
return;
}
AFInAppEventType().AppsFlyer2dXConversionCallback().AFKeystoreWrapper("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
throw null;
}
final Context applicationContext = context.getApplicationContext();
AFKeystoreWrapper(applicationContext);
AFInAppEventType().AFInAppEventType().execute(new Runnable() {
@Override
public final void run() {
AFa1eSDK.this.values(applicationContext, intent);
}
});
}
@Override
public final void registerConversionListener(Context context, AppsFlyerConversionListener appsFlyerConversionListener) {
int i15 = onAttributionFailure + 59;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("registerConversionListener", new String[0]);
AFKeystoreWrapper(appsFlyerConversionListener);
int i17 = onAttributionFailure + 93;
onDeepLinking = i17 % 128;
if (i17 % 2 != 0) {
} else {
throw null;
}
}
@Override
public final void registerValidatorListener(Context context, AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener) {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("registerValidatorListener", new String[0]);
AFLogger.afDebugLog("registerValidatorListener called");
if (appsFlyerInAppPurchaseValidatorListener == null) {
int i15 = onAttributionFailure + 113;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFLogger.afDebugLog("registerValidatorListener null listener");
int i17 = onDeepLinking + 3;
onAttributionFailure = i17 % 128;
if (i17 % 2 == 0) {
return;
} else {
throw null;
}
}
valueOf = appsFlyerInAppPurchaseValidatorListener;
}
@Override
public final void sendAdImpression(Context context, Map<String, Object> map) {
int AFInAppEventType2 = AFInAppEventType(values(context));
HashMap hashMap = new HashMap();
hashMap.put("ad_network", map);
hashMap.put("adimpression_counter", Integer.valueOf(AFInAppEventType2));
AFKeystoreWrapper(context, hashMap, new AFe1kSDK());
int i15 = onDeepLinking + 17;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
}
@Override
public final void sendAdRevenue(Context context, Map<String, Object> map) {
int AFInAppEventParameterName = AFInAppEventParameterName(values(context));
HashMap hashMap = new HashMap();
hashMap.put("ad_network", map);
hashMap.put("adrevenue_counter", Integer.valueOf(AFInAppEventParameterName));
AFKeystoreWrapper(context, hashMap, new AFe1oSDK());
int i15 = onDeepLinking + 59;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
} else {
throw null;
}
}
@Override
public final void sendInAppPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
int i15 = onAttributionFailure + 59;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFKeystoreWrapper(context);
PurchaseHandler afErrorLog2 = AFInAppEventType().afErrorLog();
if (afErrorLog2.AFInAppEventParameterName(map, purchaseValidationCallback, "purchases")) {
AFd1qSDK aFd1qSDK = new AFd1qSDK(map, purchaseValidationCallback, afErrorLog2.values);
AFc1bSDK aFc1bSDK = afErrorLog2.valueOf;
aFc1bSDK.AFKeystoreWrapper.execute(new AFc1bSDK.AnonymousClass4(aFd1qSDK));
}
int i17 = onDeepLinking + 25;
onAttributionFailure = i17 % 128;
if (i17 % 2 == 0) {
} else {
throw null;
}
}
@Override
public final void sendPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
int i15 = onDeepLinking + 63;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
AFKeystoreWrapper(context);
PurchaseHandler afErrorLog2 = AFInAppEventType().afErrorLog();
if (afErrorLog2.AFInAppEventParameterName(map, purchaseValidationCallback, "subscriptions")) {
AFd1wSDK aFd1wSDK = new AFd1wSDK(map, purchaseValidationCallback, afErrorLog2.values);
AFc1bSDK aFc1bSDK = afErrorLog2.valueOf;
aFc1bSDK.AFKeystoreWrapper.execute(new AFc1bSDK.AnonymousClass4(aFd1wSDK));
}
int i17 = onDeepLinking + 35;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
}
@Override
public final void sendPushNotificationData(Activity activity) {
long j15;
int i15 = onAttributionFailure + 85;
onDeepLinking = i15 % 128;
if (i15 % 2 != 0) {
if (activity != null && activity.getIntent() != null) {
AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
String localClassName = activity.getLocalClassName();
StringBuilder sb5 = new StringBuilder("activity_intent_");
sb5.append(activity.getIntent().toString());
afErrorLogForExcManagerOnly.AFInAppEventParameterName("sendPushNotificationData", localClassName, sb5.toString());
} else if (activity != null) {
int i16 = onAttributionFailure + 3;
onDeepLinking = i16 % 128;
int i17 = i16 % 2;
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("sendPushNotificationData", activity.getLocalClassName(), "activity_intent_null");
} else {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("sendPushNotificationData", "activity_null");
}
String AFInAppEventParameterName = AFInAppEventParameterName(activity);
this.getLevel = AFInAppEventParameterName;
if (AFInAppEventParameterName != null) {
long currentTimeMillis = System.currentTimeMillis();
if (this.AFLogger$LogLevel == null) {
AFLogger.afInfoLog("pushes: initializing pushes history..");
this.AFLogger$LogLevel = new ConcurrentHashMap();
j15 = currentTimeMillis;
} else {
try {
long j16 = AppsFlyerProperties.getInstance().getLong("pushPayloadMaxAging", 1800000L);
j15 = currentTimeMillis;
for (Long l15 : this.AFLogger$LogLevel.keySet()) {
try {
JSONObject jSONObject = new JSONObject(this.getLevel);
JSONObject jSONObject2 = new JSONObject(this.AFLogger$LogLevel.get(l15));
if (!(!jSONObject.opt("pid").equals(jSONObject2.opt("pid")))) {
int i18 = onDeepLinking + 53;
onAttributionFailure = i18 % 128;
int i19 = i18 % 2;
if (jSONObject.opt("c").equals(jSONObject2.opt("c"))) {
StringBuilder sb6 = new StringBuilder("PushNotificationMeasurement: A previous payload with same PID and campaign was already acknowledged! (old: ");
sb6.append(jSONObject2);
sb6.append(", new: ");
sb6.append(jSONObject);
sb6.append(")");
AFLogger.afInfoLog(sb6.toString());
this.getLevel = null;
int i25 = onAttributionFailure + 73;
onDeepLinking = i25 % 128;
if (i25 % 2 == 0) {
int i26 = 35 / 0;
return;
}
return;
}
}
if (currentTimeMillis - l15.longValue() > j16) {
this.AFLogger$LogLevel.remove(l15);
}
if (l15.longValue() <= j15) {
j15 = l15.longValue();
int i27 = onAttributionFailure + 113;
onDeepLinking = i27 % 128;
int i28 = i27 % 2;
}
} catch (Throwable th4) {
th = th4;
StringBuilder sb7 = new StringBuilder("Error while handling push notification measurement: ");
sb7.append(th.getClass().getSimpleName());
AFLogger.afErrorLog(sb7.toString(), th);
if (this.AFLogger$LogLevel.size() == AppsFlyerProperties.getInstance().getInt("pushPayloadHistorySize", 2)) {
}
this.AFLogger$LogLevel.put(Long.valueOf(currentTimeMillis), this.getLevel);
start(activity);
return;
}
}
} catch (Throwable th5) {
th = th5;
j15 = currentTimeMillis;
}
}
if (this.AFLogger$LogLevel.size() == AppsFlyerProperties.getInstance().getInt("pushPayloadHistorySize", 2)) {
StringBuilder sb8 = new StringBuilder("pushes: removing oldest overflowing push (oldest push:");
sb8.append(j15);
sb8.append(")");
AFLogger.afInfoLog(sb8.toString());
this.AFLogger$LogLevel.remove(Long.valueOf(j15));
}
this.AFLogger$LogLevel.put(Long.valueOf(currentTimeMillis), this.getLevel);
start(activity);
return;
}
return;
}
throw null;
}
@Override
public final void setAdditionalData(Map<String, Object> map) {
int i15 = onAttributionFailure + 29;
onDeepLinking = i15 % 128;
if (i15 % 2 != 0) {
if (map != null) {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setAdditionalData", map.toString());
AppsFlyerProperties.getInstance().setCustomData(new JSONObject(map).toString());
}
int i16 = onAttributionFailure + 99;
onDeepLinking = i16 % 128;
int i17 = i16 % 2;
return;
}
throw null;
}
@Override
public final void setAndroidIdData(String str) {
int i15 = onAttributionFailure + 23;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
String[] strArr = new String[0];
strArr[0] = str;
afErrorLogForExcManagerOnly.AFInAppEventParameterName("setAndroidIdData", strArr);
} else {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setAndroidIdData", str);
}
this.AFLogger = str;
}
@Override
public final void setAppId(String str) {
int i15 = onAttributionFailure + 83;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
String[] strArr = new String[0];
strArr[1] = str;
afErrorLogForExcManagerOnly.AFInAppEventParameterName("setAppId", strArr);
} else {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setAppId", str);
}
AFInAppEventType(AppsFlyerProperties.APP_ID, str);
int i16 = onDeepLinking + 53;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
}
@Override
public final void setAppInviteOneLink(String str) {
int i15 = onDeepLinking + 53;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setAppInviteOneLink", str);
AFLogger.afInfoLog("setAppInviteOneLink = ".concat(String.valueOf(str)));
if (str != null) {
int i17 = onAttributionFailure + 91;
onDeepLinking = i17 % 128;
if (i17 % 2 == 0) {
int i18 = 2 / 0;
}
AFInAppEventType(AppsFlyerProperties.ONELINK_ID, str);
}
AppsFlyerProperties.getInstance().remove(AppsFlyerProperties.ONELINK_DOMAIN);
AppsFlyerProperties.getInstance().remove(AppsFlyerProperties.ONELINK_VERSION);
AppsFlyerProperties.getInstance().remove(AppsFlyerProperties.ONELINK_SCHEME);
int i19 = onAttributionFailure + 121;
onDeepLinking = i19 % 128;
int i25 = i19 % 2;
AFInAppEventType(AppsFlyerProperties.ONELINK_ID, str);
}
@Override
public final void setCollectAndroidID(boolean z15) {
int i15 = onAttributionFailure + 107;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setCollectAndroidID", String.valueOf(z15));
} else {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setCollectAndroidID", String.valueOf(z15));
}
AFInAppEventType(AppsFlyerProperties.COLLECT_ANDROID_ID, Boolean.toString(z15));
AFInAppEventType(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, Boolean.toString(z15));
}
@Override
public final void setCollectIMEI(boolean z15) {
int i15 = onAttributionFailure + 79;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
String[] strArr = new String[0];
strArr[0] = String.valueOf(z15);
afErrorLogForExcManagerOnly.AFInAppEventParameterName("setCollectIMEI", strArr);
} else {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setCollectIMEI", String.valueOf(z15));
}
AFInAppEventType(AppsFlyerProperties.COLLECT_IMEI, Boolean.toString(z15));
AFInAppEventType(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, Boolean.toString(z15));
int i16 = onDeepLinking + 59;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
}
@Override
@Deprecated
public final void setCollectOaid(boolean z15) {
int i15 = onDeepLinking + 29;
onAttributionFailure = i15 % 128;
if (i15 % 2 != 0) {
AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
String[] strArr = new String[0];
strArr[1] = String.valueOf(z15);
afErrorLogForExcManagerOnly.AFInAppEventParameterName("setCollectOaid", strArr);
} else {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setCollectOaid", String.valueOf(z15));
}
AFInAppEventType(AppsFlyerProperties.COLLECT_OAID, Boolean.toString(z15));
}
@Override
public final void setCurrencyCode(String str) {
int i15 = onAttributionFailure + ISO781611.SMT_TAG;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
String[] strArr = new String[0];
strArr[1] = str;
afErrorLogForExcManagerOnly.AFInAppEventParameterName("setCurrencyCode", strArr);
} else {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setCurrencyCode", str);
}
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.CURRENCY_CODE, str);
int i16 = onDeepLinking + 69;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
}
@Override
public final void setCustomerIdAndLogSession(String str, @NonNull Context context) {
if (context != null) {
int i15 = onDeepLinking + 63;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
if (AFKeystoreWrapper()) {
setCustomerUserId(str);
StringBuilder sb5 = new StringBuilder("CustomerUserId set: ");
sb5.append(str);
sb5.append(" - Initializing AppsFlyer Tacking");
AFLogger.afInfoLog(sb5.toString(), true);
String referrer = AppsFlyerProperties.getInstance().getReferrer(AFInAppEventType().values());
AFInAppEventType(context, AFe1nSDK.setCustomerIdAndLogSession);
String str2 = AFInAppEventType().afWarnLog().AFInAppEventParameterName;
if (referrer == null) {
referrer = "";
}
String str3 = referrer;
if (context instanceof Activity) {
int i17 = onAttributionFailure + 29;
onDeepLinking = i17 % 128;
if (i17 % 2 == 0) {
((Activity) context).getIntent();
int i18 = 72 / 0;
} else {
((Activity) context).getIntent();
}
}
AFKeystoreWrapper(context, null, null, str3, null);
return;
}
setCustomerUserId(str);
AFLogger.afInfoLog("waitForCustomerUserId is false; setting CustomerUserID: ".concat(String.valueOf(str)), true);
}
}
@Override
public final void setCustomerUserId(String str) {
int i15 = onDeepLinking + 83;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setCustomerUserId", str);
AFLogger.afInfoLog("setCustomerUserId = ".concat(String.valueOf(str)));
AFInAppEventType(AppsFlyerProperties.APP_USER_ID, str);
AFInAppEventType(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false);
int i17 = onDeepLinking + 119;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
}
@Override
public final void setDebugLog(boolean z15) {
AFLogger.LogLevel logLevel;
int i15 = onDeepLinking + 11;
onAttributionFailure = i15 % 128;
if (i15 % 2 != 0) {
int i16 = 83 / 0;
}
setLogLevel(logLevel);
int i17 = onDeepLinking + 103;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
}
@Override
public final void setDisableAdvertisingIdentifiers(boolean z15) {
boolean z16;
int i15 = onAttributionFailure + 15;
onDeepLinking = i15 % 128;
if (i15 % 2 != 0) {
AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z15)));
if (!z15) {
int i16 = onDeepLinking + 29;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
z16 = true;
} else {
int i18 = onDeepLinking + 35;
onAttributionFailure = i18 % 128;
int i19 = i18 % 2;
z16 = false;
}
AFa1cSDK.valueOf = Boolean.valueOf(z16);
AppsFlyerProperties.getInstance().remove("advertiserIdEnabled");
AppsFlyerProperties.getInstance().remove("advertiserId");
return;
}
AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z15)));
throw null;
}
@Override
public final void setDisableNetworkData(boolean z15) {
int i15 = onAttributionFailure + 15;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z15)));
AFInAppEventType(AppsFlyerProperties.DISABLE_NETWORK_DATA, z15);
int i17 = onDeepLinking + 93;
onAttributionFailure = i17 % 128;
if (i17 % 2 != 0) {
int i18 = 97 / 0;
}
}
@Override
public final void setExtension(String str) {
int i15 = onDeepLinking + 81;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setExtension", str);
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EXTENSION, str);
int i17 = onAttributionFailure + 65;
onDeepLinking = i17 % 128;
if (i17 % 2 != 0) {
} else {
throw null;
}
}
@Override
public final void setHost(String str, @NonNull String str2) {
String str3;
if (!(!AFb1uSDK.AFInAppEventType(str2))) {
AFLogger.afWarnLog("hostname was empty or null - call for setHost is skipped");
return;
}
int i15 = onAttributionFailure + 29;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
if (str != null) {
str3 = str.trim();
int i17 = onDeepLinking + 95;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
} else {
str3 = "";
}
AFc1dSDK.valueOf(new AFc1fSDK(str3, str2.trim()));
}
@Override
public final void setImeiData(String str) {
int i15 = onDeepLinking + 27;
onAttributionFailure = i15 % 128;
if (i15 % 2 != 0) {
AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
String[] strArr = new String[0];
strArr[1] = str;
afErrorLogForExcManagerOnly.AFInAppEventParameterName("setImeiData", strArr);
} else {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setImeiData", str);
}
AFInAppEventType().afWarnLog().values = str;
}
@Override
public final void setIsUpdate(boolean z15) {
int i15 = onAttributionFailure + 119;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setIsUpdate", String.valueOf(z15));
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.IS_UPDATE, z15);
int i17 = onAttributionFailure + 43;
onDeepLinking = i17 % 128;
if (i17 % 2 != 0) {
} else {
throw null;
}
}
@Override
public final void setLogLevel(@NonNull AFLogger.LogLevel logLevel) {
boolean z15 = false;
if (logLevel.getLevel() > AFLogger.LogLevel.NONE.getLevel()) {
int i15 = onDeepLinking + 85;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
z15 = true;
}
}
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("log", String.valueOf(z15));
AppsFlyerProperties.getInstance().set("logLevel", logLevel.getLevel());
int i16 = onDeepLinking + 95;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
}
@Override
public final void setMinTimeBetweenSessions(int i15) {
int i16 = onAttributionFailure + 77;
onDeepLinking = i16 % 128;
if (i16 % 2 == 0) {
this.AFVersionDeclaration = TimeUnit.SECONDS.toMillis(i15);
int i17 = 39 / 0;
} else {
this.AFVersionDeclaration = TimeUnit.SECONDS.toMillis(i15);
}
}
@Override
public final void setOaidData(String str) {
int i15 = onDeepLinking + 123;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setOaidData", str);
AFa1cSDK.values = str;
int i17 = onAttributionFailure + 95;
onDeepLinking = i17 % 128;
if (i17 % 2 != 0) {
} else {
throw null;
}
}
@Override
public final void setOneLinkCustomDomain(String... strArr) {
String format;
int i15 = onAttributionFailure + 77;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
Object[] objArr = new Object[0];
objArr[1] = Arrays.toString(strArr);
format = String.format("setOneLinkCustomDomain %s", objArr);
} else {
format = String.format("setOneLinkCustomDomain %s", Arrays.toString(strArr));
}
AFLogger.afDebugLog(format);
AFInAppEventType().AppsFlyer2dXConversionCallback().afDebugLog = strArr;
}
@Override
public final void setOutOfStore(String str) {
int i15 = onDeepLinking + 27;
onAttributionFailure = i15 % 128;
if (i15 % 2 != 0) {
int i16 = 65 / 0;
}
}
@Override
public final void setPartnerData(@NonNull String str, Map<String, Object> map) {
if (this.onResponseNative == null) {
this.onResponseNative = new AFb1lSDK();
}
AFb1lSDK aFb1lSDK = this.onResponseNative;
if (str != null) {
int i15 = onDeepLinking + 47;
onAttributionFailure = i15 % 128;
if (i15 % 2 != 0) {
int i16 = 92 / 0;
}
}
AFLogger.afWarnLog("Partner ID is missing or `null`");
}
@Override
public final void setPhoneNumber(String str) {
int i15 = onAttributionFailure + 35;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
this.onAttributionFailureNative = AFc1nSDK.AFInAppEventType(str);
if (i16 != 0) {
int i17 = onDeepLinking + 77;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
return;
}
throw null;
}
@Override
public final void setPluginInfo(@NonNull PluginInfo pluginInfo) {
int i15 = onAttributionFailure + 93;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
Objects.requireNonNull(pluginInfo);
AFInAppEventType().onInstallConversionDataLoadedNative().AFInAppEventParameterName(pluginInfo);
int i17 = onAttributionFailure + 25;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
}
@Override
public final void setPreinstallAttribution(String str, String str2, String str3) {
AFLogger.afDebugLog("setPreinstallAttribution API called");
JSONObject jSONObject = new JSONObject();
if (str != null) {
int i15 = onAttributionFailure + 93;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
try {
jSONObject.put("pid", str);
int i17 = onAttributionFailure + 17;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
} catch (JSONException e15) {
AFLogger.afErrorLog(e15.getMessage(), e15);
}
}
if (str2 != null) {
jSONObject.put("c", str2);
}
if (str3 != null) {
int i19 = onDeepLinking + 41;
onAttributionFailure = i19 % 128;
if (i19 % 2 == 0) {
jSONObject.put("af_siteid", str3);
} else {
jSONObject.put("af_siteid", str3);
throw null;
}
}
if (jSONObject.has("pid")) {
int i25 = onDeepLinking + 117;
onAttributionFailure = i25 % 128;
if (i25 % 2 == 0) {
AFInAppEventType("preInstallName", jSONObject.toString());
return;
} else {
AFInAppEventType("preInstallName", jSONObject.toString());
throw null;
}
}
AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
}
@Override
public final void setResolveDeepLinkURLs(String... strArr) {
int i15 = onAttributionFailure + 87;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFLogger.afDebugLog(String.format("setResolveDeepLinkURLs %s", Arrays.toString(strArr)));
AFb1sSDK AppsFlyer2dXConversionCallback = AFInAppEventType().AppsFlyer2dXConversionCallback();
AppsFlyer2dXConversionCallback.AFLogger.clear();
AppsFlyer2dXConversionCallback.AFLogger.addAll(Arrays.asList(strArr));
int i17 = onDeepLinking + 65;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
}
@Override
@Deprecated
public final void setSharingFilter(@NonNull String... strArr) {
int i15 = onDeepLinking + 69;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
setSharingFilterForPartners(strArr);
int i17 = onDeepLinking + 63;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
}
@Override
@Deprecated
public final void setSharingFilterForAllPartners() {
int i15 = onDeepLinking + 47;
onAttributionFailure = i15 % 128;
if (i15 % 2 != 0) {
String[] strArr = new String[0];
strArr[1] = "all";
setSharingFilterForPartners(strArr);
return;
}
setSharingFilterForPartners("all");
}
@Override
public final void setSharingFilterForPartners(String... strArr) {
this.afInfoLog = new AFa1cSDK(strArr);
int i15 = onAttributionFailure + 95;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
}
@Override
public final void setUserEmails(String... strArr) {
int i15 = onAttributionFailure + 43;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setUserEmails", strArr);
setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
int i16 = 7 / 0;
} else {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setUserEmails", strArr);
setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
}
}
@Override
public final void start(@NonNull Context context) {
int i15 = onDeepLinking + 61;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
start(context, null);
int i17 = onAttributionFailure + 49;
onDeepLinking = i17 % 128;
if (i17 % 2 == 0) {
throw null;
}
}
@Override
public final void stop(boolean z15, Context context) {
int i15 = onAttributionFailure + 121;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFKeystoreWrapper(context);
final AFc1xSDK AFInAppEventType2 = AFInAppEventType();
AFInAppEventType2.afWarnLog().AFInAppEventType = z15;
AFInAppEventType2.AFInAppEventType().submit(new Runnable() {
@Override
public final void run() {
AFa1eSDK.valueOf(AFc1xSDK.this);
}
});
if (z15) {
int i17 = onDeepLinking + 69;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
AFInAppEventType2.values().values("is_stop_tracking_used", true);
}
int i19 = onAttributionFailure + 37;
onDeepLinking = i19 % 128;
if (i19 % 2 == 0) {
int i25 = 93 / 0;
}
}
@Override
public final void subscribeForDeepLink(@NonNull DeepLinkListener deepLinkListener) {
int i15 = onDeepLinking + 99;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
} else {
subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
int i16 = 39 / 0;
}
}
@Override
public final void unregisterConversionListener() {
int i15 = onAttributionFailure + 55;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("unregisterConversionListener", new String[0]);
this.AFInAppEventParameterName = null;
int i17 = onDeepLinking + 123;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
}
@Override
public final void updateServerUninstallToken(Context context, String str) {
boolean z15;
AFKeystoreWrapper(context);
AFe1ySDK aFe1ySDK = new AFe1ySDK(context);
if (str != null && !str.trim().isEmpty()) {
AFLogger.afInfoLog("[register] Firebase Refreshed Token = ".concat(str));
AFb1uSDK AFInAppEventParameterName = aFe1ySDK.AFInAppEventParameterName();
if (AFInAppEventParameterName == null || !str.equals(AFInAppEventParameterName.valueOf)) {
long currentTimeMillis = System.currentTimeMillis();
if (AFInAppEventParameterName != null && currentTimeMillis - AFInAppEventParameterName.AFKeystoreWrapper <= TimeUnit.SECONDS.toMillis(2L)) {
z15 = false;
} else {
z15 = true;
}
AFb1uSDK aFb1uSDK = new AFb1uSDK(str, currentTimeMillis, !z15);
aFe1ySDK.values.AFInAppEventParameterName("afUninstallToken", aFb1uSDK.valueOf);
aFe1ySDK.values.AFInAppEventParameterName("afUninstallToken_received_time", aFb1uSDK.AFKeystoreWrapper);
aFe1ySDK.values.values("afUninstallToken_queued", aFb1uSDK.AFKeystoreWrapper());
if (z15) {
AFe1ySDK.valueOf(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;
AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
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;
afErrorLogForExcManagerOnly.AFInAppEventParameterName("validateAndTrackInAppPurchase", strArr);
if (!isStopped()) {
StringBuilder sb5 = new StringBuilder("Validate in app called with parameters: ");
sb5.append(str3);
sb5.append(" ");
sb5.append(str4);
sb5.append(" ");
sb5.append(str5);
AFLogger.afInfoLog(sb5.toString());
}
if (str != null && str4 != null && str2 != null && str5 != null && str3 != null) {
Context applicationContext = context.getApplicationContext();
String str6 = AFInAppEventType().afWarnLog().AFInAppEventParameterName;
if (context instanceof Activity) {
intent = ((Activity) context).getIntent();
} else {
intent = null;
}
new Thread(new AFa1gSDK(applicationContext, str6, str, str2, str3, str4, str5, map, intent)).start();
return;
}
AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener = valueOf;
if (appsFlyerInAppPurchaseValidatorListener != null) {
appsFlyerInAppPurchaseValidatorListener.onValidateInAppFailure("Please provide purchase parameters");
}
}
@Override
public final void waitForCustomerUserId(boolean z15) {
int i15 = onDeepLinking + 77;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
AFLogger.afInfoLog("initAfterCustomerUserID: ".concat(String.valueOf(z15)), true);
AFInAppEventType(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, z15);
int i17 = onDeepLinking + 45;
onAttributionFailure = i17 % 128;
if (i17 % 2 == 0) {
} else {
throw null;
}
}
public void AFInAppEventParameterName(AFd1dSDK aFd1dSDK) {
int i15 = onAttributionFailure + 111;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
if (aFd1dSDK == AFd1dSDK.SUCCESS) {
int i17 = onDeepLinking + 75;
onAttributionFailure = i17 % 128;
if (i17 % 2 != 0) {
AFInAppEventType().onConversionDataSuccess().AFInAppEventType();
throw null;
}
AFInAppEventType().onConversionDataSuccess().AFInAppEventType();
}
int i18 = onDeepLinking + 81;
onAttributionFailure = i18 % 128;
if (i18 % 2 != 0) {
throw null;
}
}
private long AFLogger(Context context) {
int i15 = onAttributionFailure + 115;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFb1dSDK values2 = values(context);
long valueOf2 = values2.valueOf("AppsFlyerTimePassedSincePrevLaunch", 0L);
long currentTimeMillis = System.currentTimeMillis();
values2.AFInAppEventParameterName("AppsFlyerTimePassedSincePrevLaunch", currentTimeMillis);
if (valueOf2 > 0) {
int i17 = onAttributionFailure;
int i18 = i17 + 83;
onDeepLinking = i18 % 128;
long j15 = (i18 % 2 == 0 ? currentTimeMillis / valueOf2 : currentTimeMillis - valueOf2) / 1000;
int i19 = i17 + 15;
onDeepLinking = i19 % 128;
if (i19 % 2 != 0) {
return j15;
}
throw null;
}
int i25 = onDeepLinking + 65;
onAttributionFailure = i25 % 128;
if (i25 % 2 == 0) {
return -1L;
}
throw null;
}
static boolean valueOf(AFa1eSDK aFa1eSDK, boolean z15) {
int i15 = onDeepLinking;
int i16 = i15 + 119;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
aFa1eSDK.AppsFlyer2dXConversionCallback = z15;
int i18 = i15 + 21;
onAttributionFailure = i18 % 128;
if (i18 % 2 == 0) {
return z15;
}
throw null;
}
static Map values(AFa1eSDK aFa1eSDK) {
int i15 = onAttributionFailure + ISO781611.SMT_TAG;
int i16 = i15 % 128;
onDeepLinking = i16;
int i17 = i15 % 2;
Map<String, Object> map = aFa1eSDK.onResponseErrorNative;
int i18 = i16 + 47;
onAttributionFailure = i18 % 128;
int i19 = i18 % 2;
return map;
}
public final AFc1xSDK AFInAppEventType() {
int i15 = onDeepLinking;
int i16 = i15 + 19;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
AFc1ySDK aFc1ySDK = this.onConversionDataFail;
int i18 = i15 + 5;
onAttributionFailure = i18 % 128;
if (i18 % 2 != 0) {
int i19 = 48 / 0;
}
return aFc1ySDK;
}
public final boolean AFKeystoreWrapper() {
int i15 = onDeepLinking + 93;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0 ? !(!valueOf(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false)) : valueOf(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false)) {
int i16 = onAttributionFailure + 67;
onDeepLinking = i16 % 128;
if (i16 % 2 == 0) {
int i17 = 46 / 0;
if (AFInAppEventParameterName() == null) {
return true;
}
} else if (AFInAppEventParameterName() == null) {
}
}
return false;
}
@Override
public final void logEvent(@NonNull Context context, String str, Map<String, Object> map, AppsFlyerRequestListener appsFlyerRequestListener) {
HashMap hashMap = map == null ? null : new HashMap(map);
AFKeystoreWrapper(context);
AFe1iSDK aFe1iSDK = new AFe1iSDK();
aFe1iSDK.afDebugLog = str;
aFe1iSDK.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", 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.AFKeystoreWrapper("Parsing failed due to invalid input in 'af_touch_obj'.");
}
Map<String, ?> singletonMap = Collections.singletonMap("tch_data", hashMap2);
hashMap.remove(AFInAppEventParameterName.TOUCH_OBJ);
aFe1iSDK.values(singletonMap);
}
aFe1iSDK.values = hashMap;
AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
String[] strArr = new String[2];
strArr[0] = str;
Map map2 = aFe1iSDK.values;
if (map2 == null) {
map2 = new HashMap();
}
strArr[1] = new JSONObject(map2).toString();
afErrorLogForExcManagerOnly.AFInAppEventParameterName("logEvent", strArr);
if (str == null) {
AFInAppEventType(context, AFe1nSDK.logEvent);
}
values(aFe1iSDK, context instanceof Activity ? (Activity) context : null);
}
@Override
public final void start(@NonNull Context context, String str) {
int i15 = onAttributionFailure + 39;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
start(context, str, null);
int i17 = onDeepLinking + 37;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
}
@Override
public final void subscribeForDeepLink(@NonNull DeepLinkListener deepLinkListener, long j15) {
int i15 = onDeepLinking + 83;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
AFInAppEventType().AppsFlyer2dXConversionCallback().AFInAppEventParameterName = deepLinkListener;
AFInAppEventType().AppsFlyer2dXConversionCallback().afInfoLog = j15;
int i17 = onAttributionFailure + 45;
onDeepLinking = i17 % 128;
if (i17 % 2 == 0) {
int i18 = 87 / 0;
}
}
private Runnable AFKeystoreWrapper(final AFf1qSDK aFf1qSDK) {
int i15 = onAttributionFailure + 81;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
Runnable runnable = new Runnable() {
@Override
public final void run() {
AFa1eSDK.this.AFInAppEventType(aFf1qSDK);
}
};
int i17 = onAttributionFailure + 13;
onDeepLinking = i17 % 128;
if (i17 % 2 != 0) {
return runnable;
}
throw null;
}
private void afErrorLog(Context context) {
int i15;
if (AFa1fSDK.valueOf()) {
AFLogger.afRDLog("OPPO device found");
i15 = 23;
} else {
i15 = 18;
}
int i16 = Build.VERSION.SDK_INT;
if (i16 >= i15 && !valueOf(AppsFlyerProperties.DISABLE_KEYSTORE, true)) {
StringBuilder sb5 = new StringBuilder("OS SDK is=");
sb5.append(i16);
sb5.append("; use KeyStore");
AFLogger.afRDLog(sb5.toString());
AFKeystoreWrapper aFKeystoreWrapper = new AFKeystoreWrapper(context);
if (!aFKeystoreWrapper.AFKeystoreWrapper()) {
aFKeystoreWrapper.AFKeystoreWrapper = AFb1zSDK.valueOf(AFInAppEventType().init(), AFInAppEventType().values());
aFKeystoreWrapper.values = 0;
aFKeystoreWrapper.AFKeystoreWrapper(aFKeystoreWrapper.AFInAppEventParameterName());
} else {
String AFInAppEventParameterName = aFKeystoreWrapper.AFInAppEventParameterName();
synchronized (aFKeystoreWrapper.valueOf) {
aFKeystoreWrapper.values++;
AFLogger.afInfoLog("Deleting key with alias: ".concat(String.valueOf(AFInAppEventParameterName)));
try {
synchronized (aFKeystoreWrapper.valueOf) {
aFKeystoreWrapper.AFInAppEventType.deleteEntry(AFInAppEventParameterName);
}
} catch (KeyStoreException e15) {
StringBuilder sb6 = new StringBuilder("Exception ");
sb6.append(e15.getMessage());
sb6.append(" occurred");
AFLogger.afErrorLog(sb6.toString(), e15);
}
}
aFKeystoreWrapper.AFKeystoreWrapper(aFKeystoreWrapper.AFInAppEventParameterName());
}
AFInAppEventType("KSAppsFlyerId", aFKeystoreWrapper.valueOf());
AFInAppEventType("KSAppsFlyerRICounter", String.valueOf(aFKeystoreWrapper.AFInAppEventType()));
return;
}
StringBuilder sb7 = new StringBuilder("OS SDK is=");
sb7.append(i16);
sb7.append("; no KeyStore usage");
AFLogger.afRDLog(sb7.toString());
}
public static AFa1eSDK valueOf() {
AFa1eSDK aFa1eSDK;
int i15 = onDeepLinking + 33;
int i16 = i15 % 128;
onAttributionFailure = i16;
if (i15 % 2 != 0) {
aFa1eSDK = afRDLog;
int i17 = 80 / 0;
} else {
aFa1eSDK = afRDLog;
}
int i18 = i16 + 51;
onDeepLinking = i18 % 128;
int i19 = i18 % 2;
return aFa1eSDK;
}
private static String values(String str) {
int i15 = onDeepLinking + 117;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
return AppsFlyerProperties.getInstance().getString(str);
}
AppsFlyerProperties.getInstance().getString(str);
throw null;
}
public final void AFInAppEventType(Context context, Intent intent) {
int i15 = onDeepLinking + 71;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
if (intent.getStringExtra("appsflyer_preinstall") != null) {
int i16 = onAttributionFailure + 23;
onDeepLinking = i16 % 128;
int i17 = i16 % 2;
AFKeystoreWrapper(intent.getStringExtra("appsflyer_preinstall"));
int i18 = onDeepLinking + 59;
onAttributionFailure = i18 % 128;
int i19 = i18 % 2;
}
AFLogger.afInfoLog("****** onReceive called *******");
AppsFlyerProperties.getInstance();
String stringExtra = intent.getStringExtra("referrer");
AFLogger.afInfoLog("Play store referrer: ".concat(String.valueOf(stringExtra)));
if (stringExtra != null) {
values(context).AFInAppEventParameterName("referrer", stringExtra);
AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
appsFlyerProperties.set("AF_REFERRER", stringExtra);
appsFlyerProperties.AFKeystoreWrapper = stringExtra;
if (AppsFlyerProperties.getInstance().AFInAppEventType()) {
AFLogger.afInfoLog("onReceive: isLaunchCalled");
AFInAppEventType(context, AFe1nSDK.onReceive);
AFKeystoreWrapper(context, stringExtra);
}
}
int i25 = onDeepLinking + 29;
onAttributionFailure = i25 % 128;
int i26 = i25 % 2;
return;
}
intent.getStringExtra("appsflyer_preinstall");
throw null;
}
@Override
public final void start(@NonNull Context context, String str, final AppsFlyerRequestListener appsFlyerRequestListener) {
int i15 = onDeepLinking + 57;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
if (AFInAppEventType().onResponseNative().AFInAppEventType()) {
return;
}
if (!this.onAppOpenAttributionNative) {
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) {
if (appsFlyerRequestListener != null) {
int i16 = onAttributionFailure + 75;
onDeepLinking = i16 % 128;
if (i16 % 2 == 0) {
appsFlyerRequestListener.onError(7, "No dev key");
return;
} else {
appsFlyerRequestListener.onError(41, "No dev key");
return;
}
}
return;
}
}
AFKeystoreWrapper(context);
final AFe1mSDK afDebugLog = AFInAppEventType().afDebugLog();
afDebugLog.AFKeystoreWrapper(AFa1rSDK.AFInAppEventParameterName(context));
this.init = (Application) context.getApplicationContext();
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("start", str);
String str2 = values;
AFLogger.afInfoLog(String.format("Starting AppsFlyer: (v%s.%s)", "6.12.2", str2));
StringBuilder sb5 = new StringBuilder("Build Number: ");
sb5.append(str2);
AFLogger.afInfoLog(sb5.toString());
AppsFlyerProperties.getInstance().loadProperties(AFInAppEventType().values());
if (!TextUtils.isEmpty(str)) {
int i17 = onAttributionFailure + 17;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
AFInAppEventType().afWarnLog().AFInAppEventParameterName = str;
AFa1aSDK.AFInAppEventType(str);
} else if (TextUtils.isEmpty(AFInAppEventType().afWarnLog().AFInAppEventParameterName)) {
int i19 = onAttributionFailure + 111;
onDeepLinking = i19 % 128;
if (i19 % 2 != 0) {
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) {
appsFlyerRequestListener.onError(41, "No dev key");
}
int i25 = onAttributionFailure + 31;
onDeepLinking = i25 % 128;
int i26 = i25 % 2;
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;
}
AFInAppEventType().afRDLog().AFInAppEventParameterName((AFd1bSDK) null);
afWarnLog();
afInfoLog(this.init.getBaseContext());
if (this.onDeepLinkingNative) {
AFInAppEventType(this.init.getApplicationContext());
}
this.onConversionDataFail.onResponseNative().AFKeystoreWrapper(context, new AFb1iSDK.AFa1wSDK() {
@Override
public final void AFInAppEventType(@NonNull Context context2) {
AFLogger.afInfoLog("onBecameBackground");
AFe1mSDK aFe1mSDK = afDebugLog;
long currentTimeMillis = System.currentTimeMillis();
long j15 = aFe1mSDK.afErrorLog;
if (j15 != 0) {
long j16 = currentTimeMillis - j15;
if (j16 > 0 && j16 < 1000) {
j16 = 1000;
}
long seconds = TimeUnit.MILLISECONDS.toSeconds(j16);
aFe1mSDK.afWarnLog = seconds;
aFe1mSDK.valueOf.AFInAppEventParameterName("prev_session_dur", seconds);
} else {
AFLogger.afInfoLog("Metrics: fg ts is missing");
}
AFLogger.afInfoLog("callStatsBackground background call");
AFa1eSDK.this.AFKeystoreWrapper(new WeakReference<>(context2));
AFa1eSDK.this.AFInAppEventType().onConversionDataSuccess().valueOf();
AFb1tSDK afErrorLogForExcManagerOnly = AFa1eSDK.this.AFInAppEventType().afErrorLogForExcManagerOnly();
if (afErrorLogForExcManagerOnly.afInfoLog()) {
afErrorLogForExcManagerOnly.values();
if (context2 != null && !AppsFlyerLib.getInstance().isStopped()) {
afErrorLogForExcManagerOnly.valueOf(context2.getPackageName(), context2.getPackageManager(), AFa1eSDK.this.AFInAppEventType());
}
afErrorLogForExcManagerOnly.valueOf();
} else {
AFLogger.afDebugLog("RD status is OFF");
}
AFa1eSDK.this.AFInAppEventType().getLevel().AFInAppEventType();
}
@Override
public final void values(@NonNull Activity activity) {
afDebugLog.values();
AFa1eSDK.this.AFInAppEventType().afRDLog().AFInAppEventParameterName((AFd1bSDK) null);
AFa1eSDK.AFInAppEventParameterName(AFa1eSDK.this);
AFa1eSDK aFa1eSDK = AFa1eSDK.this;
int valueOf2 = aFa1eSDK.valueOf(aFa1eSDK.values(activity), false);
AFLogger.afInfoLog("onBecameForeground");
if (valueOf2 < 2) {
AFa1eSDK.this.AFInAppEventType().getLevel().AFInAppEventParameterName();
}
AFe1hSDK aFe1hSDK = new AFe1hSDK();
if (activity != null) {
AFa1eSDK.this.AFInAppEventType().AppsFlyer2dXConversionCallback().valueOf(aFe1hSDK.valueOf(), activity.getIntent(), activity.getApplication());
}
AFa1eSDK aFa1eSDK2 = AFa1eSDK.this;
aFe1hSDK.AFInAppEventParameterName = appsFlyerRequestListener;
aFa1eSDK2.values(aFe1hSDK, activity);
}
});
return;
}
AFInAppEventType().onResponseNative().AFInAppEventType();
throw null;
}
private static void valueOf(JSONObject jSONObject) {
String str;
ArrayList arrayList = new ArrayList();
Iterator<String> keys = jSONObject.keys();
while (true) {
int i15 = 0;
if (!keys.hasNext()) {
break;
}
try {
JSONArray jSONArray = new JSONArray((String) jSONObject.get(keys.next()));
while (i15 < jSONArray.length()) {
int i16 = onDeepLinking + 73;
onAttributionFailure = i16 % 128;
if (i16 % 2 != 0) {
arrayList.add(Long.valueOf(jSONArray.getLong(i15)));
i15 += 107;
} else {
arrayList.add(Long.valueOf(jSONArray.getLong(i15)));
i15++;
}
}
} catch (JSONException e15) {
AFLogger.afErrorLogForExcManagerOnly("error at timeStampArr", e15);
}
}
Collections.sort(arrayList);
Iterator<String> keys2 = jSONObject.keys();
loop2: while (true) {
str = null;
while (keys2.hasNext() && str == null) {
String next = keys2.next();
try {
JSONArray jSONArray2 = new JSONArray((String) jSONObject.get(next));
int i17 = 0;
while (i17 < jSONArray2.length()) {
int i18 = onAttributionFailure + 13;
onDeepLinking = i18 % 128;
if (i18 % 2 != 0) {
if (jSONArray2.getLong(i17) == ((Long) arrayList.get(0)).longValue()) {
break;
}
int i19 = onDeepLinking + 61;
onAttributionFailure = i19 % 128;
int i25 = i19 % 2;
if (jSONArray2.getLong(i17) == ((Long) arrayList.get(1)).longValue()) {
break;
}
} else if (jSONArray2.getLong(i17) != ((Long) arrayList.get(1)).longValue()) {
int i192 = onDeepLinking + 61;
onAttributionFailure = i192 % 128;
int i252 = i192 % 2;
if (jSONArray2.getLong(i17) == ((Long) arrayList.get(1)).longValue()) {
int i26 = onAttributionFailure + 61;
onDeepLinking = i26 % 128;
if (i26 % 2 == 0) {
if (jSONArray2.getLong(i17) == ((Long) arrayList.get(arrayList.size() - 1)).longValue()) {
break;
}
i17++;
str = next;
} else {
if (jSONArray2.getLong(i17) == ((Long) arrayList.get(arrayList.size() - 1)).longValue()) {
break;
}
i17++;
str = next;
}
}
}
}
} catch (JSONException e16) {
AFLogger.afErrorLogForExcManagerOnly("error at manageExtraReferrers", e16);
}
}
}
if (str != null) {
jSONObject.remove(str);
}
}
final void AFKeystoreWrapper(WeakReference<Context> weakReference) {
int i15 = onDeepLinking + 3;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
if (weakReference.get() == null) {
return;
}
AFLogger.afInfoLog("app went to background");
AFb1dSDK values2 = values(weakReference.get());
AppsFlyerProperties.getInstance().saveProperties(values2);
long j15 = AFInAppEventType().afDebugLog().afWarnLog;
HashMap hashMap = new HashMap();
String str = AFInAppEventType().afWarnLog().AFInAppEventParameterName;
if (str == null) {
AFLogger.afWarnLog("[callStats] AppsFlyer's SDK cannot send any event without providing DevKey.");
return;
}
String values3 = values("KSAppsFlyerId");
if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, false)) {
hashMap.put(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, "true");
int i17 = onDeepLinking + 57;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
}
AFc1uSDK.AFa1wSDK AFInAppEventParameterName = AFa1cSDK.AFInAppEventParameterName(weakReference.get().getContentResolver());
if (AFInAppEventParameterName != null) {
hashMap.put("amazon_aid", AFInAppEventParameterName.valueOf);
hashMap.put("amazon_aid_limit", String.valueOf(AFInAppEventParameterName.AFInAppEventType));
}
String string = AppsFlyerProperties.getInstance().getString("advertiserId");
if (string != null) {
hashMap.put("advertiserId", string);
int i19 = onAttributionFailure + 105;
onDeepLinking = i19 % 128;
int i25 = i19 % 2;
}
hashMap.put("app_id", weakReference.get().getPackageName());
hashMap.put("devkey", str);
hashMap.put("uid", AFb1zSDK.valueOf(AFInAppEventType().init(), AFInAppEventType().values()));
hashMap.put("time_in_app", String.valueOf(j15));
hashMap.put("statType", "user_closed_app");
hashMap.put("platform", Constants.DeviceInfo.osName);
hashMap.put("launch_counter", Integer.toString(valueOf(values2, false)));
hashMap.put(AppsFlyerProperties.CHANNEL, AFInAppEventType().AFInAppEventParameterName().values());
if (values3 == null) {
values3 = "";
}
hashMap.put("originalAppsflyerId", values3);
if (this.AppsFlyer2dXConversionCallback) {
AFe1bSDK aFe1bSDK = new AFe1bSDK();
aFe1bSDK.afErrorLogForExcManagerOnly = isStopped();
AFd1hSDK aFd1hSDK = new AFd1hSDK((AFe1bSDK) aFe1bSDK.AFInAppEventParameterName(AFInAppEventType().AFInAppEventParameterName().AFInAppEventType.values("appsFlyerCount", 0)).values(hashMap).AFKeystoreWrapper(String.format(afErrorLog, AppsFlyerLib.getInstance().getHostPrefix(), valueOf().getHostName())), AFInAppEventType());
AFc1bSDK AFVersionDeclaration = AFInAppEventType().AFVersionDeclaration();
AFVersionDeclaration.AFKeystoreWrapper.execute(new AFc1bSDK.AnonymousClass4(aFd1hSDK));
return;
}
AFLogger.afDebugLog("Stats call is disabled, ignore ...");
int i26 = onDeepLinking + 99;
onAttributionFailure = i26 % 128;
if (i26 % 2 != 0) {
int i27 = 16 / 0;
}
}
final void values(@NonNull AFa1qSDK aFa1qSDK, Activity activity) {
AFInAppEventType(aFa1qSDK, activity);
if (AFInAppEventType().afWarnLog().AFInAppEventParameterName == null) {
int i15 = onDeepLinking + 65;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
AFLogger.afWarnLog("[LogEvent/Launch] AppsFlyer's SDK cannot send any event without providing DevKey.");
AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.AFInAppEventParameterName;
if (appsFlyerRequestListener != null) {
appsFlyerRequestListener.onError(41, "No dev key");
return;
}
return;
}
AFLogger.afWarnLog("[LogEvent/Launch] AppsFlyer's SDK cannot send any event without providing DevKey.");
AppsFlyerRequestListener appsFlyerRequestListener2 = aFa1qSDK.AFInAppEventParameterName;
throw null;
}
String referrer = AppsFlyerProperties.getInstance().getReferrer(AFInAppEventType().values());
if (referrer == null) {
referrer = "";
} else {
int i16 = onDeepLinking + 99;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
}
aFa1qSDK.afErrorLog = referrer;
AFInAppEventType(aFa1qSDK);
int i18 = onDeepLinking + 95;
onAttributionFailure = i18 % 128;
int i19 = i18 % 2;
}
public static String AFInAppEventParameterName() {
int i15 = onDeepLinking + 3;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
String values2 = values(AppsFlyerProperties.APP_USER_ID);
int i17 = onAttributionFailure + 99;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
return values2;
}
private boolean AFInAppEventParameterName(AFa1qSDK aFa1qSDK, AFb1dSDK aFb1dSDK) {
boolean z15;
int valueOf2 = valueOf(aFb1dSDK, false);
if (valueOf2 != 1 || (aFa1qSDK instanceof AFe1lSDK)) {
z15 = false;
} else {
int i15 = onAttributionFailure + 81;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
z15 = true;
}
if (!aFb1dSDK.valueOf(AppsFlyerProperties.NEW_REFERRER_SENT)) {
int i17 = onDeepLinking;
int i18 = i17 + 83;
onAttributionFailure = i18 % 128;
if (i18 % 2 == 0 ? valueOf2 == 1 : valueOf2 == 0) {
int i19 = i17 + 17;
onAttributionFailure = i19 % 128;
boolean z16 = i19 % 2 == 0;
int i25 = i17 + 67;
onAttributionFailure = i25 % 128;
int i26 = i25 % 2;
}
}
int i27 = onDeepLinking + 97;
onAttributionFailure = i27 % 128;
if (i27 % 2 == 0) {
return z15;
}
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));
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("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 i15 = onAttributionFailure + 93;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
String str = null;
for (String str2 : strArr) {
int i17 = onDeepLinking + 33;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
if (AnonymousClass5.valueOf[emailsCryptType.ordinal()] != 2) {
arrayList2.add(AFc1nSDK.AFInAppEventType(str2));
str = "sha256_el_arr";
} else {
arrayList2.add(str2);
str = "plain_el_arr";
}
}
hashMap.put(str, arrayList2);
AppsFlyerProperties.getInstance().setUserEmails(new JSONObject(hashMap).toString());
}
private void AFInAppEventParameterName(Map<String, Object> map) {
if (!AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, false)) {
int i15 = onDeepLinking + 81;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
if (!AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, false)) {
if (map.get("advertiserId") != null) {
try {
if (AFb1uSDK.values(this.AFLogger) && map.remove("android_id") != null) {
int i17 = onAttributionFailure + 89;
onDeepLinking = i17 % 128;
if (i17 % 2 == 0) {
AFLogger.afInfoLog("validateGaidAndIMEI :: removing: android_id");
throw null;
}
AFLogger.afInfoLog("validateGaidAndIMEI :: removing: android_id");
}
if (!AFb1uSDK.values(AFInAppEventType().afWarnLog().values) || map.remove("imei") == null) {
return;
}
AFLogger.afInfoLog("validateGaidAndIMEI :: removing: imei");
return;
} catch (Exception e15) {
AFLogger.afErrorLog("failed to remove IMEI or AndroidID key from params; ", e15);
return;
}
}
return;
}
}
int i18 = onDeepLinking + 9;
onAttributionFailure = i18 % 128;
int i19 = i18 % 2;
}
private boolean afInfoLog() {
int i15 = onDeepLinking + 93;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
if (this.afDebugLog > 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 AFInAppEventType2 = AFInAppEventType(simpleDateFormat, this.afDebugLog);
String AFInAppEventType3 = AFInAppEventType(simpleDateFormat, this.afWarnLog);
if (currentTimeMillis < this.AFVersionDeclaration) {
int i17 = onAttributionFailure + 35;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
if (!isStopped()) {
int i19 = onAttributionFailure + 121;
onDeepLinking = i19 % 128;
int i25 = i19 % 2;
AFLogger.afInfoLog(String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nThis launch is blocked: %s ms < %s ms", AFInAppEventType2, AFInAppEventType3, Long.valueOf(currentTimeMillis), Long.valueOf(this.AFVersionDeclaration)));
return true;
}
}
if (!isStopped()) {
AFLogger.afInfoLog(String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nSending launch (+%s ms)", AFInAppEventType2, AFInAppEventType3, Long.valueOf(currentTimeMillis)));
}
} else if (!isStopped()) {
int i26 = onAttributionFailure + 11;
onDeepLinking = i26 % 128;
if (i26 % 2 == 0) {
AFLogger.afInfoLog("Sending first launch for this session!");
throw null;
}
AFLogger.afInfoLog("Sending first launch for this session!");
}
int i27 = onDeepLinking + 59;
onAttributionFailure = i27 % 128;
if (i27 % 2 == 0) {
return false;
}
throw null;
}
public static Map<String, Object> values(Map<String, Object> map) {
int i15 = onDeepLinking + 73;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
if (map.containsKey("meta")) {
int i17 = onDeepLinking + 13;
onAttributionFailure = i17 % 128;
if (i17 % 2 == 0) {
return (Map) map.get("meta");
}
throw null;
}
HashMap hashMap = new HashMap();
map.put("meta", hashMap);
return hashMap;
}
public final void AFInAppEventType(Context context, String str) {
JSONArray jSONArray;
JSONArray jSONArray2;
JSONObject jSONObject;
AFLogger.afDebugLog("received a new (extra) referrer: ".concat(String.valueOf(str)));
try {
long currentTimeMillis = System.currentTimeMillis();
String values2 = values(context).values("extraReferrers", (String) null);
if (values2 == null) {
jSONObject = new JSONObject();
jSONArray2 = new JSONArray();
} else {
JSONObject jSONObject2 = new JSONObject(values2);
if (jSONObject2.has(str)) {
jSONArray = new JSONArray((String) jSONObject2.get(str));
} else {
jSONArray = new JSONArray();
int i15 = onDeepLinking + 49;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
}
jSONArray2 = jSONArray;
jSONObject = jSONObject2;
}
if (jSONArray2.length() < 5) {
jSONArray2.put(currentTimeMillis);
}
if (jSONObject.length() >= 4) {
int i17 = onAttributionFailure + 53;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
valueOf(jSONObject);
int i19 = onDeepLinking + 1;
onAttributionFailure = i19 % 128;
int i25 = i19 % 2;
}
jSONObject.put(str, jSONArray2.toString());
values(context).AFInAppEventParameterName("extraReferrers", jSONObject.toString());
} catch (JSONException e15) {
AFLogger.afErrorLogForExcManagerOnly("error at addReferrer", e15);
} catch (Throwable th4) {
StringBuilder sb5 = new StringBuilder("Couldn't save referrer - ");
sb5.append(str);
sb5.append(": ");
AFLogger.afErrorLog(sb5.toString(), th4);
}
}
private String values(Context context, String str) {
if (context == null) {
int i15 = onDeepLinking + 7;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
return null;
}
throw null;
}
AFKeystoreWrapper(context);
String AFInAppEventType2 = AFInAppEventType().AFInAppEventParameterName().AFInAppEventType(str);
int i16 = onDeepLinking + 63;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
return AFInAppEventType2;
}
public final Map<String, Object> AFInAppEventParameterName(AFa1qSDK aFa1qSDK) {
String str;
String str2;
String str3;
String str4;
PackageManager.NameNotFoundException nameNotFoundException;
String str5;
AppsFlyerProperties appsFlyerProperties;
AFb1dSDK aFb1dSDK;
String str6;
boolean z15;
AFc1uSDK.AFa1wSDK AFInAppEventParameterName;
AFb1dSDK aFb1dSDK2;
AFa1cSDK aFa1cSDK;
String[] strArr;
PackageInfo packageInfo;
String valueOf2;
Context context = AFInAppEventType().init().AFInAppEventType;
String str7 = AFInAppEventType().afWarnLog().AFInAppEventParameterName;
String str8 = aFa1qSDK.afDebugLog;
Map map = aFa1qSDK.values;
if (map == null) {
map = new HashMap();
}
String jSONObject = new JSONObject(map).toString();
String str9 = aFa1qSDK.afErrorLog;
AFb1dSDK values2 = values(context);
boolean AFInAppEventParameterName2 = aFa1qSDK.AFInAppEventParameterName();
Map<String, ? extends Object> map2 = aFa1qSDK.AFKeystoreWrapper;
AFa1cSDK.values(context, map2);
Boolean bool = AFa1cSDK.valueOf;
if (bool == null || bool.booleanValue()) {
str = "Exception while collecting facebook's attribution ID. ";
str2 = "yyyy-MM-dd_HHmmssZ";
} else {
str2 = "yyyy-MM-dd_HHmmssZ";
str = "Exception while collecting facebook's attribution ID. ";
values(map2).put("ad_ids_disabled", Boolean.TRUE);
}
long time = new Date().getTime();
Object[] objArr = new Object[1];
values(7 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), "\u0003\ufffb\t\n\ufff7\u0003\u0006\ufff7\ufff5\n\uffff", View.MeasureSpec.getSize(0) + 245, TextUtils.getOffsetAfter("", 0) + 12, false, objArr);
map2.put(((String) objArr[0]).intern(), Long.toString(time));
try {
if (!isStopped()) {
StringBuilder sb5 = new StringBuilder("******* sendTrackingWithEvent: ");
sb5.append(AFInAppEventParameterName2 ? "Launch" : str8);
AFLogger.afInfoLog(sb5.toString());
} else {
AFLogger.afInfoLog("Reporting has been stopped");
}
AFInAppEventType().onAppOpenAttributionNative().valueOf();
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 e15) {
AFLogger.afErrorLog("Exception while validation permissions. ", e15);
}
AFe1vSDK AFLogger = AFInAppEventType().AFLogger();
map2.put("af_events_api", "1");
Object[] objArr2 = new Object[1];
values((ViewConfiguration.getKeyRepeatDelay() >> 16) + 2, "\u0007�\ufffb\u000b\ufffa", (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 242, TextUtils.lastIndexOf("", '0') + 6, false, objArr2);
map2.put(((String) objArr2[0]).intern(), Build.BRAND);
map2.put(Device.F, Build.DEVICE);
map2.put("product", Build.PRODUCT);
map2.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
map2.put("model", Build.MODEL);
map2.put("deviceType", Build.TYPE);
AFLogger.AFInAppEventParameterName(map2);
AppsFlyerProperties appsFlyerProperties2 = AppsFlyerProperties.getInstance();
AFe1mSDK afDebugLog = AFInAppEventType().afDebugLog();
if (AFInAppEventParameterName2) {
if (AFLogger.afRDLog()) {
if (appsFlyerProperties2.isOtherSdkStringDisabled()) {
str3 = "";
} else {
str3 = "";
map2.put("batteryLevel", String.valueOf(AFInAppEventType().onDeepLinkingNative().AFInAppEventType(context).AFInAppEventParameterName));
}
afErrorLog(context);
UiModeManager uiModeManager = (UiModeManager) context.getSystemService(UiModeManager.class);
if (uiModeManager != null && uiModeManager.getCurrentModeType() == 4) {
map2.put("tv", Boolean.TRUE);
}
if (AFe1qSDK.AFKeystoreWrapper(context)) {
map2.put("inst_app", Boolean.TRUE);
}
} else {
str3 = "";
}
map2.put("timepassedsincelastlaunch", Long.toString(AFLogger(context)));
AFLogger.values(map2);
AFLogger.valueOf(map2);
String str10 = this.onAttributionFailureNative;
if (str10 != null) {
map2.put(OrdersData.SCHEME_PHONE, str10);
}
if (!TextUtils.isEmpty(str9)) {
map2.put("referrer", str9);
}
String values3 = values2.values("extraReferrers", (String) null);
if (values3 != null) {
map2.put("extraReferrers", values3);
}
String referrer = appsFlyerProperties2.getReferrer(AFInAppEventType().values());
if (!TextUtils.isEmpty(referrer) && map2.get("referrer") == null) {
map2.put("referrer", referrer);
}
long j15 = afDebugLog.afWarnLog;
if (j15 != 0) {
map2.put("prev_session_dur", Long.valueOf(j15));
}
AFb1lSDK aFb1lSDK = this.onResponseNative;
if (aFb1lSDK != null) {
if (!aFb1lSDK.values.isEmpty()) {
map2.put("partner_data", aFb1lSDK.values);
}
if (!aFb1lSDK.AFInAppEventParameterName.isEmpty()) {
values(map2).put("partner_data", aFb1lSDK.AFInAppEventParameterName);
aFb1lSDK.AFInAppEventParameterName = new HashMap();
}
}
} else {
str3 = "";
AFLogger.valueOf(map2, str8);
}
String values4 = values("KSAppsFlyerId");
String values5 = values("KSAppsFlyerRICounter");
if (values4 != null && values5 != null && Integer.parseInt(values5) > 0) {
map2.put("reinstallCounter", values5);
map2.put("originalAppsflyerId", values4);
}
String values6 = values(AppsFlyerProperties.ADDITIONAL_CUSTOM_DATA);
if (values6 != null) {
map2.put("customData", values6);
}
map2.putAll(this.onConversionDataFail.afInfoLog().AFInAppEventParameterName());
String string = appsFlyerProperties2.getString(AppsFlyerProperties.EXTENSION);
if (string != null && string.length() > 0) {
map2.put(AppsFlyerProperties.EXTENSION, string);
}
String values7 = AFInAppEventType().AFInAppEventParameterName().values();
String AFInAppEventType2 = AFInAppEventType(values(context), values7);
if ((AFInAppEventType2 != null && !AFInAppEventType2.equals(values7)) || (AFInAppEventType2 == null && values7 != null)) {
map2.put("af_latestchannel", values7);
}
String AFInAppEventType3 = AFLogger.AFInAppEventType();
if (AFInAppEventType3 != null) {
map2.put("af_installstore", AFInAppEventType3.toLowerCase(Locale.getDefault()));
}
String AFLogger2 = AFLogger.AFLogger();
if (AFLogger2 != null) {
map2.put("af_preinstall_name", AFLogger2.toLowerCase(Locale.getDefault()));
}
String afInfoLog = AFLogger.afInfoLog();
if (afInfoLog != null) {
map2.put("af_currentstore", afInfoLog.toLowerCase(Locale.getDefault()));
}
if (str7 != null && str7.length() > 0) {
map2.put("appsflyerKey", str7);
} else {
String str11 = AFInAppEventType().afWarnLog().AFInAppEventParameterName;
if (str11 != null && str11.length() > 0) {
map2.put("appsflyerKey", str11);
} 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;
}
}
String AFInAppEventParameterName3 = AFInAppEventParameterName();
if (AFInAppEventParameterName3 != null) {
map2.put("appUserId", AFInAppEventParameterName3);
}
String string2 = appsFlyerProperties2.getString(AppsFlyerProperties.USER_EMAILS);
if (string2 != null) {
map2.put("user_emails", string2);
}
if (str8 != null) {
map2.put("eventName", str8);
map2.put("eventValue", jSONObject);
}
if (afRDLog() != null) {
map2.put(AppsFlyerProperties.APP_ID, values(AppsFlyerProperties.APP_ID));
}
String values8 = values(AppsFlyerProperties.CURRENCY_CODE);
if (values8 != null) {
if (values8.length() != 3) {
StringBuilder sb6 = new StringBuilder("WARNING: currency code should be 3 characters!!! '");
sb6.append(values8);
sb6.append("' is not a legal value.");
AFLogger.afWarnLog(sb6.toString());
}
map2.put("currency", values8);
}
String values9 = values(AppsFlyerProperties.IS_UPDATE);
if (values9 != null) {
map2.put("isUpdate", values9);
}
map2.put("af_preinstalled", Boolean.toString(isPreInstalledApp(context)));
if (appsFlyerProperties2.getBoolean(AppsFlyerProperties.COLLECT_FACEBOOK_ATTR_ID, true)) {
try {
try {
try {
context.getPackageManager().getApplicationInfo("com.facebook.katana", 0);
str5 = getAttributionId(context);
} catch (PackageManager.NameNotFoundException e16) {
nameNotFoundException = e16;
str4 = str;
AFLogger.afErrorLogForExcManagerOnly("com.facebook.katana not found", nameNotFoundException, true);
AFLogger.afWarnLog(str4);
str5 = null;
if (str5 != null) {
}
AFLogger.values(map2, this.AFLogger);
valueOf2 = AFb1zSDK.valueOf(AFInAppEventType().init(), AFInAppEventType().values());
if (valueOf2 != null) {
}
map2.put("lang", Locale.getDefault().getDisplayLanguage());
map2.put("lang_code", Locale.getDefault().getLanguage());
map2.put("country", Locale.getDefault().getCountry());
AFLogger.AFKeystoreWrapper(map2, AFInAppEventParameterName2);
AFLogger.AFInAppEventType(map2);
String str12 = str2;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(str12, Locale.US);
map2.put("installDate", AFInAppEventType(simpleDateFormat, context.getPackageManager().getPackageInfo(context.getPackageName(), 0).firstInstallTime));
try {
packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
if (packageInfo.versionCode > values2.values("versionCode", 0)) {
}
AFb1gSDK AFInAppEventParameterName4 = AFInAppEventType().AFInAppEventParameterName();
map2.put("app_version_code", Integer.toString(packageInfo.versionCode));
Context context2 = AFInAppEventParameterName4.valueOf.AFInAppEventType;
map2.put("app_version_name", AFa1fSDK.AFKeystoreWrapper(context2, context2.getPackageName()));
map2.put("targetSDKver", Integer.valueOf(AFInAppEventParameterName4.valueOf.AFInAppEventType.getApplicationInfo().targetSdkVersion));
long j16 = packageInfo.firstInstallTime;
try {
long j17 = packageInfo.lastUpdateTime;
appsFlyerProperties = appsFlyerProperties2;
try {
str6 = str8;
try {
Locale locale = Locale.US;
aFb1dSDK = values2;
try {
map2.put("date1", new SimpleDateFormat(str12, locale).format(new Date(j16)));
map2.put("date2", new SimpleDateFormat(str12, locale).format(new Date(j17)));
String values10 = AFLogger.values(simpleDateFormat);
int i15 = (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 3;
int keyCodeFromString = KeyEvent.keyCodeFromString(str3) + 241;
String str13 = str3;
z15 = false;
try {
int indexOf = 15 - TextUtils.indexOf(str13, str13, 0);
Object[] objArr3 = new Object[1];
values(i15, "\r\f\u0003\u0000\uffff\u000e\ufffb\uffde\u0002�\b\u000f\ufffb₩\u000e", keyCodeFromString, indexOf, true, objArr3);
z15 = false;
map2.put(((String) objArr3[0]).intern(), values10);
} catch (Throwable th4) {
th = th4;
AFLogger.afErrorLog("Exception while collecting app version data ", th, true);
this.onInstallConversionFailureNative = AFe1ySDK.values(context);
StringBuilder sb7 = new StringBuilder("didConfigureTokenRefreshService=");
sb7.append(this.onInstallConversionFailureNative);
AFLogger.afDebugLog(sb7.toString());
if (!this.onInstallConversionFailureNative) {
}
if (AFInAppEventParameterName2) {
}
if (!AFInAppEventParameterName2) {
}
if (values("advertiserId") == null) {
}
AFInAppEventParameterName = AFa1cSDK.AFInAppEventParameterName(context.getContentResolver());
if (AFInAppEventParameterName != null) {
}
map2.put("registeredUninstall", Boolean.valueOf(AFe1ySDK.AFInAppEventType(aFb1dSDK)));
aFb1dSDK2 = aFb1dSDK;
int valueOf3 = valueOf(aFb1dSDK2, AFInAppEventParameterName2);
map2.put("counter", Integer.toString(valueOf3));
if (str6 != null) {
}
map2.put("iaecounter", Integer.toString(values(aFb1dSDK2, z15)));
if (AFInAppEventParameterName2) {
appsFlyerProperties.AFInAppEventParameterName = true;
}
map2.put("isFirstCall", Boolean.toString(!AFLogger.afDebugLog()));
AFLogger.AFInAppEventType(AFInAppEventParameterName2, map2, valueOf3);
map2.put("ivc", Boolean.valueOf(AFLogger.afErrorLog()));
if (aFb1dSDK2.values("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", AFLogger.AFKeystoreWrapper());
map2.put("last_boot_time", Long.valueOf(AFLogger.values()));
map2.put("disk", AFLogger.AFInAppEventParameterName());
aFa1cSDK = this.afInfoLog;
if (aFa1cSDK != null) {
map2.put("sharing_filter", strArr);
}
return map2;
}
} catch (Throwable th5) {
th = th5;
z15 = false;
AFLogger.afErrorLog("Exception while collecting app version data ", th, true);
this.onInstallConversionFailureNative = AFe1ySDK.values(context);
StringBuilder sb72 = new StringBuilder("didConfigureTokenRefreshService=");
sb72.append(this.onInstallConversionFailureNative);
AFLogger.afDebugLog(sb72.toString());
if (!this.onInstallConversionFailureNative) {
}
if (AFInAppEventParameterName2) {
}
if (!AFInAppEventParameterName2) {
}
if (values("advertiserId") == null) {
}
AFInAppEventParameterName = AFa1cSDK.AFInAppEventParameterName(context.getContentResolver());
if (AFInAppEventParameterName != null) {
}
map2.put("registeredUninstall", Boolean.valueOf(AFe1ySDK.AFInAppEventType(aFb1dSDK)));
aFb1dSDK2 = aFb1dSDK;
int valueOf32 = valueOf(aFb1dSDK2, AFInAppEventParameterName2);
map2.put("counter", Integer.toString(valueOf32));
if (str6 != null) {
}
map2.put("iaecounter", Integer.toString(values(aFb1dSDK2, z15)));
if (AFInAppEventParameterName2) {
}
map2.put("isFirstCall", Boolean.toString(!AFLogger.afDebugLog()));
AFLogger.AFInAppEventType(AFInAppEventParameterName2, map2, valueOf32);
map2.put("ivc", Boolean.valueOf(AFLogger.afErrorLog()));
if (aFb1dSDK2.values("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", AFLogger.AFKeystoreWrapper());
map2.put("last_boot_time", Long.valueOf(AFLogger.values()));
map2.put("disk", AFLogger.AFInAppEventParameterName());
aFa1cSDK = this.afInfoLog;
if (aFa1cSDK != null) {
}
return map2;
}
} catch (Throwable th6) {
th = th6;
aFb1dSDK = values2;
}
} catch (Throwable th7) {
th = th7;
aFb1dSDK = values2;
str6 = str8;
z15 = false;
AFLogger.afErrorLog("Exception while collecting app version data ", th, true);
this.onInstallConversionFailureNative = AFe1ySDK.values(context);
StringBuilder sb722 = new StringBuilder("didConfigureTokenRefreshService=");
sb722.append(this.onInstallConversionFailureNative);
AFLogger.afDebugLog(sb722.toString());
if (!this.onInstallConversionFailureNative) {
}
if (AFInAppEventParameterName2) {
}
if (!AFInAppEventParameterName2) {
}
if (values("advertiserId") == null) {
}
AFInAppEventParameterName = AFa1cSDK.AFInAppEventParameterName(context.getContentResolver());
if (AFInAppEventParameterName != null) {
}
map2.put("registeredUninstall", Boolean.valueOf(AFe1ySDK.AFInAppEventType(aFb1dSDK)));
aFb1dSDK2 = aFb1dSDK;
int valueOf322 = valueOf(aFb1dSDK2, AFInAppEventParameterName2);
map2.put("counter", Integer.toString(valueOf322));
if (str6 != null) {
}
map2.put("iaecounter", Integer.toString(values(aFb1dSDK2, z15)));
if (AFInAppEventParameterName2) {
}
map2.put("isFirstCall", Boolean.toString(!AFLogger.afDebugLog()));
AFLogger.AFInAppEventType(AFInAppEventParameterName2, map2, valueOf322);
map2.put("ivc", Boolean.valueOf(AFLogger.afErrorLog()));
if (aFb1dSDK2.values("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", AFLogger.AFKeystoreWrapper());
map2.put("last_boot_time", Long.valueOf(AFLogger.values()));
map2.put("disk", AFLogger.AFInAppEventParameterName());
aFa1cSDK = this.afInfoLog;
if (aFa1cSDK != null) {
}
return map2;
}
} catch (Throwable th8) {
th = th8;
appsFlyerProperties = appsFlyerProperties2;
}
} catch (Throwable th9) {
th = th9;
appsFlyerProperties = appsFlyerProperties2;
aFb1dSDK = values2;
z15 = false;
str6 = str8;
}
this.onInstallConversionFailureNative = AFe1ySDK.values(context);
StringBuilder sb7222 = new StringBuilder("didConfigureTokenRefreshService=");
sb7222.append(this.onInstallConversionFailureNative);
AFLogger.afDebugLog(sb7222.toString());
if (!this.onInstallConversionFailureNative) {
}
if (AFInAppEventParameterName2) {
}
if (!AFInAppEventParameterName2) {
}
if (values("advertiserId") == null) {
}
AFInAppEventParameterName = AFa1cSDK.AFInAppEventParameterName(context.getContentResolver());
if (AFInAppEventParameterName != null) {
}
map2.put("registeredUninstall", Boolean.valueOf(AFe1ySDK.AFInAppEventType(aFb1dSDK)));
aFb1dSDK2 = aFb1dSDK;
int valueOf3222 = valueOf(aFb1dSDK2, AFInAppEventParameterName2);
map2.put("counter", Integer.toString(valueOf3222));
if (str6 != null) {
}
map2.put("iaecounter", Integer.toString(values(aFb1dSDK2, z15)));
if (AFInAppEventParameterName2) {
}
map2.put("isFirstCall", Boolean.toString(!AFLogger.afDebugLog()));
AFLogger.AFInAppEventType(AFInAppEventParameterName2, map2, valueOf3222);
map2.put("ivc", Boolean.valueOf(AFLogger.afErrorLog()));
if (aFb1dSDK2.values("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", AFLogger.AFKeystoreWrapper());
map2.put("last_boot_time", Long.valueOf(AFLogger.values()));
map2.put("disk", AFLogger.AFInAppEventParameterName());
aFa1cSDK = this.afInfoLog;
if (aFa1cSDK != null) {
}
return map2;
}
} catch (Throwable th10) {
AFLogger.afErrorLog(str, th10);
str5 = null;
if (str5 != null) {
}
AFLogger.values(map2, this.AFLogger);
valueOf2 = AFb1zSDK.valueOf(AFInAppEventType().init(), AFInAppEventType().values());
if (valueOf2 != null) {
}
map2.put("lang", Locale.getDefault().getDisplayLanguage());
map2.put("lang_code", Locale.getDefault().getLanguage());
map2.put("country", Locale.getDefault().getCountry());
AFLogger.AFKeystoreWrapper(map2, AFInAppEventParameterName2);
AFLogger.AFInAppEventType(map2);
String str122 = str2;
SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat(str122, Locale.US);
map2.put("installDate", AFInAppEventType(simpleDateFormat2, context.getPackageManager().getPackageInfo(context.getPackageName(), 0).firstInstallTime));
packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
if (packageInfo.versionCode > values2.values("versionCode", 0)) {
}
AFb1gSDK AFInAppEventParameterName42 = AFInAppEventType().AFInAppEventParameterName();
map2.put("app_version_code", Integer.toString(packageInfo.versionCode));
Context context22 = AFInAppEventParameterName42.valueOf.AFInAppEventType;
map2.put("app_version_name", AFa1fSDK.AFKeystoreWrapper(context22, context22.getPackageName()));
map2.put("targetSDKver", Integer.valueOf(AFInAppEventParameterName42.valueOf.AFInAppEventType.getApplicationInfo().targetSdkVersion));
long j162 = packageInfo.firstInstallTime;
long j172 = packageInfo.lastUpdateTime;
appsFlyerProperties = appsFlyerProperties2;
str6 = str8;
Locale locale2 = Locale.US;
aFb1dSDK = values2;
map2.put("date1", new SimpleDateFormat(str122, locale2).format(new Date(j162)));
map2.put("date2", new SimpleDateFormat(str122, locale2).format(new Date(j172)));
String values102 = AFLogger.values(simpleDateFormat2);
int i152 = (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 3;
int keyCodeFromString2 = KeyEvent.keyCodeFromString(str3) + 241;
String str132 = str3;
z15 = false;
int indexOf2 = 15 - TextUtils.indexOf(str132, str132, 0);
Object[] objArr32 = new Object[1];
values(i152, "\r\f\u0003\u0000\uffff\u000e\ufffb\uffde\u0002�\b\u000f\ufffb₩\u000e", keyCodeFromString2, indexOf2, true, objArr32);
z15 = false;
map2.put(((String) objArr32[0]).intern(), values102);
this.onInstallConversionFailureNative = AFe1ySDK.values(context);
StringBuilder sb72222 = new StringBuilder("didConfigureTokenRefreshService=");
sb72222.append(this.onInstallConversionFailureNative);
AFLogger.afDebugLog(sb72222.toString());
if (!this.onInstallConversionFailureNative) {
}
if (AFInAppEventParameterName2) {
}
if (!AFInAppEventParameterName2) {
}
if (values("advertiserId") == null) {
}
AFInAppEventParameterName = AFa1cSDK.AFInAppEventParameterName(context.getContentResolver());
if (AFInAppEventParameterName != null) {
}
map2.put("registeredUninstall", Boolean.valueOf(AFe1ySDK.AFInAppEventType(aFb1dSDK)));
aFb1dSDK2 = aFb1dSDK;
int valueOf32222 = valueOf(aFb1dSDK2, AFInAppEventParameterName2);
map2.put("counter", Integer.toString(valueOf32222));
if (str6 != null) {
}
map2.put("iaecounter", Integer.toString(values(aFb1dSDK2, z15)));
if (AFInAppEventParameterName2) {
}
map2.put("isFirstCall", Boolean.toString(!AFLogger.afDebugLog()));
AFLogger.AFInAppEventType(AFInAppEventParameterName2, map2, valueOf32222);
map2.put("ivc", Boolean.valueOf(AFLogger.afErrorLog()));
if (aFb1dSDK2.values("is_stop_tracking_used")) {
}
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", AFLogger.AFKeystoreWrapper());
map2.put("last_boot_time", Long.valueOf(AFLogger.values()));
map2.put("disk", AFLogger.AFInAppEventParameterName());
aFa1cSDK = this.afInfoLog;
if (aFa1cSDK != null) {
}
return map2;
}
} catch (PackageManager.NameNotFoundException e17) {
str4 = str;
nameNotFoundException = e17;
}
if (str5 != null) {
map2.put("fb", str5);
}
}
AFLogger.values(map2, this.AFLogger);
try {
valueOf2 = AFb1zSDK.valueOf(AFInAppEventType().init(), AFInAppEventType().values());
if (valueOf2 != null) {
map2.put("uid", valueOf2);
}
} catch (Exception e18) {
StringBuilder sb8 = new StringBuilder("ERROR: could not get uid ");
sb8.append(e18.getMessage());
AFLogger.afErrorLog(sb8.toString(), e18);
}
try {
map2.put("lang", Locale.getDefault().getDisplayLanguage());
} catch (Exception e19) {
AFLogger.afErrorLog("Exception while collecting display language name. ", e19);
}
try {
map2.put("lang_code", Locale.getDefault().getLanguage());
} catch (Exception e25) {
AFLogger.afErrorLog("Exception while collecting display language code. ", e25);
}
try {
map2.put("country", Locale.getDefault().getCountry());
} catch (Exception e26) {
AFLogger.afErrorLog("Exception while collecting country name. ", e26);
}
AFLogger.AFKeystoreWrapper(map2, AFInAppEventParameterName2);
AFLogger.AFInAppEventType(map2);
String str1222 = str2;
SimpleDateFormat simpleDateFormat22 = new SimpleDateFormat(str1222, Locale.US);
try {
map2.put("installDate", AFInAppEventType(simpleDateFormat22, context.getPackageManager().getPackageInfo(context.getPackageName(), 0).firstInstallTime));
} catch (Exception e27) {
AFLogger.afErrorLog("Exception while collecting install date. ", e27);
}
try {
packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
if (packageInfo.versionCode > values2.values("versionCode", 0)) {
values(context).AFInAppEventType("versionCode", packageInfo.versionCode);
}
AFb1gSDK AFInAppEventParameterName422 = AFInAppEventType().AFInAppEventParameterName();
map2.put("app_version_code", Integer.toString(packageInfo.versionCode));
Context context222 = AFInAppEventParameterName422.valueOf.AFInAppEventType;
map2.put("app_version_name", AFa1fSDK.AFKeystoreWrapper(context222, context222.getPackageName()));
map2.put("targetSDKver", Integer.valueOf(AFInAppEventParameterName422.valueOf.AFInAppEventType.getApplicationInfo().targetSdkVersion));
try {
long j1622 = packageInfo.firstInstallTime;
long j1722 = packageInfo.lastUpdateTime;
appsFlyerProperties = appsFlyerProperties2;
str6 = str8;
Locale locale22 = Locale.US;
aFb1dSDK = values2;
map2.put("date1", new SimpleDateFormat(str1222, locale22).format(new Date(j1622)));
map2.put("date2", new SimpleDateFormat(str1222, locale22).format(new Date(j1722)));
String values1022 = AFLogger.values(simpleDateFormat22);
int i1522 = (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 3;
int keyCodeFromString22 = KeyEvent.keyCodeFromString(str3) + 241;
String str1322 = str3;
z15 = false;
int indexOf22 = 15 - TextUtils.indexOf(str1322, str1322, 0);
Object[] objArr322 = new Object[1];
values(i1522, "\r\f\u0003\u0000\uffff\u000e\ufffb\uffde\u0002�\b\u000f\ufffb₩\u000e", keyCodeFromString22, indexOf22, true, objArr322);
z15 = false;
map2.put(((String) objArr322[0]).intern(), values1022);
} catch (Throwable th11) {
th = th11;
appsFlyerProperties = appsFlyerProperties2;
aFb1dSDK = values2;
str6 = str8;
}
} catch (Throwable th12) {
th = th12;
appsFlyerProperties = appsFlyerProperties2;
aFb1dSDK = values2;
str6 = str8;
}
this.onInstallConversionFailureNative = AFe1ySDK.values(context);
StringBuilder sb722222 = new StringBuilder("didConfigureTokenRefreshService=");
sb722222.append(this.onInstallConversionFailureNative);
AFLogger.afDebugLog(sb722222.toString());
if (!this.onInstallConversionFailureNative) {
map2.put("tokenRefreshConfigured", Boolean.FALSE);
}
if (AFInAppEventParameterName2) {
if (this.getLevel != null) {
if (map2.get("af_deeplink") != null) {
AFLogger.afDebugLog("Skip 'af' payload as deeplink was found by path");
} else {
JSONObject jSONObject2 = new JSONObject(this.getLevel);
jSONObject2.put("isPush", "true");
map2.put("af_deeplink", jSONObject2.toString());
}
}
this.getLevel = null;
map2.put("open_referrer", aFa1qSDK.valueOf);
if (!AFb1uSDK.AFInAppEventType(aFa1qSDK.afInfoLog)) {
map2.put("af_web_referrer", aFa1qSDK.afInfoLog);
}
}
if (!AFInAppEventParameterName2) {
try {
map2.putAll(AFInAppEventType().getLevel().values());
} catch (Exception e28) {
AFLogger.afErrorLogForExcManagerOnly("error while getting sensors data", e28);
StringBuilder sb9 = new StringBuilder("Unexpected exception from AFSensorManager: ");
sb9.append(e28.getMessage());
AFLogger.afRDLog(sb9.toString());
}
}
if (values("advertiserId") == null) {
AFa1cSDK.values(context, map2);
map2.put("GAID_retry", String.valueOf(values("advertiserId") != null ? true : z15));
}
AFInAppEventParameterName = AFa1cSDK.AFInAppEventParameterName(context.getContentResolver());
if (AFInAppEventParameterName != null) {
map2.put("amazon_aid", AFInAppEventParameterName.valueOf);
map2.put("amazon_aid_limit", String.valueOf(AFInAppEventParameterName.AFInAppEventType));
}
map2.put("registeredUninstall", Boolean.valueOf(AFe1ySDK.AFInAppEventType(aFb1dSDK)));
aFb1dSDK2 = aFb1dSDK;
int valueOf322222 = valueOf(aFb1dSDK2, AFInAppEventParameterName2);
map2.put("counter", Integer.toString(valueOf322222));
if (str6 != null) {
z15 = true;
}
map2.put("iaecounter", Integer.toString(values(aFb1dSDK2, z15)));
if (AFInAppEventParameterName2 && valueOf322222 == 1) {
appsFlyerProperties.AFInAppEventParameterName = true;
}
map2.put("isFirstCall", Boolean.toString(!AFLogger.afDebugLog()));
AFLogger.AFInAppEventType(AFInAppEventParameterName2, map2, valueOf322222);
map2.put("ivc", Boolean.valueOf(AFLogger.afErrorLog()));
if (aFb1dSDK2.values("is_stop_tracking_used")) {
map2.put("istu", String.valueOf(aFb1dSDK2.valueOf("is_stop_tracking_used")));
}
HashMap hashMap22222 = new HashMap();
hashMap22222.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
hashMap22222.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
map2.put("cell", hashMap22222);
map2.put("sig", AFLogger.AFKeystoreWrapper());
map2.put("last_boot_time", Long.valueOf(AFLogger.values()));
map2.put("disk", AFLogger.AFInAppEventParameterName());
aFa1cSDK = this.afInfoLog;
if (aFa1cSDK != null && (strArr = aFa1cSDK.AFInAppEventType) != null) {
map2.put("sharing_filter", strArr);
}
} catch (Throwable th13) {
AFLogger.afErrorLog(th13.getLocalizedMessage(), th13, true);
}
return map2;
}
public static void valueOf(AFc1xSDK aFc1xSDK) {
int i15 = onDeepLinking + 87;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
aFc1xSDK.onAppOpenAttributionNative().AFInAppEventType();
int i17 = onDeepLinking + 53;
onAttributionFailure = i17 % 128;
if (i17 % 2 != 0) {
throw null;
}
}
private static boolean valueOf(String str, boolean z15) {
int i15 = onDeepLinking + 21;
onAttributionFailure = i15 % 128;
if (i15 % 2 != 0) {
AppsFlyerProperties.getInstance().getBoolean(str, z15);
throw null;
}
boolean z16 = AppsFlyerProperties.getInstance().getBoolean(str, z15);
int i16 = onAttributionFailure + 117;
onDeepLinking = i16 % 128;
if (i16 % 2 == 0) {
int i17 = 36 / 0;
}
return z16;
}
public final AFb1dSDK values(Context context) {
int i15 = onDeepLinking + 19;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
AFKeystoreWrapper(context);
AFb1dSDK values2 = AFInAppEventType().values();
int i17 = onDeepLinking + 33;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
return values2;
}
private void valueOf(AFa1qSDK aFa1qSDK) {
Context context;
int i15 = onAttributionFailure + 45;
onDeepLinking = i15 % 128;
byte b15 = 0;
int i16 = 0;
if (i15 % 2 == 0) {
context = AFInAppEventType().init().AFInAppEventType;
int i17 = 41 / 0;
} else {
context = AFInAppEventType().init().AFInAppEventType;
}
}
private int values(AFb1dSDK aFb1dSDK, boolean z15) {
int i15 = onDeepLinking + 119;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
return AFKeystoreWrapper(aFb1dSDK, "appsFlyerInAppEventCount", z15);
}
AFKeystoreWrapper(aFb1dSDK, "appsFlyerInAppEventCount", z15);
throw null;
}
@NonNull
@Deprecated
public static String values(HttpURLConnection httpURLConnection) {
InputStreamReader inputStreamReader;
StringBuilder sb5 = new StringBuilder();
BufferedReader bufferedReader = null;
try {
try {
InputStream errorStream = httpURLConnection.getErrorStream();
if (errorStream == null) {
errorStream = httpURLConnection.getInputStream();
}
inputStreamReader = new InputStreamReader(errorStream, Charset.defaultCharset());
try {
BufferedReader bufferedReader2 = new BufferedReader(inputStreamReader);
int i15 = onAttributionFailure + 99;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
boolean z15 = false;
while (true) {
try {
String readLine = bufferedReader2.readLine();
if (readLine != null) {
int i17 = onAttributionFailure + 111;
onDeepLinking = i17 % 128;
if (i17 % 2 == 0) {
break;
}
sb5.append(z15 ? '\n' : "");
sb5.append(readLine);
z15 = true;
} else {
bufferedReader2.close();
inputStreamReader.close();
int i18 = onDeepLinking + 97;
onAttributionFailure = i18 % 128;
int i19 = i18 % 2;
break;
}
} catch (Throwable th4) {
th = th4;
bufferedReader = bufferedReader2;
try {
StringBuilder sb6 = new StringBuilder("Could not read connection response from: ");
sb6.append(httpURLConnection.getURL().toString());
AFLogger.afErrorLog(sb6.toString(), th);
if (bufferedReader != null) {
bufferedReader.close();
}
if (inputStreamReader != null) {
inputStreamReader.close();
}
String obj = sb5.toString();
try {
new JSONObject(obj);
return obj;
} catch (JSONException e15) {
AFLogger.afErrorLogForExcManagerOnly("error while parsing readServerResponse", e15);
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("string_response", obj);
return jSONObject.toString();
} catch (JSONException e16) {
AFLogger.afErrorLogForExcManagerOnly("RESPONSE_NOT_JSON error", e16);
return new JSONObject().toString();
}
}
} catch (Throwable th5) {
if (bufferedReader != null) {
try {
bufferedReader.close();
} catch (Throwable th6) {
AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th6);
throw th5;
}
}
if (inputStreamReader != null) {
inputStreamReader.close();
}
throw th5;
}
}
}
} catch (Throwable th7) {
th = th7;
}
} catch (Throwable th8) {
th = th8;
inputStreamReader = null;
}
} catch (Throwable th9) {
AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th9);
}
}
private static void AFInAppEventType(String str, String str2) {
int i15 = onDeepLinking + 43;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
AppsFlyerProperties.getInstance().set(str, str2);
} else {
AppsFlyerProperties.getInstance().set(str, str2);
throw null;
}
}
private static void AFInAppEventType(String str, boolean z15) {
int i15 = onDeepLinking + 39;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
AppsFlyerProperties.getInstance().set(str, z15);
} else {
AppsFlyerProperties.getInstance().set(str, z15);
int i16 = 70 / 0;
}
}
public void AFInAppEventType(AFf1qSDK aFf1qSDK) {
int values2;
boolean valueOf2;
int i15 = onAttributionFailure + 123;
onDeepLinking = i15 % 128;
boolean z15 = false;
if (i15 % 2 == 0) {
AFb1dSDK values3 = values(this.init);
values2 = AFInAppEventType().AFInAppEventParameterName().AFInAppEventType.values("appsFlyerCount", 0);
valueOf2 = values3.valueOf(AppsFlyerProperties.NEW_REFERRER_SENT);
} else {
AFb1dSDK values4 = values(this.init);
values2 = AFInAppEventType().AFInAppEventParameterName().AFInAppEventType.values("appsFlyerCount", 0);
valueOf2 = values4.valueOf(AppsFlyerProperties.NEW_REFERRER_SENT);
}
if (values2 == 1) {
int i16 = onAttributionFailure + 99;
int i17 = i16 % 128;
onDeepLinking = i17;
int i18 = i16 % 2;
if (!z15) {
int i19 = i17 + 35;
onAttributionFailure = i19 % 128;
int i25 = i19 % 2;
}
valueOf(new AFe1lSDK());
}
int i26 = onDeepLinking + 113;
onAttributionFailure = i26 % 128;
int i27 = i26 % 2;
}
private void AFKeystoreWrapper(Context context, Map<String, Object> map, AFa1qSDK aFa1qSDK) {
Activity activity;
int i15 = onAttributionFailure + 71;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
AFKeystoreWrapper(context);
aFa1qSDK.values(map);
int i16 = 19 / 0;
} else {
AFKeystoreWrapper(context);
aFa1qSDK.values(map);
}
values(aFa1qSDK, activity);
}
private void AFKeystoreWrapper(AppsFlyerConversionListener appsFlyerConversionListener) {
int i15 = onDeepLinking + 99;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
if (appsFlyerConversionListener == null) {
return;
}
this.AFInAppEventParameterName = appsFlyerConversionListener;
int i17 = onDeepLinking + 103;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
}
private void AFInAppEventType(Context context) {
this.onResponseErrorNative = new HashMap();
final long currentTimeMillis = System.currentTimeMillis();
final AFa1uSDK.AFa1zSDK aFa1zSDK = new AFa1uSDK.AFa1zSDK() {
@Override
public final void AFKeystoreWrapper(String str) {
AFa1eSDK.values(AFa1eSDK.this).put("error", str);
}
@Override
public final void valueOf(String str, String str2, String str3) {
if (str != null) {
AFLogger.afInfoLog("Facebook Deferred AppLink data received: ".concat(str));
AFa1eSDK.values(AFa1eSDK.this).put(ElementGenerator.TYPE_LINK, str);
if (str2 != null) {
AFa1eSDK.values(AFa1eSDK.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);
AFa1eSDK.values(AFa1eSDK.this).put("extras", hashMap);
}
} else {
AFa1eSDK.values(AFa1eSDK.this).put(ElementGenerator.TYPE_LINK, "");
}
AFa1eSDK.values(AFa1eSDK.this).put("ttr", String.valueOf(System.currentTimeMillis() - currentTimeMillis));
}
};
try {
j9.t tVar = j9.t.f77558a;
j9.t.class.getMethod("sdkInitialize", Context.class).invoke(null, context);
final Class<x9.a> cls = x9.a.class;
int i15 = x9.a.f173543h;
Method method = x9.a.class.getMethod("fetchDeferredAppLinkData", Context.class, String.class, a.b.class);
Object newProxyInstance = Proxy.newProxyInstance(a.b.class.getClassLoader(), new Class[]{a.b.class}, 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;
}
AFa1zSDK aFa1zSDK2 = aFa1zSDK;
if (aFa1zSDK2 != null) {
aFa1zSDK2.valueOf(str2, str3, str);
}
} else {
AFa1zSDK aFa1zSDK3 = aFa1zSDK;
if (aFa1zSDK3 != null) {
aFa1zSDK3.valueOf(null, null, null);
}
}
return null;
}
AFa1zSDK aFa1zSDK4 = aFa1zSDK;
if (aFa1zSDK4 != null) {
aFa1zSDK4.AFKeystoreWrapper("onDeferredAppLinkDataFetched invocation failed");
}
return null;
}
});
String string = context.getString(context.getResources().getIdentifier("facebook_app_id", "string", context.getPackageName()));
if (true ^ TextUtils.isEmpty(string)) {
method.invoke(null, context, string, newProxyInstance);
int i16 = onAttributionFailure + 3;
onDeepLinking = i16 % 128;
int i17 = i16 % 2;
return;
}
int i18 = onAttributionFailure + 93;
onDeepLinking = i18 % 128;
int i19 = i18 % 2;
aFa1zSDK.AFKeystoreWrapper("Facebook app id not defined in resources");
} catch (ClassNotFoundException e15) {
AFLogger.afErrorLogForExcManagerOnly("FB class missing error", e15);
aFa1zSDK.AFKeystoreWrapper(e15.toString());
} catch (IllegalAccessException e16) {
AFLogger.afErrorLogForExcManagerOnly("FB illegal access", e16);
aFa1zSDK.AFKeystoreWrapper(e16.toString());
} catch (NoSuchMethodException e17) {
AFLogger.afErrorLogForExcManagerOnly("FB method missing error", e17);
aFa1zSDK.AFKeystoreWrapper(e17.toString());
} catch (InvocationTargetException e18) {
AFLogger.afErrorLogForExcManagerOnly("FB invocation error", e18);
aFa1zSDK.AFKeystoreWrapper(e18.toString());
}
}
private void AFKeystoreWrapper(Context context, String str, Map<String, Object> map, String str2, String str3) {
int i15 = onAttributionFailure;
int i16 = i15 + 27;
onDeepLinking = i16 % 128;
int i17 = i16 % 2;
if (str != null) {
int i18 = i15 + 117;
onDeepLinking = i18 % 128;
if (i18 % 2 == 0) {
int i19 = 84 / 0;
}
AFKeystoreWrapper(context);
r0.afDebugLog = str;
r0.values = map;
r0.afErrorLog = str2;
r0.valueOf = str3;
AFInAppEventType(r0);
}
AFa1qSDK aFe1hSDK = new AFe1hSDK();
AFKeystoreWrapper(context);
aFe1hSDK.afDebugLog = str;
aFe1hSDK.values = map;
aFe1hSDK.afErrorLog = str2;
aFe1hSDK.valueOf = str3;
AFInAppEventType(aFe1hSDK);
}
public void values(Context context, Intent intent) {
Uri uri;
int i15 = onAttributionFailure + 67;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
AFKeystoreWrapper(context);
AFb1sSDK AppsFlyer2dXConversionCallback = AFInAppEventType().AppsFlyer2dXConversionCallback();
AFb1dSDK values2 = AFInAppEventType().values();
if (intent == null || !"android.intent.action.VIEW".equals(intent.getAction())) {
uri = null;
} else {
int i17 = onDeepLinking + 35;
onAttributionFailure = i17 % 128;
if (i17 % 2 != 0) {
intent.getData();
throw null;
}
uri = intent.getData();
}
boolean z15 = false;
if (uri != null && !uri.toString().isEmpty()) {
int i18 = onDeepLinking + 115;
onAttributionFailure = i18 % 128;
if (i18 % 2 == 0) {
z15 = true;
}
}
if (values2.valueOf("ddl_sent") && !z15) {
AppsFlyer2dXConversionCallback.AFKeystoreWrapper("No direct deep link", null);
} else {
AppsFlyer2dXConversionCallback.valueOf(new HashMap(), intent, context);
}
}
private void AFKeystoreWrapper(Context context, String str) {
byte b15 = 0;
AFa1qSDK AFInAppEventParameterName = new AFe1gSDK().AFInAppEventParameterName(AFInAppEventType().AFInAppEventParameterName().AFInAppEventType.values("appsFlyerCount", 0));
AFInAppEventParameterName.afErrorLog = str;
if (str != null && str.length() > 5 && AFInAppEventParameterName(AFInAppEventParameterName, values(context))) {
AFInAppEventParameterName(AFInAppEventType().valueOf(), new AFa1vSDK(this, AFInAppEventParameterName, b15), 5L, TimeUnit.MILLISECONDS);
int i15 = onAttributionFailure + 63;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
}
int i17 = onAttributionFailure + 61;
onDeepLinking = i17 % 128;
if (i17 % 2 == 0) {
int i18 = 80 / 0;
}
}
private AFd1nSDK.AFa1xSDK AFKeystoreWrapper(final Map<String, String> map) {
AFd1nSDK.AFa1xSDK aFa1xSDK = new AFd1nSDK.AFa1xSDK() {
@Override
public final void AFKeystoreWrapper(String str) {
AFa1eSDK.this.AFInAppEventType().AppsFlyer2dXConversionCallback().AFKeystoreWrapper(str, DeepLinkResult.Error.NETWORK);
}
@Override
public final void values(Map<String, String> map2) {
for (String str : map2.keySet()) {
map.put(str, map2.get(str));
}
AFa1eSDK.this.AFInAppEventType().AppsFlyer2dXConversionCallback().AFInAppEventType(map);
}
};
int i15 = onDeepLinking + 25;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
return aFa1xSDK;
}
throw null;
}
private static void values(int i15, String str, int i16, int i17, boolean z15, Object[] objArr) {
char[] cArr;
String str2;
if (str != null) {
cArr = str.toCharArray();
}
char[] cArr2 = cArr;
synchronized (AFg1mSDK.AFKeystoreWrapper) {
try {
char[] cArr3 = new char[i17];
AFg1mSDK.AFInAppEventParameterName = 0;
while (true) {
int i18 = AFg1mSDK.AFInAppEventParameterName;
if (i18 >= i17) {
break;
}
AFg1mSDK.values = cArr2[i18];
cArr3[AFg1mSDK.AFInAppEventParameterName] = (char) (AFg1mSDK.values + i16);
int i19 = AFg1mSDK.AFInAppEventParameterName;
cArr3[i19] = (char) (cArr3[i19] - onResponse);
AFg1mSDK.AFInAppEventParameterName = i19 + 1;
}
if (i15 > 0) {
AFg1mSDK.valueOf = i15;
char[] cArr4 = new char[i17];
System.arraycopy(cArr3, 0, cArr4, 0, i17);
int i25 = AFg1mSDK.valueOf;
System.arraycopy(cArr4, 0, cArr3, i17 - i25, i25);
int i26 = AFg1mSDK.valueOf;
System.arraycopy(cArr4, i26, cArr3, 0, i17 - i26);
}
if (z15) {
char[] cArr5 = new char[i17];
AFg1mSDK.AFInAppEventParameterName = 0;
while (true) {
int i27 = AFg1mSDK.AFInAppEventParameterName;
if (i27 >= i17) {
break;
}
cArr5[i27] = cArr3[(i17 - i27) - 1];
AFg1mSDK.AFInAppEventParameterName = i27 + 1;
}
cArr3 = cArr5;
}
str2 = new String(cArr3);
} catch (Throwable th4) {
throw th4;
}
}
objArr[0] = str2;
}
private static void AFKeystoreWrapper(String str) {
try {
if (new JSONObject(str).has("pid")) {
int i15 = onAttributionFailure + 21;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
AFInAppEventType("preInstallName", str);
int i16 = 83 / 0;
return;
} else {
AFInAppEventType("preInstallName", str);
return;
}
}
AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
} catch (JSONException e15) {
AFLogger.afErrorLog("Error parsing JSON for preinstall", e15);
}
}
private void AFInAppEventType(Context context, AFe1nSDK aFe1nSDK) {
AFKeystoreWrapper(context);
AFe1mSDK afDebugLog = AFInAppEventType().afDebugLog();
AFe1tSDK AFInAppEventParameterName = AFa1rSDK.AFInAppEventParameterName(context);
if (afDebugLog.valueOf()) {
int i15 = onAttributionFailure + 27;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
afDebugLog.AFInAppEventParameterName.put("api_name", aFe1nSDK.toString());
afDebugLog.AFKeystoreWrapper(AFInAppEventParameterName);
int i17 = onAttributionFailure + 23;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
}
afDebugLog.values();
}
private int AFKeystoreWrapper(AFb1dSDK aFb1dSDK, String str, boolean z15) {
int values2 = aFb1dSDK.values(str, 0);
if (z15) {
int i15 = onAttributionFailure + 15;
onDeepLinking = i15 % 128;
values2 = i15 % 2 == 0 ? values2 + 59 : values2 + 1;
aFb1dSDK.AFInAppEventType(str, values2);
}
if (!(!AFInAppEventType().afErrorLogForExcManagerOnly().afInfoLog())) {
int i16 = onDeepLinking + 5;
onAttributionFailure = i16 % 128;
if (i16 % 2 != 0) {
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName(String.valueOf(values2));
throw null;
}
AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName(String.valueOf(values2));
}
return values2;
}
public final void AFKeystoreWrapper(@NonNull Context context) {
int i15 = onAttributionFailure + 39;
onDeepLinking = i15 % 128;
if (i15 % 2 == 0) {
throw null;
}
AFc1ySDK aFc1ySDK = this.onConversionDataFail;
if (context != null) {
AFb1bSDK aFb1bSDK = aFc1ySDK.valueOf;
if (context != null) {
aFb1bSDK.AFInAppEventType = context.getApplicationContext();
int i16 = onDeepLinking + 91;
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
}
}
}
private void AFInAppEventType(Context context, String str, Map<String, Object> map) {
Activity activity;
AFe1iSDK aFe1iSDK = new AFe1iSDK();
aFe1iSDK.afDebugLog = str;
aFe1iSDK.values = map;
if (context instanceof Activity) {
int i15 = onAttributionFailure + 103;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
activity = (Activity) context;
} else {
int i17 = onDeepLinking + ISO781611.SMT_TAG;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
activity = null;
}
values(aFe1iSDK, activity);
int i19 = onDeepLinking + 9;
onAttributionFailure = i19 % 128;
int i25 = i19 % 2;
}
public final void valueOf(Context context, Map<String, Object> map, Uri uri) {
AFKeystoreWrapper(context);
if (!map.containsKey("af_deeplink")) {
int i15 = onAttributionFailure + 29;
onDeepLinking = i15 % 128;
if (i15 % 2 != 0) {
String AFInAppEventType2 = AFInAppEventType(uri.toString());
AFb1sSDK AppsFlyer2dXConversionCallback = AFInAppEventType().AppsFlyer2dXConversionCallback();
String str = AppsFlyer2dXConversionCallback.AFKeystoreWrapper;
if (str != null && AppsFlyer2dXConversionCallback.values != null && AFInAppEventType2.contains(str)) {
Uri.Builder buildUpon = Uri.parse(AFInAppEventType2).buildUpon();
Uri.Builder buildUpon2 = Uri.EMPTY.buildUpon();
Iterator<Map.Entry<String, String>> it = AppsFlyer2dXConversionCallback.values.entrySet().iterator();
int i16 = onDeepLinking + 115;
while (true) {
onAttributionFailure = i16 % 128;
int i17 = i16 % 2;
if (!it.hasNext()) {
break;
}
int i18 = onDeepLinking + 23;
onAttributionFailure = i18 % 128;
int i19 = i18 % 2;
Map.Entry<String, String> next = it.next();
buildUpon.appendQueryParameter(next.getKey(), next.getValue());
buildUpon2.appendQueryParameter(next.getKey(), next.getValue());
i16 = onDeepLinking + 93;
}
AFInAppEventType2 = buildUpon.build().toString();
map.put("appended_query_params", buildUpon2.build().getEncodedQuery());
}
map.put("af_deeplink", AFInAppEventType2);
} else {
AFInAppEventType(uri.toString());
String str2 = AFInAppEventType().AppsFlyer2dXConversionCallback().AFKeystoreWrapper;
throw null;
}
}
HashMap hashMap = new HashMap();
hashMap.put(ElementGenerator.TYPE_LINK, uri.toString());
AFd1nSDK aFd1nSDK = new AFd1nSDK(AFInAppEventType(), UUID.randomUUID(), uri);
if (aFd1nSDK.afWarnLog()) {
map.put("isBrandedDomain", Boolean.TRUE);
}
AFa1fSDK.AFInAppEventType(context, hashMap, uri);
if (aFd1nSDK.AFVersionDeclaration()) {
aFd1nSDK.afInfoLog = AFKeystoreWrapper(hashMap);
AFc1bSDK AFVersionDeclaration = AFInAppEventType().AFVersionDeclaration();
AFVersionDeclaration.AFKeystoreWrapper.execute(new AFc1bSDK.AnonymousClass4(aFd1nSDK));
return;
}
AFInAppEventType().AppsFlyer2dXConversionCallback().AFInAppEventType(hashMap);
}
public static String AFInAppEventType(SimpleDateFormat simpleDateFormat, long j15) {
simpleDateFormat.setTimeZone(DesugarTimeZone.getTimeZone("UTC"));
String format = simpleDateFormat.format(new Date(j15));
int i15 = onAttributionFailure + 43;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
return format;
}
private void AFInAppEventType(AFa1qSDK aFa1qSDK) {
int i15 = onAttributionFailure + 95;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
byte b15 = 0;
boolean z15 = aFa1qSDK.afDebugLog == null;
if (AFKeystoreWrapper()) {
AFLogger.afInfoLog("CustomerUserId not set, reporting is disabled", true);
return;
}
if (z15) {
int i17 = onAttributionFailure + 23;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
if (!(!AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.LAUNCH_PROTECT_ENABLED, true))) {
if (afInfoLog()) {
int i19 = onDeepLinking + 109;
onAttributionFailure = i19 % 128;
if (i19 % 2 == 0) {
AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.AFInAppEventParameterName;
if (appsFlyerRequestListener != null) {
appsFlyerRequestListener.onError(10, "Event timeout. Check 'minTimeBetweenSessions' param");
return;
}
return;
}
throw null;
}
} else {
AFLogger.afInfoLog("Allowing multiple launches within a 5 second time window.");
}
this.afDebugLog = System.currentTimeMillis();
}
AFInAppEventParameterName(AFInAppEventType().valueOf(), new AFa1vSDK(this, aFa1qSDK, b15), 0L, TimeUnit.MILLISECONDS);
int i25 = onAttributionFailure + 59;
onDeepLinking = i25 % 128;
int i26 = i25 % 2;
}
private int AFInAppEventType(AFb1dSDK aFb1dSDK) {
int i15 = onAttributionFailure + 115;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
int AFKeystoreWrapper2 = AFKeystoreWrapper(aFb1dSDK, "appsFlyerAdImpressionCount", true);
int i17 = onAttributionFailure + 83;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
return AFKeystoreWrapper2;
}
private static String AFInAppEventType(String str) {
int i15 = onDeepLinking + 77;
int i16 = i15 % 128;
onAttributionFailure = i16;
if (i15 % 2 != 0) {
int i17 = 45 / 0;
}
}
private static String valueOf(String str) {
int i15 = onAttributionFailure + 117;
onDeepLinking = i15 % 128;
int i16 = i15 % 2;
int indexOf = str.indexOf(63);
if (indexOf == -1) {
int i17 = onAttributionFailure + 45;
onDeepLinking = i17 % 128;
if (i17 % 2 != 0) {
return "";
}
throw null;
}
String substring = str.substring(indexOf);
int i18 = onAttributionFailure + 93;
onDeepLinking = i18 % 128;
int i19 = i18 % 2;
return substring;
}
public static synchronized SharedPreferences valueOf(Context context) {
SharedPreferences sharedPreferences;
synchronized (AFa1eSDK.class) {
try {
int i15 = onDeepLinking + 119;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
if (valueOf().onConversionDataSuccess == null) {
int i17 = onAttributionFailure + 7;
onDeepLinking = i17 % 128;
int i18 = i17 % 2;
StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads();
try {
valueOf().onConversionDataSuccess = context.getApplicationContext().getSharedPreferences("appsflyer-data", 0);
StrictMode.setThreadPolicy(allowThreadDiskReads);
} catch (Throwable th4) {
StrictMode.setThreadPolicy(allowThreadDiskReads);
throw th4;
}
}
sharedPreferences = valueOf().onConversionDataSuccess;
} catch (Throwable th5) {
throw th5;
}
}
return sharedPreferences;
}
public final int valueOf(AFb1dSDK aFb1dSDK, boolean z15) {
int i15 = onDeepLinking + 9;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
int AFKeystoreWrapper2 = AFKeystoreWrapper(aFb1dSDK, "appsFlyerCount", z15);
int i17 = onDeepLinking + 13;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
return AFKeystoreWrapper2;
}
public static String AFInAppEventType(AFb1dSDK aFb1dSDK, String str) {
String values2 = aFb1dSDK.values("CACHED_CHANNEL", (String) null);
if (values2 != null) {
int i15 = onAttributionFailure + 97;
int i16 = i15 % 128;
onDeepLinking = i16;
int i17 = i15 % 2;
int i18 = i16 + 115;
onAttributionFailure = i18 % 128;
int i19 = i18 % 2;
return values2;
}
aFb1dSDK.AFInAppEventParameterName("CACHED_CHANNEL", str);
return str;
}
private void AFInAppEventType(@NonNull AFa1qSDK aFa1qSDK, Activity activity) {
int i15 = onDeepLinking + 117;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
AFf1vSDK onResponseErrorNative = AFInAppEventType().onResponseErrorNative();
aFa1qSDK.valueOf = onResponseErrorNative.values(activity);
aFa1qSDK.afInfoLog = onResponseErrorNative.valueOf(activity);
int i17 = onDeepLinking + 13;
onAttributionFailure = i17 % 128;
if (i17 % 2 != 0) {
throw null;
}
}
private static String AFInAppEventParameterName(Activity activity) {
Intent intent;
Bundle extras;
String str = null;
if (activity != null && (intent = activity.getIntent()) != null) {
int i15 = onAttributionFailure + 43;
onDeepLinking = i15 % 128;
try {
if (i15 % 2 == 0) {
extras = intent.getExtras();
int i16 = 96 / 0;
if (extras != null) {
}
} else {
extras = intent.getExtras();
}
str = extras.getString("af");
if (str != null) {
AFLogger.afInfoLog("Push Notification received af payload = ".concat(String.valueOf(str)));
extras.remove("af");
activity.setIntent(intent.putExtras(extras));
int i17 = onDeepLinking + 41;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
}
} catch (Throwable th4) {
AFLogger.afErrorLog(th4.getMessage(), th4);
}
}
return str;
}
private int AFInAppEventParameterName(AFb1dSDK aFb1dSDK) {
int i15 = onDeepLinking + 119;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
int AFKeystoreWrapper2 = AFKeystoreWrapper(aFb1dSDK, "appsFlyerAdRevenueCount", true);
int i17 = onDeepLinking + 59;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
return AFKeystoreWrapper2;
}
public static boolean AFInAppEventParameterName(Context context) {
int i15 = onDeepLinking + 35;
onAttributionFailure = i15 % 128;
try {
} catch (Throwable th4) {
AFLogger.afErrorLog("WARNING: Google play services is unavailable. ", th4);
}
if (i15 % 2 != 0) {
int i16 = 53 / 0;
if (GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) == 0) {
int i17 = onDeepLinking + 107;
onAttributionFailure = i17 % 128;
return i17 % 2 == 0;
}
int i18 = onDeepLinking + 55;
onAttributionFailure = i18 % 128;
int i19 = i18 % 2;
try {
context.getPackageManager().getPackageInfo("com.google.android.gms", 0);
return true;
} catch (PackageManager.NameNotFoundException e15) {
AFLogger.afErrorLog("WARNING: Google Play Services is unavailable. ", e15);
return false;
}
}
}
private static void AFInAppEventParameterName(@NonNull ScheduledExecutorService scheduledExecutorService, Runnable runnable, long j15, TimeUnit timeUnit) {
int i15 = onDeepLinking + 111;
onAttributionFailure = i15 % 128;
int i16 = i15 % 2;
try {
scheduledExecutorService.schedule(runnable, j15, timeUnit);
int i17 = onDeepLinking + ISO781611.SMT_TAG;
onAttributionFailure = i17 % 128;
int i18 = i17 % 2;
} catch (RejectedExecutionException e15) {
AFLogger.afErrorLog("scheduleJob failed with RejectedExecutionException Exception", e15);
} catch (Throwable th4) {
AFLogger.afErrorLog("scheduleJob failed with Exception", th4);
}
}
}