Free Fire v1.103.1版本的 MD5 值为:f6c45f9f1485263aa5af0fb400f973fc
以下内容为反编译后的 AFa1aSDK.java 源代码,内容仅作参考
package com.appsflyer.internal;
import android.app.Activity;
import android.app.Application;
import android.app.UiModeManager;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkCapabilities;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.os.Process;
import android.os.StatFs;
import android.os.SystemClock;
import android.provider.Settings;
import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.ViewConfiguration;
import android.view.WindowManager;
import com.appff.haptic.base.Utils;
import com.appsflyer.AFInAppEventParameterName;
import com.appsflyer.AFInAppEventType;
import com.appsflyer.AFKeystoreWrapper;
import com.appsflyer.AFLogger;
import com.appsflyer.AFVersionDeclaration;
import com.appsflyer.AppsFlyerConversionListener;
import com.appsflyer.AppsFlyerInAppPurchaseValidatorListener;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.PurchaseHandler;
import com.appsflyer.attribution.AppsFlyerRequestListener;
import com.appsflyer.attribution.RequestError;
import com.appsflyer.deeplink.DeepLinkListener;
import com.appsflyer.deeplink.DeepLinkResult;
import com.appsflyer.internal.AFa1aSDK;
import com.appsflyer.internal.AFa1gSDK;
import com.appsflyer.internal.AFa1mSDK;
import com.appsflyer.internal.AFa1ySDK;
import com.appsflyer.internal.AFb1xSDK;
import com.appsflyer.internal.AFc1bSDK;
import com.appsflyer.internal.AFc1lSDK;
import com.appsflyer.internal.AFe1lSDK;
import com.appsflyer.internal.components.network.http.ResponseNetwork;
import com.google.android.gms.common.GoogleApiAvailability;
import h2.f0;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.net.HttpURLConnection;
import java.net.NetworkInterface;
import java.net.URI;
import java.security.KeyStoreException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;
import java.util.TimeZone;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
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 AFa1aSDK extends AppsFlyerLib {
static AppsFlyerInAppPurchaseValidatorListener AFInAppEventParameterName = null;
static final String AFInAppEventType;
public static final String AFKeystoreWrapper;
private static final String AFLogger;
private static String AFLogger$LogLevel = null;
private static AFa1aSDK AFVersionDeclaration = null;
private static char AppsFlyerConversionListener = 0;
private static char AppsFlyerInAppPurchaseValidatorListener = 0;
private static String afDebugLog = null;
private static String afInfoLog = null;
private static String afWarnLog = null;
private static String getLevel = null;
private static String init = null;
private static char onValidateInApp = 0;
private static char onValidateInAppFailure = 0;
private static int stop = 1;
private static int updateServerUninstallToken;
public static volatile AppsFlyerConversionListener valueOf;
public static final String values;
private final AFb1aSDK AppsFlyerLib;
String afErrorLog;
public AFa1eSDK afRDLog;
private Map<String, Object> onAttributionFailure;
private String onAttributionFailureNative;
private Application onConversionDataFail;
private String onDeepLinking;
private boolean onDeepLinkingNative;
private Map<Long, String> onInstallConversionDataLoadedNative;
private SharedPreferences onResponse;
private AFb1gSDK onResponseError;
private boolean onResponseNative;
private long onInstallConversionFailureNative = -1;
private long AppsFlyer2dXConversionCallback = -1;
private long onAppOpenAttributionNative = TimeUnit.SECONDS.toMillis(5);
private final AFb1uSDK onConversionDataSuccess = new AFb1uSDK();
private boolean onResponseErrorNative = false;
private boolean onAppOpenAttribution = false;
public final class AnonymousClass2 implements Runnable {
AnonymousClass2() {
}
public void AFInAppEventType() {
try {
AFe1zSDK aFe1zSDK = new AFe1zSDK();
Application valueOf = AFa1aSDK.valueOf(AFa1aSDK.this);
if (valueOf != null) {
aFe1zSDK.AFInAppEventType = (Application) valueOf.getApplicationContext();
}
AFa1aSDK aFa1aSDK = AFa1aSDK.this;
if (AFa1aSDK.AFInAppEventParameterName(aFa1aSDK, aFe1zSDK, AFa1aSDK.AFInAppEventType(AFa1aSDK.valueOf(aFa1aSDK)))) {
AFa1aSDK.valueOf(AFa1aSDK.this, aFe1zSDK);
}
} catch (Throwable th) {
AFLogger.afErrorLog(th.getMessage(), th);
}
}
@Override
public final void run() {
AFa1aSDK.AFInAppEventParameterName(AFa1aSDK.AFInAppEventType(AFa1aSDK.this).AFInAppEventType(), new Runnable() {
@Override
public final void run() {
AFa1aSDK.AnonymousClass2.this.AFInAppEventType();
}
}, TimeUnit.MILLISECONDS);
}
}
static class AnonymousClass6 {
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 values;
private AFa1vSDK(AFa1qSDK aFa1qSDK) {
this.values = aFa1qSDK;
}
AFa1vSDK(AFa1aSDK aFa1aSDK, AFa1qSDK aFa1qSDK, byte b10) {
this(aFa1qSDK);
}
@Override
public final void run() {
AFd1tSDK aFd1tSDK;
if (this.values.AFInAppEventType()) {
AFd1tSDK aFd1tSDK2 = new AFd1tSDK(this.values, AFa1aSDK.this.AFInAppEventParameterName());
aFd1tSDK2.AFVersionDeclaration = AFa1aSDK.AFKeystoreWrapper(AFa1aSDK.this);
aFd1tSDK = aFd1tSDK2;
} else {
aFd1tSDK = new AFd1uSDK(this.values, AFa1aSDK.this.AFInAppEventParameterName());
}
AFc1lSDK afRDLog = AFa1aSDK.this.AFInAppEventParameterName().afRDLog();
afRDLog.AFKeystoreWrapper.execute(new AFc1lSDK.AnonymousClass4(aFd1tSDK));
}
}
class AFa1wSDK implements AFc1qSDK {
private AFa1wSDK() {
}
AFa1wSDK(AFa1aSDK aFa1aSDK, byte b10) {
this();
}
@Override
public final void AFInAppEventType(AFc1nSDK<?> aFc1nSDK) {
}
@Override
public final void AFInAppEventType(AFc1nSDK<?> aFc1nSDK, AFc1rSDK aFc1rSDK) {
JSONObject values;
AFb1tSDK AFInAppEventParameterName;
if (!(aFc1nSDK instanceof AFd1uSDK)) {
if (!(aFc1nSDK instanceof AFd1hSDK) || aFc1rSDK == AFc1rSDK.SUCCESS) {
return;
}
AFd1gSDK aFd1gSDK = new AFd1gSDK(AFa1aSDK.AFInAppEventType(AFa1aSDK.this));
AFc1lSDK afRDLog = AFa1aSDK.AFInAppEventType(AFa1aSDK.this).afRDLog();
afRDLog.AFKeystoreWrapper.execute(new AFc1lSDK.AnonymousClass4(aFd1gSDK));
return;
}
AFd1uSDK aFd1uSDK = (AFd1uSDK) aFc1nSDK;
boolean z10 = aFc1nSDK instanceof AFd1tSDK;
if (z10) {
AFd1tSDK aFd1tSDK = (AFd1tSDK) aFc1nSDK;
boolean z11 = true;
if (aFd1tSDK.AFInAppEventType != AFc1rSDK.SUCCESS && aFd1tSDK.AFKeystoreWrapper != 1) {
z11 = false;
}
if (z11) {
Context context = AFa1aSDK.AFInAppEventType(AFa1aSDK.this).AFInAppEventParameterName.AFKeystoreWrapper;
if (context == null) {
throw new IllegalStateException("Context must be set via setContext method before calling this dependency.");
}
AFd1hSDK aFd1hSDK = new AFd1hSDK(aFd1tSDK, new AFb1cSDK(AFa1aSDK.AFInAppEventType(context)));
AFc1lSDK afRDLog2 = AFa1aSDK.AFInAppEventType(AFa1aSDK.this).afRDLog();
afRDLog2.AFKeystoreWrapper.execute(new AFc1lSDK.AnonymousClass4(aFd1hSDK));
}
}
if (aFc1rSDK == AFc1rSDK.SUCCESS) {
AFa1aSDK aFa1aSDK = AFa1aSDK.this;
aFa1aSDK.valueOf(AFa1aSDK.valueOf(aFa1aSDK)).AFInAppEventParameterName("sentSuccessfully", "true");
if (!(aFc1nSDK instanceof AFd1vSDK) && (AFInAppEventParameterName = new AFd1lSDK(AFa1aSDK.valueOf(AFa1aSDK.this)).AFInAppEventParameterName()) != null && AFInAppEventParameterName.AFInAppEventParameterName()) {
String str = AFInAppEventParameterName.values;
AFLogger.afDebugLog("Resending Uninstall token to AF servers: ".concat(String.valueOf(str)));
AFd1lSDK.AFInAppEventType(str);
}
ResponseNetwork responseNetwork = aFd1uSDK.afInfoLog;
if (responseNetwork != null && (values = AFb1qSDK.values((String) responseNetwork.getBody())) != null) {
AFa1aSDK.AFInAppEventType(AFa1aSDK.this, values.optBoolean("send_background", false));
}
if (z10) {
AFa1aSDK.AFKeystoreWrapper(AFa1aSDK.this, System.currentTimeMillis());
}
}
}
@Override
public final void values(AFc1nSDK<?> aFc1nSDK) {
if (aFc1nSDK instanceof AFd1tSDK) {
AFa1aSDK.this.AFInAppEventParameterName().afInfoLog().values(((AFd1uSDK) aFc1nSDK).afRDLog.afRDLog);
}
}
}
public class AFa1zSDK implements Runnable {
private final AFa1qSDK AFInAppEventParameterName;
private AFa1zSDK(AFa1qSDK aFa1qSDK) {
this.AFInAppEventParameterName = aFa1qSDK;
}
AFa1zSDK(AFa1aSDK aFa1aSDK, AFa1qSDK aFa1qSDK, byte b10) {
this(aFa1qSDK);
}
@Override
public final void run() {
AFa1aSDK.valueOf(AFa1aSDK.this, this.AFInAppEventParameterName);
}
}
static {
valueOf();
AFInAppEventType = "207";
String substring = "6.8.2".substring(0, "6.8.2".lastIndexOf(AFInAppEventParameterName("ᖊ騾", TextUtils.getOffsetBefore("", 0) + 1).intern()));
AFKeystoreWrapper = substring;
afDebugLog = "https://%sstats.%s/stats";
StringBuilder sb = new StringBuilder();
sb.append(substring);
sb.append("/androidevent?buildnumber=6.8.2&app_id=");
values = sb.toString();
StringBuilder sb2 = new StringBuilder("https://%sadrevenue.%s/api/v");
sb2.append(substring);
sb2.append("/android?buildnumber=6.8.2&app_id=");
afInfoLog = sb2.toString();
StringBuilder sb3 = new StringBuilder();
sb3.append(substring);
sb3.append("/androidevent?app_id=");
String obj = sb3.toString();
AFLogger = obj;
StringBuilder sb4 = new StringBuilder("https://%sconversions.%s/api/v");
sb4.append(obj);
init = sb4.toString();
StringBuilder sb5 = new StringBuilder("https://%slaunches.%s/api/v");
sb5.append(obj);
afWarnLog = sb5.toString();
StringBuilder sb6 = new StringBuilder("https://%sinapps.%s/api/v");
sb6.append(obj);
getLevel = sb6.toString();
StringBuilder sb7 = new StringBuilder("https://%sattr.%s/api/v");
sb7.append(obj);
AFLogger$LogLevel = sb7.toString();
AFInAppEventParameterName = null;
valueOf = null;
AFVersionDeclaration = new AFa1aSDK();
int i10 = updateServerUninstallToken + 79;
stop = i10 % 128;
if (!(i10 % 2 == 0)) {
return;
}
throw null;
}
public AFa1aSDK() {
Executors.newSingleThreadExecutor();
AFVersionDeclaration.init();
AFb1aSDK aFb1aSDK = new AFb1aSDK();
this.AppsFlyerLib = aFb1aSDK;
AFc1lSDK afRDLog = aFb1aSDK.afRDLog();
afRDLog.AFInAppEventParameterName.add(new AFa1wSDK(this, (byte) 0));
}
private static String AFInAppEventParameterName(Activity activity) {
int i10 = stop;
int i11 = i10 + 65;
updateServerUninstallToken = i11 % 128;
String str = null;
if (!(i11 % 2 == 0)) {
int i12 = 30 / 0;
}
int i13 = updateServerUninstallToken + 47;
stop = i13 % 128;
int i14 = i13 % 2;
return str;
}
private static String AFInAppEventParameterName(File file, String str) {
FileReader fileReader;
Properties properties;
try {
try {
try {
properties = new Properties();
fileReader = new FileReader(file);
} catch (Throwable th) {
if (fileReader != null) {
try {
fileReader.close();
} catch (Throwable th2) {
AFLogger.afErrorLog(th2.getMessage(), th2);
}
}
throw th;
}
} catch (FileNotFoundException unused) {
fileReader = null;
} catch (Throwable th3) {
th = th3;
fileReader = null;
}
} catch (Throwable th4) {
AFLogger.afErrorLog(th4.getMessage(), th4);
}
try {
properties.load(fileReader);
AFLogger.afInfoLog("Found PreInstall property!");
String property = properties.getProperty(str);
try {
fileReader.close();
} catch (Throwable th5) {
AFLogger.afErrorLog(th5.getMessage(), th5);
}
return property;
} catch (FileNotFoundException unused2) {
StringBuilder sb = new StringBuilder("PreInstall file wasn't found: ");
sb.append(file.getAbsolutePath());
AFLogger.afDebugLog(sb.toString());
if (fileReader != null) {
fileReader.close();
int i10 = stop + 95;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
}
return null;
} catch (Throwable th6) {
th = th6;
AFLogger.afErrorLog(th.getMessage(), th);
if (fileReader != null) {
fileReader.close();
}
return null;
}
}
private static String AFInAppEventParameterName(String str) {
int i10 = updateServerUninstallToken + 47;
stop = i10 % 128;
if (i10 % 2 == 0) {
throw null;
}
if ((str == null ? '\"' : 'S') != 'S') {
return null;
}
if (str.matches("fb\\d*?://authorize.*")) {
int i11 = updateServerUninstallToken + 21;
stop = i11 % 128;
if (i11 % 2 == 0) {
str.contains("access_token");
throw null;
} else if (str.contains("access_token")) {
String AFInAppEventType2 = AFInAppEventType(str);
if (AFInAppEventType2.length() == 0) {
int i12 = stop + 29;
updateServerUninstallToken = i12 % 128;
if (i12 % 2 == 0) {
return str;
}
throw null;
}
ArrayList arrayList = new ArrayList();
if (AFInAppEventType2.contains("&")) {
arrayList = new ArrayList(Arrays.asList(AFInAppEventType2.split("&")));
} else {
arrayList.add(AFInAppEventType2);
}
StringBuilder sb = new StringBuilder();
Iterator it = arrayList.iterator();
while (true) {
if ((it.hasNext() ? (char) 28 : (char) 6) == 6) {
return str.replace(AFInAppEventType2, sb.toString());
}
int i13 = stop + 67;
updateServerUninstallToken = i13 % 128;
if (i13 % 2 != 0) {
((String) it.next()).contains("access_token");
throw null;
}
String str2 = (String) it.next();
if (str2.contains("access_token")) {
it.remove();
int i14 = stop + 35;
updateServerUninstallToken = i14 % 128;
int i15 = i14 % 2;
} else {
if (sb.length() != 0) {
sb.append("&");
} else if (!str2.startsWith("?")) {
sb.append("?");
}
sb.append(str2);
}
}
}
}
return str;
}
private static String AFInAppEventParameterName(String str, int i10) {
char[] cArr;
String str2;
if (str != null) {
cArr = str.toCharArray();
}
char[] cArr2 = cArr;
synchronized (AFf1vSDK.AFKeystoreWrapper) {
char[] cArr3 = new char[cArr2.length];
AFf1vSDK.valueOf = 0;
char[] cArr4 = new char[2];
while (true) {
int i11 = AFf1vSDK.valueOf;
if (i11 < cArr2.length) {
cArr4[0] = cArr2[i11];
cArr4[1] = cArr2[i11 + 1];
int i12 = 58224;
for (int i13 = 0; i13 < 16; i13++) {
char c10 = cArr4[1];
char c11 = cArr4[0];
char c12 = (char) (c10 - (((c11 + i12) ^ ((c11 << 4) + AppsFlyerInAppPurchaseValidatorListener)) ^ ((c11 >>> 5) + onValidateInAppFailure)));
cArr4[1] = c12;
cArr4[0] = (char) (c11 - (((c12 >>> 5) + onValidateInApp) ^ ((c12 + i12) ^ ((c12 << 4) + AppsFlyerConversionListener))));
i12 -= 40503;
}
int i14 = AFf1vSDK.valueOf;
cArr3[i14] = cArr4[0];
cArr3[i14 + 1] = cArr4[1];
AFf1vSDK.valueOf = i14 + 2;
} else {
str2 = new String(cArr3, 0, i10);
}
}
}
return str2;
}
public static Map<String, Object> AFInAppEventParameterName(Map<String, Object> map) {
Map<String, Object> map2;
if (!(!map.containsKey("meta"))) {
int i10 = updateServerUninstallToken + 71;
stop = i10 % 128;
int i11 = i10 % 2;
map2 = (Map) map.get("meta");
} else {
HashMap hashMap = new HashMap();
map.put("meta", hashMap);
map2 = hashMap;
}
int i12 = updateServerUninstallToken + 49;
stop = i12 % 128;
int i13 = i12 % 2;
return map2;
}
public static void AFInAppEventParameterName(Context context, Map<String, ? super String> map) {
boolean valueOf2 = valueOf(AppsFlyerProperties.DISABLE_NETWORK_DATA, false);
AFa1gSDK aFa1gSDK = AFa1gSDK.AFa1xSDK.AFInAppEventType;
AFa1gSDK.AFa1zSDK AFInAppEventParameterName2 = AFa1gSDK.AFInAppEventParameterName(context);
map.put("network", AFInAppEventParameterName2.valueOf);
if (!valueOf2) {
int i10 = updateServerUninstallToken + 23;
int i11 = i10 % 128;
stop = i11;
int i12 = i10 % 2;
String str = AFInAppEventParameterName2.AFInAppEventType;
if (str != null) {
int i13 = i11 + 43;
updateServerUninstallToken = i13 % 128;
char c10 = i13 % 2 != 0 ? '&' : (char) 24;
map.put("operator", str);
if (c10 == '&') {
int i14 = 26 / 0;
}
}
}
if (valueOf2) {
return;
}
int i15 = stop + 51;
updateServerUninstallToken = i15 % 128;
int i16 = i15 % 2;
String str2 = AFInAppEventParameterName2.values;
if (str2 != null) {
map.put("carrier", str2);
}
}
private void AFInAppEventParameterName(AFa1qSDK aFa1qSDK) {
Application application = aFa1qSDK.AFInAppEventType;
String format = String.format(afInfoLog, AppsFlyerLib.getInstance().getHostPrefix(), values().getHostName());
StringBuilder sb = new StringBuilder();
sb.append(format);
sb.append(application.getPackageName());
String obj = sb.toString();
SharedPreferences AFInAppEventType2 = AFInAppEventType(application);
int AFInAppEventType3 = AFInAppEventType(AFInAppEventType2, false);
int values2 = values(AFInAppEventType2);
HashMap hashMap = new HashMap();
hashMap.put("ad_network", aFa1qSDK.AFInAppEventParameterName);
hashMap.put("adrevenue_counter", Integer.valueOf(values2));
hashMap.put("af_key", this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventType);
hashMap.put("launch_counter", Integer.valueOf(AFInAppEventType3));
hashMap.put(AFInAppEventParameterName("\ue732Ⲹ凑ꔣ警ꤢ᪃뎶벹욍ヌ\uef43", 11 - MotionEvent.axisFromString("")).intern(), Long.toString(new Date().getTime()));
hashMap.put("uid", AFb1rSDK.AFInAppEventParameterName(new WeakReference(application)));
String string = AppsFlyerProperties.getInstance().getString("advertiserId");
String string2 = AppsFlyerProperties.getInstance().getString("advertiserIdEnabled");
if (string2 != null) {
int i10 = updateServerUninstallToken + 69;
stop = i10 % 128;
int i11 = i10 % 2;
hashMap.put("advertiserIdEnabled", string2);
}
if (string != null) {
hashMap.put("advertiserId", string);
}
AFKeystoreWrapper(application, hashMap);
hashMap.put("device", Build.DEVICE);
valueOf(application, hashMap);
try {
PackageInfo packageInfo = application.getPackageManager().getPackageInfo(application.getPackageName(), 0);
hashMap.put("app_version_code", Integer.toString(packageInfo.versionCode));
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd_HHmmssZ", Locale.US);
hashMap.put("install_date", AFInAppEventType(simpleDateFormat, packageInfo.firstInstallTime));
String string3 = AFInAppEventType2.getString("appsFlyerFirstInstall", null);
if (string3 == null) {
string3 = AFKeystoreWrapper(simpleDateFormat, application);
}
hashMap.put("first_launch_date", string3);
int i12 = updateServerUninstallToken + 5;
stop = i12 % 128;
int i13 = i12 % 2;
} catch (Throwable th) {
AFLogger.afErrorLog("AdRevenue - Exception while collecting app version data ", th, true);
}
AFKeystoreWrapper(this.AppsFlyerLib.AFInAppEventType(), new AFa1vSDK(this, aFa1qSDK.AFInAppEventType(obj).AFInAppEventType(hashMap).valueOf(AFInAppEventType3), (byte) 0), 1L, TimeUnit.MILLISECONDS);
int i14 = updateServerUninstallToken + 87;
stop = i14 % 128;
if ((i14 % 2 == 0 ? 'H' : '$') != '$') {
int i15 = 20 / 0;
}
}
private static void AFInAppEventParameterName(String str, String str2) {
int i10 = updateServerUninstallToken + 123;
stop = i10 % 128;
int i11 = i10 % 2;
AppsFlyerProperties.getInstance().set(str, str2);
int i12 = updateServerUninstallToken + 121;
stop = i12 % 128;
int i13 = i12 % 2;
}
static void AFInAppEventParameterName(ScheduledExecutorService scheduledExecutorService, Runnable runnable, TimeUnit timeUnit) {
int i10 = stop + 3;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
AFKeystoreWrapper(scheduledExecutorService, runnable, 0L, timeUnit);
int i12 = stop + 79;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
}
private static void AFInAppEventParameterName(JSONObject jSONObject) {
String str;
ArrayList arrayList = new ArrayList();
Iterator<String> keys = jSONObject.keys();
while (true) {
if (!keys.hasNext()) {
break;
}
try {
JSONArray jSONArray = new JSONArray((String) jSONObject.get(keys.next()));
while (r3 < jSONArray.length()) {
int i10 = updateServerUninstallToken + 113;
stop = i10 % 128;
if (i10 % 2 == 0) {
arrayList.add(Long.valueOf(jSONArray.getLong(r3)));
r3 += 110;
} else {
arrayList.add(Long.valueOf(jSONArray.getLong(r3)));
r3++;
}
}
} catch (JSONException unused) {
}
}
Collections.sort(arrayList);
Iterator<String> keys2 = jSONObject.keys();
loop2: while (true) {
str = null;
while (true) {
if ((keys2.hasNext() ? ' ' : (char) 23) == 23) {
break loop2;
}
int i11 = stop + 73;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
if (str != null) {
break loop2;
}
String next = keys2.next();
try {
JSONArray jSONArray2 = new JSONArray((String) jSONObject.get(next));
int i13 = 0;
while (i13 < jSONArray2.length()) {
if (jSONArray2.getLong(i13) == ((Long) arrayList.get(0)).longValue()) {
break;
}
if (!(jSONArray2.getLong(i13) != ((Long) arrayList.get(1)).longValue())) {
break;
}
int i14 = stop + 9;
updateServerUninstallToken = i14 % 128;
int i15 = i14 % 2;
if (jSONArray2.getLong(i13) == ((Long) arrayList.get(arrayList.size() - 1)).longValue()) {
break;
}
i13++;
str = next;
}
continue;
} catch (JSONException unused2) {
}
}
}
if ((str != null ? 1 : 0) != 0) {
jSONObject.remove(str);
}
}
static boolean AFInAppEventParameterName(AFa1aSDK aFa1aSDK, AFa1qSDK aFa1qSDK, SharedPreferences sharedPreferences) {
int i10 = stop + 111;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
boolean AFKeystoreWrapper2 = aFa1aSDK.AFKeystoreWrapper(aFa1qSDK, sharedPreferences);
int i12 = stop + 17;
updateServerUninstallToken = i12 % 128;
if (!(i12 % 2 != 0)) {
return AFKeystoreWrapper2;
}
int i13 = 79 / 0;
return AFKeystoreWrapper2;
}
private static int AFInAppEventType(SharedPreferences sharedPreferences, String str, boolean z10) {
int i10;
int i11 = updateServerUninstallToken + 17;
stop = i11 % 128;
if (i11 % 2 == 0) {
i10 = sharedPreferences.getInt(str, 0);
} else {
i10 = sharedPreferences.getInt(str, 0);
}
if (AFb1oSDK.AFInAppEventType().afRDLog()) {
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper(String.valueOf(i10));
}
return i10;
}
public static int AFInAppEventType(SharedPreferences sharedPreferences, boolean z10) {
int i10 = updateServerUninstallToken + 93;
stop = i10 % 128;
if (!(i10 % 2 == 0)) {
return AFInAppEventType(sharedPreferences, "appsFlyerCount", z10);
}
AFInAppEventType(sharedPreferences, "appsFlyerCount", z10);
throw null;
}
public static synchronized SharedPreferences AFInAppEventType(Context context) {
SharedPreferences sharedPreferences;
synchronized (AFa1aSDK.class) {
int i10 = stop + 49;
updateServerUninstallToken = i10 % 128;
if (!(i10 % 2 == 0)) {
int i11 = 81 / 0;
} else {
if ((values().onResponse == null ? '*' : '`') != '*') {
sharedPreferences = values().onResponse;
}
values().onResponse = context.getApplicationContext().getSharedPreferences("appsflyer-data", 0);
int i12 = updateServerUninstallToken + 99;
stop = i12 % 128;
int i13 = i12 % 2;
sharedPreferences = values().onResponse;
}
}
return sharedPreferences;
}
static AFb1aSDK AFInAppEventType(AFa1aSDK aFa1aSDK) {
int i10 = stop + 107;
updateServerUninstallToken = i10 % 128;
boolean z10 = i10 % 2 == 0;
AFb1aSDK aFb1aSDK = aFa1aSDK.AppsFlyerLib;
if (z10) {
return aFb1aSDK;
}
throw null;
}
public static String AFInAppEventType() {
int i10 = updateServerUninstallToken + 15;
stop = i10 % 128;
if ((i10 % 2 == 0 ? '^' : '<') == '^') {
AFKeystoreWrapper(AppsFlyerProperties.APP_USER_ID);
throw null;
}
String AFKeystoreWrapper2 = AFKeystoreWrapper(AppsFlyerProperties.APP_USER_ID);
int i11 = stop + 73;
updateServerUninstallToken = i11 % 128;
if (!(i11 % 2 == 0)) {
int i12 = 56 / 0;
return AFKeystoreWrapper2;
}
return AFKeystoreWrapper2;
}
private String AFInAppEventType(Context context, String str) {
int i10 = stop + 45;
updateServerUninstallToken = i10 % 128;
if (i10 % 2 != 0) {
int i11 = 32 / 0;
if (!(context != null)) {
return null;
}
} else if (context == null) {
return null;
}
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
if (context != null) {
AFb1fSDK aFb1fSDK = aFb1aSDK.AFInAppEventParameterName;
if (context != null) {
aFb1fSDK.AFKeystoreWrapper = context.getApplicationContext();
int i12 = stop + 69;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
}
}
return AFInAppEventParameterName().values().AFKeystoreWrapper(str);
}
private static String AFInAppEventType(String str) {
int i10 = stop + 21;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
int indexOf = str.indexOf(63);
if (indexOf != -1) {
String substring = str.substring(indexOf);
int i12 = updateServerUninstallToken + 41;
stop = i12 % 128;
int i13 = i12 % 2;
return substring;
}
return "";
}
@Deprecated
public static String AFInAppEventType(HttpURLConnection httpURLConnection) {
InputStreamReader inputStreamReader;
String obj;
StringBuilder sb = new StringBuilder();
BufferedReader bufferedReader = null;
try {
try {
InputStream errorStream = httpURLConnection.getErrorStream();
if (errorStream == null) {
errorStream = httpURLConnection.getInputStream();
int i10 = stop + 49;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
}
inputStreamReader = new InputStreamReader(errorStream);
try {
BufferedReader bufferedReader2 = new BufferedReader(inputStreamReader);
boolean z10 = false;
while (true) {
try {
String readLine = bufferedReader2.readLine();
if ((readLine != null ? ']' : (char) 21) != ']') {
break;
}
sb.append(z10 ? '\n' : "");
sb.append(readLine);
z10 = true;
} catch (Throwable th) {
th = th;
bufferedReader = bufferedReader2;
try {
StringBuilder sb2 = new StringBuilder("Could not read connection response from: ");
sb2.append(httpURLConnection.getURL().toString());
AFLogger.afErrorLog(sb2.toString(), th);
if (bufferedReader != null) {
bufferedReader.close();
int i12 = stop + 3;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
}
if ((inputStreamReader == null ? 'U' : (char) 1) != 'U') {
inputStreamReader.close();
}
obj = sb.toString();
new JSONObject(obj);
return obj;
} catch (Throwable th2) {
if (bufferedReader != null) {
try {
bufferedReader.close();
} catch (Throwable th3) {
AFLogger.afErrorLog(th3);
throw th2;
}
}
if (inputStreamReader != null) {
inputStreamReader.close();
int i14 = updateServerUninstallToken + 85;
stop = i14 % 128;
int i15 = i14 % 2;
}
throw th2;
}
}
}
bufferedReader2.close();
inputStreamReader.close();
} catch (Throwable th4) {
th = th4;
}
} catch (Throwable th5) {
AFLogger.afErrorLog(th5);
}
} catch (Throwable th6) {
th = th6;
inputStreamReader = null;
}
obj = sb.toString();
try {
new JSONObject(obj);
return obj;
} catch (JSONException unused) {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("string_response", obj);
return jSONObject.toString();
} catch (JSONException unused2) {
return new JSONObject().toString();
}
}
}
public static String AFInAppEventType(SimpleDateFormat simpleDateFormat, long j10) {
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
String format = simpleDateFormat.format(new Date(j10));
int i10 = stop + 71;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
return format;
}
private static void AFInAppEventType(Context context, Map<String, Object> map) {
AFa1ySDK.C0055AFa1ySDK AFInAppEventParameterName2 = AFa1ySDK.AFa1vSDK.valueOf.AFInAppEventParameterName(context);
map.put("btl", Float.toString(AFInAppEventParameterName2.AFInAppEventType));
String str = AFInAppEventParameterName2.valueOf;
if ((str != null ? ')' : '=') != ')') {
return;
}
int i10 = updateServerUninstallToken + 19;
stop = i10 % 128;
int i11 = i10 % 2;
map.put("btch", str);
int i12 = updateServerUninstallToken + 65;
stop = i12 % 128;
int i13 = i12 % 2;
}
private void AFInAppEventType(AFa1qSDK aFa1qSDK) {
String format;
long j10;
AFe1lSDK[] afInfoLog2;
int i10 = updateServerUninstallToken;
int i11 = i10 + 83;
stop = i11 % 128;
int i12 = i11 % 2;
Application application = aFa1qSDK.AFInAppEventType;
if ((application == null ? 'F' : ';') == 'F') {
int i13 = i10 + 117;
stop = i13 % 128;
int i14 = i13 % 2;
AFLogger.afDebugLog("sendWithEvent - got null context. skipping event/launch.");
return;
}
SharedPreferences AFInAppEventType2 = AFInAppEventType(application);
AppsFlyerProperties.getInstance().saveProperties(AFInAppEventType2);
if (!this.AppsFlyerLib.AFLogger$LogLevel().values()) {
StringBuilder sb = new StringBuilder("sendWithEvent from activity: ");
sb.append(application.getClass().getName());
AFLogger.afInfoLog(sb.toString());
}
boolean AFInAppEventType3 = aFa1qSDK.AFInAppEventType();
boolean z10 = aFa1qSDK instanceof AFe1uSDK;
boolean z11 = aFa1qSDK instanceof AFe1zSDK;
Map<String, ?> AFKeystoreWrapper2 = AFKeystoreWrapper(aFa1qSDK);
String str = (String) AFKeystoreWrapper2.get("appsflyerKey");
if (str == null || str.length() == 0) {
AFLogger.afDebugLog("Not sending data yet, waiting for dev key");
AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.valueOf;
if (appsFlyerRequestListener != null) {
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1eSDK.values);
}
int i15 = stop + 89;
updateServerUninstallToken = i15 % 128;
if (i15 % 2 == 0) {
return;
}
throw null;
}
if (!isStopped()) {
AFLogger.afInfoLog("AppsFlyerLib.sendWithEvent");
}
boolean z12 = false;
int AFInAppEventType4 = AFInAppEventType(AFInAppEventType2, false);
if (!(!z11) || z10) {
format = String.format(AFLogger$LogLevel, AppsFlyerLib.getInstance().getHostPrefix(), values().getHostName());
} else if (!(AFInAppEventType3)) {
format = String.format(getLevel, AppsFlyerLib.getInstance().getHostPrefix(), values().getHostName());
} else {
int i16 = stop + 101;
updateServerUninstallToken = i16 % 128;
if (i16 % 2 == 0) {
}
}
StringBuilder sb2 = new StringBuilder();
sb2.append(format);
sb2.append(application.getPackageName());
String obj = sb2.toString();
StringBuilder sb3 = new StringBuilder();
sb3.append(obj);
sb3.append("&buildnumber=6.8.2");
String obj2 = sb3.toString();
String values2 = values(application);
if (values2 != null) {
StringBuilder sb4 = new StringBuilder();
sb4.append(obj2);
sb4.append("&channel=");
sb4.append(values2);
obj2 = sb4.toString();
}
valueOf(AFKeystoreWrapper2);
AFa1vSDK aFa1vSDK = new AFa1vSDK(this, aFa1qSDK.AFInAppEventType(obj2).AFInAppEventType(AFKeystoreWrapper2).valueOf(AFInAppEventType4), (byte) 0);
if (AFInAppEventType3) {
int i17 = updateServerUninstallToken + 23;
stop = i17 % 128;
int i18 = i17 % 2;
boolean z13 = false;
for (AFe1lSDK aFe1lSDK : afInfoLog()) {
if (aFe1lSDK.afRDLog == AFe1lSDK.AFa1wSDK.STARTED) {
StringBuilder sb5 = new StringBuilder("Failed to get ");
sb5.append(aFe1lSDK.valueOf);
sb5.append(" referrer, wait ...");
AFLogger.afDebugLog(sb5.toString());
int i19 = stop + 37;
updateServerUninstallToken = i19 % 128;
int i20 = i19 % 2;
z13 = true;
}
}
if (!this.onAppOpenAttribution || afRDLog()) {
z12 = z13;
} else {
int i21 = updateServerUninstallToken + 105;
stop = i21 % 128;
int i22 = i21 % 2;
AFLogger.afDebugLog("fetching Facebook deferred AppLink data, wait ...");
if (i22 != 0) {
z12 = true;
}
}
if (this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventParameterName()) {
int i23 = updateServerUninstallToken + 115;
stop = i23 % 128;
int i24 = i23 % 2;
z12 = true;
}
}
ScheduledExecutorService AFInAppEventType5 = this.AppsFlyerLib.AFInAppEventType();
if (z12) {
int i25 = updateServerUninstallToken + 23;
stop = i25 % 128;
int i26 = i25 % 2;
j10 = 500;
} else {
j10 = 0;
}
AFKeystoreWrapper(AFInAppEventType5, aFa1vSDK, j10, TimeUnit.MILLISECONDS);
}
static boolean AFInAppEventType(AFa1aSDK aFa1aSDK, boolean z10) {
int i10 = updateServerUninstallToken;
int i11 = i10 + 15;
stop = i11 % 128;
int i12 = i11 % 2;
aFa1aSDK.onResponseErrorNative = z10;
int i13 = i10 + 93;
stop = i13 % 128;
int i14 = i13 % 2;
return z10;
}
static long AFKeystoreWrapper(AFa1aSDK aFa1aSDK, long j10) {
int i10 = updateServerUninstallToken;
int i11 = i10 + 121;
stop = i11 % 128;
boolean z10 = i11 % 2 != 0;
aFa1aSDK.AppsFlyer2dXConversionCallback = j10;
if (!z10) {
throw null;
}
int i12 = i10 + 7;
stop = i12 % 128;
if (!(i12 % 2 == 0)) {
return j10;
}
throw null;
}
private AFc1bSDK.AFa1vSDK AFKeystoreWrapper(final Map<String, String> map) {
AFc1bSDK.AFa1vSDK aFa1vSDK = new AFc1bSDK.AFa1vSDK() {
@Override
public final void AFKeystoreWrapper(String str) {
AFb1lSDK.AFInAppEventType(str, DeepLinkResult.Error.NETWORK);
}
@Override
public final void values(Map<String, String> map2) {
for (String str : map2.keySet()) {
map.put(str, map2.get(str));
}
AFb1lSDK.AFInAppEventParameterName(map);
}
};
int i10 = stop + 33;
updateServerUninstallToken = i10 % 128;
if (i10 % 2 == 0) {
return aFa1vSDK;
}
throw null;
}
public static String AFKeystoreWrapper(AFd1pSDK aFd1pSDK, String str) {
int i10 = updateServerUninstallToken + 121;
stop = i10 % 128;
int i11 = i10 % 2;
String valueOf2 = aFd1pSDK.valueOf("CACHED_CHANNEL", null);
if ((valueOf2 != null ? 'E' : (char) 28) != 'E') {
aFd1pSDK.AFInAppEventParameterName("CACHED_CHANNEL", str);
int i12 = stop + 59;
updateServerUninstallToken = i12 % 128;
if (!(i12 % 2 != 0)) {
return str;
}
throw null;
}
return valueOf2;
}
private static String AFKeystoreWrapper(String str) {
int i10 = stop + 79;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
String string = AppsFlyerProperties.getInstance().getString(str);
int i12 = updateServerUninstallToken + 9;
stop = i12 % 128;
int i13 = i12 % 2;
return string;
}
private String AFKeystoreWrapper(SimpleDateFormat simpleDateFormat, Context context) {
String format;
int i10 = stop + 61;
updateServerUninstallToken = i10 % 128;
if ((i10 % 2 != 0 ? (char) 31 : '2') != '2') {
AFInAppEventType(context).getString("appsFlyerFirstInstall", null);
throw null;
}
String string = AFInAppEventType(context).getString("appsFlyerFirstInstall", null);
if (string == null) {
int i11 = stop + 85;
updateServerUninstallToken = i11 % 128;
if (i11 % 2 != 0) {
int i12 = 86 / 0;
}
string = format;
valueOf(context).AFInAppEventParameterName("appsFlyerFirstInstall", string);
}
AFLogger.afInfoLog("AppsFlyer: first launch date: ".concat(String.valueOf(string)));
return string;
}
static Map AFKeystoreWrapper(AFa1aSDK aFa1aSDK) {
int i10 = updateServerUninstallToken + 79;
int i11 = i10 % 128;
stop = i11;
int i12 = i10 % 2;
Map<String, Object> map = aFa1aSDK.onAttributionFailure;
int i13 = i11 + 67;
updateServerUninstallToken = i13 % 128;
int i14 = i13 % 2;
return map;
}
public void AFKeystoreWrapper(Context context, Intent intent) {
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
if (context != null) {
aFb1aSDK.AFInAppEventParameterName.AFKeystoreWrapper = context.getApplicationContext();
}
AFa1tSDK.AFKeystoreWrapper();
Context context2 = this.AppsFlyerLib.AFInAppEventParameterName.AFKeystoreWrapper;
if (context2 == null) {
throw new IllegalStateException("Context must be set via setContext method before calling this dependency.");
}
AFb1cSDK aFb1cSDK = new AFb1cSDK(AFInAppEventType(context2));
Uri valueOf2 = AFa1tSDK.valueOf(intent);
boolean z10 = (valueOf2 == null || valueOf2.toString().isEmpty()) ? false : true;
if (!aFb1cSDK.valueOf("ddl_sent") || z10) {
AFa1tSDK.AFKeystoreWrapper().valueOf(new HashMap(), intent, context);
} else {
AFb1lSDK.AFInAppEventType("No direct deep link", null);
}
}
private void AFKeystoreWrapper(Context context, AFd1bSDK aFd1bSDK) {
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
if ((context != null ? '`' : 'P') != 'P') {
int i10 = updateServerUninstallToken + 49;
int i11 = i10 % 128;
stop = i11;
int i12 = i10 % 2;
AFb1fSDK aFb1fSDK = aFb1aSDK.AFInAppEventParameterName;
if ((context != null ? (char) 2 : (char) 4) == 2) {
int i13 = i11 + 33;
updateServerUninstallToken = i13 % 128;
int i14 = i13 % 2;
aFb1fSDK.AFKeystoreWrapper = context.getApplicationContext();
}
}
AFd1cSDK afInfoLog2 = AFInAppEventParameterName().afInfoLog();
AFd1eSDK valueOf2 = AFa1pSDK.valueOf(context);
if (afInfoLog2.values()) {
afInfoLog2.valueOf.put("api_name", aFd1bSDK.toString());
afInfoLog2.valueOf(valueOf2);
int i15 = stop + 45;
updateServerUninstallToken = i15 % 128;
int i16 = i15 % 2;
}
afInfoLog2.valueOf();
}
private void AFKeystoreWrapper(Context context, String str) {
AFe1uSDK aFe1uSDK = new AFe1uSDK();
if (context != null) {
aFe1uSDK.AFInAppEventType = (Application) context.getApplicationContext();
}
aFe1uSDK.afDebugLog = str;
if (str != null) {
int i10 = stop + 17;
updateServerUninstallToken = i10 % 128;
char c10 = i10 % 2 != 0 ? 'J' : '.';
int length = str.length();
if (c10 != '.') {
if (length <= 4) {
return;
}
} else if (length <= 5) {
return;
}
if (AFKeystoreWrapper(aFe1uSDK, AFInAppEventType(context))) {
AFKeystoreWrapper(this.AppsFlyerLib.AFInAppEventType(), new AFa1zSDK(this, aFe1uSDK, (byte) 0), 5L, TimeUnit.MILLISECONDS);
int i11 = updateServerUninstallToken + 77;
stop = i11 % 128;
int i12 = i11 % 2;
}
}
}
private void AFKeystoreWrapper(Context context, String str, Map<String, Object> map) {
Activity activity;
AFe1vSDK aFe1vSDK = new AFe1vSDK();
if ((context != null ? (char) 26 : 'Y') != 'Y') {
aFe1vSDK.AFInAppEventType = (Application) context.getApplicationContext();
}
aFe1vSDK.afInfoLog = str;
aFe1vSDK.AFInAppEventParameterName = map;
if (!(context instanceof Activity)) {
int i10 = stop + 51;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
activity = null;
} else {
int i12 = stop + 57;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
activity = (Activity) context;
}
AFKeystoreWrapper(aFe1vSDK, activity);
int i14 = stop + 9;
updateServerUninstallToken = i14 % 128;
if (i14 % 2 == 0) {
return;
}
throw null;
}
private void AFKeystoreWrapper(Context context, String str, Map<String, Object> map, String str2, String str3) {
AFa1qSDK aFe1ySDK;
if (str == null || str.trim().isEmpty()) {
aFe1ySDK = new AFe1ySDK();
int i10 = stop + 11;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
} else {
aFe1ySDK = new AFe1vSDK();
}
if ((context != null ? (char) 26 : (char) 2) == 26) {
int i12 = stop + 119;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
aFe1ySDK.AFInAppEventType = (Application) context.getApplicationContext();
int i14 = stop + 21;
updateServerUninstallToken = i14 % 128;
int i15 = i14 % 2;
}
aFe1ySDK.afInfoLog = str;
aFe1ySDK.AFInAppEventParameterName = map;
aFe1ySDK.afDebugLog = str2;
aFe1ySDK.AFKeystoreWrapper = str3;
valueOf(aFe1ySDK);
}
private void AFKeystoreWrapper(Context context, Map<String, Object> map) {
AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
if (appsFlyerProperties.getBoolean(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, false)) {
map.put(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, "true");
return;
}
Context context2 = this.AppsFlyerLib.AFInAppEventParameterName.AFKeystoreWrapper;
if (context2 == null) {
throw new IllegalStateException("Context must be set via setContext method before calling this dependency.");
}
AFb1cSDK aFb1cSDK = new AFb1cSDK(AFInAppEventType(context2));
String AFInAppEventParameterName2 = this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventParameterName(aFb1cSDK);
if (!AFb1nSDK.AFInAppEventType(AFInAppEventParameterName2)) {
map.put("imei", AFInAppEventParameterName2);
}
boolean z10 = appsFlyerProperties.getBoolean(AppsFlyerProperties.COLLECT_ANDROID_ID, false);
String str = null;
String valueOf2 = aFb1cSDK.valueOf("androidIdCached", null);
if (!z10 || !AFb1nSDK.AFInAppEventType(this.afErrorLog)) {
String str2 = this.afErrorLog;
if (str2 != null) {
str = str2;
}
} else if (afDebugLog(context)) {
try {
String string = Settings.Secure.getString(context.getContentResolver(), "android_id");
if (string != null) {
str = string;
} else if (valueOf2 != null) {
AFLogger.afDebugLog("use cached AndroidId: ".concat(valueOf2));
str = valueOf2;
}
} catch (Exception e10) {
if (valueOf2 != null) {
AFLogger.afDebugLog("use cached AndroidId: ".concat(valueOf2));
str = valueOf2;
}
AFLogger.afErrorLog(e10.getMessage(), e10);
}
}
if (str != null) {
aFb1cSDK.AFInAppEventParameterName("androidIdCached", str);
map.put("android_id", str);
} else {
AFLogger.afInfoLog("Android ID was not collected.");
}
AFa1rSDK AFKeystoreWrapper2 = AFb1ySDK.AFKeystoreWrapper(context);
if (AFKeystoreWrapper2 != null) {
HashMap hashMap = new HashMap();
hashMap.put("isManual", AFKeystoreWrapper2.values);
hashMap.put("val", AFKeystoreWrapper2.AFKeystoreWrapper);
Boolean bool = AFKeystoreWrapper2.valueOf;
if (bool != null) {
hashMap.put("isLat", bool);
}
map.put("oaid", hashMap);
}
}
private static void AFKeystoreWrapper(Context context, boolean z10, Map<String, Object> map, int i10) {
HashMap hashMap = new HashMap();
hashMap.put("cpu_abi", valueOf("ro.product.cpu.abi"));
hashMap.put("cpu_abi2", valueOf("ro.product.cpu.abi2"));
hashMap.put("arch", valueOf("os.arch"));
hashMap.put("build_display_id", valueOf("ro.build.display.id"));
if (!(!z10)) {
int i11 = stop + 103;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
AFInAppEventType(context, hashMap);
if (i10 <= 2) {
int i13 = stop + 11;
updateServerUninstallToken = i13 % 128;
int i14 = i13 % 2;
hashMap.putAll(AFa1bSDK.AFInAppEventType(context).values());
}
}
hashMap.put("dim", AFa1fSDK.AFInAppEventParameterName(context));
map.put("deviceData", hashMap);
}
private static void AFKeystoreWrapper(String str, boolean z10) {
int i10 = updateServerUninstallToken + 39;
stop = i10 % 128;
int i11 = i10 % 2;
AppsFlyerProperties.getInstance().set(str, z10);
int i12 = updateServerUninstallToken + 41;
stop = i12 % 128;
int i13 = i12 % 2;
}
private static void AFKeystoreWrapper(Map<String, Object> map, AFd1cSDK aFd1cSDK) {
HashMap hashMap = new HashMap(aFd1cSDK.values);
aFd1cSDK.values.clear();
aFd1cSDK.AFInAppEventType.AFInAppEventType("gcd");
if (!hashMap.isEmpty()) {
int i10 = updateServerUninstallToken + 77;
stop = i10 % 128;
int i11 = i10 % 2;
AFInAppEventParameterName(map).put("gcd", hashMap);
}
int i12 = updateServerUninstallToken + 91;
stop = i12 % 128;
if (!(i12 % 2 == 0)) {
return;
}
throw null;
}
private static void AFKeystoreWrapper(ScheduledExecutorService scheduledExecutorService, Runnable runnable, long j10, TimeUnit timeUnit) {
String str;
int i10 = updateServerUninstallToken + 81;
stop = i10 % 128;
try {
if ((i10 % 2 == 0 ? '=' : '@') != '=') {
scheduledExecutorService.schedule(runnable, j10, timeUnit);
} else {
scheduledExecutorService.schedule(runnable, j10, timeUnit);
int i11 = 52 / 0;
}
int i12 = stop + 105;
updateServerUninstallToken = i12 % 128;
if ((i12 % 2 != 0 ? '\\' : (char) 11) == 11) {
return;
}
throw null;
} catch (RejectedExecutionException e10) {
e = e10;
str = "scheduleJob failed with RejectedExecutionException Exception";
AFLogger.afErrorLog(str, e);
} catch (Throwable th) {
e = th;
str = "scheduleJob failed with Exception";
AFLogger.afErrorLog(str, e);
}
}
public static boolean AFKeystoreWrapper(Context context) {
try {
if ((GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) == 0 ? '3' : (char) 2) != 2) {
int i10 = stop + 123;
int i11 = i10 % 128;
updateServerUninstallToken = i11;
int i12 = i10 % 2;
int i13 = i11 + 5;
stop = i13 % 128;
int i14 = i13 % 2;
return true;
}
} catch (Throwable th) {
AFLogger.afErrorLog("WARNING: Google play services is unavailable. ", th);
}
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 boolean AFKeystoreWrapper(AFa1qSDK aFa1qSDK, SharedPreferences sharedPreferences) {
boolean z10;
boolean z11;
int i10 = stop + 119;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
int AFInAppEventType2 = AFInAppEventType(sharedPreferences, false);
if (AFInAppEventType2 == 1) {
if (!(aFa1qSDK instanceof AFe1zSDK)) {
int i12 = stop + 123;
updateServerUninstallToken = i12 % 128;
if ((i12 % 2 != 0 ? 'L' : 'H') != 'L') {
z10 = true;
if (!sharedPreferences.getBoolean(AppsFlyerProperties.NEW_REFERRER_SENT, false)) {
if (AFInAppEventType2 == 1) {
int i13 = stop + 29;
updateServerUninstallToken = i13 % 128;
int i14 = i13 % 2;
z11 = true;
return !z11 || z10;
}
}
z11 = false;
if (z11) {
}
}
z10 = false;
if (!sharedPreferences.getBoolean(AppsFlyerProperties.NEW_REFERRER_SENT, false)) {
}
z11 = false;
if (z11) {
}
}
}
int i15 = updateServerUninstallToken + 77;
stop = i15 % 128;
int i16 = i15 % 2;
z10 = false;
if (!sharedPreferences.getBoolean(AppsFlyerProperties.NEW_REFERRER_SENT, false)) {
}
z11 = false;
if (z11) {
}
}
private static boolean AFKeystoreWrapper(File file) {
if (file != null) {
int i10 = updateServerUninstallToken + 119;
stop = i10 % 128;
if ((i10 % 2 == 0 ? 'b' : 'D') != 'D') {
file.exists();
throw null;
} else if (file.exists()) {
int i11 = updateServerUninstallToken + 115;
stop = i11 % 128;
if (!(i11 % 2 == 0)) {
return false;
}
int i12 = 50 / 0;
return false;
}
}
return true;
}
private static void AFLogger(Context context) {
try {
if (!((context.getPackageManager().getPackageInfo(context.getPackageName(), 0).applicationInfo.flags & 32768) != 0)) {
return;
}
if (!(context.getResources().getIdentifier("appsflyer_backup_rules", "xml", context.getPackageName()) != 0)) {
AFLogger.valueOf("'allowBackup' is set to true; appsflyer_backup_rules.xml not detected.\nAppsFlyer shared preferences should be excluded from auto backup by adding: <exclude domain=\"sharedpref\" path=\"appsflyer-data\"/> to the Application's <full-backup-content> rules");
int i10 = stop + 19;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
return;
}
int i12 = stop + 99;
updateServerUninstallToken = i12 % 128;
if (i12 % 2 != 0) {
AFLogger.afInfoLog("appsflyer_backup_rules.xml detected, using AppsFlyer defined backup rules for AppsFlyer SDK data", true);
} else {
AFLogger.afInfoLog("appsflyer_backup_rules.xml detected, using AppsFlyer defined backup rules for AppsFlyer SDK data", true);
}
} catch (Exception e10) {
AFLogger.afRDLog("checkBackupRules Exception: ".concat(String.valueOf(e10)));
}
}
private boolean AFLogger() {
String str;
String format;
if (this.onInstallConversionFailureNative <= 0) {
if (!isStopped()) {
int i10 = stop + 77;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
str = "Sending first launch for this session!";
AFLogger.afInfoLog(str);
}
return false;
}
long currentTimeMillis = System.currentTimeMillis() - this.onInstallConversionFailureNative;
Locale locale = Locale.US;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss.SSS Z", locale);
String AFInAppEventType2 = AFInAppEventType(simpleDateFormat, this.onInstallConversionFailureNative);
String AFInAppEventType3 = AFInAppEventType(simpleDateFormat, this.AppsFlyer2dXConversionCallback);
if ((currentTimeMillis < this.onAppOpenAttributionNative ? (char) 28 : 'Q') != 'Q') {
int i12 = stop + 99;
updateServerUninstallToken = i12 % 128;
if (i12 % 2 != 0) {
isStopped();
throw null;
} else if (!isStopped()) {
int i13 = updateServerUninstallToken + 115;
stop = i13 % 128;
if (i13 % 2 == 0) {
Object[] objArr = new Object[3];
objArr[0] = AFInAppEventType2;
objArr[0] = AFInAppEventType3;
objArr[3] = Long.valueOf(currentTimeMillis);
objArr[4] = Long.valueOf(this.onAppOpenAttributionNative);
format = String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nThis launch is blocked: %s ms < %s ms", objArr);
} else {
format = String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nThis launch is blocked: %s ms < %s ms", AFInAppEventType2, AFInAppEventType3, Long.valueOf(currentTimeMillis), Long.valueOf(this.onAppOpenAttributionNative));
}
AFLogger.afInfoLog(format);
return true;
}
}
if ((!isStopped() ? (char) 17 : 'O') != 'O') {
int i14 = updateServerUninstallToken + 91;
stop = i14 % 128;
if (i14 % 2 == 0) {
Object[] objArr2 = new Object[4];
objArr2[1] = AFInAppEventType2;
objArr2[1] = AFInAppEventType3;
objArr2[4] = Long.valueOf(currentTimeMillis);
str = String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nSending launch (+%s ms)", objArr2);
} else {
str = String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nSending launch (+%s ms)", AFInAppEventType2, AFInAppEventType3, Long.valueOf(currentTimeMillis));
}
AFLogger.afInfoLog(str);
}
return false;
}
private String AFLogger$LogLevel(Context context) {
String str;
SharedPreferences AFInAppEventType2 = AFInAppEventType(context);
String AFKeystoreWrapper2 = AFKeystoreWrapper("preInstallName");
if (AFKeystoreWrapper2 != null) {
int i10 = updateServerUninstallToken + 69;
stop = i10 % 128;
if (i10 % 2 != 0) {
return AFKeystoreWrapper2;
}
throw null;
}
if (AFInAppEventType2.contains("preInstallName")) {
str = AFInAppEventType2.getString("preInstallName", null);
int i11 = updateServerUninstallToken + 101;
stop = i11 % 128;
int i12 = i11 % 2;
} else {
if (afInfoLog(context)) {
AFKeystoreWrapper2 = init(context);
if (AFKeystoreWrapper2 == null) {
AFKeystoreWrapper2 = AFInAppEventType(context, "AF_PRE_INSTALL_NAME");
}
}
if (AFKeystoreWrapper2 != null) {
valueOf(context).AFInAppEventParameterName("preInstallName", AFKeystoreWrapper2);
}
str = AFKeystoreWrapper2;
}
if (str != null) {
AFInAppEventParameterName("preInstallName", str);
}
return str;
}
private String AFVersionDeclaration(Context context) {
String str;
SharedPreferences AFInAppEventType2 = AFInAppEventType(context);
if (!AFInAppEventType2.contains("INSTALL_STORE")) {
if (afInfoLog(context)) {
int i10 = updateServerUninstallToken + 101;
stop = i10 % 128;
if (i10 % 2 == 0) {
afWarnLog(context);
throw null;
}
str = afWarnLog(context);
} else {
str = null;
}
valueOf(context).AFInAppEventParameterName("INSTALL_STORE", str);
int i11 = updateServerUninstallToken + 17;
stop = i11 % 128;
if (i11 % 2 != 0) {
return str;
}
throw null;
}
return AFInAppEventType2.getString("INSTALL_STORE", null);
}
private static File afDebugLog(String str) {
int i10 = stop + 67;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
if ((str != null ? (char) 6 : 'A') != 'A') {
try {
if (str.trim().length() > 0) {
File file = new File(str.trim());
int i12 = stop + 67;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
return file;
}
} catch (Throwable th) {
AFLogger.afErrorLog(th.getMessage(), th);
}
}
int i14 = stop + 53;
updateServerUninstallToken = i14 % 128;
int i15 = i14 % 2;
return null;
}
private static String afDebugLog() {
int i10 = stop + 47;
updateServerUninstallToken = i10 % 128;
if ((i10 % 2 != 0 ? '*' : '9') != '9') {
AFKeystoreWrapper(AppsFlyerProperties.APP_ID);
throw null;
}
String AFKeystoreWrapper2 = AFKeystoreWrapper(AppsFlyerProperties.APP_ID);
int i11 = stop + 7;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
return AFKeystoreWrapper2;
}
private static boolean afDebugLog(Context context) {
boolean z10;
if (!AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, false)) {
int i10 = stop + 45;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
if (!AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, false)) {
z10 = false;
if (!(!z10)) {
int i12 = updateServerUninstallToken + 125;
stop = i12 % 128;
int i13 = i12 % 2;
if (AFKeystoreWrapper(context)) {
return false;
}
}
return true;
}
}
z10 = true;
if (!(!z10)) {
}
return true;
}
private void afErrorLog() {
int i10 = stop + 113;
updateServerUninstallToken = i10 % 128;
if ((i10 % 2 != 0 ? '-' : 'D') == '-') {
AFc1aSDK.afInfoLog();
throw null;
} else if (AFc1aSDK.afInfoLog()) {
int i11 = stop + 49;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
} else {
AFc1xSDK AFInAppEventParameterName2 = AFInAppEventParameterName();
AFc1lSDK afRDLog = AFInAppEventParameterName2.afRDLog();
afRDLog.AFKeystoreWrapper.execute(new AFc1lSDK.AnonymousClass4(new AFc1aSDK(AFInAppEventParameterName2)));
}
}
private void afErrorLog(Context context) {
this.onAttributionFailure = new HashMap();
final long currentTimeMillis = System.currentTimeMillis();
final AFa1mSDK.AFa1vSDK aFa1vSDK = new AFa1mSDK.AFa1vSDK() {
@Override
public final void AFInAppEventType(String str) {
AFa1aSDK.AFKeystoreWrapper(AFa1aSDK.this).put("error", str);
}
@Override
public final void AFInAppEventType(String str, String str2, String str3) {
if (str != null) {
AFLogger.afInfoLog("Facebook Deferred AppLink data received: ".concat(str));
AFa1aSDK.AFKeystoreWrapper(AFa1aSDK.this).put("link", str);
if (str2 != null) {
AFa1aSDK.AFKeystoreWrapper(AFa1aSDK.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);
AFa1aSDK.AFKeystoreWrapper(AFa1aSDK.this).put("extras", hashMap);
}
} else {
AFa1aSDK.AFKeystoreWrapper(AFa1aSDK.this).put("link", "");
}
AFa1aSDK.AFKeystoreWrapper(AFa1aSDK.this).put("ttr", String.valueOf(System.currentTimeMillis() - currentTimeMillis));
}
};
try {
f0 f0Var = f0.f8419a;
f0.class.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
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1aSDK.afErrorLog(android.content.Context):void");
}
private static boolean afInfoLog(Context context) {
int i10 = stop + 43;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
if ((!AFInAppEventType(context).contains("appsFlyerCount") ? (char) 0 : '(') != 0) {
return false;
}
int i12 = updateServerUninstallToken;
int i13 = i12 + 17;
stop = i13 % 128;
int i14 = i13 % 2;
int i15 = i12 + 53;
stop = i15 % 128;
int i16 = i15 % 2;
return true;
}
private AFe1lSDK[] afInfoLog() {
int i10 = stop + 21;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
AFe1lSDK[] values2 = AFInAppEventParameterName().AFVersionDeclaration().values();
int i12 = updateServerUninstallToken + 59;
stop = i12 % 128;
if ((i12 % 2 == 0 ? '(' : '?') != '?') {
int i13 = 22 / 0;
return values2;
}
return values2;
}
private static void afRDLog(Context context) {
int i10;
if (AFb1wSDK.AFKeystoreWrapper()) {
AFLogger.afRDLog("OPPO device found");
i10 = 23;
} else {
i10 = 18;
}
int i11 = Build.VERSION.SDK_INT;
if (i11 < i10 || valueOf(AppsFlyerProperties.DISABLE_KEYSTORE, true)) {
StringBuilder sb = new StringBuilder("OS SDK is=");
sb.append(i11);
sb.append("; no KeyStore usage");
AFLogger.afRDLog(sb.toString());
return;
}
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()) {
String AFInAppEventType2 = aFKeystoreWrapper.AFInAppEventType();
synchronized (aFKeystoreWrapper.values) {
aFKeystoreWrapper.AFKeystoreWrapper++;
AFLogger.afInfoLog("Deleting key with alias: ".concat(String.valueOf(AFInAppEventType2)));
try {
synchronized (aFKeystoreWrapper.values) {
aFKeystoreWrapper.AFInAppEventParameterName.deleteEntry(AFInAppEventType2);
}
} catch (KeyStoreException e10) {
StringBuilder sb3 = new StringBuilder("Exception ");
sb3.append(e10.getMessage());
sb3.append(" occurred");
AFLogger.afErrorLog(sb3.toString(), e10);
}
}
} else {
aFKeystoreWrapper.valueOf = AFb1rSDK.AFInAppEventParameterName(new WeakReference(context));
aFKeystoreWrapper.AFKeystoreWrapper = 0;
}
aFKeystoreWrapper.AFInAppEventType(aFKeystoreWrapper.AFInAppEventType());
AFInAppEventParameterName("KSAppsFlyerId", aFKeystoreWrapper.values());
AFInAppEventParameterName("KSAppsFlyerRICounter", String.valueOf(aFKeystoreWrapper.AFInAppEventParameterName()));
}
private boolean afRDLog() {
int i10 = updateServerUninstallToken + 117;
stop = i10 % 128;
if (i10 % 2 == 0) {
int i11 = 20 / 0;
}
}
private String afWarnLog(Context context) {
int i10 = updateServerUninstallToken + 85;
stop = i10 % 128;
int i11 = i10 % 2;
String string = AppsFlyerProperties.getInstance().getString("api_store_value");
if (!(string != null)) {
return AFInAppEventType(context, "AF_STORE");
}
int i12 = stop + 117;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
return string;
}
private long getLevel(Context context) {
long j10;
long currentTimeMillis;
int i10 = stop + 71;
updateServerUninstallToken = i10 % 128;
if ((i10 % 2 != 0 ? '7' : '6') != '7') {
j10 = AFInAppEventType(context).getLong("AppsFlyerTimePassedSincePrevLaunch", 0L);
currentTimeMillis = System.currentTimeMillis();
valueOf(context).AFInAppEventType("AppsFlyerTimePassedSincePrevLaunch", currentTimeMillis);
if (j10 <= 0) {
return -1L;
}
} else {
j10 = AFInAppEventType(context).getLong("AppsFlyerTimePassedSincePrevLaunch", 0L);
currentTimeMillis = System.currentTimeMillis();
valueOf(context).AFInAppEventType("AppsFlyerTimePassedSincePrevLaunch", currentTimeMillis);
if (j10 <= 1) {
return -1L;
}
}
long j11 = currentTimeMillis - j10;
int i11 = stop + 113;
updateServerUninstallToken = i11 % 128;
return i11 % 2 != 0 ? j11 * 1000 : j11 / 1000;
}
private String init(Context context) {
File afDebugLog2 = afDebugLog(valueOf("ro.appsflyer.preinstall.path"));
if ((AFKeystoreWrapper(afDebugLog2) ? (char) 2 : '\t') != '\t') {
afDebugLog2 = afDebugLog(AFInAppEventType(context, "AF_PRE_INSTALL_PATH"));
}
if (AFKeystoreWrapper(afDebugLog2)) {
int i10 = updateServerUninstallToken + 95;
stop = i10 % 128;
if ((i10 % 2 == 0 ? (char) 3 : '9') != '9') {
afDebugLog("/data/local/tmp/pre_install.appsflyer");
throw null;
}
afDebugLog2 = afDebugLog("/data/local/tmp/pre_install.appsflyer");
}
if ((AFKeystoreWrapper(afDebugLog2) ? (char) 23 : '3') != '3') {
afDebugLog2 = afDebugLog("/etc/pre_install.appsflyer");
int i11 = updateServerUninstallToken + 57;
stop = i11 % 128;
int i12 = i11 % 2;
}
if ((AFKeystoreWrapper(afDebugLog2) ? '\'' : (char) 24) != 24) {
return null;
}
return AFInAppEventParameterName(afDebugLog2, context.getPackageName());
}
private static float onAppOpenAttributionNative(Context context) {
float f10;
int intExtra;
int intExtra2;
try {
Intent registerReceiver = context.getApplicationContext().registerReceiver(null, new IntentFilter("android.intent.action.BATTERY_CHANGED"));
intExtra = registerReceiver.getIntExtra("level", -1);
intExtra2 = registerReceiver.getIntExtra("scale", -1);
} catch (Throwable th) {
AFLogger.afErrorLog(th.getMessage(), th);
f10 = 1.0f;
}
if ((intExtra != -1 ? 'W' : '-') != '-') {
int i10 = stop + 17;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
if ((intExtra2 == -1 ? '\r' : (char) 15) != 15) {
return 50.0f;
}
f10 = (intExtra / intExtra2) * 100.0f;
int i12 = updateServerUninstallToken + 109;
stop = i12 % 128;
int i13 = i12 % 2;
return f10;
}
return 50.0f;
}
private static boolean onInstallConversionDataLoadedNative(Context context) {
ConnectivityManager connectivityManager;
Network[] allNetworks;
int length;
int i10;
NetworkCapabilities networkCapabilities;
boolean hasTransport;
boolean hasCapability;
if (context != null) {
int i11 = updateServerUninstallToken + 125;
stop = i11 % 128;
try {
if (i11 % 2 != 0 ? Build.VERSION.SDK_INT >= 23 : Build.VERSION.SDK_INT >= 25) {
int i12 = stop + 89;
updateServerUninstallToken = i12 % 128;
if (!(i12 % 2 == 0)) {
connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
allNetworks = connectivityManager.getAllNetworks();
length = allNetworks.length;
i10 = 1;
} else {
connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
allNetworks = connectivityManager.getAllNetworks();
length = allNetworks.length;
i10 = 0;
}
while (i10 < length) {
networkCapabilities = connectivityManager.getNetworkCapabilities(allNetworks[i10]);
hasTransport = networkCapabilities.hasTransport(4);
if (hasTransport) {
int i13 = stop + 17;
updateServerUninstallToken = i13 % 128;
int i14 = i13 % 2;
hasCapability = networkCapabilities.hasCapability(15);
if (!hasCapability) {
return true;
}
}
i10++;
}
return false;
}
ArrayList arrayList = new ArrayList();
Iterator it = Collections.list(NetworkInterface.getNetworkInterfaces()).iterator();
while (true) {
if (!it.hasNext()) {
return arrayList.contains("tun0");
}
NetworkInterface networkInterface = (NetworkInterface) it.next();
if (networkInterface.isUp()) {
int i15 = updateServerUninstallToken + 59;
stop = i15 % 128;
int i16 = i15 % 2;
arrayList.add(networkInterface.getName());
}
int i17 = updateServerUninstallToken + 107;
stop = i17 % 128;
int i18 = i17 % 2;
}
} catch (Exception e10) {
AFLogger.afErrorLog("Failed collecting ivc data", e10);
}
}
return false;
}
static Application valueOf(AFa1aSDK aFa1aSDK) {
int i10 = stop;
int i11 = i10 + 103;
updateServerUninstallToken = i11 % 128;
boolean z10 = i11 % 2 == 0;
Application application = aFa1aSDK.onConversionDataFail;
if (!z10) {
throw null;
}
int i12 = i10 + 39;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
return application;
}
private static String valueOf(String str) {
int i10 = stop + 3;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
try {
String str2 = (String) Class.forName("android.os.SystemProperties").getMethod("get", String.class).invoke(null, str);
int i12 = stop + 95;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
return str2;
} catch (Throwable th) {
AFLogger.afErrorLog(th.getMessage(), th);
return null;
}
}
static void valueOf() {
AppsFlyerConversionListener = (char) 54882;
onValidateInAppFailure = (char) 39700;
onValidateInApp = (char) 24542;
AppsFlyerInAppPurchaseValidatorListener = (char) 12536;
}
private static void valueOf(Context context, Map<String, Object> map) {
int i10 = stop + 79;
updateServerUninstallToken = i10 % 128;
boolean z10 = i10 % 2 == 0;
WindowManager windowManager = (WindowManager) context.getSystemService("window");
if (!z10) {
throw null;
}
if ((windowManager != null ? (char) 24 : (char) 5) != 5) {
int rotation = windowManager.getDefaultDisplay().getRotation();
map.put("sc_o", rotation != 0 ? rotation != 1 ? rotation != 2 ? rotation != 3 ? "" : "lr" : "pr" : "l" : "p");
int i11 = stop + 51;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
}
}
private static void valueOf(Context context, Map<String, Object> map, String str) {
int i10 = stop + 45;
updateServerUninstallToken = i10 % 128;
char c10 = i10 % 2 != 0 ? '.' : 'G';
SharedPreferences AFInAppEventType2 = AFInAppEventType(context);
try {
if (c10 == '.') {
AFInAppEventType2.edit();
AFInAppEventType2.getString("prev_event_name", null);
throw null;
}
SharedPreferences.Editor edit = AFInAppEventType2.edit();
String string = AFInAppEventType2.getString("prev_event_name", null);
if (string != null) {
JSONObject jSONObject = new JSONObject();
jSONObject.put("prev_event_timestamp", AFInAppEventType2.getLong("prev_event_timestamp", -1L));
jSONObject.put("prev_event_name", string);
map.put("prev_event", jSONObject);
int i11 = stop + 85;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
}
edit.putString("prev_event_name", str).putLong("prev_event_timestamp", System.currentTimeMillis()).apply();
} catch (Exception e10) {
AFLogger.afErrorLog("Error while processing previous event.", e10);
}
}
private static void valueOf(AppsFlyerConversionListener appsFlyerConversionListener) {
int i10 = stop + 125;
int i11 = i10 % 128;
updateServerUninstallToken = i11;
int i12 = i10 % 2;
if (appsFlyerConversionListener != null) {
valueOf = appsFlyerConversionListener;
return;
}
int i13 = i11 + 117;
stop = i13 % 128;
int i14 = i13 % 2;
}
static void valueOf(AFa1aSDK aFa1aSDK, AFa1qSDK aFa1qSDK) {
int i10 = stop + 19;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
aFa1aSDK.AFInAppEventType(aFa1qSDK);
int i12 = updateServerUninstallToken + 119;
stop = i12 % 128;
int i13 = i12 % 2;
}
private void valueOf(AFa1qSDK aFa1qSDK) {
int i10 = stop + 59;
updateServerUninstallToken = i10 % 128;
if (i10 % 2 != 0) {
String str = aFa1qSDK.afInfoLog;
throw null;
}
boolean z10 = (aFa1qSDK.afInfoLog == null ? (char) 19 : (char) 6) != 6;
if (AFKeystoreWrapper()) {
AFLogger.afInfoLog("CustomerUserId not set, reporting is disabled", true);
int i11 = updateServerUninstallToken + 29;
stop = i11 % 128;
int i12 = i11 % 2;
return;
}
if ((z10 ? '\t' : '9') == '\t') {
if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.LAUNCH_PROTECT_ENABLED, true)) {
int i13 = stop + 93;
updateServerUninstallToken = i13 % 128;
int i14 = i13 % 2;
if (!(!AFLogger())) {
AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.valueOf;
if (appsFlyerRequestListener != null) {
appsFlyerRequestListener.onError(RequestError.EVENT_TIMEOUT, AFb1eSDK.AFInAppEventType);
return;
}
return;
}
} else {
AFLogger.afInfoLog("Allowing multiple launches within a 5 second time window.");
}
this.onInstallConversionFailureNative = System.currentTimeMillis();
}
AFKeystoreWrapper(this.AppsFlyerLib.AFInAppEventType(), new AFa1zSDK(this, aFa1qSDK, (byte) 0), 0L, TimeUnit.MILLISECONDS);
}
private void valueOf(Map<String, Object> map) {
boolean z10;
int i10 = stop + 71;
updateServerUninstallToken = i10 % 128;
boolean z11 = false;
if ((i10 % 2 == 0) ? !AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, false) : !AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, false)) {
if (!AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, false)) {
z10 = false;
if (z10) {
int i11 = stop + 47;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
if (!(map.get("advertiserId") == null)) {
try {
if ((AFb1nSDK.AFInAppEventType(this.afErrorLog) ? '(' : ' ') != ' ') {
if ((map.remove("android_id") != null ? (char) 15 : 'I') == 15) {
int i13 = updateServerUninstallToken + 49;
stop = i13 % 128;
if ((i13 % 2 == 0 ? '-' : 'U') != 'U') {
AFLogger.afInfoLog("validateGaidAndIMEI :: removing: android_id");
throw null;
}
AFLogger.afInfoLog("validateGaidAndIMEI :: removing: android_id");
}
}
if (AFb1nSDK.AFInAppEventType(this.AppsFlyerLib.AFLogger$LogLevel().values)) {
int i14 = stop + 37;
updateServerUninstallToken = i14 % 128;
int i15 = i14 % 2;
if (map.remove("imei") == null) {
z11 = true;
}
if (!z11) {
AFLogger.afInfoLog("validateGaidAndIMEI :: removing: imei");
int i16 = updateServerUninstallToken + 91;
stop = i16 % 128;
int i17 = i16 % 2;
return;
}
return;
}
return;
} catch (Exception e10) {
AFLogger.afErrorLog("failed to remove IMEI or AndroidID key from params; ", e10);
return;
}
}
return;
}
return;
}
}
z10 = true;
if (z10) {
}
}
private static boolean valueOf(SharedPreferences sharedPreferences) {
int i10 = updateServerUninstallToken + 15;
stop = i10 % 128;
int i11 = i10 % 2;
boolean parseBoolean = Boolean.parseBoolean(sharedPreferences.getString("sentSuccessfully", null));
int i12 = stop + 29;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
return parseBoolean;
}
private static boolean valueOf(String str, boolean z10) {
int i10 = stop + 83;
updateServerUninstallToken = i10 % 128;
if (i10 % 2 != 0) {
AppsFlyerProperties.getInstance().getBoolean(str, z10);
throw null;
}
boolean z11 = AppsFlyerProperties.getInstance().getBoolean(str, z10);
int i11 = updateServerUninstallToken + 65;
stop = i11 % 128;
if ((i11 % 2 == 0 ? (char) 7 : ')') != ')') {
int i12 = 70 / 0;
return z11;
}
return z11;
}
private static int values(SharedPreferences sharedPreferences) {
int i10 = updateServerUninstallToken + 31;
stop = i10 % 128;
int AFInAppEventType2 = AFInAppEventType(sharedPreferences, "appsFlyerAdRevenueCount", (i10 % 2 == 0 ? '7' : ',') == ',');
int i11 = stop + 21;
updateServerUninstallToken = i11 % 128;
if ((i11 % 2 != 0 ? (char) 16 : 'N') == 'N') {
return AFInAppEventType2;
}
throw null;
}
private static int values(SharedPreferences sharedPreferences, boolean z10) {
int i10 = updateServerUninstallToken + 51;
stop = i10 % 128;
if (i10 % 2 != 0) {
return AFInAppEventType(sharedPreferences, "appsFlyerInAppEventCount", z10);
}
AFInAppEventType(sharedPreferences, "appsFlyerInAppEventCount", z10);
throw null;
}
public static AFa1aSDK values() {
int i10 = updateServerUninstallToken + 27;
int i11 = i10 % 128;
stop = i11;
int i12 = i10 % 2;
AFa1aSDK aFa1aSDK = AFVersionDeclaration;
int i13 = i11 + 53;
updateServerUninstallToken = i13 % 128;
if (i13 % 2 != 0) {
throw null;
}
return aFa1aSDK;
}
static void values(AFa1aSDK aFa1aSDK) {
int i10 = stop + 61;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
aFa1aSDK.afErrorLog();
int i12 = stop + 59;
updateServerUninstallToken = i12 % 128;
if (i12 % 2 == 0) {
return;
}
throw null;
}
private static void values(String str) {
try {
if (!(new JSONObject(str).has("pid"))) {
AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
return;
}
int i10 = stop + 99;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
AFInAppEventParameterName("preInstallName", str);
int i12 = stop + 7;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
} catch (JSONException e10) {
AFLogger.afErrorLog("Error parsing JSON for preinstall", e10);
}
}
private static void values(Map<String, Object> map) {
String string = AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.ONELINK_ID);
String string2 = AppsFlyerProperties.getInstance().getString("onelinkVersion");
if (string != null) {
int i10 = updateServerUninstallToken + 89;
stop = i10 % 128;
int i11 = i10 % 2;
map.put("onelink_id", string);
int i12 = stop + 75;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
}
if ((string2 != null ? '+' : '*') == '+') {
int i14 = updateServerUninstallToken + 31;
stop = i14 % 128;
int i15 = i14 % 2;
map.put("onelink_ver", string2);
}
int i16 = stop + 39;
updateServerUninstallToken = i16 % 128;
if (i16 % 2 == 0) {
return;
}
throw null;
}
public final AFc1xSDK AFInAppEventParameterName() {
int i10 = stop;
int i11 = i10 + 79;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
int i13 = i10 + 9;
updateServerUninstallToken = i13 % 128;
int i14 = i13 % 2;
return aFb1aSDK;
}
public final void AFInAppEventParameterName(Context context) {
int i10 = stop + 15;
int i11 = i10 % 128;
updateServerUninstallToken = i11;
int i12 = i10 % 2;
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
if ((context != null ? '5' : '[') == '5') {
int i13 = i11 + 17;
stop = i13 % 128;
if (i13 % 2 == 0) {
AFb1fSDK aFb1fSDK = aFb1aSDK.AFInAppEventParameterName;
throw null;
}
AFb1fSDK aFb1fSDK2 = aFb1aSDK.AFInAppEventParameterName;
if ((context != null ? (char) 7 : 'A') != 'A') {
aFb1fSDK2.AFKeystoreWrapper = context.getApplicationContext();
}
}
int i14 = updateServerUninstallToken + 71;
stop = i14 % 128;
int i15 = i14 % 2;
}
public final void AFInAppEventParameterName(Context context, Intent intent) {
if (intent.getStringExtra("appsflyer_preinstall") != null) {
int i10 = updateServerUninstallToken + 95;
stop = i10 % 128;
int i11 = i10 % 2;
values(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 ? '[' : ')') != ')') {
int i12 = stop + 45;
updateServerUninstallToken = i12 % 128;
if (i12 % 2 == 0) {
valueOf(context).AFInAppEventParameterName("referrer", stringExtra);
AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
appsFlyerProperties.set("AF_REFERRER", stringExtra);
appsFlyerProperties.AFInAppEventParameterName = stringExtra;
if (!AppsFlyerProperties.getInstance().values()) {
return;
}
} else {
valueOf(context).AFInAppEventParameterName("referrer", stringExtra);
AppsFlyerProperties appsFlyerProperties2 = AppsFlyerProperties.getInstance();
appsFlyerProperties2.set("AF_REFERRER", stringExtra);
appsFlyerProperties2.AFInAppEventParameterName = stringExtra;
int i13 = 43 / 0;
if (!(AppsFlyerProperties.getInstance().values())) {
return;
}
}
AFLogger.afInfoLog("onReceive: isLaunchCalled");
AFKeystoreWrapper(context, AFd1bSDK.onReceive);
AFKeystoreWrapper(context, stringExtra);
}
}
final void AFInAppEventParameterName(WeakReference<Context> weakReference) {
int i10 = stop + 77;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
if (weakReference.get() == null) {
return;
}
AFLogger.afInfoLog("app went to background");
SharedPreferences AFInAppEventType2 = AFInAppEventType(weakReference.get());
AppsFlyerProperties.getInstance().saveProperties(AFInAppEventType2);
long j10 = AFInAppEventParameterName().afInfoLog().afWarnLog;
HashMap hashMap = new HashMap();
String str = this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventType;
if (!(str != null)) {
AFLogger.afWarnLog("[callStats] AppsFlyer's SDK cannot send any event without providing DevKey.");
return;
}
String AFKeystoreWrapper2 = AFKeystoreWrapper("KSAppsFlyerId");
if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, false)) {
int i12 = updateServerUninstallToken + 111;
stop = i12 % 128;
int i13 = i12 % 2;
hashMap.put(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, "true");
}
AFa1rSDK valueOf2 = AFb1ySDK.valueOf(weakReference.get().getContentResolver());
if (valueOf2 != null) {
hashMap.put("amazon_aid", valueOf2.AFKeystoreWrapper);
hashMap.put("amazon_aid_limit", String.valueOf(valueOf2.valueOf));
int i14 = stop + 25;
updateServerUninstallToken = i14 % 128;
int i15 = i14 % 2;
}
String string = AppsFlyerProperties.getInstance().getString("advertiserId");
if ((string != null ? 'P' : '=') != '=') {
hashMap.put("advertiserId", string);
}
hashMap.put("app_id", weakReference.get().getPackageName());
hashMap.put("devkey", str);
hashMap.put("uid", AFb1rSDK.AFInAppEventParameterName(weakReference));
hashMap.put("time_in_app", String.valueOf(j10));
hashMap.put("statType", "user_closed_app");
hashMap.put("platform", "Android");
hashMap.put("launch_counter", Integer.toString(AFInAppEventType(AFInAppEventType2, false)));
hashMap.put(AppsFlyerProperties.CHANNEL, values(weakReference.get()));
if (AFKeystoreWrapper2 == null) {
AFKeystoreWrapper2 = "";
}
hashMap.put("originalAppsflyerId", AFKeystoreWrapper2);
if (!this.onResponseErrorNative) {
AFLogger.afDebugLog("Stats call is disabled, ignore ...");
return;
}
AFe1sSDK aFe1sSDK = new AFe1sSDK();
((AFd1dSDK) aFe1sSDK).init = isStopped();
AFd1uSDK aFd1uSDK = new AFd1uSDK((AFe1sSDK) aFe1sSDK.AFInAppEventType(hashMap).AFInAppEventType(String.format(afDebugLog, AppsFlyerLib.getInstance().getHostPrefix(), values().getHostName())), this.AppsFlyerLib);
AFc1lSDK afRDLog = this.AppsFlyerLib.afRDLog();
afRDLog.AFKeystoreWrapper.execute(new AFc1lSDK.AnonymousClass4(aFd1uSDK));
}
public final void AFInAppEventType(Context context, Map<String, Object> map, Uri uri) {
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
if (context != null) {
AFb1fSDK aFb1fSDK = aFb1aSDK.AFInAppEventParameterName;
if (context != null) {
int i10 = updateServerUninstallToken + 19;
stop = i10 % 128;
int i11 = i10 % 2;
aFb1fSDK.AFKeystoreWrapper = context.getApplicationContext();
}
}
if (!map.containsKey("af_deeplink")) {
String AFInAppEventParameterName2 = AFInAppEventParameterName(uri.toString());
AFa1tSDK AFKeystoreWrapper2 = AFa1tSDK.AFKeystoreWrapper();
String str = AFKeystoreWrapper2.AFKeystoreWrapper;
if (!(str == null)) {
int i12 = stop + 91;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
if ((AFKeystoreWrapper2.afInfoLog != null ? '4' : '1') != '1') {
if ((AFInAppEventParameterName2.contains(str) ? (char) 4 : (char) 15) == 4) {
Uri.Builder buildUpon = Uri.parse(AFInAppEventParameterName2).buildUpon();
Uri.Builder buildUpon2 = Uri.EMPTY.buildUpon();
for (Map.Entry<String, String> entry : AFKeystoreWrapper2.afInfoLog.entrySet()) {
int i14 = updateServerUninstallToken + 7;
stop = i14 % 128;
int i15 = i14 % 2;
buildUpon.appendQueryParameter(entry.getKey(), entry.getValue());
buildUpon2.appendQueryParameter(entry.getKey(), entry.getValue());
}
AFInAppEventParameterName2 = buildUpon.build().toString();
map.put("appended_query_params", buildUpon2.build().getEncodedQuery());
}
}
}
map.put("af_deeplink", AFInAppEventParameterName2);
}
HashMap hashMap = new HashMap();
hashMap.put("link", uri.toString());
AFc1bSDK aFc1bSDK = new AFc1bSDK(AFInAppEventParameterName(), UUID.randomUUID(), uri);
if (!(aFc1bSDK.init() ? false : true)) {
map.put("isBrandedDomain", Boolean.TRUE);
}
AFb1wSDK.AFKeystoreWrapper(context, hashMap, uri);
if (!aFc1bSDK.AFVersionDeclaration()) {
AFb1lSDK.AFInAppEventParameterName(hashMap);
return;
}
aFc1bSDK.afRDLog = AFKeystoreWrapper(hashMap);
AFc1lSDK afRDLog = this.AppsFlyerLib.afRDLog();
afRDLog.AFKeystoreWrapper.execute(new AFc1lSDK.AnonymousClass4(aFc1bSDK));
}
public final Map<String, Object> AFKeystoreWrapper(AFa1qSDK aFa1qSDK) {
String str;
String str2;
Object obj;
String str3;
AppsFlyerProperties appsFlyerProperties;
boolean z10;
AFb1iSDK aFb1iSDK;
Object string;
String str4;
String AFKeystoreWrapper2;
Object AFKeystoreWrapper3;
String str5;
AppsFlyerProperties appsFlyerProperties2;
String str6;
AFa1rSDK valueOf2;
long availableBlocks;
long blockCount;
AFa1eSDK aFa1eSDK;
Object obj2;
long blockSizeLong;
long availableBlocksLong;
long blockCountLong;
PackageInfo packageInfo;
Object AFInAppEventParameterName2;
Context context = aFa1qSDK.AFInAppEventType;
String str7 = this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventType;
String str8 = aFa1qSDK.afInfoLog;
Map map = aFa1qSDK.AFInAppEventParameterName;
if (map == null) {
map = new HashMap();
}
Object jSONObject = new JSONObject(map).toString();
String str9 = aFa1qSDK.afDebugLog;
SharedPreferences AFInAppEventType2 = AFInAppEventType(context);
boolean AFInAppEventType3 = aFa1qSDK.AFInAppEventType();
Object obj3 = aFa1qSDK.AFKeystoreWrapper;
Map<String, Object> map2 = aFa1qSDK.values;
AFb1ySDK.values(context, map2);
Boolean bool = AFb1ySDK.AFInAppEventType;
if (bool == null || bool.booleanValue()) {
str = "Exception while collecting facebook's attribution ID. ";
str2 = AppsFlyerProperties.APP_ID;
obj = obj3;
} else {
obj = obj3;
Map<String, Object> AFInAppEventParameterName3 = AFInAppEventParameterName(map2);
str = "Exception while collecting facebook's attribution ID. ";
str2 = AppsFlyerProperties.APP_ID;
AFInAppEventParameterName3.put("ad_ids_disabled", Boolean.TRUE);
}
long time = new Date().getTime();
map2.put(AFInAppEventParameterName("\ue732Ⲹ凑ꔣ警ꤢ᪃뎶벹욍ヌ\uef43", 12 - (ViewConfiguration.getKeyRepeatTimeout() >> 16)).intern(), Long.toString(time));
Object AFInAppEventParameterName4 = AFa1xSDK.AFInAppEventParameterName(context, time);
if (AFInAppEventParameterName4 != null) {
map2.put("cksm_v1", AFInAppEventParameterName4);
}
try {
if (isStopped()) {
str3 = "Reporting has been stopped";
} else {
StringBuilder sb = new StringBuilder("******* sendTrackingWithEvent: ");
sb.append(AFInAppEventType3 ? "Launch" : str8);
str3 = sb.toString();
}
AFLogger.afInfoLog(str3);
AFa1pSDK level = AFInAppEventParameterName().getLevel();
try {
if (!new File(level.AFInAppEventParameterName.AFKeystoreWrapper.getFilesDir(), "AFRequestCache").exists()) {
new File(level.AFInAppEventParameterName.AFKeystoreWrapper.getFilesDir(), "AFRequestCache").mkdir();
}
} catch (Exception e10) {
AFLogger.afErrorLog("CACHE: Could not create cache directory", e10);
}
try {
List asList = Arrays.asList(context.getPackageManager().getPackageInfo(context.getPackageName(), Utils.CONTINUOUS_EVENT).requestedPermissions);
if (!asList.contains("android.permission.INTERNET")) {
AFLogger.afWarnLog("Permission android.permission.INTERNET is missing in the AndroidManifest.xml");
}
if (!asList.contains("android.permission.ACCESS_NETWORK_STATE")) {
AFLogger.afWarnLog("Permission android.permission.ACCESS_NETWORK_STATE is missing in the AndroidManifest.xml");
}
if (Build.VERSION.SDK_INT > 32 && !asList.contains("com.google.android.gms.permission.AD_ID")) {
AFLogger.afWarnLog("Permission com.google.android.gms.permission.AD_ID is missing in the AndroidManifest.xml");
}
} catch (Exception e11) {
AFLogger.afErrorLog("Exception while validation permissions. ", e11);
}
map2.put("af_events_api", AFInAppEventParameterName("\udc4bﱪ", (Process.myTid() >> 22) + 1).intern());
map2.put(AFInAppEventParameterName("ᒫ⧙觌ﯥ댷翜", 5 - TextUtils.getCapsMode("", 0, 0)).intern(), Build.BRAND);
map2.put("device", Build.DEVICE);
map2.put("product", Build.PRODUCT);
int i10 = Build.VERSION.SDK_INT;
map2.put("sdk", Integer.toString(i10));
map2.put("model", Build.MODEL);
map2.put("deviceType", Build.TYPE);
valueOf(context, map2);
appsFlyerProperties = AppsFlyerProperties.getInstance();
AFb1iSDK aFb1iSDK2 = new AFb1iSDK(context);
AFd1cSDK afInfoLog2 = AFInAppEventParameterName().afInfoLog();
if (AFInAppEventType3) {
if (afInfoLog(context)) {
if (appsFlyerProperties.isOtherSdkStringDisabled()) {
aFb1iSDK = aFb1iSDK2;
} else {
aFb1iSDK = aFb1iSDK2;
map2.put("batteryLevel", String.valueOf(onAppOpenAttributionNative(context)));
}
afRDLog(context);
UiModeManager uiModeManager = (UiModeManager) (i10 >= 23 ? context.getSystemService(UiModeManager.class) : context.getSystemService("uimode"));
if (uiModeManager != null && uiModeManager.getCurrentModeType() == 4) {
map2.put("tv", Boolean.TRUE);
}
if (AFd1iSDK.AFKeystoreWrapper(context)) {
map2.put("inst_app", Boolean.TRUE);
}
} else {
aFb1iSDK = aFb1iSDK2;
}
map2.put("timepassedsincelastlaunch", Long.toString(getLevel(context)));
values(map2);
AFKeystoreWrapper(map2, afInfoLog2);
Object obj4 = this.onDeepLinking;
if (obj4 != null) {
map2.put("phone", obj4);
}
if (!TextUtils.isEmpty(str9)) {
map2.put("referrer", str9);
}
Object string2 = AFInAppEventType2.getString("extraReferrers", null);
if (string2 != null) {
map2.put("extraReferrers", string2);
}
String referrer = appsFlyerProperties.getReferrer(context);
if (!TextUtils.isEmpty(referrer) && map2.get("referrer") == null) {
map2.put("referrer", referrer);
}
long j10 = afInfoLog2.afWarnLog;
z10 = AFInAppEventType3;
if (j10 != 0) {
map2.put("prev_session_dur", Long.valueOf(j10));
}
Application application = AFb1kSDK.AFInAppEventParameterName;
map2.put("exception_number", Long.valueOf(application == null ? -1L : AFInAppEventType(application).getLong("exception_number", 0L)));
AFb1gSDK aFb1gSDK = this.onResponseError;
if (aFb1gSDK != null) {
if (!aFb1gSDK.AFInAppEventType.isEmpty()) {
map2.put("partner_data", aFb1gSDK.AFInAppEventType);
}
if (!aFb1gSDK.valueOf.isEmpty()) {
AFInAppEventParameterName(map2).put("partner_data", aFb1gSDK.valueOf);
aFb1gSDK.valueOf = new HashMap();
}
}
} else {
z10 = AFInAppEventType3;
aFb1iSDK = aFb1iSDK2;
valueOf(context, map2, str8);
}
Object AFKeystoreWrapper4 = AFKeystoreWrapper("KSAppsFlyerId");
String AFKeystoreWrapper5 = AFKeystoreWrapper("KSAppsFlyerRICounter");
if (AFKeystoreWrapper4 != null && AFKeystoreWrapper5 != null && Integer.valueOf(AFKeystoreWrapper5).intValue() > 0) {
map2.put("reinstallCounter", AFKeystoreWrapper5);
map2.put("originalAppsflyerId", AFKeystoreWrapper4);
}
Object AFKeystoreWrapper6 = AFKeystoreWrapper(AppsFlyerProperties.ADDITIONAL_CUSTOM_DATA);
if (AFKeystoreWrapper6 != null) {
map2.put("customData", AFKeystoreWrapper6);
}
try {
String installerPackageName = context.getPackageManager().getInstallerPackageName(context.getPackageName());
if (installerPackageName != null) {
map2.put("installer_package", installerPackageName);
}
} catch (Exception e12) {
AFLogger.afErrorLog("Exception while getting the app's installer package. ", e12);
}
String string3 = appsFlyerProperties.getString(AppsFlyerProperties.EXTENSION);
if (string3 != null && string3.length() > 0) {
map2.put(AppsFlyerProperties.EXTENSION, string3);
}
String values2 = values(context);
String AFKeystoreWrapper7 = AFKeystoreWrapper(valueOf(context), values2);
if ((AFKeystoreWrapper7 != null && !AFKeystoreWrapper7.equals(values2)) || (AFKeystoreWrapper7 == null && values2 != null)) {
map2.put("af_latestchannel", values2);
}
String AFVersionDeclaration2 = AFVersionDeclaration(context);
if (AFVersionDeclaration2 != null) {
map2.put("af_installstore", AFVersionDeclaration2.toLowerCase());
}
String AFLogger$LogLevel2 = AFLogger$LogLevel(context);
if (AFLogger$LogLevel2 != null) {
map2.put("af_preinstall_name", AFLogger$LogLevel2.toLowerCase());
}
String afWarnLog2 = afWarnLog(context);
if (afWarnLog2 != null) {
map2.put("af_currentstore", afWarnLog2.toLowerCase());
}
if (str7 == null || str7.length() <= 0) {
String str10 = this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventType;
if (str10 == null || str10.length() <= 0) {
AFLogger.afInfoLog("AppsFlyer dev key is missing!!! Please use AppsFlyerLib.getInstance().setAppsFlyerKey(...) to set it. ");
AFLogger.afInfoLog("AppsFlyer will not track this event.");
return null;
}
map2.put("appsflyerKey", str10);
} else {
map2.put("appsflyerKey", str7);
}
Object AFInAppEventType4 = AFInAppEventType();
if (AFInAppEventType4 != null) {
map2.put("appUserId", AFInAppEventType4);
}
string = appsFlyerProperties.getString(AppsFlyerProperties.USER_EMAILS);
} catch (Throwable th) {
AFLogger.afErrorLog(th.getLocalizedMessage(), th, true);
}
if (string == null) {
String AFKeystoreWrapper8 = AFKeystoreWrapper(AppsFlyerProperties.USER_EMAIL);
if (AFKeystoreWrapper8 != null) {
str4 = "sha1_el";
string = AFb1sSDK.AFInAppEventType(AFKeystoreWrapper8);
}
if (str8 != null) {
map2.put("eventName", str8);
map2.put("eventValue", jSONObject);
}
if (afDebugLog() != null) {
map2.put(str2, AFKeystoreWrapper(str2));
}
AFKeystoreWrapper2 = AFKeystoreWrapper(AppsFlyerProperties.CURRENCY_CODE);
if (AFKeystoreWrapper2 != null) {
if (AFKeystoreWrapper2.length() != 3) {
StringBuilder sb2 = new StringBuilder("WARNING: currency code should be 3 characters!!! '");
sb2.append(AFKeystoreWrapper2);
sb2.append("' is not a legal value.");
AFLogger.afWarnLog(sb2.toString());
}
map2.put("currency", AFKeystoreWrapper2);
}
AFKeystoreWrapper3 = AFKeystoreWrapper(AppsFlyerProperties.IS_UPDATE);
if (AFKeystoreWrapper3 != null) {
map2.put("isUpdate", AFKeystoreWrapper3);
}
map2.put("af_preinstalled", Boolean.toString(isPreInstalledApp(context)));
if (appsFlyerProperties.getBoolean(AppsFlyerProperties.COLLECT_FACEBOOK_ATTR_ID, true)) {
try {
context.getPackageManager().getApplicationInfo("com.facebook.katana", 0);
str5 = getAttributionId(context);
} catch (PackageManager.NameNotFoundException unused) {
AFLogger.afWarnLog(str);
str5 = null;
}
if (str5 != null) {
map2.put("fb", str5);
}
}
AFKeystoreWrapper(context, map2);
AFInAppEventParameterName2 = AFb1rSDK.AFInAppEventParameterName(new WeakReference(context));
if (AFInAppEventParameterName2 != null) {
map2.put("uid", AFInAppEventParameterName2);
}
map2.put("lang", Locale.getDefault().getDisplayLanguage());
map2.put("lang_code", Locale.getDefault().getLanguage());
map2.put("country", Locale.getDefault().getCountry());
map2.put("platformextension", this.onConversionDataSuccess.valueOf());
AFInAppEventParameterName(context, map2);
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd_HHmmssZ", Locale.US);
map2.put("installDate", AFInAppEventType(simpleDateFormat, context.getPackageManager().getPackageInfo(context.getPackageName(), 0).firstInstallTime));
packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
if (packageInfo.versionCode > AFInAppEventType2.getInt("versionCode", 0)) {
try {
valueOf(context).AFInAppEventType("versionCode", packageInfo.versionCode);
} catch (Throwable th2) {
Throwable th3 = th2;
appsFlyerProperties2 = appsFlyerProperties;
str6 = str8;
AFLogger.afErrorLog("Exception while collecting app version data ", th3, true);
this.onResponseNative = AFd1lSDK.valueOf(context);
StringBuilder sb3 = new StringBuilder("didConfigureTokenRefreshService=");
sb3.append(this.onResponseNative);
AFLogger.afDebugLog(sb3.toString());
if (!this.onResponseNative) {
}
if (z10) {
}
if (!z10) {
}
if (AFKeystoreWrapper("advertiserId") == null) {
}
valueOf2 = AFb1ySDK.valueOf(context.getContentResolver());
if (valueOf2 != null) {
}
map2.put("registeredUninstall", Boolean.valueOf(AFd1lSDK.valueOf(AFInAppEventType2)));
int AFInAppEventType5 = AFInAppEventType(AFInAppEventType2, z10);
map2.put("counter", Integer.toString(AFInAppEventType5));
map2.put("iaecounter", Integer.toString(values(AFInAppEventType2, str6 != null)));
if (z10) {
}
map2.put("isFirstCall", Boolean.toString(!valueOf(AFInAppEventType2)));
AFKeystoreWrapper(context, z10, map2, AFInAppEventType5);
new AFb1sSDK();
map2.put("af_v", AFb1sSDK.AFInAppEventType(map2));
new AFb1sSDK();
map2.put("af_v2", AFb1sSDK.AFInAppEventParameterName(map2));
map2.put("ivc", Boolean.valueOf(onInstallConversionDataLoadedNative(context)));
if (AFInAppEventType2.contains("is_stop_tracking_used")) {
}
HashMap hashMap = new HashMap();
hashMap.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
hashMap.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
map2.put("cell", hashMap);
AFb1iSDK aFb1iSDK3 = aFb1iSDK;
map2.put("sig", AFb1wSDK.valueOf(aFb1iSDK3.AFInAppEventParameterName.getPackageManager(), aFb1iSDK3.AFInAppEventParameterName.getPackageName()));
map2.put("last_boot_time", Long.valueOf(System.currentTimeMillis() - SystemClock.elapsedRealtime()));
StatFs statFs = new StatFs(Environment.getDataDirectory().getAbsolutePath());
if (Build.VERSION.SDK_INT >= 18) {
}
double pow = Math.pow(2.0d, 20.0d);
double d10 = availableBlocks;
Double.isNaN(d10);
long j11 = (long) (d10 / pow);
double d11 = blockCount;
Double.isNaN(d11);
long j12 = (long) (d11 / pow);
StringBuilder sb4 = new StringBuilder();
sb4.append(j11);
sb4.append("/");
sb4.append(j12);
map2.put("disk", sb4.toString());
aFa1eSDK = this.afRDLog;
if (aFa1eSDK != null) {
}
return map2;
}
}
map2.put("app_version_code", Integer.toString(packageInfo.versionCode));
map2.put("app_version_name", packageInfo.versionName);
long j13 = packageInfo.firstInstallTime;
long j14 = packageInfo.lastUpdateTime;
appsFlyerProperties2 = appsFlyerProperties;
Locale locale = Locale.US;
str6 = str8;
map2.put("date1", new SimpleDateFormat("yyyy-MM-dd_HHmmssZ", locale).format(new Date(j13)));
map2.put("date2", new SimpleDateFormat("yyyy-MM-dd_HHmmssZ", locale).format(new Date(j14)));
map2.put(AFInAppEventParameterName("굕叭珏찏奸펦軉\uea38풌阫劣䈍톟ꤔ햄쫼", 16 - (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1))).intern(), AFKeystoreWrapper(simpleDateFormat, context));
this.onResponseNative = AFd1lSDK.valueOf(context);
StringBuilder sb32 = new StringBuilder("didConfigureTokenRefreshService=");
sb32.append(this.onResponseNative);
AFLogger.afDebugLog(sb32.toString());
if (!this.onResponseNative) {
map2.put("tokenRefreshConfigured", Boolean.FALSE);
}
if (z10) {
if (this.onAttributionFailureNative != null) {
if (map2.get("af_deeplink") != null) {
AFLogger.afDebugLog("Skip 'af' payload as deeplink was found by path");
} else {
JSONObject jSONObject2 = new JSONObject(this.onAttributionFailureNative);
jSONObject2.put("isPush", "true");
map2.put("af_deeplink", jSONObject2.toString());
}
}
this.onAttributionFailureNative = null;
map2.put("open_referrer", obj);
}
if (!z10) {
try {
AFa1bSDK AFInAppEventType6 = AFa1bSDK.AFInAppEventType(context);
Map<? extends String, ? extends Object> concurrentHashMap = new ConcurrentHashMap<>();
List<Map<String, Object>> AFInAppEventParameterName5 = AFInAppEventType6.AFInAppEventParameterName();
concurrentHashMap.put("sensors", !AFInAppEventParameterName5.isEmpty() ? new AFa1sSDK().AFInAppEventType(AFInAppEventParameterName5) : "na");
map2.putAll(concurrentHashMap);
} catch (Exception e13) {
StringBuilder sb5 = new StringBuilder("Unexpected exception from AFSensorManager: ");
sb5.append(e13.getMessage());
AFLogger.afRDLog(sb5.toString());
}
}
if (AFKeystoreWrapper("advertiserId") == null) {
AFb1ySDK.values(context, map2);
map2.put("GAID_retry", String.valueOf(AFKeystoreWrapper("advertiserId") != null));
}
valueOf2 = AFb1ySDK.valueOf(context.getContentResolver());
if (valueOf2 != null) {
map2.put("amazon_aid", valueOf2.AFKeystoreWrapper);
map2.put("amazon_aid_limit", String.valueOf(valueOf2.valueOf));
}
map2.put("registeredUninstall", Boolean.valueOf(AFd1lSDK.valueOf(AFInAppEventType2)));
int AFInAppEventType52 = AFInAppEventType(AFInAppEventType2, z10);
map2.put("counter", Integer.toString(AFInAppEventType52));
map2.put("iaecounter", Integer.toString(values(AFInAppEventType2, str6 != null)));
if (z10 && AFInAppEventType52 == 1) {
appsFlyerProperties2.AFKeystoreWrapper = true;
}
map2.put("isFirstCall", Boolean.toString(!valueOf(AFInAppEventType2)));
AFKeystoreWrapper(context, z10, map2, AFInAppEventType52);
new AFb1sSDK();
map2.put("af_v", AFb1sSDK.AFInAppEventType(map2));
new AFb1sSDK();
map2.put("af_v2", AFb1sSDK.AFInAppEventParameterName(map2));
map2.put("ivc", Boolean.valueOf(onInstallConversionDataLoadedNative(context)));
if (AFInAppEventType2.contains("is_stop_tracking_used")) {
map2.put("istu", String.valueOf(AFInAppEventType2.getBoolean("is_stop_tracking_used", false)));
}
HashMap hashMap2 = new HashMap();
hashMap2.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
hashMap2.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
map2.put("cell", hashMap2);
AFb1iSDK aFb1iSDK32 = aFb1iSDK;
map2.put("sig", AFb1wSDK.valueOf(aFb1iSDK32.AFInAppEventParameterName.getPackageManager(), aFb1iSDK32.AFInAppEventParameterName.getPackageName()));
map2.put("last_boot_time", Long.valueOf(System.currentTimeMillis() - SystemClock.elapsedRealtime()));
StatFs statFs2 = new StatFs(Environment.getDataDirectory().getAbsolutePath());
if (Build.VERSION.SDK_INT >= 18) {
blockSizeLong = statFs2.getBlockSizeLong();
availableBlocksLong = statFs2.getAvailableBlocksLong();
availableBlocks = availableBlocksLong * blockSizeLong;
blockCountLong = statFs2.getBlockCountLong();
blockCount = blockCountLong * blockSizeLong;
} else {
int blockSize = statFs2.getBlockSize();
availableBlocks = statFs2.getAvailableBlocks() * blockSize;
blockCount = statFs2.getBlockCount() * blockSize;
}
double pow2 = Math.pow(2.0d, 20.0d);
double d102 = availableBlocks;
Double.isNaN(d102);
long j112 = (long) (d102 / pow2);
double d112 = blockCount;
Double.isNaN(d112);
long j122 = (long) (d112 / pow2);
StringBuilder sb42 = new StringBuilder();
sb42.append(j112);
sb42.append("/");
sb42.append(j122);
map2.put("disk", sb42.toString());
aFa1eSDK = this.afRDLog;
if (aFa1eSDK != null && (obj2 = aFa1eSDK.AFKeystoreWrapper) != null) {
map2.put("sharing_filter", obj2);
}
return map2;
}
str4 = "user_emails";
map2.put(str4, string);
if (str8 != null) {
}
if (afDebugLog() != null) {
}
AFKeystoreWrapper2 = AFKeystoreWrapper(AppsFlyerProperties.CURRENCY_CODE);
if (AFKeystoreWrapper2 != null) {
}
AFKeystoreWrapper3 = AFKeystoreWrapper(AppsFlyerProperties.IS_UPDATE);
if (AFKeystoreWrapper3 != null) {
}
map2.put("af_preinstalled", Boolean.toString(isPreInstalledApp(context)));
if (appsFlyerProperties.getBoolean(AppsFlyerProperties.COLLECT_FACEBOOK_ATTR_ID, true)) {
}
AFKeystoreWrapper(context, map2);
AFInAppEventParameterName2 = AFb1rSDK.AFInAppEventParameterName(new WeakReference(context));
if (AFInAppEventParameterName2 != null) {
}
map2.put("lang", Locale.getDefault().getDisplayLanguage());
map2.put("lang_code", Locale.getDefault().getLanguage());
map2.put("country", Locale.getDefault().getCountry());
map2.put("platformextension", this.onConversionDataSuccess.valueOf());
AFInAppEventParameterName(context, map2);
SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("yyyy-MM-dd_HHmmssZ", Locale.US);
map2.put("installDate", AFInAppEventType(simpleDateFormat2, context.getPackageManager().getPackageInfo(context.getPackageName(), 0).firstInstallTime));
packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
if (packageInfo.versionCode > AFInAppEventType2.getInt("versionCode", 0)) {
}
map2.put("app_version_code", Integer.toString(packageInfo.versionCode));
map2.put("app_version_name", packageInfo.versionName);
long j132 = packageInfo.firstInstallTime;
long j142 = packageInfo.lastUpdateTime;
appsFlyerProperties2 = appsFlyerProperties;
Locale locale2 = Locale.US;
str6 = str8;
map2.put("date1", new SimpleDateFormat("yyyy-MM-dd_HHmmssZ", locale2).format(new Date(j132)));
map2.put("date2", new SimpleDateFormat("yyyy-MM-dd_HHmmssZ", locale2).format(new Date(j142)));
map2.put(AFInAppEventParameterName("굕叭珏찏奸펦軉\uea38풌阫劣䈍톟ꤔ햄쫼", 16 - (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1))).intern(), AFKeystoreWrapper(simpleDateFormat2, context));
this.onResponseNative = AFd1lSDK.valueOf(context);
StringBuilder sb322 = new StringBuilder("didConfigureTokenRefreshService=");
sb322.append(this.onResponseNative);
AFLogger.afDebugLog(sb322.toString());
if (!this.onResponseNative) {
}
if (z10) {
}
if (!z10) {
}
if (AFKeystoreWrapper("advertiserId") == null) {
}
valueOf2 = AFb1ySDK.valueOf(context.getContentResolver());
if (valueOf2 != null) {
}
map2.put("registeredUninstall", Boolean.valueOf(AFd1lSDK.valueOf(AFInAppEventType2)));
int AFInAppEventType522 = AFInAppEventType(AFInAppEventType2, z10);
map2.put("counter", Integer.toString(AFInAppEventType522));
map2.put("iaecounter", Integer.toString(values(AFInAppEventType2, str6 != null)));
if (z10) {
appsFlyerProperties2.AFKeystoreWrapper = true;
}
map2.put("isFirstCall", Boolean.toString(!valueOf(AFInAppEventType2)));
AFKeystoreWrapper(context, z10, map2, AFInAppEventType522);
new AFb1sSDK();
map2.put("af_v", AFb1sSDK.AFInAppEventType(map2));
new AFb1sSDK();
map2.put("af_v2", AFb1sSDK.AFInAppEventParameterName(map2));
map2.put("ivc", Boolean.valueOf(onInstallConversionDataLoadedNative(context)));
if (AFInAppEventType2.contains("is_stop_tracking_used")) {
}
HashMap hashMap22 = new HashMap();
hashMap22.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
hashMap22.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
map2.put("cell", hashMap22);
AFb1iSDK aFb1iSDK322 = aFb1iSDK;
map2.put("sig", AFb1wSDK.valueOf(aFb1iSDK322.AFInAppEventParameterName.getPackageManager(), aFb1iSDK322.AFInAppEventParameterName.getPackageName()));
map2.put("last_boot_time", Long.valueOf(System.currentTimeMillis() - SystemClock.elapsedRealtime()));
StatFs statFs22 = new StatFs(Environment.getDataDirectory().getAbsolutePath());
if (Build.VERSION.SDK_INT >= 18) {
}
double pow22 = Math.pow(2.0d, 20.0d);
double d1022 = availableBlocks;
Double.isNaN(d1022);
long j1122 = (long) (d1022 / pow22);
double d1122 = blockCount;
Double.isNaN(d1122);
long j1222 = (long) (d1122 / pow22);
StringBuilder sb422 = new StringBuilder();
sb422.append(j1122);
sb422.append("/");
sb422.append(j1222);
map2.put("disk", sb422.toString());
aFa1eSDK = this.afRDLog;
if (aFa1eSDK != null) {
map2.put("sharing_filter", obj2);
}
return map2;
}
final void AFKeystoreWrapper(AFa1qSDK aFa1qSDK, Activity activity) {
String str;
Application application = aFa1qSDK.AFInAppEventType;
if (activity != null && activity.getIntent() != null) {
int i10 = updateServerUninstallToken + 35;
stop = i10 % 128;
if ((i10 % 2 == 0 ? '\b' : (char) 7) == '\b') {
AFb1hSDK.AFInAppEventParameterName(activity);
throw null;
}
Uri AFInAppEventParameterName2 = AFb1hSDK.AFInAppEventParameterName(activity);
if (AFInAppEventParameterName2 != null) {
str = AFInAppEventParameterName2.toString();
if (this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventType == null) {
String referrer = AppsFlyerProperties.getInstance().getReferrer(application);
aFa1qSDK.afDebugLog = referrer != null ? referrer : "";
aFa1qSDK.AFKeystoreWrapper = str;
valueOf(aFa1qSDK);
return;
}
int i11 = updateServerUninstallToken + 47;
stop = i11 % 128;
int i12 = i11 % 2;
AFLogger.afWarnLog("[LogEvent/Launch] AppsFlyer's SDK cannot send any event without providing DevKey.");
AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.valueOf;
if ((appsFlyerRequestListener != null ? (char) 3 : 'S') != 'S') {
int i13 = updateServerUninstallToken + 33;
stop = i13 % 128;
if (!(i13 % 2 == 0)) {
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1eSDK.values);
return;
}
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1eSDK.values);
int i14 = 82 / 0;
return;
}
return;
}
}
str = "";
if (this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventType == null) {
}
}
public final boolean AFKeystoreWrapper() {
if (valueOf(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false)) {
int i10 = stop + 93;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
if ((AFInAppEventType() == null ? (char) 20 : '!') != '!') {
int i12 = updateServerUninstallToken + 27;
stop = i12 % 128;
int i13 = i12 % 2;
return true;
}
}
return false;
}
@Override
public final void addPushNotificationDeepLinkPath(String... strArr) {
int i10 = stop + 113;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
List<String> asList = Arrays.asList(strArr);
if (i11 != 0) {
AFa1tSDK.AFKeystoreWrapper().afDebugLog.contains(asList);
throw null;
}
List<List<String>> list = AFa1tSDK.AFKeystoreWrapper().afDebugLog;
if (!list.contains(asList)) {
list.add(asList);
int i12 = updateServerUninstallToken + 33;
stop = i12 % 128;
int i13 = i12 % 2;
}
}
@Override
public final void anonymizeUser(boolean z10) {
int i10 = updateServerUninstallToken + 61;
stop = i10 % 128;
int i11 = i10 % 2;
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("anonymizeUser", String.valueOf(z10));
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, z10);
int i12 = stop + 119;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
}
@Override
public final void appendParametersToDeepLinkingURL(String str, Map<String, String> map) {
int i10 = updateServerUninstallToken + 35;
stop = i10 % 128;
if (!(i10 % 2 == 0)) {
AFa1tSDK AFKeystoreWrapper2 = AFa1tSDK.AFKeystoreWrapper();
AFKeystoreWrapper2.AFKeystoreWrapper = str;
AFKeystoreWrapper2.afInfoLog = map;
} else {
AFa1tSDK AFKeystoreWrapper3 = AFa1tSDK.AFKeystoreWrapper();
AFKeystoreWrapper3.AFKeystoreWrapper = str;
AFKeystoreWrapper3.afInfoLog = map;
int i11 = 8 / 0;
}
int i12 = updateServerUninstallToken + 57;
stop = i12 % 128;
int i13 = i12 % 2;
}
@Override
public final void enableFacebookDeferredApplinks(boolean z10) {
int i10 = updateServerUninstallToken;
int i11 = i10 + 107;
stop = i11 % 128;
char c10 = i11 % 2 == 0 ? '<' : (char) 20;
this.onAppOpenAttribution = z10;
if (c10 != 20) {
throw null;
}
int i12 = i10 + 5;
stop = i12 % 128;
if ((i12 % 2 == 0 ? 'N' : 'S') != 'N') {
return;
}
throw null;
}
@Override
public final String getAppsFlyerUID(Context context) {
int i10 = updateServerUninstallToken + 85;
stop = i10 % 128;
int i11 = i10 % 2;
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("getAppsFlyerUID", new String[0]);
if (context == null) {
return null;
}
AFb1fSDK aFb1fSDK = this.AppsFlyerLib.AFInAppEventParameterName;
int i12 = updateServerUninstallToken + 67;
stop = i12 % 128;
int i13 = i12 % 2;
aFb1fSDK.AFKeystoreWrapper = context.getApplicationContext();
String AFInAppEventParameterName2 = AFb1rSDK.AFInAppEventParameterName(new WeakReference(this.AppsFlyerLib.values().AFInAppEventType.AFKeystoreWrapper));
int i14 = stop + 85;
updateServerUninstallToken = i14 % 128;
if ((i14 % 2 != 0 ? (char) 31 : (char) 28) == 28) {
return AFInAppEventParameterName2;
}
throw null;
}
@Override
public final String getAttributionId(Context context) {
try {
String AFInAppEventType2 = new AFb1zSDK(context, AFInAppEventParameterName()).AFInAppEventType();
int i10 = stop + 45;
updateServerUninstallToken = i10 % 128;
if (!(i10 % 2 != 0)) {
return AFInAppEventType2;
}
int i11 = 24 / 0;
return AFInAppEventType2;
} catch (Throwable th) {
AFLogger.afErrorLog("Could not collect facebook attribution id. ", th);
return null;
}
}
@Override
public final String getHostName() {
String AFKeystoreWrapper2 = AFKeystoreWrapper("custom_host");
if (!(AFKeystoreWrapper2 != null)) {
int i10 = stop + 21;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
return "appsflyer.com";
}
int i12 = stop + 107;
updateServerUninstallToken = i12 % 128;
if ((i12 % 2 != 0 ? '`' : (char) 21) == 21) {
return AFKeystoreWrapper2;
}
throw null;
}
@Override
public final String getHostPrefix() {
String AFKeystoreWrapper2 = AFKeystoreWrapper("custom_host_prefix");
if ((AFKeystoreWrapper2 != null ? 'J' : '^') != '^') {
int i10 = stop + 81;
int i11 = i10 % 128;
updateServerUninstallToken = i11;
if ((i10 % 2 != 0 ? '[' : 'P') == '[') {
throw null;
}
int i12 = i11 + 81;
stop = i12 % 128;
if (i12 % 2 == 0) {
throw null;
}
return AFKeystoreWrapper2;
}
return "";
}
@Override
public final String getOutOfStore(Context context) {
int i10 = updateServerUninstallToken + 85;
stop = i10 % 128;
int i11 = i10 % 2;
String string = AppsFlyerProperties.getInstance().getString("api_store_value");
if ((string != null ? '\'' : '0') != '\'') {
String AFInAppEventType2 = AFInAppEventType(context, "AF_STORE");
string = null;
if (AFInAppEventType2 != null) {
int i12 = stop + 101;
updateServerUninstallToken = i12 % 128;
if ((i12 % 2 != 0 ? (char) 0 : '7') == '7') {
return AFInAppEventType2;
}
throw null;
}
AFLogger.afInfoLog("No out-of-store value set");
}
return string;
}
@Override
public final String getSdkVersion() {
int i10 = updateServerUninstallToken + 37;
stop = i10 % 128;
int i11 = i10 % 2;
AFc1xSDK AFInAppEventParameterName2 = AFInAppEventParameterName();
AFInAppEventParameterName2.afWarnLog().AFKeystoreWrapper("getSdkVersion", new String[0]);
AFInAppEventParameterName2.values();
String AFInAppEventType2 = AFb1dSDK.AFInAppEventType();
int i12 = stop + 77;
updateServerUninstallToken = i12 % 128;
if (i12 % 2 != 0) {
throw null;
}
return AFInAppEventType2;
}
@Override
public final AppsFlyerLib init(String str, AppsFlyerConversionListener appsFlyerConversionListener, Context context) {
List queryIntentContentProviders;
String str2;
if (this.onDeepLinkingNative) {
return this;
}
this.onDeepLinkingNative = true;
this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventType = str;
AFb1tSDK.valueOf(str);
if ((context != null ? (char) 4 : '\n') != 4) {
AFLogger.afWarnLog("context is null, Google Install Referrer will be not initialized");
} else {
this.onConversionDataFail = (Application) context.getApplicationContext();
AFb1fSDK aFb1fSDK = this.AppsFlyerLib.AFInAppEventParameterName;
int i10 = stop + 93;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
aFb1fSDK.AFKeystoreWrapper = context.getApplicationContext();
AFInAppEventParameterName().afInfoLog().AFInAppEventParameterName = System.currentTimeMillis();
AFInAppEventParameterName().AFLogger().values((AFd1pSDK) null);
AFe1fSDK AFVersionDeclaration2 = AFInAppEventParameterName().AFVersionDeclaration();
final AFe1kSDK aFe1kSDK = new AFe1kSDK(new AnonymousClass2());
Runnable runnable = new Runnable() {
@Override
public final void run() {
SharedPreferences AFInAppEventType2 = AFa1aSDK.AFInAppEventType(AFa1aSDK.valueOf(AFa1aSDK.this));
int AFInAppEventType3 = AFa1aSDK.AFInAppEventType(AFInAppEventType2, false);
boolean z10 = AFInAppEventType2.getBoolean(AppsFlyerProperties.NEW_REFERRER_SENT, false);
boolean z11 = aFe1kSDK.afRDLog == AFe1lSDK.AFa1wSDK.NOT_STARTED;
if (AFInAppEventType3 == 1) {
if (z11 || z10) {
AFa1aSDK aFa1aSDK = AFa1aSDK.this;
AFe1zSDK aFe1zSDK = new AFe1zSDK();
Application valueOf2 = AFa1aSDK.valueOf(AFa1aSDK.this);
if (valueOf2 != null) {
aFe1zSDK.AFInAppEventType = (Application) valueOf2.getApplicationContext();
}
AFa1aSDK.valueOf(aFa1aSDK, aFe1zSDK);
}
}
}
};
AFVersionDeclaration2.valueOf(aFe1kSDK);
AFVersionDeclaration2.valueOf(new AFe1oSDK(runnable, AFInAppEventParameterName()));
AFVersionDeclaration2.valueOf(new AFe1jSDK(runnable, AFInAppEventParameterName()));
Application application = this.onConversionDataFail;
AFc1xSDK AFInAppEventParameterName2 = AFInAppEventParameterName();
if (Build.VERSION.SDK_INT >= 19) {
queryIntentContentProviders = application.getPackageManager().queryIntentContentProviders(new Intent("com.appsflyer.referrer.INSTALL_PROVIDER"), 0);
if (!(queryIntentContentProviders == null)) {
int i12 = stop + 31;
updateServerUninstallToken = i12 % 128;
if (i12 % 2 != 0) {
int i13 = 36 / 0;
}
}
}
AFe1lSDK[] values2 = AFVersionDeclaration2.values();
int length = values2.length;
int i14 = 0;
while (true) {
if (i14 >= length) {
break;
}
int i15 = updateServerUninstallToken + 41;
stop = i15 % 128;
if (i15 % 2 == 0) {
values2[i14].AFInAppEventType(this.onConversionDataFail);
i14 += 53;
} else {
values2[i14].AFInAppEventType(this.onConversionDataFail);
i14++;
}
}
this.AppsFlyerLib.AFLogger$LogLevel().AFKeystoreWrapper();
AFb1kSDK.AFInAppEventParameterName = this.onConversionDataFail;
}
AFb1oSDK AFInAppEventType2 = AFb1oSDK.AFInAppEventType();
String[] strArr = new String[2];
strArr[0] = str;
if ((appsFlyerConversionListener == null ? '5' : (char) 21) != 21) {
str2 = "null";
} else {
int i16 = updateServerUninstallToken + 25;
stop = i16 % 128;
int i17 = i16 % 2;
str2 = "conversionDataListener";
}
strArr[1] = str2;
AFInAppEventType2.AFKeystoreWrapper("init", strArr);
AFLogger.AFKeystoreWrapper(String.format("Initializing AppsFlyer SDK: (v%s.%s)", "6.8.2", AFInAppEventType));
valueOf = appsFlyerConversionListener;
return this;
}
@Override
public final boolean isPreInstalledApp(Context context) {
int i10 = stop + 89;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
try {
if (!((context.getPackageManager().getApplicationInfo(context.getPackageName(), 0).flags & 1) == 0)) {
return true;
}
} catch (PackageManager.NameNotFoundException e10) {
AFLogger.afErrorLog("Could not check if app is pre installed", e10);
}
int i12 = updateServerUninstallToken + 115;
stop = i12 % 128;
int i13 = i12 % 2;
return false;
}
@Override
@Deprecated
public final boolean isStopped() {
int i10 = updateServerUninstallToken + 101;
stop = i10 % 128;
int i11 = i10 % 2;
boolean values2 = this.AppsFlyerLib.AFLogger$LogLevel().values();
int i12 = stop + 53;
updateServerUninstallToken = i12 % 128;
if ((i12 % 2 != 0 ? '2' : (char) 19) != '2') {
return values2;
}
int i13 = 69 / 0;
return values2;
}
@Override
public final void logEvent(Context context, String str, Map<String, Object> map) {
int i10 = stop + 25;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
logEvent(context, str, map, null);
int i12 = stop + 39;
updateServerUninstallToken = i12 % 128;
if (!(i12 % 2 != 0)) {
return;
}
throw null;
}
@Override
public final void logEvent(Context context, String str, Map<String, Object> map, AppsFlyerRequestListener appsFlyerRequestListener) {
HashMap hashMap = map == null ? null : new HashMap(map);
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
if (context != null) {
aFb1aSDK.AFInAppEventParameterName.AFKeystoreWrapper = context.getApplicationContext();
}
AFe1vSDK aFe1vSDK = new AFe1vSDK();
if (context != null) {
aFe1vSDK.AFInAppEventType = (Application) context.getApplicationContext();
}
aFe1vSDK.afInfoLog = str;
aFe1vSDK.valueOf = appsFlyerRequestListener;
if (hashMap != null && hashMap.containsKey(AFInAppEventParameterName.TOUCH_OBJ)) {
HashMap hashMap2 = new HashMap();
Object obj = hashMap.get(AFInAppEventParameterName.TOUCH_OBJ);
if (obj instanceof MotionEvent) {
MotionEvent motionEvent = (MotionEvent) obj;
HashMap hashMap3 = new HashMap();
hashMap3.put("x", Float.valueOf(motionEvent.getX()));
hashMap3.put("y", Float.valueOf(motionEvent.getY()));
hashMap2.put("loc", hashMap3);
hashMap2.put("pf", Float.valueOf(motionEvent.getPressure()));
hashMap2.put("rad", Float.valueOf(motionEvent.getTouchMajor() / 2.0f));
} else {
hashMap2.put("error", "Parsing failed due to invalid input in 'af_touch_obj'.");
AFLogger.valueOf("Parsing failed due to invalid input in 'af_touch_obj'.");
}
Map<String, ?> singletonMap = Collections.singletonMap("tch_data", hashMap2);
hashMap.remove(AFInAppEventParameterName.TOUCH_OBJ);
aFe1vSDK.AFInAppEventType(singletonMap);
}
aFe1vSDK.AFInAppEventParameterName = hashMap;
AFb1oSDK afWarnLog2 = AFInAppEventParameterName().afWarnLog();
String[] strArr = new String[2];
strArr[0] = str;
Map map2 = aFe1vSDK.AFInAppEventParameterName;
if (map2 == null) {
map2 = new HashMap();
}
strArr[1] = new JSONObject(map2).toString();
afWarnLog2.AFKeystoreWrapper("logEvent", strArr);
if (str == null) {
AFKeystoreWrapper(context, AFd1bSDK.logEvent);
}
AFKeystoreWrapper(aFe1vSDK, context instanceof Activity ? (Activity) context : null);
}
@Override
public final void logLocation(Context context, double d10, double d11) {
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("logLocation", String.valueOf(d10), String.valueOf(d11));
HashMap hashMap = new HashMap();
hashMap.put(AFInAppEventParameterName.LONGTITUDE, Double.toString(d11));
hashMap.put(AFInAppEventParameterName.LATITUDE, Double.toString(d10));
AFKeystoreWrapper(context, AFInAppEventType.LOCATION_COORDINATES, hashMap);
int i10 = updateServerUninstallToken + 5;
stop = i10 % 128;
if (!(i10 % 2 == 0)) {
return;
}
throw null;
}
@Override
public final void logSession(Context context) {
int i10 = stop + 97;
updateServerUninstallToken = i10 % 128;
if ((i10 % 2 != 0 ? 'V' : (char) 24) != 24) {
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("logSession", new String[1]);
} else {
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("logSession", new String[0]);
}
AFb1oSDK.AFInAppEventType().afErrorLog();
AFKeystoreWrapper(context, AFd1bSDK.logSession);
AFKeystoreWrapper(context, null, null);
int i11 = updateServerUninstallToken + 27;
stop = i11 % 128;
int i12 = i11 % 2;
}
@Override
public final void onPause(Context context) {
int i10 = updateServerUninstallToken + 47;
stop = i10 % 128;
if (i10 % 2 == 0) {
AFb1xSDK.AFa1zSDK aFa1zSDK = AFb1xSDK.AFInAppEventParameterName;
throw null;
}
AFb1xSDK.AFa1zSDK aFa1zSDK2 = AFb1xSDK.AFInAppEventParameterName;
if ((aFa1zSDK2 != null ? '+' : (char) 11) != '+') {
return;
}
int i11 = updateServerUninstallToken + 49;
stop = i11 % 128;
boolean z10 = i11 % 2 == 0;
aFa1zSDK2.AFInAppEventType(context);
if (!z10) {
return;
}
throw null;
}
@Override
@Deprecated
public final void performOnAppAttribution(Context context, URI uri) {
int i10 = updateServerUninstallToken;
int i11 = i10 + 53;
stop = i11 % 128;
int i12 = i11 % 2;
if ((uri != null ? 'X' : 'G') == 'X') {
int i13 = i10 + 125;
stop = i13 % 128;
if (i13 % 2 == 0) {
uri.toString().isEmpty();
throw null;
} else if (!uri.toString().isEmpty()) {
if (context != null) {
AFa1tSDK.AFKeystoreWrapper();
AFa1tSDK.AFKeystoreWrapper(context, new HashMap(), Uri.parse(uri.toString()));
return;
}
StringBuilder sb = new StringBuilder("Context is \"");
sb.append(context);
sb.append("\"");
AFb1lSDK.AFInAppEventType(sb.toString(), DeepLinkResult.Error.NETWORK);
int i14 = stop + 53;
updateServerUninstallToken = i14 % 128;
if (!(i14 % 2 == 0)) {
int i15 = 10 / 0;
return;
}
return;
}
}
StringBuilder sb2 = new StringBuilder("Link is \"");
sb2.append(uri);
sb2.append("\"");
AFb1lSDK.AFInAppEventType(sb2.toString(), DeepLinkResult.Error.NETWORK);
}
@Override
public final void performOnDeepLinking(final Intent intent, Context context) {
if ((intent == null ? 'J' : '%') != '%') {
AFb1lSDK.AFInAppEventType("performOnDeepLinking was called with null intent", DeepLinkResult.Error.DEVELOPER_ERROR);
int i10 = stop + 23;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
return;
}
if (!(context == null)) {
final Context applicationContext = context.getApplicationContext();
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
if (applicationContext != null) {
aFb1aSDK.AFInAppEventParameterName.AFKeystoreWrapper = applicationContext.getApplicationContext();
}
this.AppsFlyerLib.valueOf().execute(new Runnable() {
@Override
public final void run() {
AFa1aSDK.this.AFKeystoreWrapper(applicationContext, intent);
}
});
return;
}
int i12 = stop + 89;
updateServerUninstallToken = i12 % 128;
if (!(i12 % 2 != 0)) {
AFb1lSDK.AFInAppEventType("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
} else {
AFb1lSDK.AFInAppEventType("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
int i13 = 84 / 0;
}
int i14 = updateServerUninstallToken + 65;
stop = i14 % 128;
int i15 = i14 % 2;
}
@Override
public final void registerConversionListener(Context context, AppsFlyerConversionListener appsFlyerConversionListener) {
int i10 = updateServerUninstallToken + 89;
stop = i10 % 128;
int i11 = i10 % 2;
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("registerConversionListener", new String[0]);
valueOf(appsFlyerConversionListener);
int i12 = stop + 57;
updateServerUninstallToken = i12 % 128;
if (i12 % 2 != 0) {
throw null;
}
}
@Override
public final void registerValidatorListener(Context context, AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener) {
int i10 = updateServerUninstallToken + 43;
stop = i10 % 128;
int i11 = i10 % 2;
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("registerValidatorListener", new String[0]);
AFLogger.afDebugLog("registerValidatorListener called");
if ((appsFlyerInAppPurchaseValidatorListener == null ? 'K' : 'J') == 'J') {
AFInAppEventParameterName = appsFlyerInAppPurchaseValidatorListener;
return;
}
int i12 = updateServerUninstallToken + 43;
stop = i12 % 128;
int i13 = i12 % 2;
AFLogger.afDebugLog("registerValidatorListener null listener");
}
@Override
public final void sendAdRevenue(Context context, Map<String, Object> map) {
AFb1aSDK aFb1aSDK;
int i10 = updateServerUninstallToken + 9;
stop = i10 % 128;
if (i10 % 2 == 0) {
aFb1aSDK = this.AppsFlyerLib;
int i11 = 17 / 0;
} else {
aFb1aSDK = this.AppsFlyerLib;
}
AFd1aSDK aFd1aSDK = new AFd1aSDK();
if ((context != null ? (char) 25 : '3') == 25) {
int i12 = updateServerUninstallToken + 49;
stop = i12 % 128;
int i13 = i12 % 2;
aFd1aSDK.AFInAppEventType = (Application) context.getApplicationContext();
}
aFd1aSDK.AFInAppEventParameterName = map;
AFInAppEventParameterName(aFd1aSDK);
}
@Override
public final void sendInAppPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
int i10 = updateServerUninstallToken + 113;
stop = i10 % 128;
int i11 = i10 % 2;
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
Context applicationContext = context.getApplicationContext();
if ((applicationContext != null ? '2' : '0') == '2') {
int i12 = updateServerUninstallToken + 99;
int i13 = i12 % 128;
stop = i13;
if (!(i12 % 2 != 0)) {
AFb1fSDK aFb1fSDK = aFb1aSDK.AFInAppEventParameterName;
throw null;
}
AFb1fSDK aFb1fSDK2 = aFb1aSDK.AFInAppEventParameterName;
if (applicationContext != null) {
int i14 = i13 + 7;
updateServerUninstallToken = i14 % 128;
int i15 = i14 % 2;
aFb1fSDK2.AFKeystoreWrapper = applicationContext.getApplicationContext();
if (i15 != 0) {
throw null;
}
}
}
PurchaseHandler afDebugLog2 = AFInAppEventParameterName().afDebugLog();
if (afDebugLog2.AFInAppEventParameterName(map, purchaseValidationCallback, "purchases")) {
AFc1cSDK aFc1cSDK = new AFc1cSDK(map, purchaseValidationCallback, afDebugLog2.valueOf);
AFc1lSDK aFc1lSDK = afDebugLog2.values;
aFc1lSDK.AFKeystoreWrapper.execute(new AFc1lSDK.AnonymousClass4(aFc1cSDK));
}
}
@Override
public final void sendPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
Context applicationContext = context.getApplicationContext();
if ((applicationContext != null ? '<' : 'I') == '<') {
int i10 = updateServerUninstallToken + 103;
stop = i10 % 128;
int i11 = i10 % 2;
AFb1fSDK aFb1fSDK = aFb1aSDK.AFInAppEventParameterName;
if ((applicationContext != null ? '\t' : '.') == '\t') {
aFb1fSDK.AFKeystoreWrapper = applicationContext.getApplicationContext();
}
}
PurchaseHandler afDebugLog2 = AFInAppEventParameterName().afDebugLog();
if (afDebugLog2.AFInAppEventParameterName(map, purchaseValidationCallback, "subscriptions")) {
AFc1dSDK aFc1dSDK = new AFc1dSDK(map, purchaseValidationCallback, afDebugLog2.valueOf);
AFc1lSDK aFc1lSDK = afDebugLog2.values;
aFc1lSDK.AFKeystoreWrapper.execute(new AFc1lSDK.AnonymousClass4(aFc1dSDK));
int i12 = stop + 5;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
}
}
@Override
public final void sendPushNotificationData(Activity activity) {
int i10 = stop + 3;
updateServerUninstallToken = i10 % 128;
int i11 = 2;
if (i10 % 2 != 0) {
int i12 = 23 / 0;
}
}
@Override
public final void setAdditionalData(Map<String, Object> map) {
int i10 = updateServerUninstallToken + 93;
stop = i10 % 128;
if ((i10 % 2 == 0 ? 'Z' : '\\') != '\\') {
int i11 = 60 / 0;
if (map == null) {
return;
}
} else if (map == null) {
return;
}
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setAdditionalData", map.toString());
AppsFlyerProperties.getInstance().setCustomData(new JSONObject(map).toString());
int i12 = updateServerUninstallToken + 83;
stop = i12 % 128;
int i13 = i12 % 2;
}
@Override
public final void setAndroidIdData(String str) {
int i10 = updateServerUninstallToken + 11;
stop = i10 % 128;
if ((i10 % 2 == 0 ? 'M' : (char) 11) != 11) {
AFb1oSDK AFInAppEventType2 = AFb1oSDK.AFInAppEventType();
String[] strArr = new String[1];
strArr[1] = str;
AFInAppEventType2.AFKeystoreWrapper("setAndroidIdData", strArr);
} else {
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setAndroidIdData", str);
}
this.afErrorLog = str;
int i11 = updateServerUninstallToken + 7;
stop = i11 % 128;
if ((i11 % 2 == 0 ? '/' : '+') != '/') {
return;
}
throw null;
}
@Override
public final void setAppId(String str) {
int i10 = updateServerUninstallToken + 43;
stop = i10 % 128;
int i11 = i10 % 2;
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setAppId", str);
AFInAppEventParameterName(AppsFlyerProperties.APP_ID, str);
int i12 = stop + 29;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
}
@Override
public final void setAppInviteOneLink(String str) {
int i10 = updateServerUninstallToken + 113;
stop = i10 % 128;
int i11 = i10 % 2;
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setAppInviteOneLink", str);
AFLogger.afInfoLog("setAppInviteOneLink = ".concat(String.valueOf(str)));
if ((str != null ? (char) 27 : (char) 17) == 27) {
int i12 = updateServerUninstallToken + 29;
stop = i12 % 128;
int i13 = i12 % 2;
}
AppsFlyerProperties.getInstance().remove(AppsFlyerProperties.ONELINK_DOMAIN);
AppsFlyerProperties.getInstance().remove("onelinkVersion");
AppsFlyerProperties.getInstance().remove(AppsFlyerProperties.ONELINK_SCHEME);
AFInAppEventParameterName(AppsFlyerProperties.ONELINK_ID, str);
int i14 = stop + 73;
updateServerUninstallToken = i14 % 128;
if ((i14 % 2 == 0 ? 'N' : 'I') != 'N') {
int i15 = 11 / 0;
}
}
@Override
public final void setCollectAndroidID(boolean z10) {
int i10 = updateServerUninstallToken + 63;
stop = i10 % 128;
if ((i10 % 2 == 0 ? '<' : '>') != '<') {
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setCollectAndroidID", String.valueOf(z10));
} else {
AFb1oSDK AFInAppEventType2 = AFb1oSDK.AFInAppEventType();
String[] strArr = new String[1];
strArr[1] = String.valueOf(z10);
AFInAppEventType2.AFKeystoreWrapper("setCollectAndroidID", strArr);
}
AFInAppEventParameterName(AppsFlyerProperties.COLLECT_ANDROID_ID, Boolean.toString(z10));
AFInAppEventParameterName(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, Boolean.toString(z10));
int i11 = updateServerUninstallToken + 107;
stop = i11 % 128;
int i12 = i11 % 2;
}
@Override
public final void setCollectIMEI(boolean z10) {
int i10 = stop + 27;
updateServerUninstallToken = i10 % 128;
if ((i10 % 2 != 0 ? 'P' : (char) 16) != 16) {
AFb1oSDK AFInAppEventType2 = AFb1oSDK.AFInAppEventType();
String[] strArr = new String[1];
strArr[1] = String.valueOf(z10);
AFInAppEventType2.AFKeystoreWrapper("setCollectIMEI", strArr);
} else {
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setCollectIMEI", String.valueOf(z10));
}
AFInAppEventParameterName(AppsFlyerProperties.COLLECT_IMEI, Boolean.toString(z10));
AFInAppEventParameterName(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, Boolean.toString(z10));
}
@Override
@Deprecated
public final void setCollectOaid(boolean z10) {
int i10 = stop + 27;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setCollectOaid", String.valueOf(z10));
AFInAppEventParameterName(AppsFlyerProperties.COLLECT_OAID, Boolean.toString(z10));
int i12 = stop + 121;
updateServerUninstallToken = i12 % 128;
if ((i12 % 2 != 0 ? 'J' : '5') != 'J') {
return;
}
throw null;
}
@Override
public final void setCurrencyCode(String str) {
int i10 = stop + 39;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setCurrencyCode", str);
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.CURRENCY_CODE, str);
int i12 = updateServerUninstallToken + 83;
stop = i12 % 128;
if (!(i12 % 2 == 0)) {
return;
}
int i13 = 70 / 0;
}
@Override
public final void setCustomerIdAndLogSession(String str, Context context) {
int i10 = updateServerUninstallToken + 37;
stop = i10 % 128;
if (!(i10 % 2 != 0)) {
throw null;
} else if (context != null) {
boolean AFKeystoreWrapper2 = AFKeystoreWrapper();
setCustomerUserId(str);
if (!AFKeystoreWrapper2) {
AFLogger.afInfoLog("waitForCustomerUserId is false; setting CustomerUserID: ".concat(String.valueOf(str)), true);
return;
}
StringBuilder sb = new StringBuilder("CustomerUserId set: ");
sb.append(str);
sb.append(" - Initializing AppsFlyer Tacking");
AFLogger.afInfoLog(sb.toString(), true);
String referrer = AppsFlyerProperties.getInstance().getReferrer(context);
AFKeystoreWrapper(context, AFd1bSDK.setCustomerIdAndLogSession);
String str2 = this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventType;
if (referrer == null) {
referrer = "";
}
String str3 = referrer;
if (context instanceof Activity) {
((Activity) context).getIntent();
int i11 = stop + 111;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
}
AFKeystoreWrapper(context, null, null, str3, null);
int i13 = stop + 59;
updateServerUninstallToken = i13 % 128;
int i14 = i13 % 2;
}
}
@Override
public final void setCustomerUserId(String str) {
int i10 = updateServerUninstallToken + 107;
stop = i10 % 128;
int i11 = i10 % 2;
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setCustomerUserId", str);
AFLogger.afInfoLog("setCustomerUserId = ".concat(String.valueOf(str)));
AFInAppEventParameterName(AppsFlyerProperties.APP_USER_ID, str);
AFKeystoreWrapper(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false);
int i12 = stop + 95;
updateServerUninstallToken = i12 % 128;
if ((i12 % 2 != 0 ? (char) 31 : '\r') != 31) {
return;
}
int i13 = 69 / 0;
}
@Override
public final void setDebugLog(boolean z10) {
AFLogger.LogLevel logLevel;
int i10 = stop + 115;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
if ((z10 ? (char) 11 : (char) 0) != 0) {
logLevel = AFLogger.LogLevel.DEBUG;
} else {
logLevel = AFLogger.LogLevel.NONE;
int i12 = stop + 7;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
}
setLogLevel(logLevel);
}
@Override
public final void setDisableAdvertisingIdentifiers(boolean z10) {
int i10 = stop + 5;
updateServerUninstallToken = i10 % 128;
if ((i10 % 2 != 0 ? '6' : '\"') != '\"') {
AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z10)));
throw null;
}
AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z10)));
boolean z11 = false;
if (!(!z10)) {
int i11 = stop + 79;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
} else {
z11 = true;
}
AFb1ySDK.AFInAppEventType = Boolean.valueOf(z11);
AppsFlyerProperties.getInstance().remove("advertiserIdEnabled");
AppsFlyerProperties.getInstance().remove("advertiserId");
}
@Override
public final void setDisableNetworkData(boolean z10) {
int i10 = stop + 39;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z10)));
AFKeystoreWrapper(AppsFlyerProperties.DISABLE_NETWORK_DATA, z10);
int i12 = stop + 67;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
}
@Override
public final void setExtension(String str) {
int i10 = stop + 9;
updateServerUninstallToken = i10 % 128;
if (!(i10 % 2 != 0)) {
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setExtension", str);
} else {
AFb1oSDK AFInAppEventType2 = AFb1oSDK.AFInAppEventType();
String[] strArr = new String[0];
strArr[0] = str;
AFInAppEventType2.AFKeystoreWrapper("setExtension", strArr);
}
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EXTENSION, str);
}
@Override
public final void setHost(String str, String str2) {
if ((str != null ? 'c' : (char) 2) == 'c') {
int i10 = updateServerUninstallToken + 103;
stop = i10 % 128;
int i11 = i10 % 2;
AFInAppEventParameterName("custom_host_prefix", str);
}
if ((str2 != null ? (char) 24 : '$') != 24 || str2.isEmpty()) {
AFLogger.afWarnLog("hostName cannot be null or empty");
return;
}
int i12 = updateServerUninstallToken + 121;
stop = i12 % 128;
int i13 = i12 % 2;
AFInAppEventParameterName("custom_host", str2);
int i14 = updateServerUninstallToken + 107;
stop = i14 % 128;
int i15 = i14 % 2;
}
@Override
public final void setImeiData(String str) {
int i10 = stop + 29;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setImeiData", str);
this.AppsFlyerLib.AFLogger$LogLevel().values = str;
int i12 = stop + 11;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
}
@Override
public final void setIsUpdate(boolean z10) {
int i10 = updateServerUninstallToken + 81;
stop = i10 % 128;
int i11 = i10 % 2;
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setIsUpdate", String.valueOf(z10));
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.IS_UPDATE, z10);
int i12 = updateServerUninstallToken + 99;
stop = i12 % 128;
if (i12 % 2 != 0) {
return;
}
throw null;
}
@Override
public final void setLogLevel(AFLogger.LogLevel logLevel) {
boolean z10;
int i10;
if (logLevel.getLevel() > AFLogger.LogLevel.NONE.getLevel()) {
int i11 = updateServerUninstallToken + 79;
stop = i11 % 128;
if ((i11 % 2 == 0 ? (char) 15 : 'U') == 'U') {
z10 = true;
this.AppsFlyerLib.afWarnLog().AFKeystoreWrapper("log", String.valueOf(z10));
AppsFlyerProperties.getInstance().set("logLevel", logLevel.getLevel());
i10 = updateServerUninstallToken + 7;
stop = i10 % 128;
if (i10 % 2 != 0) {
return;
}
int i12 = 76 / 0;
return;
}
}
z10 = false;
this.AppsFlyerLib.afWarnLog().AFKeystoreWrapper("log", String.valueOf(z10));
AppsFlyerProperties.getInstance().set("logLevel", logLevel.getLevel());
i10 = updateServerUninstallToken + 7;
stop = i10 % 128;
if (i10 % 2 != 0) {
}
}
@Override
public final void setMinTimeBetweenSessions(int i10) {
int i11 = updateServerUninstallToken + 95;
stop = i11 % 128;
if ((i11 % 2 == 0 ? 'C' : (char) 1) == 1) {
this.onAppOpenAttributionNative = TimeUnit.SECONDS.toMillis(i10);
return;
}
this.onAppOpenAttributionNative = TimeUnit.SECONDS.toMillis(i10);
int i12 = 84 / 0;
}
@Override
public final void setOaidData(String str) {
int i10 = stop + 3;
updateServerUninstallToken = i10 % 128;
if (i10 % 2 == 0) {
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setOaidData", str);
} else {
AFb1oSDK AFInAppEventType2 = AFb1oSDK.AFInAppEventType();
String[] strArr = new String[0];
strArr[1] = str;
AFInAppEventType2.AFKeystoreWrapper("setOaidData", strArr);
}
AFb1ySDK.AFInAppEventParameterName = str;
}
@Override
public final void setOneLinkCustomDomain(String... strArr) {
String format;
int i10 = stop + 11;
updateServerUninstallToken = i10 % 128;
if (i10 % 2 == 0) {
format = String.format("setOneLinkCustomDomain %s", Arrays.toString(strArr));
} else {
Object[] objArr = new Object[0];
objArr[0] = Arrays.toString(strArr);
format = String.format("setOneLinkCustomDomain %s", objArr);
}
AFLogger.afDebugLog(format);
AFa1tSDK.AFInAppEventType = strArr;
int i11 = stop + 57;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
}
@Override
public final void setOutOfStore(String str) {
if (!(str != null)) {
AFLogger.valueOf("Cannot set setOutOfStore with null");
int i10 = stop + 69;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
return;
}
int i12 = updateServerUninstallToken + 123;
stop = i12 % 128;
int i13 = i12 % 2;
String lowerCase = str.toLowerCase();
AppsFlyerProperties.getInstance().set("api_store_value", lowerCase);
AFLogger.afInfoLog("Store API set with value: ".concat(String.valueOf(lowerCase)), true);
}
@Override
public final void setPartnerData(String str, Map<String, Object> map) {
if (this.onResponseError == null) {
this.onResponseError = new AFb1gSDK();
}
AFb1gSDK aFb1gSDK = this.onResponseError;
if ((str != null ? (char) 20 : '_') != '_') {
int i10 = stop + 115;
updateServerUninstallToken = i10 % 128;
if ((i10 % 2 != 0 ? '2' : 'N') == '2') {
str.isEmpty();
throw null;
} else if (!str.isEmpty()) {
if (map != null) {
int i11 = updateServerUninstallToken + 5;
stop = i11 % 128;
int i12 = i11 % 2;
if (!map.isEmpty()) {
StringBuilder sb = new StringBuilder("Setting partner data for ");
sb.append(str);
sb.append(": ");
sb.append(map);
AFLogger.afDebugLog(sb.toString());
int length = new JSONObject(map).toString().length();
if (length <= 1000) {
aFb1gSDK.AFInAppEventType.put(str, map);
aFb1gSDK.valueOf.remove(str);
return;
}
AFLogger.afWarnLog("Partner data 1000 characters limit exceeded");
HashMap hashMap = new HashMap();
hashMap.put("error", "limit exceeded: ".concat(String.valueOf(length)));
aFb1gSDK.valueOf.put(str, hashMap);
return;
}
}
AFLogger.afWarnLog((aFb1gSDK.AFInAppEventType.remove(str) == null ? '(' : 'b') != 'b' ? "Partner data is missing or `null`" : "Cleared partner data for ".concat(String.valueOf(str)));
int i13 = updateServerUninstallToken + 41;
stop = i13 % 128;
if (i13 % 2 == 0) {
throw null;
}
return;
}
}
AFLogger.afWarnLog("Partner ID is missing or `null`");
}
@Override
public final void setPhoneNumber(String str) {
int i10 = updateServerUninstallToken + 65;
stop = i10 % 128;
int i11 = i10 % 2;
this.onDeepLinking = AFb1sSDK.values(str);
int i12 = updateServerUninstallToken + 27;
stop = i12 % 128;
if ((i12 % 2 == 0 ? '+' : (char) 27) != '+') {
return;
}
throw null;
}
@Override
public final void setPreinstallAttribution(String str, String str2, String str3) {
AFLogger.afDebugLog("setPreinstallAttribution API called");
JSONObject jSONObject = new JSONObject();
if (str != null) {
try {
jSONObject.put("pid", str);
int i10 = updateServerUninstallToken + 95;
stop = i10 % 128;
int i11 = i10 % 2;
} catch (JSONException e10) {
AFLogger.afErrorLog(e10.getMessage(), e10);
}
}
if ((str2 != null ? 'L' : '?') != '?') {
int i12 = updateServerUninstallToken + 81;
stop = i12 % 128;
int i13 = i12 % 2;
jSONObject.put("c", str2);
}
if (str3 != null) {
jSONObject.put("af_siteid", str3);
}
if (!(!jSONObject.has("pid"))) {
AFInAppEventParameterName("preInstallName", jSONObject.toString());
} else {
AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
}
}
@Override
public final void setResolveDeepLinkURLs(String... strArr) {
String format;
int i10 = updateServerUninstallToken + 1;
stop = i10 % 128;
if (i10 % 2 == 0) {
Object[] objArr = new Object[0];
objArr[1] = Arrays.toString(strArr);
format = String.format("setResolveDeepLinkURLs %s", objArr);
} else {
format = String.format("setResolveDeepLinkURLs %s", Arrays.toString(strArr));
}
AFLogger.afDebugLog(format);
List<String> list = AFa1tSDK.values;
list.clear();
list.addAll(Arrays.asList(strArr));
}
@Override
@Deprecated
public final void setSharingFilter(String... strArr) {
int i10 = stop + 85;
updateServerUninstallToken = i10 % 128;
boolean z10 = i10 % 2 != 0;
setSharingFilterForPartners(strArr);
if (z10) {
throw null;
}
int i11 = stop + 37;
updateServerUninstallToken = i11 % 128;
if ((i11 % 2 != 0 ? 'M' : (char) 18) == 18) {
return;
}
throw null;
}
@Override
@Deprecated
public final void setSharingFilterForAllPartners() {
int i10 = updateServerUninstallToken + 77;
stop = i10 % 128;
int i11 = i10 % 2;
setSharingFilterForPartners("all");
int i12 = stop + 65;
updateServerUninstallToken = i12 % 128;
int i13 = i12 % 2;
}
@Override
public final void setSharingFilterForPartners(String... strArr) {
this.afRDLog = new AFa1eSDK(strArr);
int i10 = stop + 3;
updateServerUninstallToken = i10 % 128;
if ((i10 % 2 != 0 ? ',' : '+') == '+') {
return;
}
throw null;
}
@Override
public final void setUserEmails(AppsFlyerProperties.EmailsCryptType emailsCryptType, String... strArr) {
ArrayList arrayList = new ArrayList(strArr.length + 1);
arrayList.add(emailsCryptType.toString());
arrayList.addAll(Arrays.asList(strArr));
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setUserEmails", (String[]) arrayList.toArray(new String[strArr.length + 1]));
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EMAIL_CRYPT_TYPE, emailsCryptType.getValue());
HashMap hashMap = new HashMap();
ArrayList arrayList2 = new ArrayList();
int length = strArr.length;
String str = null;
int i10 = 0;
while (true) {
if ((i10 < length ? '^' : 'L') != '^') {
hashMap.put(str, arrayList2);
AppsFlyerProperties.getInstance().setUserEmails(new JSONObject(hashMap).toString());
int i11 = stop + 121;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
return;
}
int i13 = stop + 23;
updateServerUninstallToken = i13 % 128;
if (i13 % 2 != 0) {
String str2 = strArr[i10];
int i14 = AnonymousClass6.AFInAppEventParameterName[emailsCryptType.ordinal()];
throw null;
}
String str3 = strArr[i10];
if (AnonymousClass6.AFInAppEventParameterName[emailsCryptType.ordinal()] != 2) {
arrayList2.add(AFb1sSDK.values(str3));
str = "sha256_el_arr";
} else {
arrayList2.add(str3);
str = "plain_el_arr";
}
i10++;
}
}
@Override
public final void setUserEmails(String... strArr) {
int i10 = stop + 85;
updateServerUninstallToken = i10 % 128;
if (!(i10 % 2 == 0)) {
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setUserEmails", strArr);
setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
throw null;
}
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("setUserEmails", strArr);
setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
int i11 = updateServerUninstallToken + 45;
stop = i11 % 128;
if ((i11 % 2 == 0 ? '7' : (char) 3) == 3) {
return;
}
throw null;
}
@Override
public final void start(Context context) {
int i10 = updateServerUninstallToken + 1;
stop = i10 % 128;
int i11 = i10 % 2;
start(context, null);
int i12 = stop + 45;
updateServerUninstallToken = i12 % 128;
if ((i12 % 2 != 0 ? 'G' : 'K') == 'K') {
return;
}
throw null;
}
@Override
public final void start(Context context, String str) {
int i10 = stop + 63;
updateServerUninstallToken = i10 % 128;
char c10 = i10 % 2 != 0 ? 'R' : ' ';
start(context, str, null);
if (c10 != 'R') {
return;
}
throw null;
}
@Override
public final void start(Context context, String str, final AppsFlyerRequestListener appsFlyerRequestListener) {
char c10 = '?';
int i10 = updateServerUninstallToken + 63;
stop = i10 % 128;
int i11 = i10 % 2;
if (AFb1xSDK.AFInAppEventParameterName != null) {
return;
}
if (!this.onDeepLinkingNative) {
int i12 = stop + 81;
updateServerUninstallToken = i12 % 128;
char c11 = i12 % 2 != 0 ? 'E' : 'G';
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 (c11 != 'G') {
int i13 = 82 / 0;
}
}
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
if (!(context == null)) {
AFb1fSDK aFb1fSDK = aFb1aSDK.AFInAppEventParameterName;
if (context != null) {
int i14 = updateServerUninstallToken + 1;
stop = i14 % 128;
int i15 = i14 % 2;
aFb1fSDK.AFKeystoreWrapper = context.getApplicationContext();
int i16 = updateServerUninstallToken + 51;
stop = i16 % 128;
int i17 = i16 % 2;
}
}
final AFd1cSDK afInfoLog2 = AFInAppEventParameterName().afInfoLog();
afInfoLog2.valueOf(AFa1pSDK.valueOf(context));
this.onConversionDataFail = (Application) context.getApplicationContext();
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("start", str);
String str2 = AFInAppEventType;
AFLogger.afInfoLog(String.format("Starting AppsFlyer: (v%s.%s)", "6.8.2", str2));
StringBuilder sb = new StringBuilder("Build Number: ");
sb.append(str2);
AFLogger.afInfoLog(sb.toString());
AppsFlyerProperties.getInstance().loadProperties(this.onConversionDataFail.getApplicationContext());
if ((!TextUtils.isEmpty(str) ? 'O' : '5') == 'O') {
int i18 = stop + 49;
updateServerUninstallToken = i18 % 128;
if (i18 % 2 != 0) {
this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventType = str;
AFb1tSDK.valueOf(str);
throw null;
}
this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventType = str;
AFb1tSDK.valueOf(str);
} else if (TextUtils.isEmpty(this.AppsFlyerLib.AFLogger$LogLevel().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(RequestError.NO_DEV_KEY, AFb1eSDK.values);
return;
}
return;
}
AFInAppEventParameterName().AFLogger().values((AFd1pSDK) null);
afErrorLog();
AFLogger(this.onConversionDataFail.getBaseContext());
if (this.onAppOpenAttribution) {
afErrorLog(this.onConversionDataFail.getApplicationContext());
}
AFb1xSDK.AFInAppEventParameterName(context, new AFb1xSDK.AFa1zSDK() {
@Override
public final void AFInAppEventParameterName(Activity activity) {
afInfoLog2.valueOf();
AFa1aSDK.this.AFInAppEventParameterName().AFLogger().values((AFd1pSDK) null);
AFa1aSDK.values(AFa1aSDK.this);
int AFInAppEventType2 = AFa1aSDK.AFInAppEventType(AFa1aSDK.AFInAppEventType(activity), false);
AFLogger.afInfoLog("onBecameForeground");
if (AFInAppEventType2 < 2) {
AFa1bSDK AFInAppEventType3 = AFa1bSDK.AFInAppEventType(activity);
AFInAppEventType3.AFInAppEventType.post(AFInAppEventType3.afErrorLog);
AFInAppEventType3.AFInAppEventType.post(AFInAppEventType3.valueOf);
}
AFe1ySDK aFe1ySDK = new AFe1ySDK();
AFa1tSDK.AFKeystoreWrapper().valueOf(aFe1ySDK.valueOf(), activity.getIntent(), activity.getApplication());
AFa1aSDK aFa1aSDK = AFa1aSDK.this;
aFe1ySDK.AFInAppEventType = (Application) activity.getApplicationContext();
aFe1ySDK.valueOf = appsFlyerRequestListener;
aFa1aSDK.AFKeystoreWrapper(aFe1ySDK, activity);
}
@Override
public final void AFInAppEventType(Context context2) {
AFLogger.afInfoLog("onBecameBackground");
AFd1cSDK aFd1cSDK = afInfoLog2;
long currentTimeMillis = System.currentTimeMillis();
long j10 = aFd1cSDK.afErrorLog;
if (j10 != 0) {
long j11 = currentTimeMillis - j10;
if (j11 > 0 && j11 < 1000) {
j11 = 1000;
}
long seconds = TimeUnit.MILLISECONDS.toSeconds(j11);
aFd1cSDK.afWarnLog = seconds;
aFd1cSDK.AFInAppEventType.AFInAppEventType("prev_session_dur", seconds);
} else {
AFLogger.afInfoLog("Metrics: fg ts is missing");
}
AFLogger.afInfoLog("callStatsBackground background call");
AFa1aSDK.this.AFInAppEventParameterName(new WeakReference<>(context2));
AFb1oSDK AFInAppEventType2 = AFb1oSDK.AFInAppEventType();
if (AFInAppEventType2.afRDLog()) {
AFInAppEventType2.valueOf();
if (context2 != null && !AppsFlyerLib.getInstance().isStopped()) {
AFInAppEventType2.AFInAppEventType(context2.getPackageName(), context2.getPackageManager(), AFa1aSDK.AFInAppEventType(AFa1aSDK.this));
}
AFInAppEventType2.AFInAppEventParameterName();
} else {
AFLogger.afDebugLog("RD status is OFF");
}
AFa1bSDK.AFInAppEventType(context2).AFKeystoreWrapper();
}
}, this.AppsFlyerLib.AFInAppEventParameterName());
}
@Override
public final void stop(boolean z10, Context context) {
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
if (context != null) {
AFb1fSDK aFb1fSDK = aFb1aSDK.AFInAppEventParameterName;
if (context != null) {
int i10 = stop + 123;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
aFb1fSDK.AFKeystoreWrapper = context.getApplicationContext();
}
}
this.AppsFlyerLib.AFLogger$LogLevel().AFKeystoreWrapper = z10;
try {
File file = new File(this.AppsFlyerLib.getLevel().AFInAppEventParameterName.AFKeystoreWrapper.getFilesDir(), "AFRequestCache");
if (file.exists()) {
File[] listFiles = file.listFiles();
if (listFiles != null) {
for (File file2 : listFiles) {
StringBuilder sb = new StringBuilder("CACHE: Found cached request");
sb.append(file2.getName());
AFLogger.afInfoLog(sb.toString());
StringBuilder sb2 = new StringBuilder("CACHE: Deleting ");
sb2.append(file2.getName());
sb2.append(" from cache");
AFLogger.afInfoLog(sb2.toString());
file2.delete();
}
}
} else {
file.mkdir();
}
} catch (Exception e10) {
AFLogger.afErrorLog("CACHE: Could not cache request", e10);
}
if (!(z10)) {
return;
}
int i12 = updateServerUninstallToken + 11;
stop = i12 % 128;
int i13 = i12 % 2;
valueOf(context).AFInAppEventParameterName("is_stop_tracking_used", true);
}
@Override
public final void subscribeForDeepLink(DeepLinkListener deepLinkListener) {
int i10 = updateServerUninstallToken + 113;
stop = i10 % 128;
if ((i10 % 2 == 0 ? (char) 23 : 'S') != 23) {
subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
return;
}
subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
int i11 = 40 / 0;
}
@Override
public final void subscribeForDeepLink(DeepLinkListener deepLinkListener, long j10) {
int i10 = stop + 75;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
AFa1tSDK.AFKeystoreWrapper().AFInAppEventParameterName = deepLinkListener;
AFb1pSDK.getLevel = j10;
int i12 = updateServerUninstallToken + 29;
stop = i12 % 128;
if (i12 % 2 == 0) {
throw null;
}
}
@Override
public final void unregisterConversionListener() {
int i10 = updateServerUninstallToken + 125;
stop = i10 % 128;
if (i10 % 2 == 0) {
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("unregisterConversionListener", new String[0]);
} else {
AFb1oSDK.AFInAppEventType().AFKeystoreWrapper("unregisterConversionListener", new String[0]);
}
valueOf = null;
}
@Override
public final void updateServerUninstallToken(Context context, String str) {
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
if (context != null) {
aFb1aSDK.AFInAppEventParameterName.AFKeystoreWrapper = context.getApplicationContext();
}
AFd1lSDK aFd1lSDK = new AFd1lSDK(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));
AFb1tSDK AFInAppEventParameterName2 = aFd1lSDK.AFInAppEventParameterName();
if (AFInAppEventParameterName2 == null || !str.equals(AFInAppEventParameterName2.values)) {
long currentTimeMillis = System.currentTimeMillis();
boolean z10 = AFInAppEventParameterName2 == null || currentTimeMillis - AFInAppEventParameterName2.valueOf > TimeUnit.SECONDS.toMillis(2L);
AFb1tSDK aFb1tSDK = new AFb1tSDK(str, currentTimeMillis, !z10);
aFd1lSDK.AFInAppEventType.AFInAppEventParameterName("afUninstallToken", aFb1tSDK.values);
aFd1lSDK.AFInAppEventType.AFInAppEventType("afUninstallToken_received_time", aFb1tSDK.valueOf);
aFd1lSDK.AFInAppEventType.AFInAppEventParameterName("afUninstallToken_queued", aFb1tSDK.AFInAppEventParameterName());
if (z10) {
AFd1lSDK.AFInAppEventType(str);
}
}
}
@Override
public final void validateAndLogInAppPurchase(Context context, String str, String str2, String str3, String str4, String str5, Map<String, String> map) {
AFb1oSDK AFInAppEventType2 = AFb1oSDK.AFInAppEventType();
String[] strArr = new String[6];
strArr[0] = str;
strArr[1] = str2;
strArr[2] = str3;
strArr[3] = str4;
strArr[4] = str5;
strArr[5] = map == null ? "" : map.toString();
AFInAppEventType2.AFKeystoreWrapper("validateAndTrackInAppPurchase", strArr);
if (!isStopped()) {
StringBuilder sb = new StringBuilder("Validate in app called with parameters: ");
sb.append(str3);
sb.append(" ");
sb.append(str4);
sb.append(" ");
sb.append(str5);
AFLogger.afInfoLog(sb.toString());
}
if (str == null || str4 == null || str2 == null || str5 == null || str3 == null) {
AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener = AFInAppEventParameterName;
if (appsFlyerInAppPurchaseValidatorListener != null) {
appsFlyerInAppPurchaseValidatorListener.onValidateInAppFailure("Please provide purchase parameters");
return;
}
return;
}
Context applicationContext = context.getApplicationContext();
String str6 = this.AppsFlyerLib.AFLogger$LogLevel().AFInAppEventType;
if (context instanceof Activity) {
((Activity) context).getIntent();
}
new Thread(new AFa1cSDK(applicationContext, str6, str, str2, str3, str4, str5, map)).start();
}
public final AFd1pSDK valueOf(Context context) {
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
if (context != null) {
aFb1aSDK.AFInAppEventParameterName.AFKeystoreWrapper = context.getApplicationContext();
}
Context context2 = this.AppsFlyerLib.AFInAppEventParameterName.AFKeystoreWrapper;
if (context2 != null) {
return new AFb1cSDK(AFInAppEventType(context2));
}
throw new IllegalStateException("Context must be set via setContext method before calling this dependency.");
}
public final void valueOf(Context context, String str) {
JSONArray jSONArray;
JSONObject jSONObject;
int i10 = stop + 51;
updateServerUninstallToken = i10 % 128;
try {
try {
if (i10 % 2 != 0) {
AFLogger.afDebugLog("received a new (extra) referrer: ".concat(String.valueOf(str)));
System.currentTimeMillis();
AFInAppEventType(context).getString("extraReferrers", null);
throw null;
}
AFLogger.afDebugLog("received a new (extra) referrer: ".concat(String.valueOf(str)));
long currentTimeMillis = System.currentTimeMillis();
String string = AFInAppEventType(context).getString("extraReferrers", null);
if (string == null) {
jSONObject = new JSONObject();
jSONArray = new JSONArray();
} else {
JSONObject jSONObject2 = new JSONObject(string);
jSONArray = jSONObject2.has(str) ? new JSONArray((String) jSONObject2.get(str)) : new JSONArray();
jSONObject = jSONObject2;
}
if ((((long) jSONArray.length()) < 5 ? '\b' : 'K') == '\b') {
jSONArray.put(currentTimeMillis);
}
if (((long) jSONObject.length()) >= 4) {
int i11 = stop + 81;
updateServerUninstallToken = i11 % 128;
int i12 = i11 % 2;
AFInAppEventParameterName(jSONObject);
}
jSONObject.put(str, jSONArray.toString());
valueOf(context).AFInAppEventParameterName("extraReferrers", jSONObject.toString());
} catch (JSONException unused) {
}
} catch (Throwable th) {
StringBuilder sb = new StringBuilder("Couldn't save referrer - ");
sb.append(str);
sb.append(": ");
AFLogger.afErrorLog(sb.toString(), th);
}
}
@Deprecated
public final String values(Context context) {
int i10 = updateServerUninstallToken;
int i11 = i10 + 7;
stop = i11 % 128;
int i12 = i11 % 2;
AFb1aSDK aFb1aSDK = this.AppsFlyerLib;
if (!(context == null)) {
AFb1fSDK aFb1fSDK = aFb1aSDK.AFInAppEventParameterName;
if (context != null) {
int i13 = i10 + 49;
stop = i13 % 128;
int i14 = i13 % 2;
aFb1fSDK.AFKeystoreWrapper = context.getApplicationContext();
}
}
return this.AppsFlyerLib.values().values();
}
@Override
public final void waitForCustomerUserId(boolean z10) {
int i10 = stop + 75;
updateServerUninstallToken = i10 % 128;
int i11 = i10 % 2;
AFLogger.afInfoLog("initAfterCustomerUserID: ".concat(String.valueOf(z10)), true);
AFKeystoreWrapper(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, z10);
int i12 = stop + 43;
updateServerUninstallToken = i12 % 128;
if (i12 % 2 != 0) {
int i13 = 83 / 0;
}
}
}