正在查看: EfectivoYa v2.3 应用的 AFa1dSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: EfectivoYa v2.3 应用的 AFa1dSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.StrictMode;
import android.text.TextUtils;
import android.view.MotionEvent;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import androidx.appcompat.app.AppCompatDelegate;
import androidx.constraintlayout.core.motion.utils.TypedValues;
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.AFc1uSDK;
import com.appsflyer.internal.AFd1iSDK;
import com.appsflyer.internal.AFd1tSDK.AnonymousClass5;
import com.appsflyer.internal.AFf1jSDK;
import com.appsflyer.internal.components.network.http.ResponseNetwork;
import com.appsflyer.internal.platform_extension.PluginInfo;
import com.google.android.gms.common.GoogleApiAvailability;
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.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.TimeZone;
import java.util.UUID;
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 kotlin.jvm.internal.Intrinsics;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public final class AFa1dSDK extends AppsFlyerLib {
static AppsFlyerInAppPurchaseValidatorListener AFInAppEventParameterName = null;
public static final String AFKeystoreWrapper;
@VisibleForTesting
private static AFa1dSDK afErrorLog = null;
@VisibleForTesting
private static String afRDLog = null;
private static int onAttributionFailure = 0;
private static int onConversionDataFail = 1;
private static char[] onResponse;
static final String valueOf;
public static final String values;
private String AFLogger$LogLevel;
public AFa1bSDK afDebugLog;
private Map<Long, String> afErrorLogForExcManagerOnly;
String afInfoLog;
private boolean init;
@NonNull
private final AFc1xSDK onAppOpenAttribution;
private SharedPreferences onAttributionFailureNative;
private Map<String, Object> onConversionDataSuccess;
private boolean onInstallConversionDataLoadedNative;
private Application onInstallConversionFailureNative;
private AFb1hSDK onResponseErrorNative;
private String onResponseNative;
public volatile AppsFlyerConversionListener AFInAppEventType = null;
private long AFLogger = -1;
private long afWarnLog = -1;
private long getLevel = TimeUnit.SECONDS.toMillis(5);
private boolean AFVersionDeclaration = false;
private final AFb1xSDK onAppOpenAttributionNative = new AFb1xSDK();
private boolean AppsFlyer2dXConversionCallback = false;
private boolean onDeepLinkingNative = false;
private final Executor onDeepLinking = Executors.newSingleThreadExecutor();
static class AnonymousClass2 {
static final int[] AFInAppEventParameterName;
static {
int[] iArr = new int[AppsFlyerProperties.EmailsCryptType.values().length];
AFInAppEventParameterName = iArr;
try {
iArr[AppsFlyerProperties.EmailsCryptType.SHA256.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
AFInAppEventParameterName[AppsFlyerProperties.EmailsCryptType.NONE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
}
}
class AFa1vSDK implements Runnable {
private final AFa1qSDK AFInAppEventParameterName;
AFa1vSDK(AFa1dSDK aFa1dSDK, AFa1qSDK aFa1qSDK, byte b2) {
this(aFa1qSDK);
}
@Override
public final void run() {
AFa1dSDK.values(AFa1dSDK.this, this.AFInAppEventParameterName);
}
private AFa1vSDK(AFa1qSDK aFa1qSDK) {
this.AFInAppEventParameterName = aFa1qSDK;
}
}
class AFa1xSDK implements AFd1zSDK {
private AFa1xSDK() {
}
private boolean valueOf() {
return AFa1dSDK.this.AFInAppEventType != null;
}
@Override
public final void AFInAppEventType(AFd1uSDK<?> aFd1uSDK) {
if (aFd1uSDK instanceof AFd1hSDK) {
AFa1dSDK.this.AFInAppEventParameterName().AFLogger().AFKeystoreWrapper(((AFd1eSDK) aFd1uSDK).afInfoLog.afErrorLog);
}
}
@Override
public final void AFKeystoreWrapper(AFd1uSDK<?> aFd1uSDK) {
}
AFa1xSDK(AFa1dSDK aFa1dSDK, byte b2) {
this();
}
@Override
public final void AFInAppEventType(AFd1uSDK<?> aFd1uSDK, AFd1ySDK aFd1ySDK) {
JSONObject AFInAppEventParameterName;
AFb1oSDK AFKeystoreWrapper;
if (aFd1uSDK instanceof AFd1eSDK) {
AFd1eSDK aFd1eSDK = (AFd1eSDK) aFd1uSDK;
boolean z2 = aFd1uSDK instanceof AFd1hSDK;
if (z2 && valueOf()) {
AFd1hSDK aFd1hSDK = (AFd1hSDK) aFd1uSDK;
boolean z3 = true;
if (aFd1hSDK.AFKeystoreWrapper != AFd1ySDK.SUCCESS && aFd1hSDK.AFInAppEventParameterName != 1) {
z3 = false;
}
if (z3) {
AFe1kSDK aFe1kSDK = new AFe1kSDK(aFd1hSDK, AFa1dSDK.this.AFInAppEventParameterName().AFKeystoreWrapper());
AFd1tSDK level = AFa1dSDK.this.AFInAppEventParameterName().getLevel();
level.AFKeystoreWrapper.execute(level.new AnonymousClass5(aFe1kSDK));
}
}
if (aFd1ySDK == AFd1ySDK.SUCCESS) {
AFa1dSDK aFa1dSDK = AFa1dSDK.this;
aFa1dSDK.valueOf(AFa1dSDK.values(aFa1dSDK)).values("sentSuccessfully", "true");
if (!(aFd1uSDK instanceof AFd1gSDK) && (AFKeystoreWrapper = new AFe1sSDK(AFa1dSDK.values(AFa1dSDK.this)).AFKeystoreWrapper()) != null && AFKeystoreWrapper.valueOf()) {
String str = AFKeystoreWrapper.AFKeystoreWrapper;
AFLogger.afDebugLog("Resending Uninstall token to AF servers: ".concat(String.valueOf(str)));
AFe1sSDK.AFKeystoreWrapper(str);
}
ResponseNetwork responseNetwork = ((AFd1nSDK) aFd1eSDK).AFLogger;
if (responseNetwork != null && (AFInAppEventParameterName = AFb1tSDK.AFInAppEventParameterName((String) responseNetwork.getBody())) != null) {
AFa1dSDK.AFInAppEventType(AFa1dSDK.this, AFInAppEventParameterName.optBoolean("send_background", false));
}
if (z2) {
AFa1dSDK.values(AFa1dSDK.this, System.currentTimeMillis());
return;
}
return;
}
return;
}
if (!(aFd1uSDK instanceof AFe1kSDK) || aFd1ySDK == AFd1ySDK.SUCCESS) {
return;
}
AFe1rSDK aFe1rSDK = new AFe1rSDK(AFa1dSDK.this.AFInAppEventParameterName());
AFd1tSDK level2 = AFa1dSDK.this.AFInAppEventParameterName().getLevel();
level2.AFKeystoreWrapper.execute(level2.new AnonymousClass5(aFe1rSDK));
}
}
class AFa1ySDK implements Runnable {
private final AFa1qSDK valueOf;
AFa1ySDK(AFa1dSDK aFa1dSDK, AFa1qSDK aFa1qSDK, byte b2) {
this(aFa1qSDK);
}
@Override
public final void run() {
AFd1eSDK aFd1eSDK;
if (this.valueOf.values()) {
AFd1hSDK aFd1hSDK = new AFd1hSDK(this.valueOf, AFa1dSDK.this.AFInAppEventParameterName());
aFd1hSDK.getLevel = AFa1dSDK.AFInAppEventType(AFa1dSDK.this);
aFd1eSDK = aFd1hSDK;
} else {
aFd1eSDK = new AFd1eSDK(this.valueOf, AFa1dSDK.this.AFInAppEventParameterName());
}
AFd1tSDK level = AFa1dSDK.this.AFInAppEventParameterName().getLevel();
level.AFKeystoreWrapper.execute(level.new AnonymousClass5(aFd1eSDK));
}
private AFa1ySDK(AFa1qSDK aFa1qSDK) {
this.valueOf = aFa1qSDK;
}
}
static {
AFInAppEventType();
valueOf = "253";
Object[] objArr = new Object[1];
AFInAppEventParameterName("\u0001", false, new int[]{33, 1, 169, 1}, objArr);
String substring = "6.12.1".substring(0, "6.12.1".lastIndexOf(((String) objArr[0]).intern()));
AFKeystoreWrapper = substring;
afRDLog = "https://%sstats.%s/stats";
StringBuilder sb = new StringBuilder();
sb.append(substring);
sb.append("/androidevent?buildnumber=6.12.1&app_id=");
values = sb.toString();
AFInAppEventParameterName = null;
afErrorLog = new AFa1dSDK();
int i2 = onConversionDataFail + 105;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
}
@VisibleForTesting
public AFa1dSDK() {
AFVersionDeclaration.init();
this.onAppOpenAttribution = new AFc1xSDK();
AFd1tSDK level = AFInAppEventParameterName().getLevel();
level.values.add(new AFa1xSDK(this, (byte) 0));
}
static void AFInAppEventType() {
onResponse = new char[]{148, 296, 287, 284, 291, 285, 280, 279, 286, 291, 288, 286, 24, 137, 269, 263, 270, 269, 141, 293, 299, 290, 287, 272, 268, 292, 294, 287, 289, 295, 300, 301, 282, 'k'};
}
private static void AFKeystoreWrapper(String str, String str2) {
int i2 = onConversionDataFail + 105;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AppsFlyerProperties.getInstance().set(str, str2);
int i4 = onAttributionFailure + 105;
onConversionDataFail = i4 % 128;
if ((i4 % 2 == 0 ? 'D' : (char) 4) == 'D') {
throw null;
}
}
private static String AFLogger() {
int i2 = onAttributionFailure + 79;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
String valueOf2 = valueOf(AppsFlyerProperties.APP_ID);
int i4 = onConversionDataFail + TypedValues.TYPE_TARGET;
onAttributionFailure = i4 % 128;
if ((i4 % 2 != 0 ? '5' : 'Y') != '5') {
return valueOf2;
}
throw null;
}
@NonNull
private AFf1jSDK[] AFLogger$LogLevel() {
int i2 = onConversionDataFail + 75;
onAttributionFailure = i2 % 128;
if (!(i2 % 2 != 0)) {
return AFInAppEventParameterName().AFLogger$LogLevel().AFInAppEventType();
}
int i3 = 5 / 0;
return AFInAppEventParameterName().AFLogger$LogLevel().AFInAppEventType();
}
public void AFVersionDeclaration() {
try {
AFe1hSDK aFe1hSDK = new AFe1hSDK();
if ((AFInAppEventParameterName(aFe1hSDK, valueOf(this.onInstallConversionFailureNative)) ? '\\' : '=') != '\\') {
return;
}
int i2 = onConversionDataFail + 123;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
valueOf(aFe1hSDK);
int i4 = onAttributionFailure + 83;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
} catch (Throwable th) {
AFLogger.afErrorLog(th.getMessage(), th);
}
}
private void afDebugLog() {
AFf1kSDK AFLogger$LogLevel = AFInAppEventParameterName().AFLogger$LogLevel();
AFf1pSDK afRDLog2 = afRDLog();
Runnable AFInAppEventType = AFInAppEventType(afRDLog2);
AFLogger$LogLevel.values(afRDLog2);
AFLogger$LogLevel.values(new AFf1cSDK(AFInAppEventType));
AFLogger$LogLevel.values(new AFf1gSDK(AFInAppEventType, AFInAppEventParameterName()));
AFLogger$LogLevel.values(new AFf1hSDK(AFInAppEventType, AFInAppEventParameterName()));
if ((!afErrorLog() ? (char) 21 : 'N') == 21) {
AFLogger$LogLevel.AFInAppEventParameterName(this.onInstallConversionFailureNative, AFInAppEventType, AFInAppEventParameterName());
}
AFf1jSDK[] AFInAppEventType2 = AFLogger$LogLevel.AFInAppEventType();
int length = AFInAppEventType2.length;
int i2 = onAttributionFailure + 75;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
int i4 = 0;
while (true) {
if (!(i4 < length)) {
return;
}
int i5 = onAttributionFailure + 65;
onConversionDataFail = i5 % 128;
int i6 = i5 % 2;
AFInAppEventType2[i4].AFKeystoreWrapper(this.onInstallConversionFailureNative);
i4++;
}
}
@VisibleForTesting
private boolean afErrorLog() {
int i2 = onAttributionFailure + 89;
onConversionDataFail = i2 % 128;
if ((i2 % 2 == 0 ? 'N' : (char) 24) == 24) {
return AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType("AF_PREINSTALL_DISABLED");
}
int i3 = 59 / 0;
return AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType("AF_PREINSTALL_DISABLED");
}
private void afErrorLogForExcManagerOnly() {
int i2 = onAttributionFailure + 61;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
if (AFd1mSDK.afRDLog()) {
return;
}
AFc1zSDK AFInAppEventParameterName2 = AFInAppEventParameterName();
AFd1tSDK level = AFInAppEventParameterName2.getLevel();
level.AFKeystoreWrapper.execute(level.new AnonymousClass5(new AFd1mSDK(AFInAppEventParameterName2)));
int i4 = onConversionDataFail + 105;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
}
private static void afInfoLog(Context context) {
int i2 = onAttributionFailure + 15;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
try {
if (!((context.getPackageManager().getPackageInfo(context.getPackageName(), 0).applicationInfo.flags & 32768) == 0)) {
int i4 = onConversionDataFail + 33;
onAttributionFailure = i4 % 128;
if (i4 % 2 != 0) {
context.getResources().getIdentifier("appsflyer_backup_rules", "xml", context.getPackageName());
throw null;
}
if (context.getResources().getIdentifier("appsflyer_backup_rules", "xml", context.getPackageName()) != 0) {
int i5 = onAttributionFailure + 65;
onConversionDataFail = i5 % 128;
if (i5 % 2 == 0) {
}
AFLogger.afInfoLog("appsflyer_backup_rules.xml detected, using AppsFlyer defined backup rules for AppsFlyer SDK data", true);
return;
}
AFLogger.AFInAppEventType("'allowBackup' is set to true; appsflyer_backup_rules.xml not detected.\nAppsFlyer shared preferences should be excluded from auto backup by adding: <exclude domain=\"sharedpref\" path=\"appsflyer-data\"/> to the Application's <full-backup-content> rules");
}
int i6 = onAttributionFailure + 57;
onConversionDataFail = i6 % 128;
if (i6 % 2 == 0) {
int i7 = 27 / 0;
}
} catch (Exception e2) {
AFLogger.afErrorLogForExcManagerOnly("checkBackupRules Exception", e2);
AFLogger.afRDLog("checkBackupRules Exception: ".concat(String.valueOf(e2)));
}
}
private AFf1pSDK afRDLog() {
AFf1pSDK aFf1pSDK = new AFf1pSDK(new Runnable() {
@Override
public final void run() {
AFa1dSDK.this.getLevel();
}
}, AFInAppEventParameterName().valueOf());
int i2 = onConversionDataFail + 31;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? '\f' : ')') != ')') {
int i3 = 30 / 0;
}
return aFf1pSDK;
}
private boolean afWarnLog() {
int i2 = onConversionDataFail;
int i3 = i2 + 113;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
Map<String, Object> map = this.onConversionDataSuccess;
if ((map != null ? (char) 25 : '1') != 25) {
return false;
}
int i5 = i2 + 87;
onAttributionFailure = i5 % 128;
int i6 = i5 % 2;
if ((!map.isEmpty() ? '?' : (char) 17) == 17) {
return false;
}
int i7 = onConversionDataFail + 11;
onAttributionFailure = i7 % 128;
int i8 = i7 % 2;
return true;
}
public void getLevel() {
ScheduledExecutorService values2;
Runnable runnable;
int i2 = onConversionDataFail + TypedValues.TYPE_TARGET;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? (char) 22 : (char) 20) != 22) {
values2 = AFInAppEventParameterName().values();
runnable = new Runnable() {
@Override
public final void run() {
AFa1dSDK.this.AFVersionDeclaration();
}
};
} else {
values2 = AFInAppEventParameterName().values();
runnable = new Runnable() {
@Override
public final void run() {
AFa1dSDK.this.AFVersionDeclaration();
}
};
}
AFInAppEventType(values2, runnable, 0L, TimeUnit.MILLISECONDS);
}
static void valueOf(AFa1dSDK aFa1dSDK) {
int i2 = onAttributionFailure + 125;
onConversionDataFail = i2 % 128;
char c2 = i2 % 2 == 0 ? (char) 0 : (char) 21;
aFa1dSDK.afErrorLogForExcManagerOnly();
if (c2 == 0) {
throw null;
}
int i3 = onAttributionFailure + 103;
onConversionDataFail = i3 % 128;
int i4 = i3 % 2;
}
static long values(AFa1dSDK aFa1dSDK, long j2) {
int i2 = onAttributionFailure;
int i3 = i2 + 25;
onConversionDataFail = i3 % 128;
int i4 = i3 % 2;
aFa1dSDK.afWarnLog = j2;
int i5 = i2 + 31;
onConversionDataFail = i5 % 128;
int i6 = i5 % 2;
return j2;
}
public final AFc1zSDK AFInAppEventParameterName() {
int i2 = onAttributionFailure + 65;
int i3 = i2 % 128;
onConversionDataFail = i3;
int i4 = i2 % 2;
AFc1xSDK aFc1xSDK = this.onAppOpenAttribution;
int i5 = i3 + 121;
onAttributionFailure = i5 % 128;
int i6 = i5 % 2;
return aFc1xSDK;
}
@Override
public final void addPushNotificationDeepLinkPath(String... strArr) {
int i2 = onConversionDataFail + 91;
onAttributionFailure = i2 % 128;
if (!(i2 % 2 == 0)) {
AFInAppEventParameterName().init().AFKeystoreWrapper.contains(Arrays.asList(strArr));
throw null;
}
List<String> asList = Arrays.asList(strArr);
List<List<String>> list = AFInAppEventParameterName().init().AFKeystoreWrapper;
if (!(list.contains(asList))) {
list.add(asList);
}
int i3 = onConversionDataFail + 59;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
@Override
public final void anonymizeUser(boolean z2) {
int i2 = onConversionDataFail + 1;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? 'V' : (char) 16) != 16) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("anonymizeUser", String.valueOf(z2));
} else {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("anonymizeUser", String.valueOf(z2));
}
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, z2);
int i3 = onConversionDataFail + 11;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
@Override
public final void appendParametersToDeepLinkingURL(String str, Map<String, String> map) {
int i2 = onAttributionFailure + 51;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
AFb1uSDK init = AFInAppEventParameterName().init();
init.values = str;
init.AFInAppEventParameterName = map;
int i4 = onConversionDataFail + 79;
onAttributionFailure = i4 % 128;
if ((i4 % 2 != 0 ? '\'' : (char) 26) == '\'') {
throw null;
}
}
@Override
public final void enableFacebookDeferredApplinks(boolean z2) {
int i2 = onConversionDataFail + 113;
int i3 = i2 % 128;
onAttributionFailure = i3;
int i4 = i2 % 2;
this.onDeepLinkingNative = z2;
int i5 = i3 + 47;
onConversionDataFail = i5 % 128;
int i6 = i5 % 2;
}
@Override
@Nullable
public final String getAppsFlyerUID(@NonNull Context context) {
int i2 = onConversionDataFail + 35;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("getAppsFlyerUID", new String[0]);
if (!(context != null)) {
int i4 = onAttributionFailure + 47;
onConversionDataFail = i4 % 128;
if (i4 % 2 != 0) {
return null;
}
throw null;
}
AFInAppEventType(context);
AFb1cSDK AFInAppEventParameterName2 = AFInAppEventParameterName().AFInAppEventParameterName();
String AFInAppEventParameterName3 = AFa1aSDK.AFInAppEventParameterName(AFInAppEventParameterName2.values, AFInAppEventParameterName2.AFInAppEventType);
int i5 = onConversionDataFail + 69;
onAttributionFailure = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 77 / 0;
}
return AFInAppEventParameterName3;
}
@Override
public final String getAttributionId(Context context) {
try {
String AFInAppEventParameterName2 = new AFa1eSDK(context, AFInAppEventParameterName()).AFInAppEventParameterName();
int i2 = onConversionDataFail + 113;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? 'V' : '1') != 'V') {
return AFInAppEventParameterName2;
}
throw null;
} catch (Throwable th) {
AFLogger.afErrorLog("Could not collect facebook attribution id. ", th);
return null;
}
}
@Override
public final String getHostName() {
int i2 = onConversionDataFail + 59;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
String AFInAppEventType = AFInAppEventParameterName().onInstallConversionDataLoadedNative().AFInAppEventType();
int i4 = onAttributionFailure + 115;
onConversionDataFail = i4 % 128;
if (!(i4 % 2 != 0)) {
int i5 = 37 / 0;
}
return AFInAppEventType;
}
@Override
public final String getHostPrefix() {
int i2 = onAttributionFailure + 83;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
String valueOf2 = AFInAppEventParameterName().onInstallConversionDataLoadedNative().valueOf();
int i4 = onConversionDataFail + 89;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
return valueOf2;
}
@Override
public final String getOutOfStore(Context context) {
int i2 = onConversionDataFail + 75;
onAttributionFailure = i2 % 128;
if (i2 % 2 != 0) {
AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.AF_STORE_FROM_API);
throw null;
}
String string = AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.AF_STORE_FROM_API);
if ((string != null ? (char) 31 : (char) 11) == 31) {
return string;
}
String AFKeystoreWrapper2 = AFKeystoreWrapper(context, "AF_STORE");
if ((AFKeystoreWrapper2 != null ? 'D' : 'c') == 'c') {
AFLogger.afInfoLog("No out-of-store value set");
return null;
}
int i3 = onAttributionFailure + 77;
onConversionDataFail = i3 % 128;
int i4 = i3 % 2;
return AFKeystoreWrapper2;
}
@Override
public final String getSdkVersion() {
AFc1zSDK AFInAppEventParameterName2;
int i2 = onConversionDataFail + 119;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? '3' : '@') != '3') {
AFInAppEventParameterName2 = AFInAppEventParameterName();
AFInAppEventParameterName2.afErrorLogForExcManagerOnly().AFInAppEventType("getSdkVersion", new String[0]);
} else {
AFInAppEventParameterName2 = AFInAppEventParameterName();
AFInAppEventParameterName2.afErrorLogForExcManagerOnly().AFInAppEventType("getSdkVersion", new String[1]);
}
AFInAppEventParameterName2.AFInAppEventParameterName();
String AFInAppEventParameterName3 = AFb1cSDK.AFInAppEventParameterName();
int i3 = onAttributionFailure + 39;
onConversionDataFail = i3 % 128;
if (i3 % 2 != 0) {
return AFInAppEventParameterName3;
}
throw null;
}
@Override
public final AppsFlyerLib init(@NonNull String str, AppsFlyerConversionListener appsFlyerConversionListener, @NonNull Context context) {
String str2;
if (this.init) {
int i2 = onConversionDataFail + 15;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
return this;
}
this.init = true;
AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType = str;
AFc1pSDK.AFInAppEventParameterName(str);
if (!(context == null)) {
this.onInstallConversionFailureNative = (Application) context.getApplicationContext();
AFInAppEventType(context);
AFInAppEventParameterName().AFLogger().valueOf = System.currentTimeMillis();
AFInAppEventParameterName().onResponseErrorNative().AFInAppEventType();
AFInAppEventParameterName().afDebugLog().valueOf(new AFd1cSDK() {
@Override
public final void onRemoteConfigUpdateFinished(AFe1zSDK aFe1zSDK) {
AFa1dSDK.this.AFInAppEventParameterName(aFe1zSDK);
}
});
afDebugLog();
this.onAppOpenAttribution.AFVersionDeclaration().AFInAppEventParameterName();
} else {
AFLogger.afWarnLog("context is null, Google Install Referrer will be not initialized");
}
AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
String[] strArr = new String[2];
strArr[0] = str;
if ((appsFlyerConversionListener == null ? ',' : ')') != ')') {
str2 = "null";
} else {
int i4 = onConversionDataFail + 105;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
str2 = "conversionDataListener";
}
strArr[1] = str2;
afErrorLogForExcManagerOnly.AFInAppEventType("init", strArr);
AFLogger.AFInAppEventParameterName(String.format("Initializing AppsFlyer SDK: (v%s.%s)", "6.12.1", valueOf));
this.AFInAppEventType = appsFlyerConversionListener;
return this;
}
@Override
public final boolean isPreInstalledApp(android.content.Context r4) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.isPreInstalledApp(android.content.Context):boolean");
}
@Override
@Deprecated
public final boolean isStopped() {
int i2 = onConversionDataFail + 79;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? 'K' : 'R') != 'R') {
AFInAppEventParameterName().AFVersionDeclaration().values();
throw null;
}
boolean values2 = AFInAppEventParameterName().AFVersionDeclaration().values();
int i3 = onAttributionFailure + 89;
onConversionDataFail = i3 % 128;
int i4 = i3 % 2;
return values2;
}
@Override
public final void logEvent(Context context, String str, Map<String, Object> map) {
int i2 = onConversionDataFail + 73;
onAttributionFailure = i2 % 128;
boolean z2 = i2 % 2 != 0;
logEvent(context, str, map, null);
if (z2) {
throw null;
}
int i3 = onAttributionFailure + 81;
onConversionDataFail = i3 % 128;
if (i3 % 2 == 0) {
throw null;
}
}
@Override
public final void logLocation(Context context, double d2, double d3) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("logLocation", String.valueOf(d2), String.valueOf(d3));
HashMap hashMap = new HashMap();
hashMap.put(AFInAppEventParameterName.LONGITUDE, Double.toString(d3));
hashMap.put(AFInAppEventParameterName.LATITUDE, Double.toString(d2));
valueOf(context, AFInAppEventType.LOCATION_COORDINATES, hashMap);
int i2 = onAttributionFailure + 79;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
}
@Override
public final void logSession(Context context) {
int i2 = onAttributionFailure + 73;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("logSession", new String[0]);
AFInAppEventParameterName().afErrorLogForExcManagerOnly().values();
AFInAppEventType(context, AFe1nSDK.logSession);
valueOf(context, (String) null, (Map<String, Object>) null);
int i4 = onAttributionFailure + 111;
onConversionDataFail = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
@Override
public final void onPause(Context context) {
int i2 = onAttributionFailure + 69;
onConversionDataFail = i2 % 128;
if (i2 % 2 == 0) {
AFInAppEventParameterName().onDeepLinkingNative().valueOf(context);
throw null;
}
AFInAppEventParameterName().onDeepLinkingNative().valueOf(context);
int i3 = onAttributionFailure + 119;
onConversionDataFail = i3 % 128;
if ((i3 % 2 == 0 ? '[' : ':') == '[') {
throw null;
}
}
@Override
@Deprecated
public final void performOnAppAttribution(@NonNull Context context, @NonNull URI uri) {
int i2 = onConversionDataFail + 11;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? '5' : 'U') != 'U') {
throw null;
}
if ((uri != null ? '1' : '\t') != '1' || uri.toString().isEmpty()) {
AFb1uSDK init = AFInAppEventParameterName().init();
StringBuilder sb = new StringBuilder("Link is \"");
sb.append(uri);
sb.append("\"");
init.AFInAppEventType(sb.toString(), DeepLinkResult.Error.NETWORK);
int i3 = onAttributionFailure + 61;
onConversionDataFail = i3 % 128;
int i4 = i3 % 2;
return;
}
if (context != null) {
AFInAppEventParameterName().init().AFInAppEventType(context, new HashMap(), Uri.parse(uri.toString()));
int i5 = onConversionDataFail + 23;
onAttributionFailure = i5 % 128;
int i6 = i5 % 2;
return;
}
AFb1uSDK init2 = AFInAppEventParameterName().init();
StringBuilder sb2 = new StringBuilder("Context is \"");
sb2.append(context);
sb2.append("\"");
init2.AFInAppEventType(sb2.toString(), DeepLinkResult.Error.NETWORK);
}
@Override
public final void performOnDeepLinking(@NonNull final Intent intent, @NonNull Context context) {
if (!(intent != null)) {
int i2 = onAttributionFailure + 35;
onConversionDataFail = i2 % 128;
if (i2 % 2 != 0) {
AFInAppEventParameterName().init().AFInAppEventType("performOnDeepLinking was called with null intent", DeepLinkResult.Error.DEVELOPER_ERROR);
return;
} else {
AFInAppEventParameterName().init().AFInAppEventType("performOnDeepLinking was called with null intent", DeepLinkResult.Error.DEVELOPER_ERROR);
throw null;
}
}
if (context != null) {
final Context applicationContext = context.getApplicationContext();
AFInAppEventType(applicationContext);
AFInAppEventParameterName().valueOf().execute(new Runnable() {
@Override
public final void run() {
AFa1dSDK.this.AFInAppEventParameterName(applicationContext, intent);
}
});
return;
}
int i3 = onAttributionFailure + 125;
onConversionDataFail = i3 % 128;
if ((i3 % 2 == 0 ? ';' : (char) 1) == 1) {
AFInAppEventParameterName().init().AFInAppEventType("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
} else {
AFInAppEventParameterName().init().AFInAppEventType("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
int i4 = 29 / 0;
}
}
@Override
public final void registerConversionListener(Context context, AppsFlyerConversionListener appsFlyerConversionListener) {
int i2 = onAttributionFailure + 111;
onConversionDataFail = i2 % 128;
if (!(i2 % 2 == 0)) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("registerConversionListener", new String[0]);
} else {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("registerConversionListener", new String[0]);
}
AFInAppEventParameterName(appsFlyerConversionListener);
int i3 = onConversionDataFail + 73;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
@Override
public final void registerValidatorListener(android.content.Context r7, com.appsflyer.AppsFlyerInAppPurchaseValidatorListener r8) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.registerValidatorListener(android.content.Context, com.appsflyer.AppsFlyerInAppPurchaseValidatorListener):void");
}
@Override
public final void sendAdImpression(Context context, Map<String, Object> map) {
int AFKeystoreWrapper2 = AFKeystoreWrapper(valueOf(context));
HashMap hashMap = new HashMap();
hashMap.put("ad_network", map);
hashMap.put("adimpression_counter", Integer.valueOf(AFKeystoreWrapper2));
AFInAppEventType(context, hashMap, new AFe1jSDK());
int i2 = onAttributionFailure + 117;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
}
@Override
public final void sendAdRevenue(Context context, Map<String, Object> map) {
int AFInAppEventParameterName2 = AFInAppEventParameterName(valueOf(context));
HashMap hashMap = new HashMap();
hashMap.put("ad_network", map);
hashMap.put("adrevenue_counter", Integer.valueOf(AFInAppEventParameterName2));
AFInAppEventType(context, hashMap, new AFe1gSDK());
int i2 = onAttributionFailure + 25;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
}
@Override
public final void sendInAppPurchaseData(android.content.Context r4, java.util.Map<java.lang.String, java.lang.Object> r5, com.appsflyer.PurchaseHandler.PurchaseValidationCallback r6) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.sendInAppPurchaseData(android.content.Context, java.util.Map, com.appsflyer.PurchaseHandler$PurchaseValidationCallback):void");
}
@Override
public final void sendPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
int i2 = onConversionDataFail + 69;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFInAppEventType(context);
PurchaseHandler afInfoLog = AFInAppEventParameterName().afInfoLog();
if (afInfoLog.AFInAppEventParameterName(map, purchaseValidationCallback, "subscriptions")) {
AFd1pSDK aFd1pSDK = new AFd1pSDK(map, purchaseValidationCallback, afInfoLog.valueOf);
AFd1tSDK aFd1tSDK = afInfoLog.AFInAppEventParameterName;
aFd1tSDK.AFKeystoreWrapper.execute(aFd1tSDK.new AnonymousClass5(aFd1pSDK));
}
int i4 = onAttributionFailure + 5;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
}
@Override
public final void sendPushNotificationData(@androidx.annotation.Nullable android.app.Activity r17) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.sendPushNotificationData(android.app.Activity):void");
}
@Override
public final void setAdditionalData(Map<String, Object> map) {
int i2 = onConversionDataFail + 43;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
if (map != null) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setAdditionalData", map.toString());
AppsFlyerProperties.getInstance().setCustomData(new JSONObject(map).toString());
int i4 = onAttributionFailure + 5;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
}
int i6 = onConversionDataFail + 55;
onAttributionFailure = i6 % 128;
int i7 = i6 % 2;
}
@Override
public final void setAndroidIdData(String str) {
int i2 = onConversionDataFail + 69;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setAndroidIdData", str);
this.afInfoLog = str;
int i4 = onConversionDataFail + 123;
onAttributionFailure = i4 % 128;
if ((i4 % 2 != 0 ? '@' : '^') == '@') {
throw null;
}
}
@Override
public final void setAppId(String str) {
int i2 = onAttributionFailure + 77;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setAppId", str);
AFKeystoreWrapper(AppsFlyerProperties.APP_ID, str);
int i4 = onAttributionFailure + 19;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
}
@Override
public final void setAppInviteOneLink(String str) {
int i2 = onConversionDataFail + 113;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setAppInviteOneLink", str);
AFLogger.afInfoLog("setAppInviteOneLink = ".concat(String.valueOf(str)));
if ((str != null ? (char) 6 : '!') != 6 || !str.equals(AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.ONELINK_ID))) {
AppsFlyerProperties.getInstance().remove(AppsFlyerProperties.ONELINK_DOMAIN);
AppsFlyerProperties.getInstance().remove(AppsFlyerProperties.ONELINK_VERSION);
AppsFlyerProperties.getInstance().remove(AppsFlyerProperties.ONELINK_SCHEME);
}
AFKeystoreWrapper(AppsFlyerProperties.ONELINK_ID, str);
int i4 = onConversionDataFail + 97;
onAttributionFailure = i4 % 128;
if (!(i4 % 2 != 0)) {
return;
}
int i5 = 87 / 0;
}
@Override
public final void setCollectAndroidID(boolean z2) {
int i2 = onAttributionFailure + 19;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCollectAndroidID", String.valueOf(z2));
AFKeystoreWrapper(AppsFlyerProperties.COLLECT_ANDROID_ID, Boolean.toString(z2));
AFKeystoreWrapper(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, Boolean.toString(z2));
int i4 = onConversionDataFail + 121;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
}
@Override
public final void setCollectIMEI(boolean z2) {
int i2 = onAttributionFailure + 83;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCollectIMEI", String.valueOf(z2));
AFKeystoreWrapper(AppsFlyerProperties.COLLECT_IMEI, Boolean.toString(z2));
AFKeystoreWrapper(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, Boolean.toString(z2));
int i4 = onAttributionFailure + 81;
onConversionDataFail = i4 % 128;
if (!(i4 % 2 != 0)) {
int i5 = 9 / 0;
}
}
@Override
@Deprecated
public final void setCollectOaid(boolean z2) {
int i2 = onAttributionFailure + 23;
onConversionDataFail = i2 % 128;
if ((i2 % 2 == 0 ? (char) 16 : '7') != '7') {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCollectOaid", String.valueOf(z2));
} else {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCollectOaid", String.valueOf(z2));
}
AFKeystoreWrapper(AppsFlyerProperties.COLLECT_OAID, Boolean.toString(z2));
int i3 = onAttributionFailure + TypedValues.TYPE_TARGET;
onConversionDataFail = i3 % 128;
if ((i3 % 2 == 0 ? 'R' : 'O') != 'O') {
throw null;
}
}
@Override
public final void setCurrencyCode(String str) {
int i2 = onAttributionFailure + 97;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCurrencyCode", str);
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.CURRENCY_CODE, str);
int i4 = onConversionDataFail + 77;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
}
@Override
public final void setCustomerIdAndLogSession(String str, @NonNull Context context) {
String str2;
int i2 = onAttributionFailure + 13;
onConversionDataFail = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
if ((context != null ? (char) 11 : 'N') != 11) {
return;
}
if (!AFKeystoreWrapper()) {
setCustomerUserId(str);
AFLogger.afInfoLog("waitForCustomerUserId is false; setting CustomerUserID: ".concat(String.valueOf(str)), true);
int i3 = onAttributionFailure + 31;
onConversionDataFail = i3 % 128;
int i4 = i3 % 2;
return;
}
setCustomerUserId(str);
StringBuilder sb = new StringBuilder("CustomerUserId set: ");
sb.append(str);
sb.append(" - Initializing AppsFlyer Tacking");
AFLogger.afInfoLog(sb.toString(), true);
String referrer = AppsFlyerProperties.getInstance().getReferrer(AFInAppEventParameterName().AFKeystoreWrapper());
AFInAppEventType(context, AFe1nSDK.setCustomerIdAndLogSession);
String str3 = AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType;
if (referrer == null) {
int i5 = onConversionDataFail + 29;
onAttributionFailure = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 80 / 0;
}
str2 = "";
} else {
str2 = referrer;
}
if (!(context instanceof Activity ? false : true)) {
((Activity) context).getIntent();
}
AFKeystoreWrapper(context, null, null, str2, null);
}
@Override
public final void setCustomerUserId(String str) {
int i2 = onAttributionFailure + 99;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCustomerUserId", str);
AFLogger.afInfoLog("setCustomerUserId = ".concat(String.valueOf(str)));
AFKeystoreWrapper(AppsFlyerProperties.APP_USER_ID, str);
AFKeystoreWrapper(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false);
int i4 = onConversionDataFail + 63;
onAttributionFailure = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
@Override
public final void setDebugLog(boolean r4) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.setDebugLog(boolean):void");
}
@Override
public final void setDisableAdvertisingIdentifiers(boolean z2) {
int i2 = onAttributionFailure + 3;
onConversionDataFail = i2 % 128;
if (i2 % 2 == 0) {
AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z2)));
throw null;
}
AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z2)));
AFa1bSDK.valueOf = Boolean.valueOf(!z2);
AppsFlyerProperties.getInstance().remove("advertiserIdEnabled");
AppsFlyerProperties.getInstance().remove("advertiserId");
int i3 = onConversionDataFail + 15;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
@Override
public final void setDisableNetworkData(boolean z2) {
int i2 = onAttributionFailure + 113;
onConversionDataFail = i2 % 128;
if (i2 % 2 == 0) {
AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z2)));
AFKeystoreWrapper(AppsFlyerProperties.DISABLE_NETWORK_DATA, z2);
throw null;
}
AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z2)));
AFKeystoreWrapper(AppsFlyerProperties.DISABLE_NETWORK_DATA, z2);
}
@Override
public final void setExtension(String str) {
int i2 = onConversionDataFail + 45;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setExtension", str);
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EXTENSION, str);
int i4 = onConversionDataFail + 53;
onAttributionFailure = i4 % 128;
if (!(i4 % 2 == 0)) {
throw null;
}
}
@Override
public final void setHost(@Nullable String str, @NonNull String str2) {
String str3;
if (AFb1vSDK.valueOf(str2)) {
AFLogger.afWarnLog("hostname was empty or null - call for setHost is skipped");
return;
}
int i2 = onConversionDataFail;
int i3 = i2 + 49;
int i4 = i3 % 128;
onAttributionFailure = i4;
int i5 = i3 % 2;
if (!(str == null)) {
int i6 = i2 + 27;
onAttributionFailure = i6 % 128;
int i7 = i6 % 2;
str3 = str.trim();
} else {
int i8 = i4 + AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR_OVERLAY;
onConversionDataFail = i8 % 128;
int i9 = i8 % 2;
str3 = "";
}
AFc1cSDK.AFInAppEventType(new AFc1dSDK(str3, str2.trim()));
int i10 = onConversionDataFail + 33;
onAttributionFailure = i10 % 128;
int i11 = i10 % 2;
}
@Override
public final void setImeiData(String str) {
int i2 = onConversionDataFail + 119;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? '+' : 'S') != 'S') {
AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
String[] strArr = new String[1];
strArr[1] = str;
afErrorLogForExcManagerOnly.AFInAppEventType("setImeiData", strArr);
} else {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setImeiData", str);
}
AFInAppEventParameterName().AFVersionDeclaration().valueOf = str;
int i3 = onAttributionFailure + 81;
onConversionDataFail = i3 % 128;
if (!(i3 % 2 != 0)) {
int i4 = 50 / 0;
}
}
@Override
public final void setIsUpdate(boolean z2) {
int i2 = onConversionDataFail + 7;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setIsUpdate", String.valueOf(z2));
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.IS_UPDATE, z2);
int i4 = onConversionDataFail + 11;
onAttributionFailure = i4 % 128;
if (!(i4 % 2 == 0)) {
throw null;
}
}
@Override
public final void setLogLevel(@NonNull AFLogger.LogLevel logLevel) {
boolean z2;
int i2 = onConversionDataFail + 87;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
if (logLevel.getLevel() <= AFLogger.LogLevel.NONE.getLevel()) {
z2 = false;
} else {
int i4 = onConversionDataFail + 89;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
z2 = true;
}
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("log", String.valueOf(z2));
AppsFlyerProperties.getInstance().set("logLevel", logLevel.getLevel());
int i6 = onAttributionFailure + 9;
onConversionDataFail = i6 % 128;
int i7 = i6 % 2;
}
@Override
public final void setMinTimeBetweenSessions(int i2) {
int i3 = onConversionDataFail + 91;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
this.getLevel = TimeUnit.SECONDS.toMillis(i2);
int i5 = onConversionDataFail + 79;
onAttributionFailure = i5 % 128;
if ((i5 % 2 != 0 ? (char) 4 : (char) 29) == 4) {
throw null;
}
}
@Override
public final void setOaidData(String str) {
int i2 = onConversionDataFail + 15;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? (char) 25 : '>') != 25) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setOaidData", str);
} else {
AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
String[] strArr = new String[1];
strArr[1] = str;
afErrorLogForExcManagerOnly.AFInAppEventType("setOaidData", strArr);
}
AFa1bSDK.AFInAppEventParameterName = str;
}
@Override
public final void setOneLinkCustomDomain(String... strArr) {
String format;
int i2 = onAttributionFailure + 111;
onConversionDataFail = i2 % 128;
if (!(i2 % 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);
AFInAppEventParameterName().init().afInfoLog = strArr;
int i3 = onAttributionFailure + 65;
onConversionDataFail = i3 % 128;
if ((i3 % 2 == 0 ? (char) 14 : ':') == 14) {
throw null;
}
}
@Override
public final void setOutOfStore(String str) {
int i2 = onConversionDataFail + 23;
onAttributionFailure = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
if (!(str != null)) {
AFLogger.AFInAppEventType("Cannot set setOutOfStore with null");
int i3 = onAttributionFailure + 97;
onConversionDataFail = i3 % 128;
if ((i3 % 2 == 0 ? '\"' : 'b') == '\"') {
throw null;
}
return;
}
String lowerCase = str.toLowerCase(Locale.getDefault());
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.AF_STORE_FROM_API, lowerCase);
AFLogger.afInfoLog("Store API set with value: ".concat(String.valueOf(lowerCase)), true);
int i4 = onAttributionFailure + 115;
onConversionDataFail = i4 % 128;
if ((i4 % 2 == 0 ? (char) 4 : 'V') == 4) {
throw null;
}
}
@Override
public final void setPartnerData(@NonNull String str, Map<String, Object> map) {
String concat;
int i2 = onConversionDataFail + 73;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
if (this.onResponseErrorNative == null) {
this.onResponseErrorNative = new AFb1hSDK();
}
AFb1hSDK aFb1hSDK = this.onResponseErrorNative;
if (str != null) {
if ((str.isEmpty() ? '2' : 'G') == 'G') {
if (!(map == null)) {
if (map.isEmpty() ? false : true) {
StringBuilder sb = new StringBuilder("Setting partner data for ");
sb.append(str);
sb.append(": ");
sb.append(map);
AFLogger.afDebugLog(sb.toString());
int length = new JSONObject(map).toString().length();
if (length > 1000) {
AFLogger.afWarnLog("Partner data 1000 characters limit exceeded");
HashMap hashMap = new HashMap();
hashMap.put("error", "limit exceeded: ".concat(String.valueOf(length)));
aFb1hSDK.AFInAppEventType.put(str, hashMap);
return;
}
aFb1hSDK.AFInAppEventParameterName.put(str, map);
aFb1hSDK.AFInAppEventType.remove(str);
int i4 = onConversionDataFail + 121;
onAttributionFailure = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
return;
}
}
if (aFb1hSDK.AFInAppEventParameterName.remove(str) == null) {
int i5 = onAttributionFailure + 97;
onConversionDataFail = i5 % 128;
int i6 = i5 % 2;
concat = "Partner data is missing or `null`";
} else {
concat = "Cleared partner data for ".concat(str);
}
AFLogger.afWarnLog(concat);
return;
}
}
AFLogger.afWarnLog("Partner ID is missing or `null`");
}
@Override
public final void setPhoneNumber(String str) {
int i2 = onAttributionFailure + 81;
onConversionDataFail = i2 % 128;
boolean z2 = i2 % 2 != 0;
this.onResponseNative = AFb1zSDK.AFInAppEventParameterName(str);
if (!z2) {
throw null;
}
int i3 = onConversionDataFail + TypedValues.TYPE_TARGET;
onAttributionFailure = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
}
@Override
public final void setPluginInfo(@NonNull PluginInfo pluginInfo) {
int i2 = onConversionDataFail + 9;
onAttributionFailure = i2 % 128;
if (!(i2 % 2 == 0)) {
Objects.requireNonNull(pluginInfo);
AFInAppEventParameterName().onInstallConversionFailureNative().values(pluginInfo);
throw null;
}
Objects.requireNonNull(pluginInfo);
AFInAppEventParameterName().onInstallConversionFailureNative().values(pluginInfo);
int i3 = onAttributionFailure + AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR_OVERLAY;
onConversionDataFail = i3 % 128;
if (i3 % 2 == 0) {
throw null;
}
}
@Override
public final void setPreinstallAttribution(String str, String str2, String str3) {
AFLogger.afDebugLog("setPreinstallAttribution API called");
JSONObject jSONObject = new JSONObject();
try {
if (str != null) {
int i2 = onConversionDataFail + 37;
onAttributionFailure = i2 % 128;
if (i2 % 2 == 0) {
jSONObject.put("pid", str);
} else {
jSONObject.put("pid", str);
int i3 = 49 / 0;
}
}
if (str2 != null) {
int i4 = onAttributionFailure + 1;
onConversionDataFail = i4 % 128;
if ((i4 % 2 == 0 ? 'W' : '$') != 'W') {
jSONObject.put("c", str2);
} else {
jSONObject.put("c", str2);
int i5 = 65 / 0;
}
}
if (str3 != null) {
jSONObject.put("af_siteid", str3);
}
} catch (JSONException e2) {
AFLogger.afErrorLog(e2.getMessage(), e2);
}
if (!jSONObject.has("pid")) {
AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
return;
}
int i6 = onConversionDataFail + 95;
onAttributionFailure = i6 % 128;
if (i6 % 2 == 0) {
AFKeystoreWrapper("preInstallName", jSONObject.toString());
} else {
AFKeystoreWrapper("preInstallName", jSONObject.toString());
throw null;
}
}
@Override
public final void setResolveDeepLinkURLs(String... strArr) {
int i2 = onAttributionFailure + 71;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
AFLogger.afDebugLog(String.format("setResolveDeepLinkURLs %s", Arrays.toString(strArr)));
AFb1uSDK init = AFInAppEventParameterName().init();
init.afDebugLog.clear();
init.afDebugLog.addAll(Arrays.asList(strArr));
int i4 = onConversionDataFail + 79;
onAttributionFailure = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
@Override
@Deprecated
public final void setSharingFilter(@NonNull String... strArr) {
int i2 = onConversionDataFail + 55;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
setSharingFilterForPartners(strArr);
int i4 = onConversionDataFail + 47;
onAttributionFailure = i4 % 128;
if ((i4 % 2 != 0 ? '(' : '5') != '5') {
int i5 = 30 / 0;
}
}
@Override
@Deprecated
public final void setSharingFilterForAllPartners() {
int i2 = onConversionDataFail + 41;
onAttributionFailure = i2 % 128;
if (!(i2 % 2 != 0)) {
setSharingFilterForPartners("all");
} else {
String[] strArr = new String[0];
strArr[0] = "all";
setSharingFilterForPartners(strArr);
}
int i3 = onConversionDataFail + 51;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
@Override
public final void setSharingFilterForPartners(String... strArr) {
this.afDebugLog = new AFa1bSDK(strArr);
int i2 = onAttributionFailure + 65;
onConversionDataFail = i2 % 128;
if (!(i2 % 2 != 0)) {
throw null;
}
}
@Override
public final void setUserEmails(String... strArr) {
int i2 = onConversionDataFail + 61;
onAttributionFailure = i2 % 128;
if (!(i2 % 2 == 0)) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setUserEmails", strArr);
setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
throw null;
}
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setUserEmails", strArr);
setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
int i3 = onConversionDataFail + 91;
onAttributionFailure = i3 % 128;
if ((i3 % 2 != 0 ? ' ' : (char) 28) != 28) {
throw null;
}
}
@Override
public final void start(@NonNull Context context) {
int i2 = onConversionDataFail + 107;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
start(context, null);
int i4 = onAttributionFailure + 55;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
}
@Override
public final void stop(boolean z2, Context context) {
AFInAppEventType(context);
final AFc1zSDK AFInAppEventParameterName2 = AFInAppEventParameterName();
AFInAppEventParameterName2.AFVersionDeclaration().values = z2;
AFInAppEventParameterName2.valueOf().submit(new Runnable() {
@Override
public final void run() {
AFa1dSDK.AFInAppEventParameterName(AFc1zSDK.this);
}
});
if ((z2 ? 'M' : 'C') != 'C') {
int i2 = onConversionDataFail + 17;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName2.AFKeystoreWrapper().valueOf("is_stop_tracking_used", true);
int i4 = onConversionDataFail + 65;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
}
int i6 = onConversionDataFail + 57;
onAttributionFailure = i6 % 128;
int i7 = i6 % 2;
}
@Override
public final void subscribeForDeepLink(@NonNull DeepLinkListener deepLinkListener) {
int i2 = onAttributionFailure + 69;
onConversionDataFail = i2 % 128;
if (!(i2 % 2 == 0)) {
subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
} else {
subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
int i3 = 46 / 0;
}
int i4 = onAttributionFailure + 51;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
}
@Override
public final void unregisterConversionListener() {
int i2 = onConversionDataFail + 63;
onAttributionFailure = i2 % 128;
if (i2 % 2 != 0) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("unregisterConversionListener", new String[0]);
} else {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("unregisterConversionListener", new String[0]);
}
this.AFInAppEventType = null;
}
@Override
public final void updateServerUninstallToken(Context context, String str) {
AFInAppEventType(context);
AFe1sSDK aFe1sSDK = new AFe1sSDK(context);
if (str == null || str.trim().isEmpty()) {
AFLogger.afWarnLog("[register] Firebase Token is either empty or null and was not registered.");
return;
}
AFLogger.afInfoLog("[register] Firebase Refreshed Token = ".concat(str));
AFb1oSDK AFKeystoreWrapper2 = aFe1sSDK.AFKeystoreWrapper();
if (AFKeystoreWrapper2 == null || !str.equals(AFKeystoreWrapper2.AFKeystoreWrapper)) {
long currentTimeMillis = System.currentTimeMillis();
boolean z2 = AFKeystoreWrapper2 == null || currentTimeMillis - AFKeystoreWrapper2.values > TimeUnit.SECONDS.toMillis(2L);
AFb1oSDK aFb1oSDK = new AFb1oSDK(str, currentTimeMillis, !z2);
aFe1sSDK.values.values("afUninstallToken", aFb1oSDK.AFKeystoreWrapper);
aFe1sSDK.values.AFInAppEventType("afUninstallToken_received_time", aFb1oSDK.values);
aFe1sSDK.values.valueOf("afUninstallToken_queued", aFb1oSDK.valueOf());
if (z2) {
AFe1sSDK.AFKeystoreWrapper(str);
}
}
}
@Override
public final void validateAndLogInAppPurchase(Context context, String str, String str2, String str3, String str4, String str5, Map<String, String> map) {
AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
String[] strArr = new String[6];
strArr[0] = str;
strArr[1] = str2;
strArr[2] = str3;
strArr[3] = str4;
strArr[4] = str5;
strArr[5] = map == null ? "" : map.toString();
afErrorLogForExcManagerOnly.AFInAppEventType("validateAndTrackInAppPurchase", strArr);
if (!isStopped()) {
StringBuilder sb = new StringBuilder("Validate in app called with parameters: ");
sb.append(str3);
sb.append(" ");
sb.append(str4);
sb.append(" ");
sb.append(str5);
AFLogger.afInfoLog(sb.toString());
}
if (str != null && str4 != null && str2 != null && str5 != null && str3 != null) {
new Thread(new AFa1kSDK(context.getApplicationContext(), AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType, str, str2, str3, str4, str5, map, context instanceof Activity ? ((Activity) context).getIntent() : null)).start();
return;
}
AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener = AFInAppEventParameterName;
if (appsFlyerInAppPurchaseValidatorListener != null) {
appsFlyerInAppPurchaseValidatorListener.onValidateInAppFailure("Please provide purchase parameters");
}
}
@Override
public final void waitForCustomerUserId(boolean z2) {
String concat;
boolean z3;
int i2 = onAttributionFailure + 125;
onConversionDataFail = i2 % 128;
if ((i2 % 2 == 0 ? '\\' : '8') != '\\') {
concat = "initAfterCustomerUserID: ".concat(String.valueOf(z2));
z3 = true;
} else {
concat = "initAfterCustomerUserID: ".concat(String.valueOf(z2));
z3 = false;
}
AFLogger.afInfoLog(concat, z3);
AFKeystoreWrapper(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, z2);
int i3 = onAttributionFailure + 23;
onConversionDataFail = i3 % 128;
if ((i3 % 2 == 0 ? 'K' : '.') == 'K') {
throw null;
}
}
public void AFInAppEventParameterName(android.content.Context r9, android.content.Intent r10) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.AFInAppEventParameterName(android.content.Context, android.content.Intent):void");
}
static Map AFInAppEventType(AFa1dSDK aFa1dSDK) {
int i2 = onConversionDataFail + 33;
onAttributionFailure = i2 % 128;
char c2 = i2 % 2 != 0 ? 'U' : 'Q';
Map<String, Object> map = aFa1dSDK.onConversionDataSuccess;
if (c2 != 'U') {
return map;
}
throw null;
}
private static void AFKeystoreWrapper(String str, boolean z2) {
int i2 = onConversionDataFail + 23;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? 'M' : (char) 19) != 'M') {
AppsFlyerProperties.getInstance().set(str, z2);
} else {
AppsFlyerProperties.getInstance().set(str, z2);
int i3 = 54 / 0;
}
int i4 = onAttributionFailure + 71;
onConversionDataFail = i4 % 128;
if ((i4 % 2 == 0 ? 'U' : (char) 20) != 20) {
int i5 = 70 / 0;
}
}
private long afErrorLog(Context context) {
AFb1fSDK valueOf2 = valueOf(context);
long values2 = valueOf2.values("AppsFlyerTimePassedSincePrevLaunch", 0L);
long currentTimeMillis = System.currentTimeMillis();
valueOf2.AFInAppEventType("AppsFlyerTimePassedSincePrevLaunch", currentTimeMillis);
if (values2 <= 0) {
int i2 = onConversionDataFail + 5;
onAttributionFailure = i2 % 128;
if (i2 % 2 == 0) {
return -1L;
}
throw null;
}
long j2 = currentTimeMillis - values2;
int i3 = onAttributionFailure;
int i4 = i3 + 53;
onConversionDataFail = i4 % 128;
long j3 = i4 % 2 == 0 ? 1000 ^ j2 : j2 / 1000;
int i5 = i3 + 11;
onConversionDataFail = i5 % 128;
if ((i5 % 2 == 0 ? (char) 14 : 'T') != 14) {
return j3;
}
throw null;
}
public static AFa1dSDK valueOf() {
int i2 = onAttributionFailure + 27;
int i3 = i2 % 128;
onConversionDataFail = i3;
int i4 = i2 % 2;
AFa1dSDK aFa1dSDK = afErrorLog;
int i5 = i3 + 113;
onAttributionFailure = i5 % 128;
if ((i5 % 2 != 0 ? '(' : 'W') != '(') {
return aFa1dSDK;
}
throw null;
}
static Application values(AFa1dSDK aFa1dSDK) {
int i2 = onAttributionFailure + 45;
onConversionDataFail = i2 % 128;
char c2 = i2 % 2 == 0 ? 'B' : '+';
Application application = aFa1dSDK.onInstallConversionFailureNative;
if (c2 == '+') {
return application;
}
throw null;
}
@Override
public final void logEvent(@NonNull Context context, String str, Map<String, Object> map, AppsFlyerRequestListener appsFlyerRequestListener) {
HashMap hashMap = map == null ? null : new HashMap(map);
AFInAppEventType(context);
AFe1aSDK aFe1aSDK = new AFe1aSDK();
aFe1aSDK.afDebugLog = str;
aFe1aSDK.AFInAppEventType = 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.AFInAppEventType("Parsing failed due to invalid input in 'af_touch_obj'.");
}
Map<String, ?> singletonMap = Collections.singletonMap("tch_data", hashMap2);
hashMap.remove(AFInAppEventParameterName.TOUCH_OBJ);
aFe1aSDK.AFInAppEventType(singletonMap);
}
aFe1aSDK.AFKeystoreWrapper = hashMap;
AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
String[] strArr = new String[2];
strArr[0] = str;
Map map2 = aFe1aSDK.AFKeystoreWrapper;
if (map2 == null) {
map2 = new HashMap();
}
strArr[1] = new JSONObject(map2).toString();
afErrorLogForExcManagerOnly.AFInAppEventType("logEvent", strArr);
if (str == null) {
AFInAppEventType(context, AFe1nSDK.logEvent);
}
values(aFe1aSDK, context instanceof Activity ? (Activity) context : null);
}
@Override
public final void start(@NonNull Context context, String str) {
int i2 = onConversionDataFail + 37;
onAttributionFailure = i2 % 128;
boolean z2 = i2 % 2 != 0;
start(context, str, null);
if (z2) {
throw null;
}
}
@Override
public final void subscribeForDeepLink(@NonNull DeepLinkListener deepLinkListener, long j2) {
int i2 = onAttributionFailure + 77;
onConversionDataFail = i2 % 128;
if ((i2 % 2 == 0 ? '6' : '_') == '6') {
AFInAppEventParameterName().init().valueOf = deepLinkListener;
AFInAppEventParameterName().init().afRDLog = j2;
throw null;
}
AFInAppEventParameterName().init().valueOf = deepLinkListener;
AFInAppEventParameterName().init().afRDLog = j2;
int i3 = onConversionDataFail + 125;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
static boolean AFInAppEventType(AFa1dSDK aFa1dSDK, boolean z2) {
int i2 = onAttributionFailure + 23;
int i3 = i2 % 128;
onConversionDataFail = i3;
int i4 = i2 % 2;
aFa1dSDK.AppsFlyer2dXConversionCallback = z2;
int i5 = i3 + 15;
onAttributionFailure = i5 % 128;
if (!(i5 % 2 != 0)) {
return z2;
}
throw null;
}
static void values(AFa1dSDK aFa1dSDK, AFa1qSDK aFa1qSDK) {
int i2 = onAttributionFailure + AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR_OVERLAY;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
aFa1dSDK.valueOf(aFa1qSDK);
int i4 = onAttributionFailure + 1;
onConversionDataFail = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 91 / 0;
}
}
public final boolean AFKeystoreWrapper() {
int i2 = onAttributionFailure + 107;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
if ((AFInAppEventParameterName(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false) ? 'V' : ';') == 'V') {
if ((values() == null ? '\"' : (char) 16) == '\"') {
int i4 = onAttributionFailure + 69;
int i5 = i4 % 128;
onConversionDataFail = i5;
int i6 = i4 % 2;
int i7 = i5 + 15;
onAttributionFailure = i7 % 128;
int i8 = i7 % 2;
return true;
}
}
int i9 = onAttributionFailure + 79;
onConversionDataFail = i9 % 128;
int i10 = i9 % 2;
return false;
}
@Override
public final void start(@NonNull Context context, String str, final AppsFlyerRequestListener appsFlyerRequestListener) {
if (AFInAppEventParameterName().onDeepLinkingNative().AFKeystoreWrapper()) {
return;
}
if (!this.init) {
int i2 = onConversionDataFail + 17;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
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) {
appsFlyerRequestListener.onError(41, "No dev key");
return;
}
return;
}
}
AFInAppEventType(context);
final AFe1lSDK AFLogger = AFInAppEventParameterName().AFLogger();
AFLogger.values(AFa1rSDK.AFKeystoreWrapper(context));
this.onInstallConversionFailureNative = (Application) context.getApplicationContext();
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("start", str);
String str2 = valueOf;
AFLogger.afInfoLog(String.format("Starting AppsFlyer: (v%s.%s)", "6.12.1", str2));
StringBuilder sb = new StringBuilder("Build Number: ");
sb.append(str2);
AFLogger.afInfoLog(sb.toString());
AppsFlyerProperties.getInstance().loadProperties(AFInAppEventParameterName().AFKeystoreWrapper());
if (!TextUtils.isEmpty(str)) {
int i4 = onAttributionFailure + 87;
onConversionDataFail = i4 % 128;
if (i4 % 2 == 0) {
AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType = str;
AFc1pSDK.AFInAppEventParameterName(str);
int i5 = 66 / 0;
} else {
AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType = str;
AFc1pSDK.AFInAppEventParameterName(str);
}
} else if (TextUtils.isEmpty(AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType)) {
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 ? '`' : '5') != '`') {
return;
}
appsFlyerRequestListener.onError(41, "No dev key");
return;
}
AFInAppEventParameterName().afDebugLog().valueOf(null);
afErrorLogForExcManagerOnly();
afInfoLog(this.onInstallConversionFailureNative.getBaseContext());
if ((this.onDeepLinkingNative ? '(' : (char) 14) != 14) {
int i6 = onAttributionFailure + 77;
onConversionDataFail = i6 % 128;
int i7 = i6 % 2;
AFInAppEventParameterName(this.onInstallConversionFailureNative.getApplicationContext());
}
this.onAppOpenAttribution.onDeepLinkingNative().AFInAppEventParameterName(context, new AFb1iSDK.AFa1wSDK() {
@Override
public final void AFKeystoreWrapper(@NonNull Context context2) {
AFLogger.afInfoLog("onBecameBackground");
AFe1lSDK aFe1lSDK = AFLogger;
long currentTimeMillis = System.currentTimeMillis();
long j2 = aFe1lSDK.afDebugLog;
if (j2 != 0) {
long j3 = currentTimeMillis - j2;
if (j3 > 0 && j3 < 1000) {
j3 = 1000;
}
long seconds = TimeUnit.MILLISECONDS.toSeconds(j3);
aFe1lSDK.afErrorLogForExcManagerOnly = seconds;
aFe1lSDK.AFKeystoreWrapper.AFInAppEventType("prev_session_dur", seconds);
} else {
AFLogger.afInfoLog("Metrics: fg ts is missing");
}
AFLogger.afInfoLog("callStatsBackground background call");
AFa1dSDK.this.AFInAppEventType(new WeakReference<>(context2));
AFa1dSDK.this.AFInAppEventParameterName().onResponseErrorNative().AFKeystoreWrapper();
AFb1wSDK afErrorLogForExcManagerOnly = AFa1dSDK.this.AFInAppEventParameterName().afErrorLogForExcManagerOnly();
if (afErrorLogForExcManagerOnly.afErrorLog()) {
afErrorLogForExcManagerOnly.valueOf();
if (context2 != null && !AppsFlyerLib.getInstance().isStopped()) {
afErrorLogForExcManagerOnly.AFInAppEventType(context2.getPackageName(), context2.getPackageManager(), AFa1dSDK.this.AFInAppEventParameterName());
}
afErrorLogForExcManagerOnly.AFInAppEventType();
} else {
AFLogger.afDebugLog("RD status is OFF");
}
AFa1dSDK.this.AFInAppEventParameterName().afWarnLog().values();
}
@Override
public final void values(@NonNull Activity activity) {
AFLogger.AFInAppEventParameterName();
AFa1dSDK.this.AFInAppEventParameterName().afDebugLog().valueOf(null);
AFa1dSDK.valueOf(AFa1dSDK.this);
AFa1dSDK aFa1dSDK = AFa1dSDK.this;
int AFInAppEventType = aFa1dSDK.AFInAppEventType(aFa1dSDK.valueOf((Context) activity), false);
AFLogger.afInfoLog("onBecameForeground");
if (AFInAppEventType < 2) {
AFa1dSDK.this.AFInAppEventParameterName().afWarnLog().AFInAppEventType();
}
AFe1bSDK aFe1bSDK = new AFe1bSDK();
if (activity != null) {
AFa1dSDK.this.AFInAppEventParameterName().init().valueOf(aFe1bSDK.AFInAppEventType(), activity.getIntent(), activity.getApplication());
}
AFa1dSDK aFa1dSDK2 = AFa1dSDK.this;
aFe1bSDK.AFInAppEventType = appsFlyerRequestListener;
aFa1dSDK2.values(aFe1bSDK, activity);
}
});
}
public final void valueOf(Context context, Intent intent) {
if (intent.getStringExtra("appsflyer_preinstall") != null) {
int i2 = onConversionDataFail + 19;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFInAppEventParameterName(intent.getStringExtra("appsflyer_preinstall"));
}
AFLogger.afInfoLog("****** onReceive called *******");
AppsFlyerProperties.getInstance();
String stringExtra = intent.getStringExtra("referrer");
AFLogger.afInfoLog("Play store referrer: ".concat(String.valueOf(stringExtra)));
if ((stringExtra != null ? 'H' : '&') == 'H') {
valueOf(context).values("referrer", stringExtra);
AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
appsFlyerProperties.set("AF_REFERRER", stringExtra);
appsFlyerProperties.AFInAppEventParameterName = stringExtra;
if (AppsFlyerProperties.getInstance().AFInAppEventType()) {
int i4 = onConversionDataFail + 23;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
AFLogger.afInfoLog("onReceive: isLaunchCalled");
AFInAppEventType(context, AFe1nSDK.onReceive);
values(context, stringExtra);
int i6 = onConversionDataFail + 19;
onAttributionFailure = i6 % 128;
int i7 = i6 % 2;
}
}
int i8 = onConversionDataFail + 111;
onAttributionFailure = i8 % 128;
int i9 = i8 % 2;
}
private Runnable AFInAppEventType(final AFf1pSDK aFf1pSDK) {
int i2 = onConversionDataFail + 75;
onAttributionFailure = i2 % 128;
if (!(i2 % 2 == 0)) {
new Runnable() {
@Override
public final void run() {
AFa1dSDK.this.AFKeystoreWrapper(aFf1pSDK);
}
};
throw null;
}
Runnable runnable = new Runnable() {
@Override
public final void run() {
AFa1dSDK.this.AFKeystoreWrapper(aFf1pSDK);
}
};
int i3 = onAttributionFailure + 49;
onConversionDataFail = i3 % 128;
if ((i3 % 2 == 0 ? 'V' : (char) 30) != 'V') {
return runnable;
}
throw null;
}
public void AFKeystoreWrapper(AFf1pSDK aFf1pSDK) {
AFb1fSDK valueOf2 = valueOf(this.onInstallConversionFailureNative);
boolean z2 = false;
int AFInAppEventType = AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType.AFInAppEventType("appsFlyerCount", 0);
boolean AFKeystoreWrapper2 = valueOf2.AFKeystoreWrapper(AppsFlyerProperties.NEW_REFERRER_SENT);
if ((aFf1pSDK.afRDLog == AFf1jSDK.AFa1vSDK.NOT_STARTED ? 'L' : (char) 31) != 31) {
int i2 = onConversionDataFail + 15;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
z2 = true;
}
if (AFInAppEventType == 1) {
int i4 = onConversionDataFail + 91;
onAttributionFailure = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
if (z2 || AFKeystoreWrapper2) {
valueOf(new AFe1hSDK());
int i5 = onAttributionFailure + 11;
onConversionDataFail = i5 % 128;
int i6 = i5 % 2;
}
}
}
public static String values() {
int i2 = onConversionDataFail + 93;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
String valueOf2 = valueOf(AppsFlyerProperties.APP_USER_ID);
int i4 = onConversionDataFail + 103;
onAttributionFailure = i4 % 128;
if (!(i4 % 2 == 0)) {
int i5 = 33 / 0;
}
return valueOf2;
}
final void AFInAppEventType(WeakReference<Context> weakReference) {
if (weakReference.get() == null) {
return;
}
AFLogger.afInfoLog("app went to background");
AFb1fSDK valueOf2 = valueOf(weakReference.get());
AppsFlyerProperties.getInstance().saveProperties(valueOf2);
long j2 = AFInAppEventParameterName().AFLogger().afErrorLogForExcManagerOnly;
HashMap hashMap = new HashMap();
String str = AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType;
if ((str == null ? (char) 20 : (char) 2) != 20) {
String valueOf3 = valueOf("KSAppsFlyerId");
if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, false)) {
hashMap.put(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, "true");
}
AFc1uSDK.AFa1wSDK values2 = AFa1bSDK.values(weakReference.get().getContentResolver());
if (values2 != null) {
hashMap.put("amazon_aid", values2.AFInAppEventParameterName);
hashMap.put("amazon_aid_limit", String.valueOf(values2.AFInAppEventType));
}
String string = AppsFlyerProperties.getInstance().getString("advertiserId");
if (string != null) {
int i2 = onConversionDataFail + 39;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
hashMap.put("advertiserId", string);
}
hashMap.put("app_id", weakReference.get().getPackageName());
hashMap.put("devkey", str);
hashMap.put("uid", AFa1aSDK.AFInAppEventParameterName(AFInAppEventParameterName().onAppOpenAttributionNative(), AFInAppEventParameterName().AFKeystoreWrapper()));
hashMap.put("time_in_app", String.valueOf(j2));
hashMap.put("statType", "user_closed_app");
hashMap.put("platform", "Android");
hashMap.put("launch_counter", Integer.toString(AFInAppEventType(valueOf2, false)));
hashMap.put(AppsFlyerProperties.CHANNEL, AFInAppEventParameterName().AFInAppEventParameterName().AFKeystoreWrapper());
if (valueOf3 != null) {
int i4 = onConversionDataFail + 15;
onAttributionFailure = i4 % 128;
if ((i4 % 2 != 0 ? 'E' : (char) 16) == 'E') {
throw null;
}
} else {
int i5 = onAttributionFailure + 61;
onConversionDataFail = i5 % 128;
int i6 = i5 % 2;
valueOf3 = "";
}
hashMap.put("originalAppsflyerId", valueOf3);
if (this.AppsFlyer2dXConversionCallback) {
AFf1wSDK aFf1wSDK = new AFf1wSDK();
aFf1wSDK.afWarnLog = isStopped();
AFd1eSDK aFd1eSDK = new AFd1eSDK((AFf1wSDK) aFf1wSDK.valueOf(AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType.AFInAppEventType("appsFlyerCount", 0)).AFInAppEventType(hashMap).valueOf(String.format(afRDLog, AppsFlyerLib.getInstance().getHostPrefix(), valueOf().getHostName())), AFInAppEventParameterName());
AFd1tSDK level = AFInAppEventParameterName().getLevel();
level.AFKeystoreWrapper.execute(level.new AnonymousClass5(aFd1eSDK));
return;
}
AFLogger.afDebugLog("Stats call is disabled, ignore ...");
return;
}
int i7 = onConversionDataFail + 11;
onAttributionFailure = i7 % 128;
char c2 = i7 % 2 != 0 ? (char) 5 : (char) 30;
AFLogger.afWarnLog("[callStats] AppsFlyer's SDK cannot send any event without providing DevKey.");
if (c2 != 30) {
throw null;
}
}
@VisibleForTesting
final void values(@NonNull AFa1qSDK aFa1qSDK, @Nullable Activity activity) {
int i2 = onAttributionFailure + 23;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
AFInAppEventType(aFa1qSDK, activity);
if (!(AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType != null)) {
AFLogger.afWarnLog("[LogEvent/Launch] AppsFlyer's SDK cannot send any event without providing DevKey.");
AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.AFInAppEventType;
if (appsFlyerRequestListener != null) {
int i4 = onAttributionFailure + 99;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
appsFlyerRequestListener.onError(41, "No dev key");
return;
}
return;
}
String referrer = AppsFlyerProperties.getInstance().getReferrer(AFInAppEventParameterName().AFKeystoreWrapper());
if (referrer == null) {
referrer = "";
}
aFa1qSDK.AFLogger = referrer;
AFInAppEventType(aFa1qSDK);
}
@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));
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setUserEmails", (String[]) arrayList.toArray(new String[strArr.length + 1]));
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EMAIL_CRYPT_TYPE, emailsCryptType.getValue());
HashMap hashMap = new HashMap();
ArrayList arrayList2 = new ArrayList();
int length = strArr.length;
int i2 = onConversionDataFail + 47;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
String str = null;
int i4 = 0;
while (true) {
if (!(i4 < length)) {
hashMap.put(str, arrayList2);
AppsFlyerProperties.getInstance().setUserEmails(new JSONObject(hashMap).toString());
return;
}
String str2 = strArr[i4];
if (AnonymousClass2.AFInAppEventParameterName[emailsCryptType.ordinal()] != 2) {
arrayList2.add(AFb1zSDK.AFInAppEventParameterName(str2));
str = "sha256_el_arr";
} else {
arrayList2.add(str2);
int i5 = onConversionDataFail + 21;
onAttributionFailure = i5 % 128;
int i6 = i5 % 2;
str = "plain_el_arr";
}
i4++;
}
}
@VisibleForTesting
private void AFKeystoreWrapper(Context context, String str, Map<String, Object> map, String str2, String str3) {
AFa1qSDK aFe1bSDK;
int i2;
int i3 = onAttributionFailure + 45;
onConversionDataFail = i3 % 128;
int i4 = i3 % 2;
if ((str != null) && !str.trim().isEmpty()) {
aFe1bSDK = new AFe1aSDK();
i2 = onAttributionFailure + 125;
} else {
aFe1bSDK = new AFe1bSDK();
i2 = onAttributionFailure + 115;
}
onConversionDataFail = i2 % 128;
int i5 = i2 % 2;
AFInAppEventType(context);
aFe1bSDK.afDebugLog = str;
aFe1bSDK.AFKeystoreWrapper = map;
aFe1bSDK.AFLogger = str2;
aFe1bSDK.values = str3;
AFInAppEventType(aFe1bSDK);
int i6 = onConversionDataFail + 105;
onAttributionFailure = i6 % 128;
if (i6 % 2 != 0) {
throw null;
}
}
private void afDebugLog(Context context) {
int i2;
if (AFa1cSDK.valueOf()) {
AFLogger.afRDLog("OPPO device found");
i2 = 23;
} else {
i2 = 18;
}
int i3 = Build.VERSION.SDK_INT;
if (i3 >= i2 && !AFInAppEventParameterName(AppsFlyerProperties.DISABLE_KEYSTORE, true)) {
StringBuilder sb = new StringBuilder("OS SDK is=");
sb.append(i3);
sb.append("; use KeyStore");
AFLogger.afRDLog(sb.toString());
AFKeystoreWrapper aFKeystoreWrapper = new AFKeystoreWrapper(context);
if (!aFKeystoreWrapper.valueOf()) {
aFKeystoreWrapper.AFKeystoreWrapper = AFa1aSDK.AFInAppEventParameterName(AFInAppEventParameterName().onAppOpenAttributionNative(), AFInAppEventParameterName().AFKeystoreWrapper());
aFKeystoreWrapper.AFInAppEventType = 0;
aFKeystoreWrapper.valueOf(aFKeystoreWrapper.AFInAppEventParameterName());
} else {
String AFInAppEventParameterName2 = aFKeystoreWrapper.AFInAppEventParameterName();
synchronized (aFKeystoreWrapper.AFInAppEventParameterName) {
aFKeystoreWrapper.AFInAppEventType++;
AFLogger.afInfoLog("Deleting key with alias: ".concat(String.valueOf(AFInAppEventParameterName2)));
try {
synchronized (aFKeystoreWrapper.AFInAppEventParameterName) {
aFKeystoreWrapper.values.deleteEntry(AFInAppEventParameterName2);
}
} catch (KeyStoreException e2) {
StringBuilder sb2 = new StringBuilder("Exception ");
sb2.append(e2.getMessage());
sb2.append(" occurred");
AFLogger.afErrorLog(sb2.toString(), e2);
}
}
aFKeystoreWrapper.valueOf(aFKeystoreWrapper.AFInAppEventParameterName());
}
AFKeystoreWrapper("KSAppsFlyerId", aFKeystoreWrapper.AFKeystoreWrapper());
AFKeystoreWrapper("KSAppsFlyerRICounter", String.valueOf(aFKeystoreWrapper.AFInAppEventType()));
return;
}
StringBuilder sb3 = new StringBuilder("OS SDK is=");
sb3.append(i3);
sb3.append("; no KeyStore usage");
AFLogger.afRDLog(sb3.toString());
}
private boolean afInfoLog() {
int i2 = onAttributionFailure + 125;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
if (this.AFLogger > 0) {
long currentTimeMillis = System.currentTimeMillis() - this.AFLogger;
Locale locale = Locale.US;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss.SSS Z", locale);
String values2 = values(simpleDateFormat, this.AFLogger);
String values3 = values(simpleDateFormat, this.afWarnLog);
if (currentTimeMillis < this.getLevel) {
if (!isStopped()) {
AFLogger.afInfoLog(String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nThis launch is blocked: %s ms < %s ms", values2, values3, Long.valueOf(currentTimeMillis), Long.valueOf(this.getLevel)));
return true;
}
}
if (!isStopped()) {
AFLogger.afInfoLog(String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nSending launch (+%s ms)", values2, values3, Long.valueOf(currentTimeMillis)));
}
} else {
if ((!isStopped() ? '!' : 'D') == '!') {
int i4 = onAttributionFailure + 37;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
AFLogger.afInfoLog("Sending first launch for this session!");
}
}
int i6 = onAttributionFailure + 81;
onConversionDataFail = i6 % 128;
if (i6 % 2 == 0) {
int i7 = 8 / 0;
}
return false;
}
public final void AFInAppEventParameterName(Context context, String str) {
JSONArray jSONArray;
JSONArray jSONArray2;
JSONObject jSONObject;
int i2 = onConversionDataFail + 7;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFLogger.afDebugLog("received a new (extra) referrer: ".concat(String.valueOf(str)));
try {
long currentTimeMillis = System.currentTimeMillis();
String valueOf2 = valueOf(context).valueOf("extraReferrers", (String) null);
if (valueOf2 == null) {
jSONObject = new JSONObject();
jSONArray2 = new JSONArray();
} else {
JSONObject jSONObject2 = new JSONObject(valueOf2);
if (jSONObject2.has(str)) {
jSONArray = new JSONArray((String) jSONObject2.get(str));
int i4 = onAttributionFailure + 17;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
} else {
jSONArray = new JSONArray();
}
jSONArray2 = jSONArray;
jSONObject = jSONObject2;
}
if (jSONArray2.length() < 5) {
int i6 = onConversionDataFail + 63;
onAttributionFailure = i6 % 128;
int i7 = i6 % 2;
jSONArray2.put(currentTimeMillis);
}
if (((long) jSONObject.length()) >= 4) {
valueOf(jSONObject);
}
jSONObject.put(str, jSONArray2.toString());
valueOf(context).values("extraReferrers", jSONObject.toString());
} catch (JSONException e2) {
AFLogger.afErrorLogForExcManagerOnly("error at addReferrer", e2);
} catch (Throwable th) {
StringBuilder sb = new StringBuilder("Couldn't save referrer - ");
sb.append(str);
sb.append(": ");
AFLogger.afErrorLog(sb.toString(), th);
}
}
public static String values(SimpleDateFormat simpleDateFormat, long j2) {
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
String format = simpleDateFormat.format(new Date(j2));
int i2 = onConversionDataFail + 59;
onAttributionFailure = i2 % 128;
if (!(i2 % 2 != 0)) {
return format;
}
throw null;
}
private void values(android.content.Context r7, java.lang.String r8) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.values(android.content.Context, java.lang.String):void");
}
private static void valueOf(org.json.JSONObject r15) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.valueOf(org.json.JSONObject):void");
}
private int AFKeystoreWrapper(AFb1fSDK aFb1fSDK) {
int i2 = onAttributionFailure + 15;
onConversionDataFail = i2 % 128;
return i2 % 2 == 0 ? valueOf(aFb1fSDK, "appsFlyerAdImpressionCount", false) : valueOf(aFb1fSDK, "appsFlyerAdImpressionCount", true);
}
private static java.lang.String AFKeystoreWrapper(@androidx.annotation.Nullable java.lang.String r10) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.AFKeystoreWrapper(java.lang.String):java.lang.String");
}
@androidx.annotation.WorkerThread
final java.util.Map<java.lang.String, java.lang.Object> values(com.appsflyer.internal.AFa1qSDK r29) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.values(com.appsflyer.internal.AFa1qSDK):java.util.Map");
}
public static void AFInAppEventParameterName(AFc1zSDK aFc1zSDK) {
int i2 = onConversionDataFail + 31;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
aFc1zSDK.AppsFlyer2dXConversionCallback().valueOf();
int i4 = onAttributionFailure + 69;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
}
private static boolean AFInAppEventParameterName(String str, boolean z2) {
int i2 = onConversionDataFail + 105;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? (char) 24 : '8') == '8') {
return AppsFlyerProperties.getInstance().getBoolean(str, z2);
}
AppsFlyerProperties.getInstance().getBoolean(str, z2);
throw null;
}
public void AFInAppEventParameterName(AFe1zSDK aFe1zSDK) {
int i2 = onConversionDataFail + 115;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? (char) 24 : '.') != 24) {
if (!(aFe1zSDK != AFe1zSDK.SUCCESS)) {
int i3 = onAttributionFailure + 9;
onConversionDataFail = i3 % 128;
if (i3 % 2 != 0) {
AFInAppEventParameterName().onResponseErrorNative().values();
return;
} else {
AFInAppEventParameterName().onResponseErrorNative().values();
throw null;
}
}
return;
}
AFe1zSDK aFe1zSDK2 = AFe1zSDK.SUCCESS;
throw null;
}
private void AFInAppEventParameterName(Context context) {
this.onConversionDataSuccess = new HashMap();
final long currentTimeMillis = System.currentTimeMillis();
final AFa1uSDK.AFa1xSDK aFa1xSDK = new AFa1uSDK.AFa1xSDK() {
@Override
public final void AFInAppEventParameterName(String str) {
AFa1dSDK.AFInAppEventType(AFa1dSDK.this).put("error", str);
}
@Override
public final void AFInAppEventType(String str, String str2, String str3) {
if (str != null) {
AFLogger.afInfoLog("Facebook Deferred AppLink data received: ".concat(str));
AFa1dSDK.AFInAppEventType(AFa1dSDK.this).put("link", str);
if (str2 != null) {
AFa1dSDK.AFInAppEventType(AFa1dSDK.this).put("target_url", str2);
}
if (str3 != null) {
HashMap hashMap = new HashMap();
HashMap hashMap2 = new HashMap();
hashMap2.put("promo_code", str3);
hashMap.put("deeplink_context", hashMap2);
AFa1dSDK.AFInAppEventType(AFa1dSDK.this).put("extras", hashMap);
}
} else {
AFa1dSDK.AFInAppEventType(AFa1dSDK.this).put("link", "");
}
AFa1dSDK.AFInAppEventType(AFa1dSDK.this).put("ttr", String.valueOf(System.currentTimeMillis() - currentTimeMillis));
}
};
try {
Class.forName("com.facebook.FacebookSdk").getMethod("sdkInitialize", Context.class).invoke(null, context);
final Class<?> cls = Class.forName("com.facebook.applinks.AppLinkData");
Class<?> cls2 = Class.forName("com.facebook.applinks.AppLinkData$CompletionHandler");
Method method = cls.getMethod("fetchDeferredAppLinkData", Context.class, String.class, cls2);
Object newProxyInstance = Proxy.newProxyInstance(cls2.getClassLoader(), new Class[]{cls2}, new InvocationHandler() {
@Override
public final Object invoke(Object obj, Method method2, Object[] objArr) throws Throwable {
String str;
String str2;
String str3;
Bundle bundle;
if (!method2.getName().equals("onDeferredAppLinkDataFetched")) {
AFa1xSDK aFa1xSDK2 = aFa1xSDK;
if (aFa1xSDK2 != null) {
aFa1xSDK2.AFInAppEventParameterName("onDeferredAppLinkDataFetched invocation failed");
}
return null;
}
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");
str = (bundle3 == null || (bundle = bundle3.getBundle("deeplink_context")) == null) ? null : bundle.getString("promo_code");
} else {
str = null;
str2 = null;
str3 = null;
}
AFa1xSDK aFa1xSDK3 = aFa1xSDK;
if (aFa1xSDK3 != null) {
aFa1xSDK3.AFInAppEventType(str2, str3, str);
}
} else {
AFa1xSDK aFa1xSDK4 = aFa1xSDK;
if (aFa1xSDK4 != null) {
aFa1xSDK4.AFInAppEventType(null, null, null);
}
}
return null;
}
});
String string = context.getString(context.getResources().getIdentifier("facebook_app_id", TypedValues.Custom.S_STRING, context.getPackageName()));
if (TextUtils.isEmpty(string)) {
int i2 = onConversionDataFail + 55;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? 'A' : 'W') == 'W') {
aFa1xSDK.AFInAppEventParameterName("Facebook app id not defined in resources");
return;
} else {
aFa1xSDK.AFInAppEventParameterName("Facebook app id not defined in resources");
throw null;
}
}
method.invoke(null, context, string, newProxyInstance);
int i3 = onAttributionFailure + 21;
onConversionDataFail = i3 % 128;
if ((i3 % 2 == 0 ? (char) 2 : (char) 3) == 2) {
throw null;
}
} catch (ClassNotFoundException e2) {
AFLogger.afErrorLogForExcManagerOnly("FB class missing error", e2);
aFa1xSDK.AFInAppEventParameterName(e2.toString());
} catch (IllegalAccessException e3) {
AFLogger.afErrorLogForExcManagerOnly("FB illegal access", e3);
aFa1xSDK.AFInAppEventParameterName(e3.toString());
} catch (NoSuchMethodException e4) {
AFLogger.afErrorLogForExcManagerOnly("FB method missing error", e4);
aFa1xSDK.AFInAppEventParameterName(e4.toString());
} catch (InvocationTargetException e5) {
AFLogger.afErrorLogForExcManagerOnly("FB invocation error", e5);
aFa1xSDK.AFInAppEventParameterName(e5.toString());
}
}
private static String valueOf(String str) {
int i2 = onConversionDataFail + 55;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
String string = AppsFlyerProperties.getInstance().getString(str);
int i4 = onAttributionFailure + 69;
onConversionDataFail = i4 % 128;
if (i4 % 2 != 0) {
return string;
}
int i5 = 40 / 0;
return string;
}
private void valueOf(Context context, String str, Map<String, Object> map) {
Activity activity;
AFe1aSDK aFe1aSDK = new AFe1aSDK();
aFe1aSDK.afDebugLog = str;
aFe1aSDK.AFKeystoreWrapper = map;
if ((context instanceof Activity ? 'K' : (char) 24) != 'K') {
int i2 = onConversionDataFail + 25;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
activity = null;
} else {
int i4 = onConversionDataFail + 29;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
activity = (Activity) context;
}
values(aFe1aSDK, activity);
}
private void valueOf(AFa1qSDK aFa1qSDK) {
String str;
long j2;
Context context = AFInAppEventParameterName().onAppOpenAttributionNative().AFInAppEventParameterName;
if (context == null) {
AFLogger.afDebugLog("sendWithEvent - got null context. skipping event/launch.");
return;
}
AFb1fSDK valueOf2 = valueOf(context);
AppsFlyerProperties.getInstance().saveProperties(valueOf2);
if (!AFInAppEventParameterName().AFVersionDeclaration().values()) {
StringBuilder sb = new StringBuilder("sendWithEvent from activity: ");
sb.append(context.getClass().getName());
AFLogger.afInfoLog(sb.toString());
int i2 = onAttributionFailure + 61;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
}
boolean values2 = aFa1qSDK.values();
Map<String, ?> values3 = values(aFa1qSDK);
String str2 = (String) values3.get("appsflyerKey");
if (str2 != null) {
int i4 = onConversionDataFail + TypedValues.TYPE_TARGET;
onAttributionFailure = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
if (str2.length() != 0) {
if ((isStopped() ? (char) 27 : ')') != 27) {
AFLogger.afInfoLog("AppsFlyerLib.sendWithEvent");
}
int AFInAppEventType = AFInAppEventType(valueOf2, false);
AFg1zSDK aFg1zSDK = new AFg1zSDK(this.onAppOpenAttribution);
Intrinsics.checkNotNullParameter(aFa1qSDK, "");
boolean values4 = aFa1qSDK.values();
boolean z2 = aFa1qSDK instanceof AFe1gSDK;
boolean z3 = aFa1qSDK instanceof AFe1jSDK;
boolean z4 = aFa1qSDK instanceof AFe1iSDK;
boolean z5 = true;
if ((aFa1qSDK instanceof AFe1hSDK) || z4) {
str = AFg1zSDK.afErrorLog;
if (str == null) {
int i5 = onConversionDataFail + 77;
onAttributionFailure = i5 % 128;
if (!(i5 % 2 == 0)) {
aFg1zSDK.AFKeystoreWrapper.AFInAppEventParameterName(AFg1zSDK.valueOf);
throw null;
}
str = aFg1zSDK.AFKeystoreWrapper.AFInAppEventParameterName(AFg1zSDK.valueOf);
}
} else {
if (!(z3)) {
if ((z2 ? 'L' : '`') != '`') {
int i6 = onAttributionFailure + 11;
onConversionDataFail = i6 % 128;
int i7 = i6 % 2;
str = AFg1zSDK.afInfoLog;
if (str == null) {
str = aFg1zSDK.AFKeystoreWrapper.AFInAppEventParameterName(AFg1zSDK.AFKeystoreWrapper);
}
} else if (!values4) {
str = AFg1zSDK.getLevel;
if (str == null) {
str = aFg1zSDK.AFKeystoreWrapper.AFInAppEventParameterName(AFg1zSDK.afRDLog);
}
} else if (AFInAppEventType < 2) {
int i8 = onAttributionFailure + 51;
onConversionDataFail = i8 % 128;
int i9 = i8 % 2;
str = AFg1zSDK.AFLogger$LogLevel;
if (str == null) {
str = aFg1zSDK.AFKeystoreWrapper.AFInAppEventParameterName(AFg1zSDK.AFLogger);
}
int i10 = onConversionDataFail + 67;
onAttributionFailure = i10 % 128;
int i11 = i10 % 2;
} else {
str = AFg1zSDK.AFVersionDeclaration;
if (str == null) {
str = aFg1zSDK.AFKeystoreWrapper.AFInAppEventParameterName(AFg1zSDK.afDebugLog);
}
}
} else {
str = AFg1zSDK.afWarnLog;
if (str == null) {
int i12 = onAttributionFailure + 81;
onConversionDataFail = i12 % 128;
if (i12 % 2 != 0) {
str = aFg1zSDK.AFKeystoreWrapper.AFInAppEventParameterName(AFg1zSDK.AFInAppEventType);
} else {
aFg1zSDK.AFKeystoreWrapper.AFInAppEventParameterName(AFg1zSDK.AFInAppEventType);
throw null;
}
}
}
}
StringBuilder sb2 = new StringBuilder();
sb2.append(str);
sb2.append(aFg1zSDK.valueOf.AFInAppEventParameterName().values.AFInAppEventParameterName.getPackageName());
String valueOf3 = AFg1zSDK.valueOf(sb2.toString(), z2);
StringBuilder sb3 = new StringBuilder();
sb3.append(valueOf3);
String AFKeystoreWrapper2 = aFg1zSDK.valueOf.AFInAppEventParameterName().AFKeystoreWrapper();
String concat = AFKeystoreWrapper2 != null ? "&channel=".concat(AFKeystoreWrapper2) : null;
sb3.append((concat != null ? '4' : 'C') == '4' ? concat : "");
String obj = sb3.toString();
valueOf(values3);
AFa1ySDK aFa1ySDK = new AFa1ySDK(this, aFa1qSDK.valueOf(obj).AFInAppEventType(values3).valueOf(AFInAppEventType), (byte) 0);
if (values2) {
AFf1jSDK[] AFLogger$LogLevel = AFLogger$LogLevel();
int length = AFLogger$LogLevel.length;
int i13 = 0;
boolean z6 = false;
while (true) {
if (!(i13 < length)) {
break;
}
AFf1jSDK aFf1jSDK = AFLogger$LogLevel[i13];
if (aFf1jSDK.afRDLog == AFf1jSDK.AFa1vSDK.STARTED) {
StringBuilder sb4 = new StringBuilder("Failed to get ");
sb4.append(aFf1jSDK.AFInAppEventParameterName);
sb4.append(" referrer, wait ...");
AFLogger.afDebugLog(sb4.toString());
z6 = true;
}
i13++;
}
if ((this.onDeepLinkingNative ? (byte) 0 : (byte) 1) == 0) {
int i14 = onConversionDataFail + 107;
onAttributionFailure = i14 % 128;
int i15 = i14 % 2;
if (!afWarnLog()) {
AFLogger.afDebugLog("fetching Facebook deferred AppLink data, wait ...");
z6 = true;
}
}
if ((AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType() ? ':' : 'P') != ':') {
z5 = z6;
}
} else {
z5 = false;
}
ScheduledExecutorService values5 = AFInAppEventParameterName().values();
if (z5) {
j2 = 500;
} else {
int i16 = onAttributionFailure + 65;
onConversionDataFail = i16 % 128;
int i17 = i16 % 2;
j2 = 0;
}
AFInAppEventType(values5, aFa1ySDK, j2, TimeUnit.MILLISECONDS);
return;
}
}
AFLogger.afDebugLog("Not sending data yet, waiting for dev key");
AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.AFInAppEventType;
if (appsFlyerRequestListener != null) {
appsFlyerRequestListener.onError(41, "No dev key");
}
}
public static boolean AFKeystoreWrapper(Context context) {
int i2 = onConversionDataFail + 71;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
try {
} catch (Throwable th) {
AFLogger.afErrorLog("WARNING: Google play services is unavailable. ", th);
}
if ((GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) == 0 ? (char) 25 : 'X') == 25) {
return true;
}
int i4 = onConversionDataFail + 25;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
try {
context.getPackageManager().getPackageInfo("com.google.android.gms", 0);
return true;
} catch (PackageManager.NameNotFoundException e2) {
AFLogger.afErrorLog("WARNING: Google Play Services is unavailable. ", e2);
return false;
}
}
private void AFInAppEventType(Context context, AFe1nSDK aFe1nSDK) {
int i2 = onConversionDataFail + 117;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFInAppEventType(context);
AFe1lSDK AFLogger = AFInAppEventParameterName().AFLogger();
AFe1oSDK AFKeystoreWrapper2 = AFa1rSDK.AFKeystoreWrapper(context);
if (!(!AFLogger.values())) {
AFLogger.values.put("api_name", aFe1nSDK.toString());
AFLogger.values(AFKeystoreWrapper2);
int i4 = onConversionDataFail + 3;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
}
AFLogger.AFInAppEventParameterName();
}
@androidx.annotation.Nullable
@androidx.annotation.VisibleForTesting
private java.lang.String AFKeystoreWrapper(android.content.Context r5, java.lang.String r6) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.AFKeystoreWrapper(android.content.Context, java.lang.String):java.lang.String");
}
private void AFInAppEventType(Context context, Map<String, Object> map, AFa1qSDK aFa1qSDK) {
Activity activity;
int i2 = onConversionDataFail + 19;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFInAppEventType(context);
aFa1qSDK.AFInAppEventType(map);
if (!(!(context instanceof Activity))) {
int i4 = onConversionDataFail;
int i5 = i4 + 83;
onAttributionFailure = i5 % 128;
int i6 = i5 % 2;
activity = (Activity) context;
int i7 = i4 + 107;
onAttributionFailure = i7 % 128;
int i8 = i7 % 2;
} else {
activity = null;
}
values(aFa1qSDK, activity);
}
public final int AFInAppEventType(AFb1fSDK aFb1fSDK, boolean z2) {
int i2 = onAttributionFailure + 75;
onConversionDataFail = i2 % 128;
if (!(i2 % 2 != 0)) {
valueOf(aFb1fSDK, "appsFlyerCount", z2);
throw null;
}
int valueOf2 = valueOf(aFb1fSDK, "appsFlyerCount", z2);
int i3 = onAttributionFailure + 41;
onConversionDataFail = i3 % 128;
if (!(i3 % 2 == 0)) {
return valueOf2;
}
int i4 = 71 / 0;
return valueOf2;
}
private static void AFInAppEventType(@NonNull ScheduledExecutorService scheduledExecutorService, Runnable runnable, long j2, TimeUnit timeUnit) {
int i2 = onConversionDataFail + 107;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
try {
scheduledExecutorService.schedule(runnable, j2, timeUnit);
int i4 = onConversionDataFail + AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR_OVERLAY;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
} catch (RejectedExecutionException e2) {
AFLogger.afErrorLog("scheduleJob failed with RejectedExecutionException Exception", e2);
} catch (Throwable th) {
AFLogger.afErrorLog("scheduleJob failed with Exception", th);
}
}
private void AFInAppEventParameterName(AppsFlyerConversionListener appsFlyerConversionListener) {
int i2 = onConversionDataFail + 97;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? '4' : (char) 30) == '4') {
throw null;
}
if (appsFlyerConversionListener == null) {
return;
}
this.AFInAppEventType = appsFlyerConversionListener;
int i3 = onConversionDataFail + 21;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
private boolean AFInAppEventParameterName(com.appsflyer.internal.AFa1qSDK r6, com.appsflyer.internal.AFb1fSDK r7) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.AFInAppEventParameterName(com.appsflyer.internal.AFa1qSDK, com.appsflyer.internal.AFb1fSDK):boolean");
}
@NonNull
@Deprecated
public static String AFInAppEventType(HttpURLConnection httpURLConnection) {
String obj;
InputStreamReader inputStreamReader;
StringBuilder sb = new StringBuilder();
BufferedReader bufferedReader = null;
try {
try {
InputStream errorStream = httpURLConnection.getErrorStream();
boolean z2 = false;
if (!(errorStream != null)) {
errorStream = httpURLConnection.getInputStream();
}
inputStreamReader = new InputStreamReader(errorStream, Charset.defaultCharset());
try {
BufferedReader bufferedReader2 = new BufferedReader(inputStreamReader);
while (true) {
try {
String readLine = bufferedReader2.readLine();
if ((readLine != null ? '*' : (char) 2) != '*') {
break;
}
int i2 = onAttributionFailure + 41;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
sb.append((z2 ? 'V' : ' ') != ' ' ? '\n' : "");
sb.append(readLine);
z2 = true;
} catch (Throwable th) {
th = th;
bufferedReader = bufferedReader2;
try {
StringBuilder sb2 = new StringBuilder("Could not read connection response from: ");
sb2.append(httpURLConnection.getURL().toString());
AFLogger.afErrorLog(sb2.toString(), th);
if (bufferedReader != null) {
bufferedReader.close();
}
if (inputStreamReader != null) {
inputStreamReader.close();
}
int i4 = onAttributionFailure + 69;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
obj = sb.toString();
new JSONObject(obj);
return obj;
} catch (Throwable th2) {
if (bufferedReader != null) {
try {
bufferedReader.close();
} catch (Throwable th3) {
AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th3);
throw th2;
}
}
if (inputStreamReader != null) {
int i6 = onConversionDataFail + 117;
onAttributionFailure = i6 % 128;
int i7 = i6 % 2;
inputStreamReader.close();
}
throw th2;
}
}
}
bufferedReader2.close();
inputStreamReader.close();
} catch (Throwable th4) {
th = th4;
}
} catch (Throwable th5) {
th = th5;
inputStreamReader = null;
}
} catch (Throwable th6) {
AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th6);
}
obj = sb.toString();
try {
new JSONObject(obj);
return obj;
} catch (JSONException e2) {
AFLogger.afErrorLogForExcManagerOnly("error while parsing readServerResponse", e2);
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("string_response", obj);
return jSONObject.toString();
} catch (JSONException e3) {
AFLogger.afErrorLogForExcManagerOnly("RESPONSE_NOT_JSON error", e3);
return new JSONObject().toString();
}
}
}
public static Map<String, Object> AFInAppEventParameterName(Map<String, Object> map) {
int i2 = onAttributionFailure + 65;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
if ((map.containsKey("meta") ? '^' : '`') != '^') {
HashMap hashMap = new HashMap();
map.put("meta", hashMap);
return hashMap;
}
int i4 = onAttributionFailure + 63;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
return (Map) map.get("meta");
}
private int AFInAppEventParameterName(AFb1fSDK aFb1fSDK) {
int i2 = onConversionDataFail + 27;
onAttributionFailure = i2 % 128;
if (i2 % 2 != 0) {
}
return valueOf(aFb1fSDK, "appsFlyerAdRevenueCount", true);
}
private static void AFInAppEventParameterName(String str) {
try {
if (!new JSONObject(str).has("pid")) {
AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
int i2 = onConversionDataFail + 39;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
return;
}
int i4 = onAttributionFailure + 121;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
AFKeystoreWrapper("preInstallName", str);
} catch (JSONException e2) {
AFLogger.afErrorLog("Error parsing JSON for preinstall", e2);
}
}
private static void AFInAppEventParameterName(String str, boolean z2, int[] iArr, Object[] objArr) {
String str2;
byte[] bArr = str;
if (str != null) {
bArr = str.getBytes("ISO-8859-1");
}
byte[] bArr2 = bArr;
synchronized (AFg1mSDK.AFInAppEventType) {
int i2 = iArr[0];
int i3 = iArr[1];
int i4 = iArr[2];
int i5 = iArr[3];
char[] cArr = new char[i3];
System.arraycopy(onResponse, i2, cArr, 0, i3);
if (bArr2 != null) {
char[] cArr2 = new char[i3];
AFg1mSDK.AFKeystoreWrapper = 0;
char c2 = 0;
while (true) {
int i6 = AFg1mSDK.AFKeystoreWrapper;
if (i6 >= i3) {
break;
}
if (bArr2[i6] == 1) {
cArr2[i6] = (char) (((cArr[i6] << 1) + 1) - c2);
} else {
cArr2[i6] = (char) ((cArr[i6] << 1) - c2);
}
c2 = cArr2[i6];
AFg1mSDK.AFKeystoreWrapper = i6 + 1;
}
cArr = cArr2;
}
if (i5 > 0) {
char[] cArr3 = new char[i3];
System.arraycopy(cArr, 0, cArr3, 0, i3);
int i7 = i3 - i5;
System.arraycopy(cArr3, 0, cArr, i7, i5);
System.arraycopy(cArr3, i5, cArr, 0, i7);
}
if (z2) {
char[] cArr4 = new char[i3];
AFg1mSDK.AFKeystoreWrapper = 0;
while (true) {
int i8 = AFg1mSDK.AFKeystoreWrapper;
if (i8 >= i3) {
break;
}
cArr4[i8] = cArr[(i3 - i8) - 1];
AFg1mSDK.AFKeystoreWrapper = i8 + 1;
}
cArr = cArr4;
}
if (i4 > 0) {
AFg1mSDK.AFKeystoreWrapper = 0;
while (true) {
int i9 = AFg1mSDK.AFKeystoreWrapper;
if (i9 >= i3) {
break;
}
cArr[i9] = (char) (cArr[i9] - iArr[2]);
AFg1mSDK.AFKeystoreWrapper = i9 + 1;
}
}
str2 = new String(cArr);
}
objArr[0] = str2;
}
public final void AFInAppEventType(@NonNull Context context) {
int i2 = onConversionDataFail + 25;
onAttributionFailure = i2 % 128;
if (!(i2 % 2 != 0)) {
AFc1xSDK aFc1xSDK = this.onAppOpenAttribution;
if ((context != null ? (char) 28 : (char) 18) == 28) {
AFb1bSDK aFb1bSDK = aFc1xSDK.AFInAppEventParameterName;
if (context != null) {
aFb1bSDK.AFInAppEventParameterName = context.getApplicationContext();
int i3 = onConversionDataFail + 91;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
}
int i5 = onAttributionFailure + 73;
onConversionDataFail = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 15 / 0;
return;
}
return;
}
throw null;
}
private void AFInAppEventType(@NonNull AFa1qSDK aFa1qSDK, @Nullable Activity activity) {
int i2 = onConversionDataFail + 75;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFf1tSDK onResponseNative = AFInAppEventParameterName().onResponseNative();
aFa1qSDK.values = onResponseNative.AFInAppEventType(activity);
aFa1qSDK.afRDLog = onResponseNative.valueOf(activity);
int i4 = onConversionDataFail + 35;
onAttributionFailure = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 18 / 0;
}
}
private void AFInAppEventType(AFa1qSDK aFa1qSDK) {
boolean z2;
byte b2 = 0;
if ((aFa1qSDK.afDebugLog == null ? '2' : '6') != '6') {
int i2 = onAttributionFailure + 97;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
z2 = true;
} else {
z2 = false;
}
if (AFKeystoreWrapper()) {
int i4 = onConversionDataFail + 71;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
AFLogger.afInfoLog("CustomerUserId not set, reporting is disabled", true);
return;
}
if ((z2 ? '8' : (char) 16) == '8') {
int i6 = onConversionDataFail + 125;
onAttributionFailure = i6 % 128;
int i7 = i6 % 2;
if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.LAUNCH_PROTECT_ENABLED, true)) {
if ((afInfoLog() ? (char) 21 : '0') != '0') {
int i8 = onConversionDataFail + 77;
onAttributionFailure = i8 % 128;
int i9 = i8 % 2;
AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.AFInAppEventType;
if (appsFlyerRequestListener != null) {
appsFlyerRequestListener.onError(10, "Event timeout. Check 'minTimeBetweenSessions' param");
return;
}
return;
}
} else {
AFLogger.afInfoLog("Allowing multiple launches within a 5 second time window.");
}
this.AFLogger = System.currentTimeMillis();
}
AFInAppEventType(AFInAppEventParameterName().values(), new AFa1vSDK(this, aFa1qSDK, b2), 0L, TimeUnit.MILLISECONDS);
}
private void valueOf(java.util.Map<java.lang.String, java.lang.Object> r5) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.valueOf(java.util.Map):void");
}
private static java.lang.String valueOf(android.app.Activity r7) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.valueOf(android.app.Activity):java.lang.String");
}
public final AFb1fSDK valueOf(Context context) {
int i2 = onConversionDataFail + 61;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFInAppEventType(context);
AFb1fSDK AFKeystoreWrapper2 = AFInAppEventParameterName().AFKeystoreWrapper();
int i4 = onConversionDataFail + 1;
onAttributionFailure = i4 % 128;
if (!(i4 % 2 != 0)) {
return AFKeystoreWrapper2;
}
throw null;
}
private int valueOf(AFb1fSDK aFb1fSDK, String str, boolean z2) {
int i2 = onAttributionFailure + 21;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
int AFInAppEventType = aFb1fSDK.AFInAppEventType(str, 0);
if (z2) {
int i4 = onAttributionFailure + 89;
onConversionDataFail = i4 % 128;
int i5 = i4 % 2;
AFInAppEventType++;
aFb1fSDK.valueOf(str, AFInAppEventType);
}
if ((AFInAppEventParameterName().afErrorLogForExcManagerOnly().afErrorLog() ? '*' : 'Z') != 'Z') {
int i6 = onConversionDataFail + 83;
onAttributionFailure = i6 % 128;
if (i6 % 2 != 0) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType(String.valueOf(AFInAppEventType));
int i7 = 92 / 0;
} else {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType(String.valueOf(AFInAppEventType));
}
}
return AFInAppEventType;
}
public final void values(Context context, Map<String, Object> map, Uri uri) {
int i2 = onConversionDataFail + 45;
onAttributionFailure = i2 % 128;
if ((i2 % 2 != 0 ? (char) 25 : '%') == '%') {
AFInAppEventType(context);
if ((!map.containsKey("af_deeplink") ? '$' : 'D') != 'D') {
String AFKeystoreWrapper2 = AFKeystoreWrapper(uri.toString());
AFb1uSDK init = AFInAppEventParameterName().init();
String str = init.values;
if (str != null) {
int i3 = onConversionDataFail + 29;
int i4 = i3 % 128;
onAttributionFailure = i4;
int i5 = i3 % 2;
if (init.AFInAppEventParameterName != null) {
int i6 = i4 + 63;
onConversionDataFail = i6 % 128;
if (i6 % 2 != 0) {
if (!(AFKeystoreWrapper2.contains(str) ? false : true)) {
Uri.Builder buildUpon = Uri.parse(AFKeystoreWrapper2).buildUpon();
Uri.Builder buildUpon2 = Uri.EMPTY.buildUpon();
for (Map.Entry<String, String> entry : init.AFInAppEventParameterName.entrySet()) {
int i7 = onAttributionFailure + 31;
onConversionDataFail = i7 % 128;
int i8 = i7 % 2;
buildUpon.appendQueryParameter(entry.getKey(), entry.getValue());
buildUpon2.appendQueryParameter(entry.getKey(), entry.getValue());
}
AFKeystoreWrapper2 = buildUpon.build().toString();
map.put("appended_query_params", buildUpon2.build().getEncodedQuery());
}
} else {
AFKeystoreWrapper2.contains(str);
throw null;
}
}
}
map.put("af_deeplink", AFKeystoreWrapper2);
}
HashMap hashMap = new HashMap();
hashMap.put("link", uri.toString());
AFd1iSDK aFd1iSDK = new AFd1iSDK(AFInAppEventParameterName(), UUID.randomUUID(), uri);
if ((aFd1iSDK.getLevel() ? '[' : 'K') == '[') {
map.put("isBrandedDomain", Boolean.TRUE);
}
AFa1cSDK.values(context, hashMap, uri);
if (aFd1iSDK.AFLogger$LogLevel()) {
aFd1iSDK.afInfoLog = values(hashMap);
AFd1tSDK level = AFInAppEventParameterName().getLevel();
level.AFKeystoreWrapper.execute(level.new AnonymousClass5(aFd1iSDK));
return;
}
AFInAppEventParameterName().init().AFInAppEventParameterName(hashMap);
return;
}
AFInAppEventType(context);
map.containsKey("af_deeplink");
throw null;
}
private static String values(String str) {
int i2 = onAttributionFailure + 105;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
int indexOf = str.indexOf(63);
if (!(indexOf == -1)) {
return str.substring(indexOf);
}
int i4 = onConversionDataFail;
int i5 = i4 + 95;
onAttributionFailure = i5 % 128;
if ((i5 % 2 != 0 ? 'M' : '-') != '-') {
int i6 = 16 / 0;
}
int i7 = i4 + 97;
onAttributionFailure = i7 % 128;
int i8 = i7 % 2;
return "";
}
private AFd1iSDK.AFa1xSDK values(final Map<String, String> map) {
AFd1iSDK.AFa1xSDK aFa1xSDK = new AFd1iSDK.AFa1xSDK() {
@Override
public final void AFKeystoreWrapper(String str) {
AFa1dSDK.this.AFInAppEventParameterName().init().AFInAppEventType(str, DeepLinkResult.Error.NETWORK);
}
@Override
public final void AFKeystoreWrapper(Map<String, String> map2) {
for (String str : map2.keySet()) {
map.put(str, map2.get(str));
}
AFa1dSDK.this.AFInAppEventParameterName().init().AFInAppEventParameterName(map);
}
};
int i2 = onAttributionFailure + 89;
onConversionDataFail = i2 % 128;
if (i2 % 2 != 0) {
return aFa1xSDK;
}
int i3 = 87 / 0;
return aFa1xSDK;
}
public static String values(AFb1fSDK aFb1fSDK, String str) {
int i2 = onConversionDataFail + 45;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
String valueOf2 = aFb1fSDK.valueOf("CACHED_CHANNEL", (String) null);
if ((valueOf2 != null ? '\n' : (char) 30) != 30) {
int i4 = onAttributionFailure + 113;
onConversionDataFail = i4 % 128;
if (i4 % 2 != 0) {
return valueOf2;
}
throw null;
}
aFb1fSDK.values("CACHED_CHANNEL", str);
return str;
}
public static synchronized SharedPreferences values(Context context) {
SharedPreferences sharedPreferences;
synchronized (AFa1dSDK.class) {
int i2 = onAttributionFailure + 31;
onConversionDataFail = i2 % 128;
int i3 = i2 % 2;
if ((valueOf().onAttributionFailureNative == null ? 'c' : (char) 31) != 31) {
int i4 = onConversionDataFail + 37;
onAttributionFailure = i4 % 128;
?? r1 = i4 % 2 != 0 ? 43 : 4;
try {
if (r1 != 4) {
StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads();
valueOf().onAttributionFailureNative = context.getApplicationContext().getSharedPreferences("appsflyer-data", 0);
r1 = allowThreadDiskReads;
} else {
StrictMode.ThreadPolicy allowThreadDiskReads2 = StrictMode.allowThreadDiskReads();
valueOf().onAttributionFailureNative = context.getApplicationContext().getSharedPreferences("appsflyer-data", 0);
r1 = allowThreadDiskReads2;
}
StrictMode.setThreadPolicy(r1);
} catch (Throwable th) {
StrictMode.setThreadPolicy(r1);
throw th;
}
}
sharedPreferences = valueOf().onAttributionFailureNative;
}
return sharedPreferences;
}
private int values(AFb1fSDK aFb1fSDK, boolean z2) {
int i2 = onAttributionFailure + 123;
onConversionDataFail = i2 % 128;
char c2 = i2 % 2 == 0 ? (char) 6 : 'Q';
int valueOf2 = valueOf(aFb1fSDK, "appsFlyerInAppEventCount", z2);
if (c2 == 6) {
int i3 = 9 / 0;
}
return valueOf2;
}
}