正在查看: klikUMKM v2.0.1 应用的 AFa1dSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: klikUMKM v2.0.1 应用的 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 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.firebase.encoders.json.BuildConfig;
import com.google.firebase.messaging.Constants;
import com.trustdecision.mobrisk.TDRisk;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.net.HttpURLConnection;
import java.net.URI;
import java.nio.charset.Charset;
import java.security.KeyStoreException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.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 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;
private static AFa1dSDK afErrorLog = null;
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();
public 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) {
}
}
}
public class AFa1vSDK implements Runnable {
private final AFa1qSDK AFInAppEventParameterName;
public AFa1vSDK(AFa1dSDK aFa1dSDK, AFa1qSDK aFa1qSDK, byte b3) {
this(aFa1qSDK);
}
@Override
public final void run() {
AFa1dSDK.values(AFa1dSDK.this, this.AFInAppEventParameterName);
}
private AFa1vSDK(AFa1qSDK aFa1qSDK) {
this.AFInAppEventParameterName = aFa1qSDK;
}
}
public 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) {
}
public AFa1xSDK(AFa1dSDK aFa1dSDK, byte b3) {
this();
}
@Override
public final void AFInAppEventType(AFd1uSDK<?> aFd1uSDK, AFd1ySDK aFd1ySDK) {
JSONObject AFInAppEventParameterName;
AFb1oSDK AFKeystoreWrapper;
if (aFd1uSDK instanceof AFd1eSDK) {
AFd1eSDK aFd1eSDK = (AFd1eSDK) aFd1uSDK;
boolean z10 = aFd1uSDK instanceof AFd1hSDK;
if (z10 && valueOf()) {
AFd1hSDK aFd1hSDK = (AFd1hSDK) aFd1uSDK;
if (aFd1hSDK.AFKeystoreWrapper == AFd1ySDK.SUCCESS || aFd1hSDK.AFInAppEventParameterName == 1) {
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 (z10) {
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));
}
}
public class AFa1ySDK implements Runnable {
private final AFa1qSDK valueOf;
public AFa1ySDK(AFa1dSDK aFa1dSDK, AFa1qSDK aFa1qSDK, byte b3) {
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 sb2 = new StringBuilder();
sb2.append(substring);
sb2.append("/androidevent?buildnumber=6.12.1&app_id=");
values = sb2.toString();
AFInAppEventParameterName = null;
afErrorLog = new AFa1dSDK();
onAttributionFailure = (onConversionDataFail + 105) % 128;
}
public AFa1dSDK() {
AFVersionDeclaration.init();
this.onAppOpenAttribution = new AFc1xSDK();
AFd1tSDK level = AFInAppEventParameterName().getLevel();
level.values.add(new AFa1xSDK(this, (byte) 0));
}
public 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) {
onAttributionFailure = (onConversionDataFail + 105) % 128;
AppsFlyerProperties.getInstance().set(str, str2);
int i10 = onAttributionFailure + 105;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
throw null;
}
}
private static String AFLogger() {
onConversionDataFail = (onAttributionFailure + 79) % 128;
String valueOf2 = valueOf(AppsFlyerProperties.APP_ID);
int i10 = onConversionDataFail + 101;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0) {
return valueOf2;
}
throw null;
}
@NonNull
private AFf1jSDK[] AFLogger$LogLevel() {
int i10 = onConversionDataFail + 75;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0) {
return AFInAppEventParameterName().AFLogger$LogLevel().AFInAppEventType();
}
int i11 = 5 / 0;
return AFInAppEventParameterName().AFLogger$LogLevel().AFInAppEventType();
}
public void AFVersionDeclaration() {
try {
AFe1hSDK aFe1hSDK = new AFe1hSDK();
if (AFInAppEventParameterName(aFe1hSDK, valueOf(this.onInstallConversionFailureNative))) {
onAttributionFailure = (onConversionDataFail + 123) % 128;
valueOf(aFe1hSDK);
onConversionDataFail = (onAttributionFailure + 83) % 128;
}
} 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()) {
AFLogger$LogLevel.AFInAppEventParameterName(this.onInstallConversionFailureNative, AFInAppEventType, AFInAppEventParameterName());
}
AFf1jSDK[] AFInAppEventType2 = AFLogger$LogLevel.AFInAppEventType();
onConversionDataFail = (onAttributionFailure + 75) % 128;
for (AFf1jSDK aFf1jSDK : AFInAppEventType2) {
onConversionDataFail = (onAttributionFailure + 65) % 128;
aFf1jSDK.AFKeystoreWrapper(this.onInstallConversionFailureNative);
}
}
private boolean afErrorLog() {
int i10 = onAttributionFailure + 89;
onConversionDataFail = i10 % 128;
if (i10 % 2 != 0) {
return AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType("AF_PREINSTALL_DISABLED");
}
int i11 = 59 / 0;
return AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType("AF_PREINSTALL_DISABLED");
}
private void afErrorLogForExcManagerOnly() {
onConversionDataFail = (onAttributionFailure + 61) % 128;
if (AFd1mSDK.afRDLog()) {
return;
}
AFc1zSDK AFInAppEventParameterName2 = AFInAppEventParameterName();
AFd1tSDK level = AFInAppEventParameterName2.getLevel();
level.AFKeystoreWrapper.execute(level.new AnonymousClass5(new AFd1mSDK(AFInAppEventParameterName2)));
onAttributionFailure = (onConversionDataFail + 105) % 128;
}
private static void afInfoLog(Context context) {
onConversionDataFail = (onAttributionFailure + 15) % 128;
try {
if ((context.getPackageManager().getPackageInfo(context.getPackageName(), 0).applicationInfo.flags & TDRisk.OPTION_OAID) != 0) {
int i10 = onConversionDataFail + 33;
onAttributionFailure = i10 % 128;
if (i10 % 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 i11 = onAttributionFailure + 65;
onConversionDataFail = i11 % 128;
int i12 = i11 % 2;
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 i13 = onAttributionFailure + 57;
onConversionDataFail = i13 % 128;
if (i13 % 2 == 0) {
int i14 = 27 / 0;
}
} catch (Exception e10) {
AFLogger.afErrorLogForExcManagerOnly("checkBackupRules Exception", e10);
AFLogger.afRDLog("checkBackupRules Exception: ".concat(String.valueOf(e10)));
}
}
private AFf1pSDK afRDLog() {
AFf1pSDK aFf1pSDK = new AFf1pSDK(new c(this, 0), AFInAppEventParameterName().valueOf());
int i10 = onConversionDataFail + 31;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
int i11 = 30 / 0;
}
return aFf1pSDK;
}
private boolean afWarnLog() {
int i10 = onConversionDataFail;
onAttributionFailure = (i10 + 113) % 128;
Map<String, Object> map = this.onConversionDataSuccess;
if (map == null) {
return false;
}
onAttributionFailure = (i10 + 87) % 128;
if (map.isEmpty()) {
return false;
}
onAttributionFailure = (onConversionDataFail + 11) % 128;
return true;
}
public void getLevel() {
ScheduledExecutorService values2;
c cVar;
int i10 = onConversionDataFail + 101;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
values2 = AFInAppEventParameterName().values();
cVar = new c(this, 1);
} else {
values2 = AFInAppEventParameterName().values();
cVar = new c(this, 1);
}
AFInAppEventType(values2, cVar, 0L, TimeUnit.MILLISECONDS);
}
public static void valueOf(AFa1dSDK aFa1dSDK) {
int i10 = onAttributionFailure + 125;
onConversionDataFail = i10 % 128;
int i11 = i10 % 2;
aFa1dSDK.afErrorLogForExcManagerOnly();
if (i11 == 0) {
throw null;
}
onConversionDataFail = (onAttributionFailure + 103) % 128;
}
public static long values(AFa1dSDK aFa1dSDK, long j7) {
int i10 = onAttributionFailure;
onConversionDataFail = (i10 + 25) % 128;
aFa1dSDK.afWarnLog = j7;
onConversionDataFail = (i10 + 31) % 128;
return j7;
}
public final AFc1zSDK AFInAppEventParameterName() {
int i10 = (onAttributionFailure + 65) % 128;
onConversionDataFail = i10;
AFc1xSDK aFc1xSDK = this.onAppOpenAttribution;
onAttributionFailure = (i10 + 121) % 128;
return aFc1xSDK;
}
@Override
public final void addPushNotificationDeepLinkPath(String... strArr) {
int i10 = onConversionDataFail + 91;
onAttributionFailure = i10 % 128;
if (i10 % 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);
}
onAttributionFailure = (onConversionDataFail + 59) % 128;
}
@Override
public final void anonymizeUser(boolean z10) {
int i10 = onConversionDataFail + 1;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("anonymizeUser", String.valueOf(z10));
} else {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("anonymizeUser", String.valueOf(z10));
}
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, z10);
onAttributionFailure = (onConversionDataFail + 11) % 128;
}
@Override
public final void appendParametersToDeepLinkingURL(String str, Map<String, String> map) {
onConversionDataFail = (onAttributionFailure + 51) % 128;
AFb1uSDK init = AFInAppEventParameterName().init();
init.values = str;
init.AFInAppEventParameterName = map;
int i10 = onConversionDataFail + 79;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
throw null;
}
}
@Override
public final void enableFacebookDeferredApplinks(boolean z10) {
int i10 = (onConversionDataFail + 113) % 128;
onAttributionFailure = i10;
this.onDeepLinkingNative = z10;
onConversionDataFail = (i10 + 47) % 128;
}
@Override
public final String getAppsFlyerUID(@NonNull Context context) {
onAttributionFailure = (onConversionDataFail + 35) % 128;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("getAppsFlyerUID", new String[0]);
if (context == null) {
int i10 = onAttributionFailure + 47;
onConversionDataFail = i10 % 128;
if (i10 % 2 != 0) {
return null;
}
throw null;
}
AFInAppEventType(context);
AFb1cSDK AFInAppEventParameterName2 = AFInAppEventParameterName().AFInAppEventParameterName();
String AFInAppEventParameterName3 = AFa1aSDK.AFInAppEventParameterName(AFInAppEventParameterName2.values, AFInAppEventParameterName2.AFInAppEventType);
int i11 = onConversionDataFail + 69;
onAttributionFailure = i11 % 128;
if (i11 % 2 != 0) {
int i12 = 77 / 0;
}
return AFInAppEventParameterName3;
}
@Override
public final String getAttributionId(Context context) {
try {
String AFInAppEventParameterName2 = new AFa1eSDK(context, AFInAppEventParameterName()).AFInAppEventParameterName();
int i10 = onConversionDataFail + 113;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0) {
return AFInAppEventParameterName2;
}
throw null;
} catch (Throwable th) {
AFLogger.afErrorLog("Could not collect facebook attribution id. ", th);
return null;
}
}
@Override
public final String getHostName() {
onAttributionFailure = (onConversionDataFail + 59) % 128;
String AFInAppEventType = AFInAppEventParameterName().onInstallConversionDataLoadedNative().AFInAppEventType();
int i10 = onAttributionFailure + 115;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
int i11 = 37 / 0;
}
return AFInAppEventType;
}
@Override
public final String getHostPrefix() {
onConversionDataFail = (onAttributionFailure + 83) % 128;
String valueOf2 = AFInAppEventParameterName().onInstallConversionDataLoadedNative().valueOf();
onAttributionFailure = (onConversionDataFail + 89) % 128;
return valueOf2;
}
@Override
public final String getOutOfStore(Context context) {
int i10 = onConversionDataFail + 75;
onAttributionFailure = i10 % 128;
if (i10 % 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) {
return string;
}
String AFKeystoreWrapper2 = AFKeystoreWrapper(context, "AF_STORE");
if (AFKeystoreWrapper2 != null) {
onConversionDataFail = (onAttributionFailure + 77) % 128;
return AFKeystoreWrapper2;
}
AFLogger.afInfoLog("No out-of-store value set");
return null;
}
@Override
public final String getSdkVersion() {
AFc1zSDK AFInAppEventParameterName2;
int i10 = onConversionDataFail + 119;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
AFInAppEventParameterName2 = AFInAppEventParameterName();
AFInAppEventParameterName2.afErrorLogForExcManagerOnly().AFInAppEventType("getSdkVersion", new String[1]);
} else {
AFInAppEventParameterName2 = AFInAppEventParameterName();
AFInAppEventParameterName2.afErrorLogForExcManagerOnly().AFInAppEventType("getSdkVersion", new String[0]);
}
AFInAppEventParameterName2.AFInAppEventParameterName();
String AFInAppEventParameterName3 = AFb1cSDK.AFInAppEventParameterName();
int i11 = onAttributionFailure + 39;
onConversionDataFail = i11 % 128;
if (i11 % 2 != 0) {
return AFInAppEventParameterName3;
}
throw null;
}
@Override
public final AppsFlyerLib init(@NonNull String str, AppsFlyerConversionListener appsFlyerConversionListener, @NonNull Context context) {
String str2;
if (this.init) {
onAttributionFailure = (onConversionDataFail + 15) % 128;
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 a3.b(11, this));
afDebugLog();
this.onAppOpenAttribution.AFVersionDeclaration().AFInAppEventParameterName();
} else {
AFLogger.afWarnLog("context is null, Google Install Referrer will be not initialized");
}
AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
if (appsFlyerConversionListener == null) {
str2 = "null";
} else {
onAttributionFailure = (onConversionDataFail + 105) % 128;
str2 = "conversionDataListener";
}
afErrorLogForExcManagerOnly.AFInAppEventType("init", str, str2);
AFLogger.AFInAppEventParameterName("Initializing AppsFlyer SDK: (v6.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 i10 = onConversionDataFail + 79;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
AFInAppEventParameterName().AFVersionDeclaration().values();
throw null;
}
boolean values2 = AFInAppEventParameterName().AFVersionDeclaration().values();
onConversionDataFail = (onAttributionFailure + 89) % 128;
return values2;
}
@Override
public final void logEvent(Context context, String str, Map<String, Object> map) {
int i10 = onConversionDataFail + 73;
onAttributionFailure = i10 % 128;
int i11 = i10 % 2;
logEvent(context, str, map, null);
if (i11 != 0) {
throw null;
}
int i12 = onAttributionFailure + 81;
onConversionDataFail = i12 % 128;
if (i12 % 2 == 0) {
throw null;
}
}
@Override
public final void logLocation(Context context, double d6, double d10) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("logLocation", String.valueOf(d6), String.valueOf(d10));
HashMap hashMap = new HashMap();
hashMap.put(AFInAppEventParameterName.LONGITUDE, Double.toString(d10));
hashMap.put(AFInAppEventParameterName.LATITUDE, Double.toString(d6));
valueOf(context, AFInAppEventType.LOCATION_COORDINATES, hashMap);
onConversionDataFail = (onAttributionFailure + 79) % 128;
}
@Override
public final void logSession(Context context) {
onConversionDataFail = (onAttributionFailure + 73) % 128;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("logSession", new String[0]);
AFInAppEventParameterName().afErrorLogForExcManagerOnly().values();
AFInAppEventType(context, AFe1nSDK.logSession);
valueOf(context, (String) null, (Map<String, Object>) null);
int i10 = onAttributionFailure + 111;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
throw null;
}
}
@Override
public final void onPause(Context context) {
int i10 = onAttributionFailure + 69;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
AFInAppEventParameterName().onDeepLinkingNative().valueOf(context);
throw null;
}
AFInAppEventParameterName().onDeepLinkingNative().valueOf(context);
int i11 = onAttributionFailure + 119;
onConversionDataFail = i11 % 128;
if (i11 % 2 == 0) {
throw null;
}
}
@Override
@Deprecated
public final void performOnAppAttribution(@NonNull Context context, @NonNull URI uri) {
int i10 = onConversionDataFail + 11;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
throw null;
}
if (uri == null || uri.toString().isEmpty()) {
AFb1uSDK init = AFInAppEventParameterName().init();
StringBuilder sb2 = new StringBuilder("Link is \"");
sb2.append(uri);
sb2.append("\"");
init.AFInAppEventType(sb2.toString(), DeepLinkResult.Error.NETWORK);
onConversionDataFail = (onAttributionFailure + 61) % 128;
return;
}
if (context != null) {
AFInAppEventParameterName().init().AFInAppEventType(context, new HashMap(), Uri.parse(uri.toString()));
onAttributionFailure = (onConversionDataFail + 23) % 128;
return;
}
AFb1uSDK init2 = AFInAppEventParameterName().init();
StringBuilder sb3 = new StringBuilder("Context is \"");
sb3.append(context);
sb3.append("\"");
init2.AFInAppEventType(sb3.toString(), DeepLinkResult.Error.NETWORK);
}
@Override
public final void performOnDeepLinking(@NonNull Intent intent, @NonNull Context context) {
if (intent == null) {
int i10 = onAttributionFailure + 35;
onConversionDataFail = i10 % 128;
if (i10 % 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) {
Context applicationContext = context.getApplicationContext();
AFInAppEventType(applicationContext);
AFInAppEventParameterName().valueOf().execute(new androidx.camera.core.processing.c(this, applicationContext, intent, 6));
return;
}
int i11 = onAttributionFailure + 125;
onConversionDataFail = i11 % 128;
if (i11 % 2 != 0) {
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 i12 = 29 / 0;
}
}
@Override
public final void registerConversionListener(Context context, AppsFlyerConversionListener appsFlyerConversionListener) {
int i10 = onAttributionFailure + 111;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("registerConversionListener", new String[0]);
} else {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("registerConversionListener", new String[0]);
}
AFInAppEventParameterName(appsFlyerConversionListener);
onAttributionFailure = (onConversionDataFail + 73) % 128;
}
@Override
public final void registerValidatorListener(android.content.Context r4, com.appsflyer.AppsFlyerInAppPurchaseValidatorListener r5) {
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());
onConversionDataFail = (onAttributionFailure + 117) % 128;
}
@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());
onConversionDataFail = (onAttributionFailure + 25) % 128;
}
@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) {
onAttributionFailure = (onConversionDataFail + 69) % 128;
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));
}
onConversionDataFail = (onAttributionFailure + 5) % 128;
}
@Override
public final void sendPushNotificationData(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) {
onAttributionFailure = (onConversionDataFail + 43) % 128;
if (map != null) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setAdditionalData", map.toString());
AppsFlyerProperties.getInstance().setCustomData(new JSONObject(map).toString());
onConversionDataFail = (onAttributionFailure + 5) % 128;
}
onAttributionFailure = (onConversionDataFail + 55) % 128;
}
@Override
public final void setAndroidIdData(String str) {
onAttributionFailure = (onConversionDataFail + 69) % 128;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setAndroidIdData", str);
this.afInfoLog = str;
int i10 = onConversionDataFail + 123;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
throw null;
}
}
@Override
public final void setAppId(String str) {
onConversionDataFail = (onAttributionFailure + 77) % 128;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setAppId", str);
AFKeystoreWrapper(AppsFlyerProperties.APP_ID, str);
onConversionDataFail = (onAttributionFailure + 19) % 128;
}
@Override
public final void setAppInviteOneLink(String str) {
onAttributionFailure = (onConversionDataFail + 113) % 128;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setAppInviteOneLink", str);
AFLogger.afInfoLog("setAppInviteOneLink = ".concat(String.valueOf(str)));
if (str == null || !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 i10 = onConversionDataFail + 97;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
int i11 = 87 / 0;
}
}
@Override
public final void setCollectAndroidID(boolean z10) {
onConversionDataFail = (onAttributionFailure + 19) % 128;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCollectAndroidID", String.valueOf(z10));
AFKeystoreWrapper(AppsFlyerProperties.COLLECT_ANDROID_ID, Boolean.toString(z10));
AFKeystoreWrapper(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, Boolean.toString(z10));
onAttributionFailure = (onConversionDataFail + 121) % 128;
}
@Override
public final void setCollectIMEI(boolean z10) {
onConversionDataFail = (onAttributionFailure + 83) % 128;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCollectIMEI", String.valueOf(z10));
AFKeystoreWrapper(AppsFlyerProperties.COLLECT_IMEI, Boolean.toString(z10));
AFKeystoreWrapper(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, Boolean.toString(z10));
int i10 = onAttributionFailure + 81;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
int i11 = 9 / 0;
}
}
@Override
@Deprecated
public final void setCollectOaid(boolean z10) {
int i10 = onAttributionFailure + 23;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCollectOaid", String.valueOf(z10));
} else {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCollectOaid", String.valueOf(z10));
}
AFKeystoreWrapper(AppsFlyerProperties.COLLECT_OAID, Boolean.toString(z10));
int i11 = onAttributionFailure + 101;
onConversionDataFail = i11 % 128;
if (i11 % 2 == 0) {
throw null;
}
}
@Override
public final void setCurrencyCode(String str) {
onConversionDataFail = (onAttributionFailure + 97) % 128;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCurrencyCode", str);
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.CURRENCY_CODE, str);
onAttributionFailure = (onConversionDataFail + 77) % 128;
}
@Override
public final void setCustomerIdAndLogSession(String str, @NonNull Context context) {
String str2;
int i10 = onAttributionFailure + 13;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
throw null;
}
if (context != null) {
if (!AFKeystoreWrapper()) {
setCustomerUserId(str);
AFLogger.afInfoLog("waitForCustomerUserId is false; setting CustomerUserID: ".concat(String.valueOf(str)), true);
onConversionDataFail = (onAttributionFailure + 31) % 128;
return;
}
setCustomerUserId(str);
StringBuilder sb2 = new StringBuilder("CustomerUserId set: ");
sb2.append(str);
sb2.append(" - Initializing AppsFlyer Tacking");
AFLogger.afInfoLog(sb2.toString(), true);
String referrer = AppsFlyerProperties.getInstance().getReferrer(AFInAppEventParameterName().AFKeystoreWrapper());
AFInAppEventType(context, AFe1nSDK.setCustomerIdAndLogSession);
String str3 = AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType;
if (referrer == null) {
int i11 = onConversionDataFail + 29;
onAttributionFailure = i11 % 128;
if (i11 % 2 != 0) {
int i12 = 80 / 0;
}
str2 = BuildConfig.FLAVOR;
} else {
str2 = referrer;
}
if (context instanceof Activity) {
((Activity) context).getIntent();
}
AFKeystoreWrapper(context, null, null, str2, null);
}
}
@Override
public final void setCustomerUserId(String str) {
onConversionDataFail = (onAttributionFailure + 99) % 128;
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 i10 = onConversionDataFail + 63;
onAttributionFailure = i10 % 128;
if (i10 % 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 z10) {
int i10 = onAttributionFailure + 3;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z10)));
throw null;
}
AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z10)));
AFa1bSDK.valueOf = Boolean.valueOf(z10 ^ true);
AppsFlyerProperties.getInstance().remove("advertiserIdEnabled");
AppsFlyerProperties.getInstance().remove("advertiserId");
onAttributionFailure = (onConversionDataFail + 15) % 128;
}
@Override
public final void setDisableNetworkData(boolean z10) {
int i10 = onAttributionFailure + 113;
onConversionDataFail = i10 % 128;
if (i10 % 2 != 0) {
AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z10)));
AFKeystoreWrapper(AppsFlyerProperties.DISABLE_NETWORK_DATA, z10);
} else {
AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z10)));
AFKeystoreWrapper(AppsFlyerProperties.DISABLE_NETWORK_DATA, z10);
throw null;
}
}
@Override
public final void setExtension(String str) {
onAttributionFailure = (onConversionDataFail + 45) % 128;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setExtension", str);
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EXTENSION, str);
int i10 = onConversionDataFail + 53;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
throw null;
}
}
@Override
public final void setHost(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 i10 = onConversionDataFail;
int i11 = (i10 + 49) % 128;
onAttributionFailure = i11;
if (str != null) {
onAttributionFailure = (i10 + 27) % 128;
str3 = str.trim();
} else {
onConversionDataFail = (i11 + 109) % 128;
str3 = BuildConfig.FLAVOR;
}
AFc1cSDK.AFInAppEventType(new AFc1dSDK(str3, str2.trim()));
onAttributionFailure = (onConversionDataFail + 33) % 128;
}
@Override
public final void setImeiData(String str) {
int i10 = onConversionDataFail + 119;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
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 i11 = onAttributionFailure + 81;
onConversionDataFail = i11 % 128;
if (i11 % 2 == 0) {
int i12 = 50 / 0;
}
}
@Override
public final void setIsUpdate(boolean z10) {
onAttributionFailure = (onConversionDataFail + 7) % 128;
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setIsUpdate", String.valueOf(z10));
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.IS_UPDATE, z10);
int i10 = onConversionDataFail + 11;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
throw null;
}
}
@Override
public final void setLogLevel(@NonNull AFLogger.LogLevel logLevel) {
boolean z10;
onAttributionFailure = (onConversionDataFail + 87) % 128;
if (logLevel.getLevel() > AFLogger.LogLevel.NONE.getLevel()) {
onAttributionFailure = (onConversionDataFail + 89) % 128;
z10 = true;
} else {
z10 = false;
}
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("log", String.valueOf(z10));
AppsFlyerProperties.getInstance().set("logLevel", logLevel.getLevel());
onConversionDataFail = (onAttributionFailure + 9) % 128;
}
@Override
public final void setMinTimeBetweenSessions(int i10) {
onAttributionFailure = (onConversionDataFail + 91) % 128;
this.getLevel = TimeUnit.SECONDS.toMillis(i10);
int i11 = onConversionDataFail + 79;
onAttributionFailure = i11 % 128;
if (i11 % 2 != 0) {
throw null;
}
}
@Override
public final void setOaidData(String str) {
int i10 = onConversionDataFail + 15;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
String[] strArr = new String[1];
strArr[1] = str;
afErrorLogForExcManagerOnly.AFInAppEventType("setOaidData", strArr);
} else {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setOaidData", str);
}
AFa1bSDK.AFInAppEventParameterName = str;
}
@Override
public final void setOneLinkCustomDomain(String... strArr) {
String str;
int i10 = onAttributionFailure + 111;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
Object[] objArr = new Object[0];
objArr[1] = Arrays.toString(strArr);
str = String.format("setOneLinkCustomDomain %s", objArr);
} else {
str = "setOneLinkCustomDomain " + Arrays.toString(strArr);
}
AFLogger.afDebugLog(str);
AFInAppEventParameterName().init().afInfoLog = strArr;
int i11 = onAttributionFailure + 65;
onConversionDataFail = i11 % 128;
if (i11 % 2 == 0) {
throw null;
}
}
@Override
public final void setOutOfStore(String str) {
int i10 = onConversionDataFail + 23;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
throw null;
}
if (str == null) {
AFLogger.AFInAppEventType("Cannot set setOutOfStore with null");
int i11 = onAttributionFailure + 97;
onConversionDataFail = i11 % 128;
if (i11 % 2 == 0) {
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 i12 = onAttributionFailure + 115;
onConversionDataFail = i12 % 128;
if (i12 % 2 == 0) {
throw null;
}
}
@Override
public final void setPartnerData(@NonNull String str, Map<String, Object> map) {
String concat;
onAttributionFailure = (onConversionDataFail + 73) % 128;
if (this.onResponseErrorNative == null) {
this.onResponseErrorNative = new AFb1hSDK();
}
AFb1hSDK aFb1hSDK = this.onResponseErrorNative;
if (str == null || str.isEmpty()) {
AFLogger.afWarnLog("Partner ID is missing or `null`");
return;
}
if (map == null || !(!map.isEmpty())) {
if (aFb1hSDK.AFInAppEventParameterName.remove(str) == null) {
onConversionDataFail = (onAttributionFailure + 97) % 128;
concat = "Partner data is missing or `null`";
} else {
concat = "Cleared partner data for ".concat(str);
}
AFLogger.afWarnLog(concat);
return;
}
StringBuilder sb2 = new StringBuilder("Setting partner data for ");
sb2.append(str);
sb2.append(": ");
sb2.append(map);
AFLogger.afDebugLog(sb2.toString());
int length = new JSONObject(map).toString().length();
if (length > 1000) {
AFLogger.afWarnLog("Partner data 1000 characters limit exceeded");
HashMap hashMap = new HashMap();
hashMap.put(Constants.IPC_BUNDLE_KEY_SEND_ERROR, "limit exceeded: ".concat(String.valueOf(length)));
aFb1hSDK.AFInAppEventType.put(str, hashMap);
return;
}
aFb1hSDK.AFInAppEventParameterName.put(str, map);
aFb1hSDK.AFInAppEventType.remove(str);
int i10 = onConversionDataFail + 121;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
throw null;
}
}
@Override
public final void setPhoneNumber(String str) {
int i10 = onAttributionFailure + 81;
onConversionDataFail = i10 % 128;
int i11 = i10 % 2;
this.onResponseNative = AFb1zSDK.AFInAppEventParameterName(str);
if (i11 == 0) {
throw null;
}
int i12 = onConversionDataFail + 101;
onAttributionFailure = i12 % 128;
if (i12 % 2 != 0) {
throw null;
}
}
@Override
public final void setPluginInfo(@NonNull PluginInfo pluginInfo) {
int i10 = onConversionDataFail + 9;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
Objects.requireNonNull(pluginInfo);
AFInAppEventParameterName().onInstallConversionFailureNative().values(pluginInfo);
throw null;
}
Objects.requireNonNull(pluginInfo);
AFInAppEventParameterName().onInstallConversionFailureNative().values(pluginInfo);
int i11 = onAttributionFailure + 109;
onConversionDataFail = i11 % 128;
if (i11 % 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 i10 = onConversionDataFail + 37;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
jSONObject.put("pid", str);
int i11 = 49 / 0;
} else {
jSONObject.put("pid", str);
}
}
if (str2 != null) {
int i12 = onAttributionFailure + 1;
onConversionDataFail = i12 % 128;
if (i12 % 2 == 0) {
jSONObject.put("c", str2);
int i13 = 65 / 0;
} else {
jSONObject.put("c", str2);
}
}
if (str3 != null) {
jSONObject.put("af_siteid", str3);
}
} catch (JSONException e10) {
AFLogger.afErrorLog(e10.getMessage(), e10);
}
if (!jSONObject.has("pid")) {
AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
return;
}
int i14 = onConversionDataFail + 95;
onAttributionFailure = i14 % 128;
if (i14 % 2 == 0) {
AFKeystoreWrapper("preInstallName", jSONObject.toString());
} else {
AFKeystoreWrapper("preInstallName", jSONObject.toString());
throw null;
}
}
@Override
public final void setResolveDeepLinkURLs(String... strArr) {
onConversionDataFail = (onAttributionFailure + 71) % 128;
AFLogger.afDebugLog("setResolveDeepLinkURLs " + Arrays.toString(strArr));
AFb1uSDK init = AFInAppEventParameterName().init();
init.afDebugLog.clear();
init.afDebugLog.addAll(Arrays.asList(strArr));
int i10 = onConversionDataFail + 79;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
throw null;
}
}
@Override
@Deprecated
public final void setSharingFilter(@NonNull String... strArr) {
onAttributionFailure = (onConversionDataFail + 55) % 128;
setSharingFilterForPartners(strArr);
int i10 = onConversionDataFail + 47;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
int i11 = 30 / 0;
}
}
@Override
@Deprecated
public final void setSharingFilterForAllPartners() {
int i10 = onConversionDataFail + 41;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
String[] strArr = new String[0];
strArr[0] = "all";
setSharingFilterForPartners(strArr);
} else {
setSharingFilterForPartners("all");
}
onAttributionFailure = (onConversionDataFail + 51) % 128;
}
@Override
public final void setSharingFilterForPartners(String... strArr) {
this.afDebugLog = new AFa1bSDK(strArr);
int i10 = onAttributionFailure + 65;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
throw null;
}
}
@Override
public final void setUserEmails(String... strArr) {
int i10 = onConversionDataFail + 61;
onAttributionFailure = i10 % 128;
if (i10 % 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 i11 = onConversionDataFail + 91;
onAttributionFailure = i11 % 128;
if (i11 % 2 != 0) {
throw null;
}
}
@Override
public final void start(@NonNull Context context) {
onAttributionFailure = (onConversionDataFail + 107) % 128;
start(context, null);
onConversionDataFail = (onAttributionFailure + 55) % 128;
}
@Override
public final void stop(boolean z10, Context context) {
AFInAppEventType(context);
AFc1zSDK AFInAppEventParameterName2 = AFInAppEventParameterName();
AFInAppEventParameterName2.AFVersionDeclaration().values = z10;
AFInAppEventParameterName2.valueOf().submit(new a3.c(22, AFInAppEventParameterName2));
if (z10) {
onAttributionFailure = (onConversionDataFail + 17) % 128;
AFInAppEventParameterName2.AFKeystoreWrapper().valueOf("is_stop_tracking_used", true);
onAttributionFailure = (onConversionDataFail + 65) % 128;
}
onAttributionFailure = (onConversionDataFail + 57) % 128;
}
@Override
public final void subscribeForDeepLink(@NonNull DeepLinkListener deepLinkListener) {
int i10 = onAttributionFailure + 69;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
int i11 = 46 / 0;
} else {
subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
}
onConversionDataFail = (onAttributionFailure + 51) % 128;
}
@Override
public final void unregisterConversionListener() {
int i10 = onConversionDataFail + 63;
onAttributionFailure = i10 % 128;
if (i10 % 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 z10 = AFKeystoreWrapper2 == null || currentTimeMillis - AFKeystoreWrapper2.values > TimeUnit.SECONDS.toMillis(2L);
AFb1oSDK aFb1oSDK = new AFb1oSDK(str, currentTimeMillis, !z10);
aFe1sSDK.values.values("afUninstallToken", aFb1oSDK.AFKeystoreWrapper);
aFe1sSDK.values.AFInAppEventType("afUninstallToken_received_time", aFb1oSDK.values);
aFe1sSDK.values.valueOf("afUninstallToken_queued", aFb1oSDK.valueOf());
if (z10) {
AFe1sSDK.AFKeystoreWrapper(str);
}
}
}
@Override
public final void validateAndLogInAppPurchase(Context context, String str, String str2, String str3, String str4, String str5, Map<String, String> map) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("validateAndTrackInAppPurchase", str, str2, str3, str4, str5, map == null ? BuildConfig.FLAVOR : map.toString());
if (!isStopped()) {
StringBuilder sb2 = new StringBuilder("Validate in app called with parameters: ");
sb2.append(str3);
sb2.append(" ");
sb2.append(str4);
sb2.append(" ");
sb2.append(str5);
AFLogger.afInfoLog(sb2.toString());
}
if (str != null && str4 != null && str2 != null && str5 != null && str3 != null) {
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 z10) {
String concat;
boolean z11;
int i10 = onAttributionFailure + 125;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
concat = "initAfterCustomerUserID: ".concat(String.valueOf(z10));
z11 = false;
} else {
concat = "initAfterCustomerUserID: ".concat(String.valueOf(z10));
z11 = true;
}
AFLogger.afInfoLog(concat, z11);
AFKeystoreWrapper(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, z10);
int i11 = onAttributionFailure + 23;
onConversionDataFail = i11 % 128;
if (i11 % 2 == 0) {
throw null;
}
}
public void AFInAppEventParameterName(android.content.Context r8, android.content.Intent r9) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.AFInAppEventParameterName(android.content.Context, android.content.Intent):void");
}
public static Map AFInAppEventType(AFa1dSDK aFa1dSDK) {
int i10 = onConversionDataFail + 33;
onAttributionFailure = i10 % 128;
int i11 = i10 % 2;
Map<String, Object> map = aFa1dSDK.onConversionDataSuccess;
if (i11 == 0) {
return map;
}
throw null;
}
private static void AFKeystoreWrapper(String str, boolean z10) {
int i10 = onConversionDataFail + 23;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
AppsFlyerProperties.getInstance().set(str, z10);
int i11 = 54 / 0;
} else {
AppsFlyerProperties.getInstance().set(str, z10);
}
int i12 = onAttributionFailure + 71;
onConversionDataFail = i12 % 128;
if (i12 % 2 == 0) {
int i13 = 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 i10 = onConversionDataFail + 5;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0) {
return -1L;
}
throw null;
}
long j7 = currentTimeMillis - values2;
int i11 = onAttributionFailure;
int i12 = i11 + 53;
onConversionDataFail = i12 % 128;
long j9 = i12 % 2 == 0 ? 1000 ^ j7 : j7 / 1000;
int i13 = i11 + 11;
onConversionDataFail = i13 % 128;
if (i13 % 2 != 0) {
return j9;
}
throw null;
}
public static AFa1dSDK valueOf() {
int i10 = (onAttributionFailure + 27) % 128;
onConversionDataFail = i10;
AFa1dSDK aFa1dSDK = afErrorLog;
int i11 = i10 + 113;
onAttributionFailure = i11 % 128;
if (i11 % 2 == 0) {
return aFa1dSDK;
}
throw null;
}
public static Application values(AFa1dSDK aFa1dSDK) {
int i10 = onAttributionFailure + 45;
onConversionDataFail = i10 % 128;
int i11 = i10 % 2;
Application application = aFa1dSDK.onInstallConversionFailureNative;
if (i11 != 0) {
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(Constants.IPC_BUNDLE_KEY_SEND_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();
Map map2 = aFe1aSDK.AFKeystoreWrapper;
if (map2 == null) {
map2 = new HashMap();
}
afErrorLogForExcManagerOnly.AFInAppEventType("logEvent", str, new JSONObject(map2).toString());
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 i10 = onConversionDataFail + 37;
onAttributionFailure = i10 % 128;
int i11 = i10 % 2;
start(context, str, null);
if (i11 != 0) {
throw null;
}
}
@Override
public final void subscribeForDeepLink(@NonNull DeepLinkListener deepLinkListener, long j7) {
int i10 = onAttributionFailure + 77;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
AFInAppEventParameterName().init().valueOf = deepLinkListener;
AFInAppEventParameterName().init().afRDLog = j7;
throw null;
}
AFInAppEventParameterName().init().valueOf = deepLinkListener;
AFInAppEventParameterName().init().afRDLog = j7;
onAttributionFailure = (onConversionDataFail + 125) % 128;
}
public static boolean AFInAppEventType(AFa1dSDK aFa1dSDK, boolean z10) {
int i10 = (onAttributionFailure + 23) % 128;
onConversionDataFail = i10;
aFa1dSDK.AppsFlyer2dXConversionCallback = z10;
int i11 = i10 + 15;
onAttributionFailure = i11 % 128;
if (i11 % 2 == 0) {
return z10;
}
throw null;
}
public static void values(AFa1dSDK aFa1dSDK, AFa1qSDK aFa1qSDK) {
onConversionDataFail = (onAttributionFailure + 109) % 128;
aFa1dSDK.valueOf(aFa1qSDK);
int i10 = onAttributionFailure + 1;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
int i11 = 91 / 0;
}
}
public final boolean AFKeystoreWrapper() {
onConversionDataFail = (onAttributionFailure + 107) % 128;
if (!AFInAppEventParameterName(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false) || values() != null) {
onConversionDataFail = (onAttributionFailure + 79) % 128;
return false;
}
int i10 = (onAttributionFailure + 69) % 128;
onConversionDataFail = i10;
onAttributionFailure = (i10 + 15) % 128;
return true;
}
@Override
public final void start(@NonNull Context context, String str, final AppsFlyerRequestListener appsFlyerRequestListener) {
if (AFInAppEventParameterName().onDeepLinkingNative().AFKeystoreWrapper()) {
return;
}
if (!this.init) {
onAttributionFailure = (onConversionDataFail + 17) % 128;
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("Starting AppsFlyer: (v6.12.1." + str2 + ")");
StringBuilder sb2 = new StringBuilder("Build Number: ");
sb2.append(str2);
AFLogger.afInfoLog(sb2.toString());
AppsFlyerProperties.getInstance().loadProperties(AFInAppEventParameterName().AFKeystoreWrapper());
if (!TextUtils.isEmpty(str)) {
int i10 = onAttributionFailure + 87;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType = str;
AFc1pSDK.AFInAppEventParameterName(str);
int i11 = 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) {
appsFlyerRequestListener.onError(41, "No dev key");
return;
}
return;
}
AFInAppEventParameterName().afDebugLog().valueOf(null);
afErrorLogForExcManagerOnly();
afInfoLog(this.onInstallConversionFailureNative.getBaseContext());
if (this.onDeepLinkingNative) {
onConversionDataFail = (onAttributionFailure + 77) % 128;
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 j7 = aFe1lSDK.afDebugLog;
if (j7 != 0) {
long j9 = currentTimeMillis - j7;
if (j9 > 0 && j9 < 1000) {
j9 = 1000;
}
long seconds = TimeUnit.MILLISECONDS.toSeconds(j9);
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) {
onAttributionFailure = (onConversionDataFail + 19) % 128;
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) {
valueOf(context).values("referrer", stringExtra);
AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
appsFlyerProperties.set("AF_REFERRER", stringExtra);
appsFlyerProperties.AFInAppEventParameterName = stringExtra;
if (AppsFlyerProperties.getInstance().AFInAppEventType()) {
onAttributionFailure = (onConversionDataFail + 23) % 128;
AFLogger.afInfoLog("onReceive: isLaunchCalled");
AFInAppEventType(context, AFe1nSDK.onReceive);
values(context, stringExtra);
onAttributionFailure = (onConversionDataFail + 19) % 128;
}
}
onAttributionFailure = (onConversionDataFail + 111) % 128;
}
private Runnable AFInAppEventType(AFf1pSDK aFf1pSDK) {
int i10 = onConversionDataFail + 75;
int i11 = i10 % 128;
onAttributionFailure = i11;
if (i10 % 2 != 0) {
throw null;
}
b bVar = new b(0, this, aFf1pSDK);
int i12 = i11 + 49;
onConversionDataFail = i12 % 128;
if (i12 % 2 != 0) {
return bVar;
}
throw null;
}
public void AFKeystoreWrapper(AFf1pSDK aFf1pSDK) {
AFb1fSDK valueOf2 = valueOf(this.onInstallConversionFailureNative);
boolean z10 = false;
int AFInAppEventType = AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType.AFInAppEventType("appsFlyerCount", 0);
boolean AFKeystoreWrapper2 = valueOf2.AFKeystoreWrapper(AppsFlyerProperties.NEW_REFERRER_SENT);
if (aFf1pSDK.afRDLog == AFf1jSDK.AFa1vSDK.NOT_STARTED) {
onAttributionFailure = (onConversionDataFail + 15) % 128;
z10 = true;
}
if (AFInAppEventType == 1) {
int i10 = onConversionDataFail + 91;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
throw null;
}
if (z10 || AFKeystoreWrapper2) {
valueOf(new AFe1hSDK());
onConversionDataFail = (onAttributionFailure + 11) % 128;
}
}
}
public static String values() {
onAttributionFailure = (onConversionDataFail + 93) % 128;
String valueOf2 = valueOf(AppsFlyerProperties.APP_USER_ID);
int i10 = onConversionDataFail + 103;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
int i11 = 33 / 0;
}
return valueOf2;
}
public 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 j7 = AFInAppEventParameterName().AFLogger().afErrorLogForExcManagerOnly;
HashMap hashMap = new HashMap();
String str = AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType;
if (str == null) {
int i10 = onConversionDataFail + 11;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0) {
AFLogger.afWarnLog("[callStats] AppsFlyer's SDK cannot send any event without providing DevKey.");
return;
} else {
AFLogger.afWarnLog("[callStats] AppsFlyer's SDK cannot send any event without providing DevKey.");
throw null;
}
}
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) {
onAttributionFailure = (onConversionDataFail + 39) % 128;
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(j7));
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 i11 = onConversionDataFail + 15;
onAttributionFailure = i11 % 128;
if (i11 % 2 != 0) {
throw null;
}
} else {
onConversionDataFail = (onAttributionFailure + 61) % 128;
valueOf3 = BuildConfig.FLAVOR;
}
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 ...");
}
public final void values(@NonNull AFa1qSDK aFa1qSDK, Activity activity) {
onConversionDataFail = (onAttributionFailure + 23) % 128;
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) {
onConversionDataFail = (onAttributionFailure + 99) % 128;
appsFlyerRequestListener.onError(41, "No dev key");
return;
}
return;
}
String referrer = AppsFlyerProperties.getInstance().getReferrer(AFInAppEventParameterName().AFKeystoreWrapper());
if (referrer == null) {
referrer = BuildConfig.FLAVOR;
}
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();
onAttributionFailure = (onConversionDataFail + 47) % 128;
String str = null;
for (String str2 : strArr) {
if (AnonymousClass2.AFInAppEventParameterName[emailsCryptType.ordinal()] != 2) {
arrayList2.add(AFb1zSDK.AFInAppEventParameterName(str2));
str = "sha256_el_arr";
} else {
arrayList2.add(str2);
onAttributionFailure = (onConversionDataFail + 21) % 128;
str = "plain_el_arr";
}
}
hashMap.put(str, arrayList2);
AppsFlyerProperties.getInstance().setUserEmails(new JSONObject(hashMap).toString());
}
private void AFKeystoreWrapper(Context context, String str, Map<String, Object> map, String str2, String str3) {
AFa1qSDK aFe1bSDK;
int i10;
onConversionDataFail = (onAttributionFailure + 45) % 128;
if (str != null && !str.trim().isEmpty()) {
aFe1bSDK = new AFe1aSDK();
i10 = onAttributionFailure + 125;
} else {
aFe1bSDK = new AFe1bSDK();
i10 = onAttributionFailure + 115;
}
onConversionDataFail = i10 % 128;
AFInAppEventType(context);
aFe1bSDK.afDebugLog = str;
aFe1bSDK.AFKeystoreWrapper = map;
aFe1bSDK.AFLogger = str2;
aFe1bSDK.values = str3;
AFInAppEventType(aFe1bSDK);
int i11 = onConversionDataFail + 105;
onAttributionFailure = i11 % 128;
if (i11 % 2 != 0) {
throw null;
}
}
private void afDebugLog(Context context) {
int i10;
if (AFa1cSDK.valueOf()) {
AFLogger.afRDLog("OPPO device found");
i10 = 23;
} else {
i10 = 18;
}
int i11 = Build.VERSION.SDK_INT;
if (i11 >= i10 && !AFInAppEventParameterName(AppsFlyerProperties.DISABLE_KEYSTORE, true)) {
StringBuilder sb2 = new StringBuilder("OS SDK is=");
sb2.append(i11);
sb2.append("; use KeyStore");
AFLogger.afRDLog(sb2.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 e10) {
StringBuilder sb3 = new StringBuilder("Exception ");
sb3.append(e10.getMessage());
sb3.append(" occurred");
AFLogger.afErrorLog(sb3.toString(), e10);
}
}
aFKeystoreWrapper.valueOf(aFKeystoreWrapper.AFInAppEventParameterName());
}
AFKeystoreWrapper("KSAppsFlyerId", aFKeystoreWrapper.AFKeystoreWrapper());
AFKeystoreWrapper("KSAppsFlyerRICounter", String.valueOf(aFKeystoreWrapper.AFInAppEventType()));
return;
}
StringBuilder sb4 = new StringBuilder("OS SDK is=");
sb4.append(i11);
sb4.append("; no KeyStore usage");
AFLogger.afRDLog(sb4.toString());
}
private boolean afInfoLog() {
onConversionDataFail = (onAttributionFailure + 125) % 128;
if (this.AFLogger > 0) {
long currentTimeMillis = System.currentTimeMillis() - this.AFLogger;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss.SSS Z", Locale.US);
String values2 = values(simpleDateFormat, this.AFLogger);
String values3 = values(simpleDateFormat, this.afWarnLog);
if (currentTimeMillis < this.getLevel && !isStopped()) {
AFLogger.afInfoLog("Last Launch attempt: " + values2 + ";\nLast successful Launch event: " + values3 + ";\nThis launch is blocked: " + currentTimeMillis + " ms < " + this.getLevel + " ms");
return true;
}
if (!isStopped()) {
AFLogger.afInfoLog("Last Launch attempt: " + values2 + ";\nLast successful Launch event: " + values3 + ";\nSending launch (+" + currentTimeMillis + " ms)");
}
} else if (!isStopped()) {
onConversionDataFail = (onAttributionFailure + 37) % 128;
AFLogger.afInfoLog("Sending first launch for this session!");
}
int i10 = onAttributionFailure + 81;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
int i11 = 8 / 0;
}
return false;
}
public final void AFInAppEventParameterName(Context context, String str) {
JSONArray jSONArray;
JSONArray jSONArray2;
JSONObject jSONObject;
onAttributionFailure = (onConversionDataFail + 7) % 128;
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));
onConversionDataFail = (onAttributionFailure + 17) % 128;
} else {
jSONArray = new JSONArray();
}
jSONArray2 = jSONArray;
jSONObject = jSONObject2;
}
if (jSONArray2.length() < 5) {
onAttributionFailure = (onConversionDataFail + 63) % 128;
jSONArray2.put(currentTimeMillis);
}
if (jSONObject.length() >= 4) {
valueOf(jSONObject);
}
jSONObject.put(str, jSONArray2.toString());
valueOf(context).values("extraReferrers", jSONObject.toString());
} catch (JSONException e10) {
AFLogger.afErrorLogForExcManagerOnly("error at addReferrer", e10);
} catch (Throwable th) {
StringBuilder sb2 = new StringBuilder("Couldn't save referrer - ");
sb2.append(str);
sb2.append(": ");
AFLogger.afErrorLog(sb2.toString(), th);
}
}
public static String values(SimpleDateFormat simpleDateFormat, long j7) {
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
String format = simpleDateFormat.format(new Date(j7));
int i10 = onConversionDataFail + 59;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0) {
return format;
}
throw null;
}
private static void valueOf(JSONObject jSONObject) {
String str;
ArrayList arrayList = new ArrayList();
Iterator<String> keys = jSONObject.keys();
onAttributionFailure = (onConversionDataFail + 45) % 128;
while (true) {
if (!keys.hasNext()) {
break;
}
try {
JSONArray jSONArray = new JSONArray((String) jSONObject.get(keys.next()));
for (int i10 = 0; i10 < jSONArray.length(); i10++) {
arrayList.add(Long.valueOf(jSONArray.getLong(i10)));
}
} catch (JSONException e10) {
AFLogger.afErrorLogForExcManagerOnly("error at timeStampArr", e10);
}
}
Collections.sort(arrayList);
Iterator<String> keys2 = jSONObject.keys();
onAttributionFailure = (onConversionDataFail + 53) % 128;
loop2: while (true) {
str = null;
while (keys2.hasNext() && str == null) {
String next = keys2.next();
try {
JSONArray jSONArray2 = new JSONArray((String) jSONObject.get(next));
onConversionDataFail = (onAttributionFailure + 53) % 128;
int i11 = 0;
while (i11 < jSONArray2.length()) {
onAttributionFailure = (onConversionDataFail + 73) % 128;
if (jSONArray2.getLong(i11) != ((Long) arrayList.get(0)).longValue() && jSONArray2.getLong(i11) != ((Long) arrayList.get(1)).longValue() && jSONArray2.getLong(i11) != ((Long) arrayList.get(arrayList.size() - 1)).longValue()) {
i11++;
str = next;
}
}
} catch (JSONException e11) {
AFLogger.afErrorLogForExcManagerOnly("error at manageExtraReferrers", e11);
}
}
}
if (str != null) {
int i12 = onConversionDataFail + 77;
onAttributionFailure = i12 % 128;
int i13 = i12 % 2;
jSONObject.remove(str);
if (i13 != 0) {
throw null;
}
}
}
private void values(Context context, String str) {
byte b3 = 0;
AFa1qSDK valueOf2 = new AFe1iSDK().valueOf(AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType.AFInAppEventType("appsFlyerCount", 0));
valueOf2.AFLogger = str;
if (str != null) {
int i10 = onConversionDataFail + 121;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0 ? str.length() > 5 : str.length() > 4) {
if (AFInAppEventParameterName(valueOf2, valueOf(context))) {
AFInAppEventType(AFInAppEventParameterName().values(), new AFa1vSDK(this, valueOf2, b3), 5L, TimeUnit.MILLISECONDS);
onConversionDataFail = (onAttributionFailure + 27) % 128;
}
}
}
int i11 = onConversionDataFail + 11;
onAttributionFailure = i11 % 128;
if (i11 % 2 != 0) {
throw null;
}
}
private int AFKeystoreWrapper(AFb1fSDK aFb1fSDK) {
int i10 = onAttributionFailure + 15;
onConversionDataFail = i10 % 128;
return valueOf(aFb1fSDK, "appsFlyerAdImpressionCount", i10 % 2 != 0);
}
private static java.lang.String AFKeystoreWrapper(java.lang.String r9) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.AFKeystoreWrapper(java.lang.String):java.lang.String");
}
public 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) {
onAttributionFailure = (onConversionDataFail + 31) % 128;
aFc1zSDK.AppsFlyer2dXConversionCallback().valueOf();
onConversionDataFail = (onAttributionFailure + 69) % 128;
}
private static boolean AFInAppEventParameterName(String str, boolean z10) {
int i10 = onConversionDataFail + 105;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0) {
return AppsFlyerProperties.getInstance().getBoolean(str, z10);
}
AppsFlyerProperties.getInstance().getBoolean(str, z10);
throw null;
}
public void AFInAppEventParameterName(AFe1zSDK aFe1zSDK) {
int i10 = onConversionDataFail + 115;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0) {
if (aFe1zSDK == AFe1zSDK.SUCCESS) {
int i11 = onAttributionFailure + 9;
onConversionDataFail = i11 % 128;
if (i11 % 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(Constants.IPC_BUNDLE_KEY_SEND_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", BuildConfig.FLAVOR);
}
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) {
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", "string", context.getPackageName()));
if (TextUtils.isEmpty(string)) {
int i10 = onConversionDataFail + 55;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0) {
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 i11 = onAttributionFailure + 21;
onConversionDataFail = i11 % 128;
if (i11 % 2 == 0) {
throw null;
}
} catch (ClassNotFoundException e10) {
AFLogger.afErrorLogForExcManagerOnly("FB class missing error", e10);
aFa1xSDK.AFInAppEventParameterName(e10.toString());
} catch (IllegalAccessException e11) {
AFLogger.afErrorLogForExcManagerOnly("FB illegal access", e11);
aFa1xSDK.AFInAppEventParameterName(e11.toString());
} catch (NoSuchMethodException e12) {
AFLogger.afErrorLogForExcManagerOnly("FB method missing error", e12);
aFa1xSDK.AFInAppEventParameterName(e12.toString());
} catch (InvocationTargetException e13) {
AFLogger.afErrorLogForExcManagerOnly("FB invocation error", e13);
aFa1xSDK.AFInAppEventParameterName(e13.toString());
}
}
private static String valueOf(String str) {
onAttributionFailure = (onConversionDataFail + 55) % 128;
String string = AppsFlyerProperties.getInstance().getString(str);
int i10 = onAttributionFailure + 69;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
int i11 = 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) {
onAttributionFailure = (onConversionDataFail + 29) % 128;
activity = (Activity) context;
} else {
onAttributionFailure = (onConversionDataFail + 25) % 128;
activity = null;
}
values(aFe1aSDK, activity);
}
private void valueOf(com.appsflyer.internal.AFa1qSDK r14) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.valueOf(com.appsflyer.internal.AFa1qSDK):void");
}
public static boolean AFKeystoreWrapper(Context context) {
onAttributionFailure = (onConversionDataFail + 71) % 128;
try {
} catch (Throwable th) {
AFLogger.afErrorLog("WARNING: Google play services is unavailable. ", th);
}
if (p6.c.f11001c.b(context, p6.d.a) == 0) {
return true;
}
onAttributionFailure = (onConversionDataFail + 25) % 128;
try {
context.getPackageManager().getPackageInfo("com.google.android.gms", 0);
return true;
} catch (PackageManager.NameNotFoundException e10) {
AFLogger.afErrorLog("WARNING: Google Play Services is unavailable. ", e10);
return false;
}
}
private void AFInAppEventType(Context context, AFe1nSDK aFe1nSDK) {
onAttributionFailure = (onConversionDataFail + 117) % 128;
AFInAppEventType(context);
AFe1lSDK AFLogger = AFInAppEventParameterName().AFLogger();
AFe1oSDK AFKeystoreWrapper2 = AFa1rSDK.AFKeystoreWrapper(context);
if (!(!AFLogger.values())) {
AFLogger.values.put("api_name", aFe1nSDK.toString());
AFLogger.values(AFKeystoreWrapper2);
onAttributionFailure = (onConversionDataFail + 3) % 128;
}
AFLogger.AFInAppEventParameterName();
}
private java.lang.String AFKeystoreWrapper(android.content.Context r3, java.lang.String r4) {
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;
onAttributionFailure = (onConversionDataFail + 19) % 128;
AFInAppEventType(context);
aFa1qSDK.AFInAppEventType(map);
if (context instanceof Activity) {
int i10 = onConversionDataFail;
onAttributionFailure = (i10 + 83) % 128;
activity = (Activity) context;
onAttributionFailure = (i10 + 107) % 128;
} else {
activity = null;
}
values(aFa1qSDK, activity);
}
public final int AFInAppEventType(AFb1fSDK aFb1fSDK, boolean z10) {
int i10 = onAttributionFailure + 75;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
valueOf(aFb1fSDK, "appsFlyerCount", z10);
throw null;
}
int valueOf2 = valueOf(aFb1fSDK, "appsFlyerCount", z10);
int i11 = onAttributionFailure + 41;
onConversionDataFail = i11 % 128;
if (i11 % 2 == 0) {
int i12 = 71 / 0;
}
return valueOf2;
}
private void AFInAppEventParameterName(AppsFlyerConversionListener appsFlyerConversionListener) {
int i10 = onConversionDataFail + 97;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
throw null;
}
if (appsFlyerConversionListener == null) {
return;
}
this.AFInAppEventType = appsFlyerConversionListener;
onAttributionFailure = (onConversionDataFail + 21) % 128;
}
private static void AFInAppEventType(@NonNull ScheduledExecutorService scheduledExecutorService, Runnable runnable, long j7, TimeUnit timeUnit) {
onAttributionFailure = (onConversionDataFail + 107) % 128;
try {
scheduledExecutorService.schedule(runnable, j7, timeUnit);
onAttributionFailure = (onConversionDataFail + 109) % 128;
} catch (RejectedExecutionException e10) {
AFLogger.afErrorLog("scheduleJob failed with RejectedExecutionException Exception", e10);
} catch (Throwable th) {
AFLogger.afErrorLog("scheduleJob failed with Exception", th);
}
}
private boolean AFInAppEventParameterName(AFa1qSDK aFa1qSDK, AFb1fSDK aFb1fSDK) {
boolean z10;
onAttributionFailure = (onConversionDataFail + 49) % 128;
int AFInAppEventType = AFInAppEventType(aFb1fSDK, false);
if (AFInAppEventType == 1) {
int i10 = (onAttributionFailure + 109) % 128;
onConversionDataFail = i10;
if (!(aFa1qSDK instanceof AFe1hSDK)) {
onAttributionFailure = (i10 + 89) % 128;
z10 = true;
return (!aFb1fSDK.AFKeystoreWrapper(AppsFlyerProperties.NEW_REFERRER_SENT) && AFInAppEventType == 1) || z10;
}
}
z10 = false;
if (aFb1fSDK.AFKeystoreWrapper(AppsFlyerProperties.NEW_REFERRER_SENT)) {
}
}
@NonNull
@Deprecated
public static String AFInAppEventType(HttpURLConnection httpURLConnection) {
InputStreamReader inputStreamReader;
String obj;
StringBuilder sb2 = new StringBuilder();
BufferedReader bufferedReader = null;
try {
try {
InputStream errorStream = httpURLConnection.getErrorStream();
if (errorStream == null) {
errorStream = httpURLConnection.getInputStream();
}
inputStreamReader = new InputStreamReader(errorStream, Charset.defaultCharset());
try {
BufferedReader bufferedReader2 = new BufferedReader(inputStreamReader);
boolean z10 = false;
while (true) {
try {
String readLine = bufferedReader2.readLine();
if (readLine == null) {
break;
}
onConversionDataFail = (onAttributionFailure + 41) % 128;
sb2.append(z10 ? '\n' : BuildConfig.FLAVOR);
sb2.append(readLine);
z10 = true;
} catch (Throwable th) {
th = th;
bufferedReader = bufferedReader2;
try {
StringBuilder sb3 = new StringBuilder("Could not read connection response from: ");
sb3.append(httpURLConnection.getURL().toString());
AFLogger.afErrorLog(sb3.toString(), th);
if (bufferedReader != null) {
bufferedReader.close();
}
if (inputStreamReader != null) {
inputStreamReader.close();
}
onConversionDataFail = (onAttributionFailure + 69) % 128;
obj = sb2.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) {
onAttributionFailure = (onConversionDataFail + 117) % 128;
inputStreamReader.close();
}
throw th2;
}
}
}
bufferedReader2.close();
inputStreamReader.close();
} catch (Throwable th4) {
th = th4;
}
} catch (Throwable th5) {
AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th5);
}
} catch (Throwable th6) {
th = th6;
inputStreamReader = null;
}
obj = sb2.toString();
try {
new JSONObject(obj);
return obj;
} catch (JSONException e10) {
AFLogger.afErrorLogForExcManagerOnly("error while parsing readServerResponse", e10);
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("string_response", obj);
return jSONObject.toString();
} catch (JSONException e11) {
AFLogger.afErrorLogForExcManagerOnly("RESPONSE_NOT_JSON error", e11);
return new JSONObject().toString();
}
}
}
public static Map<String, Object> AFInAppEventParameterName(Map<String, Object> map) {
onConversionDataFail = (onAttributionFailure + 65) % 128;
if (map.containsKey("meta")) {
onConversionDataFail = (onAttributionFailure + 63) % 128;
return (Map) map.get("meta");
}
HashMap hashMap = new HashMap();
map.put("meta", hashMap);
return hashMap;
}
private int AFInAppEventParameterName(AFb1fSDK aFb1fSDK) {
int i10 = onConversionDataFail + 27;
onAttributionFailure = i10 % 128;
int i11 = i10 % 2;
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");
onAttributionFailure = (onConversionDataFail + 39) % 128;
} else {
onConversionDataFail = (onAttributionFailure + 121) % 128;
AFKeystoreWrapper("preInstallName", str);
}
} catch (JSONException e10) {
AFLogger.afErrorLog("Error parsing JSON for preinstall", e10);
}
}
private static void AFInAppEventParameterName(String str, boolean z10, int[] iArr, Object[] objArr) {
String str2;
byte[] bArr = str;
if (str != null) {
bArr = str.getBytes("ISO-8859-1");
}
byte[] bArr2 = bArr;
synchronized (AFg1mSDK.AFInAppEventType) {
try {
int i10 = iArr[0];
int i11 = iArr[1];
int i12 = iArr[2];
int i13 = iArr[3];
char[] cArr = new char[i11];
System.arraycopy(onResponse, i10, cArr, 0, i11);
if (bArr2 != null) {
char[] cArr2 = new char[i11];
AFg1mSDK.AFKeystoreWrapper = 0;
char c5 = 0;
while (true) {
int i14 = AFg1mSDK.AFKeystoreWrapper;
if (i14 >= i11) {
break;
}
if (bArr2[i14] == 1) {
cArr2[i14] = (char) (((cArr[i14] << 1) + 1) - c5);
} else {
cArr2[i14] = (char) ((cArr[i14] << 1) - c5);
}
c5 = cArr2[i14];
AFg1mSDK.AFKeystoreWrapper = i14 + 1;
}
cArr = cArr2;
}
if (i13 > 0) {
char[] cArr3 = new char[i11];
System.arraycopy(cArr, 0, cArr3, 0, i11);
int i15 = i11 - i13;
System.arraycopy(cArr3, 0, cArr, i15, i13);
System.arraycopy(cArr3, i13, cArr, 0, i15);
}
if (z10) {
char[] cArr4 = new char[i11];
AFg1mSDK.AFKeystoreWrapper = 0;
while (true) {
int i16 = AFg1mSDK.AFKeystoreWrapper;
if (i16 >= i11) {
break;
}
cArr4[i16] = cArr[(i11 - i16) - 1];
AFg1mSDK.AFKeystoreWrapper = i16 + 1;
}
cArr = cArr4;
}
if (i12 > 0) {
AFg1mSDK.AFKeystoreWrapper = 0;
while (true) {
int i17 = AFg1mSDK.AFKeystoreWrapper;
if (i17 >= i11) {
break;
}
cArr[i17] = (char) (cArr[i17] - iArr[2]);
AFg1mSDK.AFKeystoreWrapper = i17 + 1;
}
}
str2 = new String(cArr);
} catch (Throwable th) {
throw th;
}
}
objArr[0] = str2;
}
public final void AFInAppEventType(@NonNull Context context) {
int i10 = onConversionDataFail + 25;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0) {
AFc1xSDK aFc1xSDK = this.onAppOpenAttribution;
if (context != null) {
AFb1bSDK aFb1bSDK = aFc1xSDK.AFInAppEventParameterName;
if (context != null) {
aFb1bSDK.AFInAppEventParameterName = context.getApplicationContext();
onAttributionFailure = (onConversionDataFail + 91) % 128;
}
}
int i11 = onAttributionFailure + 73;
onConversionDataFail = i11 % 128;
if (i11 % 2 == 0) {
int i12 = 15 / 0;
return;
}
return;
}
throw null;
}
private void AFInAppEventType(@NonNull AFa1qSDK aFa1qSDK, Activity activity) {
onAttributionFailure = (onConversionDataFail + 75) % 128;
AFf1tSDK onResponseNative = AFInAppEventParameterName().onResponseNative();
aFa1qSDK.values = onResponseNative.AFInAppEventType(activity);
aFa1qSDK.afRDLog = onResponseNative.valueOf(activity);
int i10 = onConversionDataFail + 35;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
int i11 = 18 / 0;
}
}
private void AFInAppEventType(AFa1qSDK aFa1qSDK) {
boolean z10;
byte b3 = 0;
if (aFa1qSDK.afDebugLog == null) {
onConversionDataFail = (onAttributionFailure + 97) % 128;
z10 = true;
} else {
z10 = false;
}
if (AFKeystoreWrapper()) {
onAttributionFailure = (onConversionDataFail + 71) % 128;
AFLogger.afInfoLog("CustomerUserId not set, reporting is disabled", true);
return;
}
if (z10) {
onAttributionFailure = (onConversionDataFail + 125) % 128;
if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.LAUNCH_PROTECT_ENABLED, true)) {
if (afInfoLog()) {
onAttributionFailure = (onConversionDataFail + 77) % 128;
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, b3), 0L, TimeUnit.MILLISECONDS);
}
private void valueOf(java.util.Map<java.lang.String, java.lang.Object> r4) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.valueOf(java.util.Map):void");
}
private static java.lang.String valueOf(android.app.Activity r6) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1dSDK.valueOf(android.app.Activity):java.lang.String");
}
public final AFb1fSDK valueOf(Context context) {
onAttributionFailure = (onConversionDataFail + 61) % 128;
AFInAppEventType(context);
AFb1fSDK AFKeystoreWrapper2 = AFInAppEventParameterName().AFKeystoreWrapper();
int i10 = onConversionDataFail + 1;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0) {
return AFKeystoreWrapper2;
}
throw null;
}
private int valueOf(AFb1fSDK aFb1fSDK, String str, boolean z10) {
onConversionDataFail = (onAttributionFailure + 21) % 128;
int AFInAppEventType = aFb1fSDK.AFInAppEventType(str, 0);
if (z10) {
onConversionDataFail = (onAttributionFailure + 89) % 128;
AFInAppEventType++;
aFb1fSDK.valueOf(str, AFInAppEventType);
}
if (AFInAppEventParameterName().afErrorLogForExcManagerOnly().afErrorLog()) {
int i10 = onConversionDataFail + 83;
onAttributionFailure = i10 % 128;
if (i10 % 2 != 0) {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType(String.valueOf(AFInAppEventType));
int i11 = 92 / 0;
} else {
AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType(String.valueOf(AFInAppEventType));
}
}
return AFInAppEventType;
}
public final void values(Context context, Map<String, Object> map, Uri uri) {
int i10 = onConversionDataFail + 45;
onAttributionFailure = i10 % 128;
if (i10 % 2 == 0) {
AFInAppEventType(context);
if (!map.containsKey("af_deeplink")) {
String AFKeystoreWrapper2 = AFKeystoreWrapper(uri.toString());
AFb1uSDK init = AFInAppEventParameterName().init();
String str = init.values;
if (str != null) {
int i11 = (onConversionDataFail + 29) % 128;
onAttributionFailure = i11;
if (init.AFInAppEventParameterName != null) {
int i12 = i11 + 63;
onConversionDataFail = i12 % 128;
if (i12 % 2 != 0) {
if (!(!AFKeystoreWrapper2.contains(str))) {
Uri.Builder buildUpon = Uri.parse(AFKeystoreWrapper2).buildUpon();
Uri.Builder buildUpon2 = Uri.EMPTY.buildUpon();
for (Map.Entry<String, String> entry : init.AFInAppEventParameterName.entrySet()) {
onConversionDataFail = (onAttributionFailure + 31) % 128;
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()) {
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) {
onConversionDataFail = (onAttributionFailure + 105) % 128;
int indexOf = str.indexOf(63);
if (indexOf != -1) {
return str.substring(indexOf);
}
int i10 = onConversionDataFail;
int i11 = i10 + 95;
onAttributionFailure = i11 % 128;
if (i11 % 2 != 0) {
int i12 = 16 / 0;
}
onAttributionFailure = (i10 + 97) % 128;
return BuildConfig.FLAVOR;
}
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 i10 = onAttributionFailure + 89;
onConversionDataFail = i10 % 128;
if (i10 % 2 == 0) {
int i11 = 87 / 0;
}
return aFa1xSDK;
}
public static String values(AFb1fSDK aFb1fSDK, String str) {
onAttributionFailure = (onConversionDataFail + 45) % 128;
String valueOf2 = aFb1fSDK.valueOf("CACHED_CHANNEL", (String) null);
if (valueOf2 != null) {
int i10 = onAttributionFailure + 113;
onConversionDataFail = i10 % 128;
if (i10 % 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) {
try {
onConversionDataFail = (onAttributionFailure + 31) % 128;
if (valueOf().onAttributionFailureNative == null) {
int i10 = onConversionDataFail + 37;
onAttributionFailure = i10 % 128;
StrictMode.ThreadPolicy threadPolicy = i10 % 2;
try {
if (threadPolicy != 0) {
StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads();
valueOf().onAttributionFailureNative = context.getApplicationContext().getSharedPreferences("appsflyer-data", 0);
threadPolicy = allowThreadDiskReads;
} else {
StrictMode.ThreadPolicy allowThreadDiskReads2 = StrictMode.allowThreadDiskReads();
valueOf().onAttributionFailureNative = context.getApplicationContext().getSharedPreferences("appsflyer-data", 0);
threadPolicy = allowThreadDiskReads2;
}
StrictMode.setThreadPolicy(threadPolicy);
} finally {
StrictMode.setThreadPolicy(threadPolicy);
}
}
sharedPreferences = valueOf().onAttributionFailureNative;
} catch (Throwable th) {
throw th;
}
}
return sharedPreferences;
}
private int values(AFb1fSDK aFb1fSDK, boolean z10) {
int i10 = onAttributionFailure + 123;
onConversionDataFail = i10 % 128;
int i11 = i10 % 2;
int valueOf2 = valueOf(aFb1fSDK, "appsFlyerInAppEventCount", z10);
if (i11 == 0) {
int i12 = 9 / 0;
}
return valueOf2;
}
}