Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e
以下内容为反编译后的 AFb1xSDK.java 源代码,内容仅作参考
package com.appsflyer.internal;
import android.app.Activity;
import android.app.Application;
import android.app.UiModeManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkCapabilities;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
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.util.TypedValue;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.WindowManager;
import android.widget.ExpandableListView;
import androidx.constraintlayout.core.motion.utils.TypedValues;
import com.applovin.sdk.AppLovinEventTypes;
import com.appsflyer.AFInAppEventParameterName;
import com.appsflyer.AFInAppEventType;
import com.appsflyer.AFKeystoreWrapper;
import com.appsflyer.AFLogger;
import com.appsflyer.AFVersionDeclaration;
import com.appsflyer.AppsFlyerConversionListener;
import com.appsflyer.AppsFlyerInAppPurchaseValidatorListener;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.PurchaseHandler;
import com.appsflyer.attribution.AppsFlyerRequestListener;
import com.appsflyer.attribution.RequestError;
import com.appsflyer.deeplink.DeepLinkListener;
import com.appsflyer.deeplink.DeepLinkResult;
import com.appsflyer.internal.AFa1hSDK;
import com.appsflyer.internal.AFa1rSDK;
import com.appsflyer.internal.AFa1uSDK;
import com.appsflyer.internal.AFb1gSDK;
import com.appsflyer.internal.AFb1xSDK;
import com.appsflyer.internal.AFc1qSDK;
import com.appsflyer.internal.AFc1zSDK;
import com.appsflyer.internal.AFd1pSDK;
import com.appsflyer.internal.AFe1zSDK;
import com.appsflyer.internal.components.network.http.ResponseNetwork;
import com.appsflyer.internal.platform_extension.PluginInfo;
import com.facebook.applinks.AppLinkData;
import com.facebook.devicerequests.internal.DeviceRequestsHelper;
import com.facebook.share.internal.ShareConstants;
import com.google.android.gms.common.GoogleApiAvailability;
import com.mbridge.msdk.foundation.db.c;
import com.onesignal.NotificationBundleProcessor;
import com.tapjoy.TapjoyConstants;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.net.HttpURLConnection;
import java.net.NetworkInterface;
import java.net.URI;
import java.security.KeyStoreException;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.Properties;
import java.util.TimeZone;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import kotlin.text.Typography;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public final class AFb1xSDK extends AppsFlyerLib {
static final String AFInAppEventParameterName;
static AppsFlyerInAppPurchaseValidatorListener AFInAppEventType = null;
public static final String AFKeystoreWrapper;
private static AFb1xSDK afDebugLog = null;
private static String afErrorLog = null;
private static int onAppOpenAttribution = 0;
private static int onAttributionFailure = 1;
private static int onResponse;
public static volatile AppsFlyerConversionListener valueOf;
public static final String values;
public AFa1eSDK AFLogger;
private boolean AppsFlyer2dXConversionCallback;
private String afErrorLogForExcManagerOnly;
String afInfoLog;
private Map<Long, String> getLevel;
private Application init;
private Map<String, Object> onAttributionFailureNative;
private final AFc1uSDK onConversionDataFail;
private AFb1eSDK onConversionDataSuccess;
private boolean onInstallConversionDataLoadedNative;
private SharedPreferences onResponseErrorNative;
private String onResponseNative;
private long afRDLog = -1;
private long AFLogger$LogLevel = -1;
private long afWarnLog = TimeUnit.SECONDS.toMillis(5);
private boolean AFVersionDeclaration = false;
private final AFb1uSDK onInstallConversionFailureNative = new AFb1uSDK();
private boolean onAppOpenAttributionNative = false;
private boolean onDeepLinkingNative = false;
private final Executor onDeepLinking = Executors.newSingleThreadExecutor();
static void AFInAppEventParameterName() {
onAppOpenAttribution = 183;
}
static void AFInAppEventParameterName(AFb1xSDK aFb1xSDK) {
int i = onResponse + 31;
onAttributionFailure = i % 128;
boolean z = i % 2 == 0;
aFb1xSDK.afDebugLog();
if (z) {
Object[] objArr = null;
int length = objArr.length;
}
int i2 = onResponse + 21;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
}
static AFc1uSDK AFKeystoreWrapper(AFb1xSDK aFb1xSDK) {
int i = onResponse + 21;
onAttributionFailure = i % 128;
char c = i % 2 == 0 ? '2' : (char) 19;
AFc1uSDK aFc1uSDK = aFb1xSDK.onConversionDataFail;
if (c != 19) {
Object obj = null;
super.hashCode();
}
int i2 = onResponse + 109;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
return aFc1uSDK;
}
static void AFKeystoreWrapper(AFb1xSDK aFb1xSDK, AFa1sSDK aFa1sSDK) {
int i = onAttributionFailure + 75;
onResponse = i % 128;
boolean z = i % 2 == 0;
aFb1xSDK.AFInAppEventParameterName(aFa1sSDK);
if (!z) {
int i2 = 44 / 0;
}
int i3 = onAttributionFailure + 111;
onResponse = i3 % 128;
if ((i3 % 2 != 0 ? 'F' : Typography.quote) != '\"') {
Object obj = null;
super.hashCode();
}
}
static boolean AFKeystoreWrapper(AFb1xSDK aFb1xSDK, AFa1sSDK aFa1sSDK, SharedPreferences sharedPreferences) {
int i = onResponse + 37;
onAttributionFailure = i % 128;
int i2 = i % 2;
boolean AFInAppEventParameterName2 = aFb1xSDK.AFInAppEventParameterName(aFa1sSDK, sharedPreferences);
int i3 = onResponse + 107;
onAttributionFailure = i3 % 128;
if (!(i3 % 2 != 0)) {
int i4 = 62 / 0;
return AFInAppEventParameterName2;
}
return AFInAppEventParameterName2;
}
static Application valueOf(AFb1xSDK aFb1xSDK) {
int i = onResponse + 29;
int i2 = i % 128;
onAttributionFailure = i2;
char c = i % 2 == 0 ? '%' : '/';
Object[] objArr = null;
Application application = aFb1xSDK.init;
if (c == '%') {
int length = objArr.length;
}
int i3 = i2 + 61;
onResponse = i3 % 128;
if ((i3 % 2 != 0 ? (char) 25 : '%') != 25) {
return application;
}
int length2 = objArr.length;
return application;
}
static void valueOf(ScheduledExecutorService scheduledExecutorService, Runnable runnable, TimeUnit timeUnit) {
int i = onAttributionFailure + 25;
onResponse = i % 128;
if (i % 2 != 0) {
}
AFInAppEventParameterName(scheduledExecutorService, runnable, 0L, timeUnit);
int i2 = onAttributionFailure + 71;
onResponse = i2 % 128;
if ((i2 % 2 != 0 ? '@' : '`') != '@') {
return;
}
int i3 = 76 / 0;
}
static long values(AFb1xSDK aFb1xSDK, long j) {
int i = onAttributionFailure;
int i2 = i + 83;
onResponse = i2 % 128;
int i3 = i2 % 2;
aFb1xSDK.AFLogger$LogLevel = j;
int i4 = i + 79;
onResponse = i4 % 128;
int i5 = i4 % 2;
return j;
}
static Map values(AFb1xSDK aFb1xSDK) {
int i = onAttributionFailure + 11;
int i2 = i % 128;
onResponse = i2;
int i3 = i % 2;
Map<String, Object> map = aFb1xSDK.onAttributionFailureNative;
int i4 = i2 + 71;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
return map;
}
static boolean values(AFb1xSDK aFb1xSDK, boolean z) {
int i = onResponse + 121;
int i2 = i % 128;
onAttributionFailure = i2;
int i3 = i % 2;
aFb1xSDK.onAppOpenAttributionNative = z;
int i4 = i2 + 89;
onResponse = i4 % 128;
if (i4 % 2 == 0) {
return z;
}
Object[] objArr = null;
int length = objArr.length;
return z;
}
static {
AFInAppEventParameterName();
AFInAppEventParameterName = "235";
Object obj = null;
Object[] objArr = new Object[1];
AFKeystoreWrapper(1 - (Process.myTid() >> 22), "\u0000", TextUtils.lastIndexOf("", '0') + 230, 1 - (TypedValue.complexToFraction(0, 0.0f, 0.0f) > 0.0f ? 1 : (TypedValue.complexToFraction(0, 0.0f, 0.0f) == 0.0f ? 0 : -1)), false, objArr);
String substring = "6.10.3".substring(0, "6.10.3".lastIndexOf(((String) objArr[0]).intern()));
AFKeystoreWrapper = substring;
afErrorLog = "https://%sstats.%s/stats";
StringBuilder sb = new StringBuilder();
sb.append(substring);
sb.append("/androidevent?buildnumber=6.10.3&app_id=");
values = sb.toString();
AFInAppEventType = null;
valueOf = null;
afDebugLog = new AFb1xSDK();
int i = onAttributionFailure + 71;
onResponse = i % 128;
if (i % 2 != 0) {
super.hashCode();
}
}
public final AFc1vSDK AFKeystoreWrapper() {
int i = onResponse;
int i2 = i + 119;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFc1uSDK aFc1uSDK = this.onConversionDataFail;
int i4 = i + 27;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
return aFc1uSDK;
}
public final void AFInAppEventType(Context context) {
AFc1uSDK aFc1uSDK = this.onConversionDataFail;
if (context != null) {
int i = onAttributionFailure + 75;
onResponse = i % 128;
int i2 = i % 2;
AFc1wSDK aFc1wSDK = aFc1uSDK.AFKeystoreWrapper;
if ((context != null ? '9' : 'G') != '9') {
return;
}
int i3 = onResponse + 55;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
aFc1wSDK.AFKeystoreWrapper = context.getApplicationContext();
}
}
public AFb1xSDK() {
AFVersionDeclaration.init();
this.onConversionDataFail = new AFc1uSDK();
AFd1pSDK afDebugLog2 = AFKeystoreWrapper().afDebugLog();
afDebugLog2.valueOf.add(new AFa1zSDK(this, (byte) 0));
}
public static AFb1xSDK AFInAppEventType() {
int i = onResponse;
int i2 = i + 89;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
AFb1xSDK aFb1xSDK = afDebugLog;
int i4 = i + 81;
onAttributionFailure = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 35 / 0;
return aFb1xSDK;
}
return aFb1xSDK;
}
@Override
@Deprecated
public final void performOnAppAttribution(Context context, URI uri) {
if (!(uri == null)) {
int i = onResponse + 113;
onAttributionFailure = i % 128;
int i2 = i % 2;
if (!uri.toString().isEmpty()) {
if (context == null) {
StringBuilder sb = new StringBuilder("Context is \"");
sb.append(context);
sb.append("\"");
AFb1oSDK.values(sb.toString(), DeepLinkResult.Error.NETWORK);
return;
}
AFKeystoreWrapper().onAppOpenAttributionNative();
AFa1tSDK.AFKeystoreWrapper(context, new HashMap(), Uri.parse(uri.toString()));
int i3 = onResponse + 39;
onAttributionFailure = i3 % 128;
if ((i3 % 2 == 0 ? '?' : (char) 6) != '?') {
return;
}
Object obj = null;
super.hashCode();
return;
}
}
StringBuilder sb2 = new StringBuilder("Link is \"");
sb2.append(uri);
sb2.append("\"");
AFb1oSDK.values(sb2.toString(), DeepLinkResult.Error.NETWORK);
}
@Override
@Deprecated
public final void setSharingFilter(String... strArr) {
int i = onAttributionFailure + 107;
onResponse = i % 128;
int i2 = i % 2;
setSharingFilterForPartners(strArr);
int i3 = onResponse + 77;
onAttributionFailure = i3 % 128;
if (!(i3 % 2 == 0)) {
return;
}
int i4 = 13 / 0;
}
@Override
@Deprecated
public final void setSharingFilterForAllPartners() {
int i = onAttributionFailure + 21;
onResponse = i % 128;
int i2 = i % 2;
setSharingFilterForPartners("all");
int i3 = onResponse + 119;
onAttributionFailure = i3 % 128;
if (!(i3 % 2 == 0)) {
return;
}
Object obj = null;
super.hashCode();
}
@Override
public final void setSharingFilterForPartners(String... strArr) {
this.AFLogger = new AFa1eSDK(strArr);
int i = onResponse + 71;
onAttributionFailure = i % 128;
int i2 = i % 2;
}
@Override
public final void appendParametersToDeepLinkingURL(String str, Map<String, String> map) {
int i = onResponse + 85;
onAttributionFailure = i % 128;
Object[] objArr = null;
if ((i % 2 == 0 ? (char) 21 : '0') != '0') {
AFa1tSDK onAppOpenAttributionNative = AFKeystoreWrapper().onAppOpenAttributionNative();
onAppOpenAttributionNative.AFInAppEventParameterName = str;
onAppOpenAttributionNative.valueOf = map;
int length = objArr.length;
} else {
AFa1tSDK onAppOpenAttributionNative2 = AFKeystoreWrapper().onAppOpenAttributionNative();
onAppOpenAttributionNative2.AFInAppEventParameterName = str;
onAppOpenAttributionNative2.valueOf = map;
}
int i2 = onResponse + 59;
onAttributionFailure = i2 % 128;
if ((i2 % 2 == 0 ? (char) 18 : '_') != 18) {
return;
}
int length2 = objArr.length;
}
@Override
public final void subscribeForDeepLink(DeepLinkListener deepLinkListener) {
int i = onAttributionFailure + 89;
onResponse = i % 128;
if ((i % 2 != 0 ? '8' : (char) 24) != 24) {
subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
Object obj = null;
super.hashCode();
} else {
subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
}
int i2 = onAttributionFailure + 53;
onResponse = i2 % 128;
int i3 = i2 % 2;
}
@Override
public final void subscribeForDeepLink(DeepLinkListener deepLinkListener, long j) {
int i = onResponse + 55;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFKeystoreWrapper().onAppOpenAttributionNative().values = deepLinkListener;
AFb1qSDK.afErrorLogForExcManagerOnly = j;
int i3 = onAttributionFailure + 41;
onResponse = i3 % 128;
int i4 = i3 % 2;
}
@Override
public final void performOnDeepLinking(final Intent intent, Context context) {
int i = onAttributionFailure + 105;
int i2 = i % 128;
onResponse = i2;
int i3 = i % 2;
if (intent != null) {
if ((context == null ? ' ' : '6') == ' ') {
AFb1oSDK.values("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
return;
}
final Context applicationContext = context.getApplicationContext();
AFInAppEventType(applicationContext);
AFKeystoreWrapper().AFInAppEventType().execute(new Runnable() {
@Override
public final void run() {
AFb1xSDK.this.AFInAppEventParameterName(applicationContext, intent);
}
});
return;
}
int i4 = i2 + 65;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
AFb1oSDK.values("performOnDeepLinking was called with null intent", DeepLinkResult.Error.DEVELOPER_ERROR);
int i6 = onAttributionFailure + 99;
onResponse = i6 % 128;
if ((i6 % 2 != 0 ? '4' : (char) 7) != 7) {
Object obj = null;
super.hashCode();
}
}
@Override
public final void addPushNotificationDeepLinkPath(String... strArr) {
List<String> asList;
List<List<String>> list;
int i = onAttributionFailure + 7;
onResponse = i % 128;
if (i % 2 != 0) {
asList = Arrays.asList(strArr);
list = AFKeystoreWrapper().onAppOpenAttributionNative().afRDLog;
int i2 = 11 / 0;
if ((!list.contains(asList) ? '?' : '\b') != '?') {
return;
}
} else {
asList = Arrays.asList(strArr);
list = AFKeystoreWrapper().onAppOpenAttributionNative().afRDLog;
if ((!list.contains(asList) ? ']' : '@') != ']') {
return;
}
}
list.add(asList);
int i3 = onResponse + 101;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
@Override
public final void setPartnerData(String str, Map<String, Object> map) {
if (this.onConversionDataSuccess == null) {
this.onConversionDataSuccess = new AFb1eSDK();
}
AFb1eSDK aFb1eSDK = this.onConversionDataSuccess;
if ((str != null ? ':' : (char) 24) != 24) {
int i = onAttributionFailure + 53;
onResponse = i % 128;
int i2 = i % 2;
if (!str.isEmpty()) {
if ((map != null ? Typography.greater : '@') == '>') {
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) {
AFLogger.afWarnLog("Partner data 1000 characters limit exceeded");
HashMap hashMap = new HashMap();
hashMap.put("error", "limit exceeded: ".concat(String.valueOf(length)));
aFb1eSDK.AFInAppEventType.put(str, hashMap);
int i3 = onResponse + 33;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
return;
}
aFb1eSDK.AFKeystoreWrapper.put(str, map);
aFb1eSDK.AFInAppEventType.remove(str);
return;
}
}
AFLogger.afWarnLog(aFb1eSDK.AFKeystoreWrapper.remove(str) == null ? "Partner data is missing or `null`" : "Cleared partner data for ".concat(String.valueOf(str)));
return;
}
}
AFLogger.afWarnLog("Partner ID is missing or `null`");
}
@Override
public final void setDisableAdvertisingIdentifiers(boolean z) {
int i = onAttributionFailure + 49;
onResponse = i % 128;
int i2 = i % 2;
AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z)));
if ((!z ? '9' : (char) 21) == '9') {
int i3 = onAttributionFailure + 119;
int i4 = i3 % 128;
onResponse = i4;
r1 = (i3 % 2 != 0 ? (char) 0 : (char) 11) == 11;
int i5 = i4 + 5;
onAttributionFailure = i5 % 128;
int i6 = i5 % 2;
}
AFa1bSDK.AFInAppEventType = Boolean.valueOf(r1);
AppsFlyerProperties.getInstance().remove("advertiserIdEnabled");
AppsFlyerProperties.getInstance().remove("advertiserId");
int i7 = onResponse + 35;
onAttributionFailure = i7 % 128;
if ((i7 % 2 == 0 ? '9' : 'L') != '9') {
return;
}
Object obj = null;
super.hashCode();
}
@Override
public final void setDisableNetworkData(boolean z) {
int i = onResponse + 17;
onAttributionFailure = i % 128;
if ((i % 2 == 0 ? 'R' : (char) 30) != 30) {
AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z)));
AFInAppEventParameterName(AppsFlyerProperties.DISABLE_NETWORK_DATA, z);
Object obj = null;
super.hashCode();
} else {
AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z)));
AFInAppEventParameterName(AppsFlyerProperties.DISABLE_NETWORK_DATA, z);
}
int i2 = onAttributionFailure + 11;
onResponse = i2 % 128;
int i3 = i2 % 2;
}
public final void AFKeystoreWrapper(Context context, Intent intent) {
int i = onAttributionFailure + 69;
onResponse = i % 128;
int i2 = i % 2;
if (intent.getStringExtra("appsflyer_preinstall") != null) {
int i3 = onAttributionFailure + 117;
onResponse = i3 % 128;
char c = i3 % 2 != 0 ? (char) 15 : ' ';
values(intent.getStringExtra("appsflyer_preinstall"));
if (c == 15) {
Object obj = null;
super.hashCode();
}
}
AFLogger.afInfoLog("****** onReceive called *******");
AppsFlyerProperties.getInstance();
String stringExtra = intent.getStringExtra(TapjoyConstants.TJC_REFERRER);
AFLogger.afInfoLog("Play store referrer: ".concat(String.valueOf(stringExtra)));
if (stringExtra != null) {
values(context).AFKeystoreWrapper(TapjoyConstants.TJC_REFERRER, stringExtra);
AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
appsFlyerProperties.set("AF_REFERRER", stringExtra);
appsFlyerProperties.valueOf = stringExtra;
if (AppsFlyerProperties.getInstance().AFKeystoreWrapper()) {
AFLogger.afInfoLog("onReceive: isLaunchCalled");
values(context, AFe1iSDK.onReceive);
valueOf(context, stringExtra);
}
}
}
private static void values(JSONObject jSONObject) {
String str;
ArrayList arrayList = new ArrayList();
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
try {
JSONArray jSONArray = new JSONArray((String) jSONObject.get(keys.next()));
int i = 0;
while (true) {
if (i >= jSONArray.length()) {
break;
}
arrayList.add(Long.valueOf(jSONArray.getLong(i)));
i++;
int i2 = onResponse + 73;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
}
int i4 = onResponse + 119;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
} catch (JSONException e) {
AFLogger.afErrorLogForExcManagerOnly("error at timeStampArr", e);
}
}
Collections.sort(arrayList);
Iterator<String> keys2 = jSONObject.keys();
loop2: while (true) {
str = null;
while (keys2.hasNext()) {
int i6 = onResponse + 81;
onAttributionFailure = i6 % 128;
int i7 = i6 % 2;
if (str != null) {
break loop2;
}
String next = keys2.next();
try {
JSONArray jSONArray2 = new JSONArray((String) jSONObject.get(next));
int i8 = 0;
while (true) {
if ((i8 < jSONArray2.length() ? '!' : (char) 2) != '!') {
break;
}
int i9 = onResponse + 17;
onAttributionFailure = i9 % 128;
int i10 = i9 % 2;
if (jSONArray2.getLong(i8) == ((Long) arrayList.get(0)).longValue()) {
break;
}
if ((jSONArray2.getLong(i8) != ((Long) arrayList.get(1)).longValue() ? '@' : (char) 31) != 31) {
int i11 = onAttributionFailure + 75;
onResponse = i11 % 128;
int i12 = i11 % 2;
if (!(jSONArray2.getLong(i8) == ((Long) arrayList.get(arrayList.size() - 1)).longValue())) {
i8++;
str = next;
}
}
}
} catch (JSONException e2) {
AFLogger.afErrorLogForExcManagerOnly("error at manageExtraReferrers", e2);
}
}
}
if (str != null) {
int i13 = onResponse + 113;
onAttributionFailure = i13 % 128;
int i14 = i13 % 2;
jSONObject.remove(str);
}
}
public final void AFInAppEventType(Context context, String str) {
long currentTimeMillis;
String string;
JSONObject jSONObject;
JSONArray jSONArray;
int i = onAttributionFailure + 91;
onResponse = i % 128;
Object[] objArr = null;
try {
if (i % 2 != 0) {
AFLogger.afDebugLog("received a new (extra) referrer: ".concat(String.valueOf(str)));
currentTimeMillis = System.currentTimeMillis();
string = valueOf(context).getString("extraReferrers", null);
int length = objArr.length;
} else {
AFLogger.afDebugLog("received a new (extra) referrer: ".concat(String.valueOf(str)));
currentTimeMillis = System.currentTimeMillis();
string = valueOf(context).getString("extraReferrers", null);
}
if (!(((long) jSONArray.length()) >= 5)) {
int i2 = onResponse + 3;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
jSONArray.put(currentTimeMillis);
}
if ((((long) jSONObject.length()) >= 4 ? '6' : Typography.greater) == '6') {
values(jSONObject);
}
jSONObject.put(str, jSONArray.toString());
values(context).AFKeystoreWrapper("extraReferrers", jSONObject.toString());
int i4 = onResponse + 37;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
} catch (JSONException e) {
AFLogger.afErrorLogForExcManagerOnly("error at addReferrer", e);
} catch (Throwable th) {
StringBuilder sb = new StringBuilder("Couldn't save referrer - ");
sb.append(str);
sb.append(": ");
AFLogger.afErrorLog(sb.toString(), th);
}
}
@Override
public final void stop(boolean z, Context context) {
int i = onAttributionFailure + 89;
onResponse = i % 128;
if (i % 2 != 0) {
AFInAppEventType(context);
AFKeystoreWrapper().afWarnLog().AFKeystoreWrapper = z;
AFKeystoreWrapper().AFLogger$LogLevel().values();
int i2 = 48 / 0;
} else {
AFInAppEventType(context);
AFKeystoreWrapper().afWarnLog().AFKeystoreWrapper = z;
AFKeystoreWrapper().AFLogger$LogLevel().values();
}
int i3 = onAttributionFailure + 93;
onResponse = i3 % 128;
if (i3 % 2 != 0) {
Object[] objArr = null;
int length = objArr.length;
}
}
@Override
public final String getSdkVersion() {
int i = onAttributionFailure + 35;
onResponse = i % 128;
int i2 = i % 2;
AFc1vSDK AFKeystoreWrapper2 = AFKeystoreWrapper();
AFKeystoreWrapper2.AFVersionDeclaration().values("getSdkVersion", new String[0]);
AFKeystoreWrapper2.AFInAppEventParameterName();
String AFKeystoreWrapper3 = AFb1bSDK.AFKeystoreWrapper();
int i3 = onResponse + 29;
onAttributionFailure = i3 % 128;
if ((i3 % 2 == 0 ? (char) 3 : 'X') != 3) {
return AFKeystoreWrapper3;
}
Object[] objArr = null;
int length = objArr.length;
return AFKeystoreWrapper3;
}
@Override
public final void onPause(Context context) {
int i = onAttributionFailure + 55;
onResponse = i % 128;
int i2 = i % 2;
AFKeystoreWrapper().onResponseNative().AFKeystoreWrapper(context);
int i3 = onResponse + 29;
onAttributionFailure = i3 % 128;
if ((i3 % 2 == 0 ? 'a' : 'Z') != 'Z') {
Object[] objArr = null;
int length = objArr.length;
}
}
@Override
public final void updateServerUninstallToken(Context context, String str) {
AFInAppEventType(context);
AFe1mSDK aFe1mSDK = new AFe1mSDK(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(String.valueOf(str)));
AFb1tSDK valueOf2 = aFe1mSDK.valueOf();
if (valueOf2 == null || !str.equals(valueOf2.AFKeystoreWrapper)) {
long currentTimeMillis = System.currentTimeMillis();
boolean z = valueOf2 == null || currentTimeMillis - valueOf2.valueOf > TimeUnit.SECONDS.toMillis(2L);
AFb1tSDK aFb1tSDK = new AFb1tSDK(str, currentTimeMillis, !z);
aFe1mSDK.AFKeystoreWrapper.AFKeystoreWrapper("afUninstallToken", aFb1tSDK.AFKeystoreWrapper);
aFe1mSDK.AFKeystoreWrapper.AFInAppEventType("afUninstallToken_received_time", aFb1tSDK.valueOf);
aFe1mSDK.AFKeystoreWrapper.AFInAppEventType("afUninstallToken_queued", aFb1tSDK.AFInAppEventParameterName());
if (z) {
AFe1mSDK.AFKeystoreWrapper(str);
}
}
}
@Override
public final void setDebugLog(boolean z) {
AFLogger.LogLevel logLevel;
int i = onAttributionFailure + 21;
onResponse = i % 128;
int i2 = i % 2;
if ((z ? Typography.quote : 'N') != '\"') {
logLevel = AFLogger.LogLevel.NONE;
} else {
logLevel = AFLogger.LogLevel.DEBUG;
int i3 = onResponse + 119;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
setLogLevel(logLevel);
}
@Override
public final void setOaidData(String str) {
int i = onResponse + 97;
onAttributionFailure = i % 128;
if (i % 2 == 0) {
AFb1sSDK AFVersionDeclaration = AFKeystoreWrapper().AFVersionDeclaration();
String[] strArr = new String[0];
strArr[0] = str;
AFVersionDeclaration.values("setOaidData", strArr);
} else {
AFKeystoreWrapper().AFVersionDeclaration().values("setOaidData", str);
}
AFa1bSDK.values = str;
int i2 = onResponse + 105;
onAttributionFailure = i2 % 128;
if (i2 % 2 == 0) {
Object obj = null;
super.hashCode();
}
}
@Override
public final void setAndroidIdData(String str) {
int i = onResponse + 35;
onAttributionFailure = i % 128;
if (!(i % 2 != 0)) {
AFb1sSDK AFVersionDeclaration = AFKeystoreWrapper().AFVersionDeclaration();
String[] strArr = new String[1];
strArr[1] = str;
AFVersionDeclaration.values("setAndroidIdData", strArr);
} else {
AFKeystoreWrapper().AFVersionDeclaration().values("setAndroidIdData", str);
}
this.afInfoLog = str;
int i2 = onAttributionFailure + 121;
onResponse = i2 % 128;
if ((i2 % 2 != 0 ? (char) 24 : (char) 14) != 24) {
return;
}
int i3 = 43 / 0;
}
private static void valueOf(String str, String str2) {
int i = onResponse + 87;
onAttributionFailure = i % 128;
int i2 = i % 2;
AppsFlyerProperties.getInstance().set(str, str2);
int i3 = onResponse + 33;
onAttributionFailure = i3 % 128;
if ((i3 % 2 == 0 ? 'V' : (char) 0) != 0) {
Object[] objArr = null;
int length = objArr.length;
}
}
private static void AFInAppEventParameterName(String str, boolean z) {
int i = onResponse + 101;
onAttributionFailure = i % 128;
int i2 = i % 2;
AppsFlyerProperties.getInstance().set(str, z);
int i3 = onResponse + 41;
onAttributionFailure = i3 % 128;
if ((i3 % 2 == 0 ? 'Z' : '8') != '8') {
Object obj = null;
super.hashCode();
}
}
private static String AFInAppEventType(String str) {
int i = onAttributionFailure + 99;
onResponse = i % 128;
int i2 = i % 2;
String string = AppsFlyerProperties.getInstance().getString(str);
int i3 = onResponse + 85;
onAttributionFailure = i3 % 128;
if ((i3 % 2 == 0 ? '8' : '%') != '8') {
return string;
}
int i4 = 66 / 0;
return string;
}
private static boolean AFKeystoreWrapper(String str, boolean z) {
int i = onAttributionFailure + 31;
onResponse = i % 128;
if (!(i % 2 != 0)) {
return AppsFlyerProperties.getInstance().getBoolean(str, z);
}
boolean z2 = AppsFlyerProperties.getInstance().getBoolean(str, z);
Object obj = null;
super.hashCode();
return z2;
}
public final boolean values() {
boolean z = false;
if (!(!AFKeystoreWrapper(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false))) {
int i = onAttributionFailure + 97;
onResponse = i % 128;
if (i % 2 != 0) {
String valueOf2 = valueOf();
Object[] objArr = null;
int length = objArr.length;
}
}
return false;
}
@Override
public final void waitForCustomerUserId(boolean z) {
int i = onAttributionFailure + 123;
onResponse = i % 128;
if (i % 2 != 0) {
}
AFLogger.afInfoLog("initAfterCustomerUserID: ".concat(String.valueOf(z)), true);
AFInAppEventParameterName(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, z);
}
@Override
public final void setCustomerIdAndLogSession(String str, Context context) {
String str2;
int i = onResponse + 35;
onAttributionFailure = i % 128;
if (!(i % 2 != 0)) {
int i2 = 94 / 0;
if ((context != null ? (char) 24 : '(') == '(') {
return;
}
} else if (context == null) {
return;
}
if (!values()) {
setCustomerUserId(str);
AFLogger.afInfoLog("waitForCustomerUserId is false; setting CustomerUserID: ".concat(String.valueOf(str)), true);
return;
}
setCustomerUserId(str);
StringBuilder sb = new StringBuilder("CustomerUserId set: ");
sb.append(str);
sb.append(" - Initializing AppsFlyer Tacking");
AFLogger.afInfoLog(sb.toString(), true);
String referrer = AppsFlyerProperties.getInstance().getReferrer(context);
values(context, AFe1iSDK.setCustomerIdAndLogSession);
String str3 = AFKeystoreWrapper().afWarnLog().AFInAppEventType;
if (referrer == null) {
int i3 = onAttributionFailure + 61;
onResponse = i3 % 128;
if (i3 % 2 != 0) {
Object[] objArr = null;
int length = objArr.length;
}
str2 = "";
} else {
str2 = referrer;
}
if (context instanceof Activity) {
int i4 = onAttributionFailure + 85;
onResponse = i4 % 128;
if (!(i4 % 2 == 0)) {
((Activity) context).getIntent();
int i5 = 95 / 0;
} else {
((Activity) context).getIntent();
}
}
AFInAppEventParameterName(context, null, null, str2, null);
}
@Override
public final String getOutOfStore(Context context) {
String string = AppsFlyerProperties.getInstance().getString("api_store_value");
if (string != null) {
int i = onAttributionFailure + 125;
onResponse = i % 128;
int i2 = i % 2;
return string;
}
String values2 = values(context, "AF_STORE");
if ((values2 != null ? (char) 18 : '-') != '-') {
return values2;
}
AFLogger.afInfoLog("No out-of-store value set");
int i3 = onResponse + 119;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
return null;
}
@Override
public final void setOutOfStore(String str) {
if ((str != null ? '*' : 'J') == 'J') {
AFLogger.valueOf("Cannot set setOutOfStore with null");
int i = onResponse + 103;
onAttributionFailure = i % 128;
int i2 = i % 2;
return;
}
String lowerCase = str.toLowerCase(Locale.getDefault());
AppsFlyerProperties.getInstance().set("api_store_value", lowerCase);
AFLogger.afInfoLog("Store API set with value: ".concat(String.valueOf(lowerCase)), true);
int i3 = onResponse + 109;
onAttributionFailure = i3 % 128;
if (i3 % 2 != 0) {
return;
}
Object[] objArr = null;
int length = objArr.length;
}
@Override
public final void setAppInviteOneLink(String str) {
int i = onAttributionFailure + 3;
onResponse = i % 128;
boolean z = false;
if (!(i % 2 == 0)) {
AFb1sSDK AFVersionDeclaration = AFKeystoreWrapper().AFVersionDeclaration();
String[] strArr = new String[0];
strArr[0] = str;
AFVersionDeclaration.values("setAppInviteOneLink", strArr);
AFLogger.afInfoLog("setAppInviteOneLink = ".concat(String.valueOf(str)));
} else {
AFKeystoreWrapper().AFVersionDeclaration().values("setAppInviteOneLink", str);
AFLogger.afInfoLog("setAppInviteOneLink = ".concat(String.valueOf(str)));
}
}
@Override
public final void setAdditionalData(Map<String, Object> map) {
int i = onResponse + 85;
onAttributionFailure = i % 128;
int i2 = i % 2;
if (map != null) {
AFKeystoreWrapper().AFVersionDeclaration().values("setAdditionalData", map.toString());
AppsFlyerProperties.getInstance().setCustomData(new JSONObject(map).toString());
}
int i3 = onResponse + 29;
onAttributionFailure = i3 % 128;
if (!(i3 % 2 != 0)) {
int i4 = 50 / 0;
}
}
@Override
public final void sendPushNotificationData(Activity activity) {
String values2;
long j;
long j2;
JSONObject jSONObject;
JSONObject jSONObject2;
int i;
Object obj = null;
if ((activity != null ? '%' : Typography.greater) != '>') {
int i2 = onResponse + 51;
onAttributionFailure = i2 % 128;
if ((i2 % 2 == 0 ? '*' : '#') == '*') {
Intent intent = activity.getIntent();
super.hashCode();
}
values2 = values(activity);
this.afErrorLogForExcManagerOnly = values2;
if ((values2 == null ? 'N' : '`') == '`') {
long currentTimeMillis = System.currentTimeMillis();
if (this.getLevel == null) {
AFLogger.afInfoLog("pushes: initializing pushes history..");
this.getLevel = new ConcurrentHashMap();
j = currentTimeMillis;
} else {
try {
j2 = AppsFlyerProperties.getInstance().getLong("pushPayloadMaxAging", TapjoyConstants.SESSION_ID_INACTIVITY_TIME);
j = currentTimeMillis;
} catch (Throwable th) {
th = th;
j = currentTimeMillis;
}
for (Long l : this.getLevel.keySet()) {
try {
jSONObject = new JSONObject(this.afErrorLogForExcManagerOnly);
jSONObject2 = new JSONObject(this.getLevel.get(l));
} catch (Throwable th2) {
th = th2;
}
if (jSONObject.opt("pid").equals(jSONObject2.opt("pid"))) {
int i3 = onResponse + 103;
onAttributionFailure = i3 % 128;
if (i3 % 2 == 0) {
boolean equals = jSONObject.opt(c.a).equals(jSONObject2.opt(c.a));
Object obj2 = null;
super.hashCode();
if (equals) {
StringBuilder sb = new StringBuilder("PushNotificationMeasurement: A previous payload with same PID and campaign was already acknowledged! (old: ");
sb.append(jSONObject2);
sb.append(", new: ");
sb.append(jSONObject);
sb.append(")");
AFLogger.afInfoLog(sb.toString());
this.afErrorLogForExcManagerOnly = null;
i = onAttributionFailure + 79;
onResponse = i % 128;
if (i % 2 == 0) {
Object[] objArr = null;
int length = objArr.length;
return;
}
return;
}
} else if (jSONObject.opt(c.a).equals(jSONObject2.opt(c.a))) {
StringBuilder sb2 = new StringBuilder("PushNotificationMeasurement: A previous payload with same PID and campaign was already acknowledged! (old: ");
sb2.append(jSONObject2);
sb2.append(", new: ");
sb2.append(jSONObject);
sb2.append(")");
AFLogger.afInfoLog(sb2.toString());
this.afErrorLogForExcManagerOnly = null;
i = onAttributionFailure + 79;
onResponse = i % 128;
if (i % 2 == 0) {
}
}
th = th2;
StringBuilder sb3 = new StringBuilder("Error while handling push notification measurement: ");
sb3.append(th.getClass().getSimpleName());
AFLogger.afErrorLog(sb3.toString(), th);
}
if (currentTimeMillis - l.longValue() > j2) {
this.getLevel.remove(l);
}
if (l.longValue() <= j) {
int i4 = onAttributionFailure + 7;
onResponse = i4 % 128;
int i5 = i4 % 2;
j = l.longValue();
}
}
}
if (this.getLevel.size() == AppsFlyerProperties.getInstance().getInt("pushPayloadHistorySize", 2)) {
StringBuilder sb4 = new StringBuilder("pushes: removing oldest overflowing push (oldest push:");
sb4.append(j);
sb4.append(")");
AFLogger.afInfoLog(sb4.toString());
this.getLevel.remove(Long.valueOf(j));
}
this.getLevel.put(Long.valueOf(currentTimeMillis), this.afErrorLogForExcManagerOnly);
start(activity);
return;
}
return;
}
if (activity != null) {
int i6 = onResponse + 65;
onAttributionFailure = i6 % 128;
int i7 = i6 % 2;
AFKeystoreWrapper().AFVersionDeclaration().values("sendPushNotificationData", activity.getLocalClassName(), "activity_intent_null");
int i8 = onResponse + 39;
onAttributionFailure = i8 % 128;
int i9 = i8 % 2;
} else {
AFKeystoreWrapper().AFVersionDeclaration().values("sendPushNotificationData", "activity_null");
}
values2 = values(activity);
this.afErrorLogForExcManagerOnly = values2;
if ((values2 == null ? 'N' : '`') == '`') {
}
}
@Override
public final void setUserEmails(String... strArr) {
int i = onAttributionFailure + 119;
onResponse = i % 128;
if ((i % 2 != 0 ? '3' : (char) 2) != '3') {
AFKeystoreWrapper().AFVersionDeclaration().values("setUserEmails", strArr);
setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
} else {
AFKeystoreWrapper().AFVersionDeclaration().values("setUserEmails", strArr);
setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
Object[] objArr = null;
int length = objArr.length;
}
int i2 = onResponse + 37;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
}
@Override
public final void setUserEmails(AppsFlyerProperties.EmailsCryptType emailsCryptType, String... strArr) {
String str;
ArrayList arrayList = new ArrayList(strArr.length + 1);
arrayList.add(emailsCryptType.toString());
arrayList.addAll(Arrays.asList(strArr));
AFKeystoreWrapper().AFVersionDeclaration().values("setUserEmails", (String[]) arrayList.toArray(new String[strArr.length + 1]));
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EMAIL_CRYPT_TYPE, emailsCryptType.getValue());
HashMap hashMap = new HashMap();
ArrayList arrayList2 = new ArrayList();
int length = strArr.length;
int i = 0;
int i2 = onResponse + 69;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
Object obj = null;
String str2 = null;
while (true) {
if ((i < length ? (char) 5 : 'M') != 5) {
hashMap.put(str2, arrayList2);
AppsFlyerProperties.getInstance().setUserEmails(new JSONObject(hashMap).toString());
return;
}
int i4 = onAttributionFailure + 109;
onResponse = i4 % 128;
if (i4 % 2 != 0) {
str = strArr[i];
int i5 = AnonymousClass10.values[emailsCryptType.ordinal()];
super.hashCode();
} else {
str = strArr[i];
}
i++;
}
}
static class AnonymousClass10 {
static final int[] values;
static {
int[] iArr = new int[AppsFlyerProperties.EmailsCryptType.values().length];
values = iArr;
try {
iArr[AppsFlyerProperties.EmailsCryptType.SHA256.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
values[AppsFlyerProperties.EmailsCryptType.NONE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
}
}
@Override
public final void setCollectAndroidID(boolean z) {
int i = onResponse + 107;
onAttributionFailure = i % 128;
if ((i % 2 == 0 ? ']' : '?') != ']') {
AFKeystoreWrapper().AFVersionDeclaration().values("setCollectAndroidID", String.valueOf(z));
} else {
AFKeystoreWrapper().AFVersionDeclaration().values("setCollectAndroidID", String.valueOf(z));
}
valueOf(AppsFlyerProperties.COLLECT_ANDROID_ID, Boolean.toString(z));
valueOf(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, Boolean.toString(z));
}
@Override
public final void setCollectIMEI(boolean z) {
int i = onResponse + 81;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFKeystoreWrapper().AFVersionDeclaration().values("setCollectIMEI", String.valueOf(z));
valueOf(AppsFlyerProperties.COLLECT_IMEI, Boolean.toString(z));
valueOf(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, Boolean.toString(z));
int i3 = onAttributionFailure + 93;
onResponse = i3 % 128;
if (!(i3 % 2 != 0)) {
return;
}
Object[] objArr = null;
int length = objArr.length;
}
@Override
@Deprecated
public final void setCollectOaid(boolean z) {
int i = onAttributionFailure + 47;
onResponse = i % 128;
if ((i % 2 != 0 ? (char) 30 : '*') != '*') {
AFb1sSDK AFVersionDeclaration = AFKeystoreWrapper().AFVersionDeclaration();
String[] strArr = new String[0];
strArr[1] = String.valueOf(z);
AFVersionDeclaration.values("setCollectOaid", strArr);
} else {
AFKeystoreWrapper().AFVersionDeclaration().values("setCollectOaid", String.valueOf(z));
}
valueOf(AppsFlyerProperties.COLLECT_OAID, Boolean.toString(z));
int i2 = onAttributionFailure + 101;
onResponse = i2 % 128;
int i3 = i2 % 2;
}
@Override
public final void setResolveDeepLinkURLs(String... strArr) {
int i = onAttributionFailure + 71;
onResponse = i % 128;
int i2 = i % 2;
AFLogger.afDebugLog(String.format("setResolveDeepLinkURLs %s", Arrays.toString(strArr)));
AFa1tSDK.AFInAppEventType.clear();
AFa1tSDK.AFInAppEventType.addAll(Arrays.asList(strArr));
int i3 = onResponse + 71;
onAttributionFailure = i3 % 128;
if (!(i3 % 2 != 0)) {
int i4 = 40 / 0;
}
}
@Override
public final void setOneLinkCustomDomain(String... strArr) {
int i = onResponse + 113;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFLogger.afDebugLog(String.format("setOneLinkCustomDomain %s", Arrays.toString(strArr)));
AFa1tSDK.AFKeystoreWrapper = strArr;
int i3 = onResponse + 1;
onAttributionFailure = i3 % 128;
if ((i3 % 2 == 0 ? 'J' : 'O') != 'O') {
int i4 = 99 / 0;
}
}
public void AFInAppEventType(AFe1xSDK aFe1xSDK) {
int i = onAttributionFailure + 55;
onResponse = i % 128;
int i2 = i % 2;
if ((aFe1xSDK == AFe1xSDK.SUCCESS ? (char) 6 : (char) 3) != 6) {
return;
}
int i3 = onResponse + 91;
onAttributionFailure = i3 % 128;
if ((i3 % 2 == 0 ? '8' : (char) 28) == 28) {
AFKeystoreWrapper().onDeepLinkingNative().valueOf();
return;
}
AFKeystoreWrapper().onDeepLinkingNative().valueOf();
Object[] objArr = null;
int length = objArr.length;
}
public final class AnonymousClass3 implements Runnable {
AnonymousClass3() {
}
@Override
public final void run() {
AFb1xSDK.valueOf(AFb1xSDK.AFKeystoreWrapper(AFb1xSDK.this).values(), new Runnable() {
@Override
public final void run() {
AFb1xSDK.AnonymousClass3.this.valueOf();
}
}, TimeUnit.MILLISECONDS);
}
public void valueOf() {
try {
AFe1cSDK aFe1cSDK = new AFe1cSDK();
Application valueOf = AFb1xSDK.valueOf(AFb1xSDK.this);
if (valueOf != null) {
aFe1cSDK.AFKeystoreWrapper = (Application) valueOf.getApplicationContext();
}
AFb1xSDK aFb1xSDK = AFb1xSDK.this;
if (AFb1xSDK.AFKeystoreWrapper(aFb1xSDK, aFe1cSDK, AFb1xSDK.valueOf(AFb1xSDK.valueOf(aFb1xSDK)))) {
AFb1xSDK.AFKeystoreWrapper(AFb1xSDK.this, aFe1cSDK);
}
} catch (Throwable th) {
AFLogger.afErrorLog(th.getMessage(), th);
}
}
}
@Override
public final AppsFlyerLib init(String str, AppsFlyerConversionListener appsFlyerConversionListener, Context context) {
int i = onAttributionFailure + 15;
onResponse = i % 128;
if (i % 2 != 0) {
int i2 = 94 / 0;
}
}
private boolean afInfoLog() {
int i = onResponse + 25;
onAttributionFailure = i % 128;
int i2 = i % 2;
boolean AFInAppEventType2 = AFKeystoreWrapper().AFInAppEventParameterName().AFInAppEventType("AF_PREINSTALL_DISABLED");
int i3 = onResponse + 77;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
return AFInAppEventType2;
}
private void AFLogger(Context context) {
this.onAttributionFailureNative = new HashMap();
final long currentTimeMillis = System.currentTimeMillis();
final AFa1rSDK.AFa1vSDK aFa1vSDK = new AFa1rSDK.AFa1vSDK() {
@Override
public final void values(String str, String str2, String str3) {
if (str != null) {
AFLogger.afInfoLog("Facebook Deferred AppLink data received: ".concat(String.valueOf(str)));
AFb1xSDK.values(AFb1xSDK.this).put("link", str);
if (str2 != null) {
AFb1xSDK.values(AFb1xSDK.this).put("target_url", str2);
}
if (str3 != null) {
HashMap hashMap = new HashMap();
HashMap hashMap2 = new HashMap();
hashMap2.put(ShareConstants.PROMO_CODE, str3);
hashMap.put(ShareConstants.DEEPLINK_CONTEXT, hashMap2);
AFb1xSDK.values(AFb1xSDK.this).put("extras", hashMap);
}
} else {
AFb1xSDK.values(AFb1xSDK.this).put("link", "");
}
AFb1xSDK.values(AFb1xSDK.this).put("ttr", String.valueOf(System.currentTimeMillis() - currentTimeMillis));
}
@Override
public final void AFInAppEventType(String str) {
AFb1xSDK.values(AFb1xSDK.this).put("error", str);
}
};
try {
Class.forName("com.facebook.FacebookSdk").getMethod("sdkInitialize", Context.class).invoke(null, context);
final Class<?> cls = Class.forName("com.facebook.applinks.AppLinkData");
Class<?> cls2 = Class.forName("com.facebook.applinks.AppLinkData$CompletionHandler");
Method method = cls.getMethod("fetchDeferredAppLinkData", Context.class, String.class, cls2);
Object newProxyInstance = Proxy.newProxyInstance(cls2.getClassLoader(), new Class[]{cls2}, new InvocationHandler() {
@Override
public final Object invoke(Object obj, Method method2, Object[] objArr) throws Throwable {
String str;
String str2;
String str3;
Bundle bundle;
if (method2.getName().equals("onDeferredAppLinkDataFetched")) {
if (objArr[0] != null) {
Bundle bundle2 = (Bundle) Bundle.class.cast(cls.getMethod("getArgumentBundle", new Class[0]).invoke(cls.cast(objArr[0]), new Object[0]));
if (bundle2 != null) {
str2 = bundle2.getString(AppLinkData.ARGUMENTS_NATIVE_URL);
str3 = bundle2.getString("target_url");
Bundle bundle3 = bundle2.getBundle("extras");
str = (bundle3 == null || (bundle = bundle3.getBundle(ShareConstants.DEEPLINK_CONTEXT)) == null) ? null : bundle.getString(ShareConstants.PROMO_CODE);
} else {
str = null;
str2 = null;
str3 = null;
}
AFa1vSDK aFa1vSDK2 = aFa1vSDK;
if (aFa1vSDK2 != null) {
aFa1vSDK2.values(str2, str3, str);
}
} else {
AFa1vSDK aFa1vSDK3 = aFa1vSDK;
if (aFa1vSDK3 != null) {
aFa1vSDK3.values(null, null, null);
}
}
return null;
}
AFa1vSDK aFa1vSDK4 = aFa1vSDK;
if (aFa1vSDK4 != null) {
aFa1vSDK4.AFInAppEventType("onDeferredAppLinkDataFetched invocation failed");
}
return null;
}
});
String string = context.getString(context.getResources().getIdentifier("facebook_app_id", TypedValues.Custom.S_STRING, context.getPackageName()));
if ((TextUtils.isEmpty(string) ? 'V' : (char) 22) == 'V') {
int i = onAttributionFailure + 105;
onResponse = i % 128;
int i2 = i % 2;
aFa1vSDK.AFInAppEventType("Facebook app id not defined in resources");
return;
}
method.invoke(null, context, string, newProxyInstance);
int i3 = onResponse + 79;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
} catch (ClassNotFoundException e) {
AFLogger.afErrorLogForExcManagerOnly("FB class missing error", e);
aFa1vSDK.AFInAppEventType(e.toString());
} catch (IllegalAccessException e2) {
AFLogger.afErrorLogForExcManagerOnly("FB illegal access", e2);
aFa1vSDK.AFInAppEventType(e2.toString());
} catch (NoSuchMethodException e3) {
AFLogger.afErrorLogForExcManagerOnly("FB method missing error", e3);
aFa1vSDK.AFInAppEventType(e3.toString());
} catch (InvocationTargetException e4) {
AFLogger.afErrorLogForExcManagerOnly("FB invocation error", e4);
aFa1vSDK.AFInAppEventType(e4.toString());
}
}
@Override
public final void enableFacebookDeferredApplinks(boolean z) {
int i = onResponse;
int i2 = i + 1;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
this.onDeepLinkingNative = z;
int i4 = i + 25;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
}
@Override
public final void start(Context context) {
int i = onResponse + 19;
onAttributionFailure = i % 128;
int i2 = i % 2;
Object obj = null;
start(context, null);
int i3 = onAttributionFailure + 95;
onResponse = i3 % 128;
if (!(i3 % 2 == 0)) {
super.hashCode();
}
}
@Override
public final void start(Context context, String str) {
int i = onResponse + 99;
onAttributionFailure = i % 128;
char c = i % 2 == 0 ? '0' : 'N';
start(context, str, null);
if (c != '0') {
return;
}
int i2 = 44 / 0;
}
@Override
public final void start(Context context, String str, final AppsFlyerRequestListener appsFlyerRequestListener) {
int i = onAttributionFailure + 103;
onResponse = i % 128;
int i2 = i % 2;
if (AFKeystoreWrapper().onResponseNative().AFKeystoreWrapper()) {
return;
}
if (!this.onInstallConversionDataLoadedNative) {
AFLogger.afWarnLog("ERROR: AppsFlyer SDK is not initialized! The API call 'start()' must be called after the 'init(String, AppsFlyerConversionListener)' API method, which should be called on the Application's onCreate.");
if (str == null) {
if (appsFlyerRequestListener != null) {
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1aSDK.values);
return;
}
return;
}
}
AFInAppEventType(context);
final AFe1fSDK AFLogger = AFKeystoreWrapper().AFLogger();
AFLogger.values(AFa1oSDK.AFKeystoreWrapper(context));
this.init = (Application) context.getApplicationContext();
AFKeystoreWrapper().AFVersionDeclaration().values("start", str);
String str2 = AFInAppEventParameterName;
AFLogger.afInfoLog(String.format("Starting AppsFlyer: (v%s.%s)", "6.10.3", str2));
StringBuilder sb = new StringBuilder("Build Number: ");
sb.append(str2);
AFLogger.afInfoLog(sb.toString());
AppsFlyerProperties.getInstance().loadProperties(this.init.getApplicationContext());
if ((!TextUtils.isEmpty(str) ? (char) 22 : ':') != ':') {
AFKeystoreWrapper().afWarnLog().AFInAppEventType = str;
AFc1rSDK.values(str);
int i3 = onResponse + 31;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
} else {
if ((TextUtils.isEmpty(AFKeystoreWrapper().afWarnLog().AFInAppEventType) ? (char) 30 : (char) 5) != 5) {
int i5 = onResponse + 1;
onAttributionFailure = i5 % 128;
int i6 = i5 % 2;
AFLogger.afWarnLog("ERROR: AppsFlyer SDK is not initialized! You must provide AppsFlyer Dev-Key either in the 'init' API method (should be called on Application's onCreate),or in the start() API (should be called on Activity's onCreate).");
if (appsFlyerRequestListener == null) {
return;
}
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1aSDK.values);
return;
}
}
AFKeystoreWrapper().afRDLog().AFInAppEventParameterName((AFe1ySDK) null);
afDebugLog();
afInfoLog(this.init.getBaseContext());
if (this.onDeepLinkingNative) {
AFLogger(this.init.getApplicationContext());
int i7 = onAttributionFailure + 105;
onResponse = i7 % 128;
int i8 = i7 % 2;
}
AFc1uSDK aFc1uSDK = this.onConversionDataFail;
if (aFc1uSDK.AFInAppEventType == null) {
aFc1uSDK.AFInAppEventType = new AFb1dSDK(aFc1uSDK.valueOf(), aFc1uSDK.onAppOpenAttributionNative());
}
aFc1uSDK.AFInAppEventType.AFKeystoreWrapper(context, new AFb1gSDK.AFa1zSDK() {
@Override
public final void AFInAppEventType(Activity activity) {
AFLogger.AFInAppEventType();
AFb1xSDK.this.AFKeystoreWrapper().afRDLog().AFInAppEventParameterName((AFe1ySDK) null);
AFb1xSDK.AFInAppEventParameterName(AFb1xSDK.this);
int AFKeystoreWrapper2 = AFb1xSDK.this.AFKeystoreWrapper(AFb1xSDK.valueOf(activity), false);
AFLogger.afInfoLog("onBecameForeground");
if (AFKeystoreWrapper2 < 2) {
AFa1dSDK AFInAppEventType2 = AFa1dSDK.AFInAppEventType(activity);
AFInAppEventType2.AFInAppEventType.post(AFInAppEventType2.afRDLog);
AFInAppEventType2.AFInAppEventType.post(AFInAppEventType2.values);
}
AFf1vSDK aFf1vSDK = new AFf1vSDK();
AFb1xSDK.this.AFKeystoreWrapper().onAppOpenAttributionNative().AFInAppEventType(aFf1vSDK.AFInAppEventType(), activity.getIntent(), activity.getApplication());
AFb1xSDK aFb1xSDK = AFb1xSDK.this;
if (activity != null) {
aFf1vSDK.AFKeystoreWrapper = (Application) activity.getApplicationContext();
}
aFf1vSDK.AFInAppEventType = appsFlyerRequestListener;
aFb1xSDK.AFInAppEventType(aFf1vSDK, activity);
}
@Override
public final void AFInAppEventType(Context context2) {
AFLogger.afInfoLog("onBecameBackground");
AFe1fSDK aFe1fSDK = AFLogger;
long currentTimeMillis = System.currentTimeMillis();
if (aFe1fSDK.AFLogger != 0) {
long j = currentTimeMillis - aFe1fSDK.AFLogger;
if (j > 0 && j < 1000) {
j = 1000;
}
aFe1fSDK.AFLogger$LogLevel = TimeUnit.MILLISECONDS.toSeconds(j);
aFe1fSDK.AFInAppEventParameterName.AFInAppEventType("prev_session_dur", aFe1fSDK.AFLogger$LogLevel);
} else {
AFLogger.afInfoLog("Metrics: fg ts is missing");
}
AFLogger.afInfoLog("callStatsBackground background call");
AFb1xSDK.this.AFInAppEventParameterName(new WeakReference<>(context2));
AFb1xSDK.this.AFKeystoreWrapper().onDeepLinkingNative().AFInAppEventType();
AFb1sSDK AFVersionDeclaration = AFb1xSDK.this.AFKeystoreWrapper().AFVersionDeclaration();
if (AFVersionDeclaration.afInfoLog()) {
AFVersionDeclaration.valueOf();
if (context2 != null && !AppsFlyerLib.getInstance().isStopped()) {
AFVersionDeclaration.values(context2.getPackageName(), context2.getPackageManager(), AFb1xSDK.this.AFKeystoreWrapper());
}
AFVersionDeclaration.AFInAppEventParameterName();
} else {
AFLogger.afDebugLog("RD status is OFF");
}
AFa1dSDK.AFInAppEventType(context2).AFInAppEventParameterName();
}
});
}
private static void afInfoLog(Context context) {
int i = onAttributionFailure + 19;
onResponse = i % 128;
boolean z = false;
try {
if (i % 2 != 0) {
if (((context.getPackageManager().getPackageInfo(context.getPackageName(), 0).applicationInfo.flags ^ 32768) != 0 ? '2' : '/') != '/') {
if (context.getResources().getIdentifier("appsflyer_backup_rules", "xml", context.getPackageName()) == 0) {
z = true;
}
if (!z) {
AFLogger.afInfoLog("appsflyer_backup_rules.xml detected, using AppsFlyer defined backup rules for AppsFlyer SDK data", true);
return;
}
AFLogger.valueOf("'allowBackup' is set to true; appsflyer_backup_rules.xml not detected.\nAppsFlyer shared preferences should be excluded from auto backup by adding: <exclude domain=\"sharedpref\" path=\"appsflyer-data\"/> to the Application's <full-backup-content> rules");
int i2 = onResponse + 113;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
}
int i4 = onResponse + 73;
onAttributionFailure = i4 % 128;
if (i4 % 2 == 0) {
Object obj = null;
super.hashCode();
}
}
} catch (Exception e) {
AFLogger.afErrorLogForExcManagerOnly("checkBackupRules Exception", e);
AFLogger.afRDLog("checkBackupRules Exception: ".concat(String.valueOf(e)));
}
}
private static void afErrorLog(Context context) {
int i;
if (AFa1cSDK.AFKeystoreWrapper()) {
i = 23;
AFLogger.afRDLog("OPPO device found");
} else {
i = 18;
}
if (Build.VERSION.SDK_INT >= i && !AFKeystoreWrapper(AppsFlyerProperties.DISABLE_KEYSTORE, true)) {
StringBuilder sb = new StringBuilder("OS SDK is=");
sb.append(Build.VERSION.SDK_INT);
sb.append("; use KeyStore");
AFLogger.afRDLog(sb.toString());
AFKeystoreWrapper aFKeystoreWrapper = new AFKeystoreWrapper(context);
if (!aFKeystoreWrapper.AFKeystoreWrapper()) {
aFKeystoreWrapper.values = AFb1wSDK.AFInAppEventParameterName(new WeakReference(context));
aFKeystoreWrapper.valueOf = 0;
aFKeystoreWrapper.AFInAppEventType(aFKeystoreWrapper.AFInAppEventParameterName());
} else {
String AFInAppEventParameterName2 = aFKeystoreWrapper.AFInAppEventParameterName();
synchronized (aFKeystoreWrapper.AFInAppEventType) {
aFKeystoreWrapper.valueOf++;
AFLogger.afInfoLog("Deleting key with alias: ".concat(String.valueOf(AFInAppEventParameterName2)));
try {
synchronized (aFKeystoreWrapper.AFInAppEventType) {
aFKeystoreWrapper.AFInAppEventParameterName.deleteEntry(AFInAppEventParameterName2);
}
} catch (KeyStoreException e) {
StringBuilder sb2 = new StringBuilder("Exception ");
sb2.append(e.getMessage());
sb2.append(" occurred");
AFLogger.afErrorLog(sb2.toString(), e);
}
}
aFKeystoreWrapper.AFInAppEventType(aFKeystoreWrapper.AFInAppEventParameterName());
}
valueOf("KSAppsFlyerId", aFKeystoreWrapper.values());
valueOf("KSAppsFlyerRICounter", String.valueOf(aFKeystoreWrapper.AFInAppEventType()));
return;
}
StringBuilder sb3 = new StringBuilder("OS SDK is=");
sb3.append(Build.VERSION.SDK_INT);
sb3.append("; no KeyStore usage");
AFLogger.afRDLog(sb3.toString());
}
public static String valueOf() {
int i = onAttributionFailure + 107;
onResponse = i % 128;
int i2 = i % 2;
String AFInAppEventType2 = AFInAppEventType(AppsFlyerProperties.APP_USER_ID);
int i3 = onAttributionFailure + 125;
onResponse = i3 % 128;
int i4 = i3 % 2;
return AFInAppEventType2;
}
@Override
public final void setCustomerUserId(String str) {
int i = onAttributionFailure + 79;
onResponse = i % 128;
int i2 = i % 2;
AFKeystoreWrapper().AFVersionDeclaration().values("setCustomerUserId", str);
AFLogger.afInfoLog("setCustomerUserId = ".concat(String.valueOf(str)));
valueOf(AppsFlyerProperties.APP_USER_ID, str);
AFInAppEventParameterName(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false);
int i3 = onAttributionFailure + 103;
onResponse = i3 % 128;
if ((i3 % 2 != 0 ? '.' : 'C') != '.') {
return;
}
Object obj = null;
super.hashCode();
}
@Override
public final void setPhoneNumber(String str) {
int i = onResponse + 55;
onAttributionFailure = i % 128;
int i2 = i % 2;
this.onResponseNative = AFb1ySDK.AFKeystoreWrapper(str);
int i3 = onAttributionFailure + 121;
onResponse = i3 % 128;
if (i3 % 2 == 0) {
return;
}
int i4 = 38 / 0;
}
private static String AFLogger() {
int i = onResponse + 25;
onAttributionFailure = i % 128;
int i2 = i % 2;
String AFInAppEventType2 = AFInAppEventType(AppsFlyerProperties.APP_ID);
int i3 = onResponse + 113;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
return AFInAppEventType2;
}
@Override
public final void setAppId(String str) {
int i = onResponse + 61;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFKeystoreWrapper().AFVersionDeclaration().values("setAppId", str);
valueOf(AppsFlyerProperties.APP_ID, str);
int i3 = onAttributionFailure + 55;
onResponse = i3 % 128;
int i4 = i3 % 2;
}
@Override
public final void setExtension(String str) {
int i = onAttributionFailure + 77;
onResponse = i % 128;
if ((i % 2 != 0 ? (char) 3 : 'Z') != 3) {
AFKeystoreWrapper().AFVersionDeclaration().values("setExtension", str);
} else {
AFb1sSDK AFVersionDeclaration = AFKeystoreWrapper().AFVersionDeclaration();
String[] strArr = new String[0];
strArr[1] = str;
AFVersionDeclaration.values("setExtension", strArr);
}
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EXTENSION, str);
int i2 = onResponse + 35;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
}
@Override
public final void setIsUpdate(boolean z) {
int i = onResponse + 89;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFKeystoreWrapper().AFVersionDeclaration().values("setIsUpdate", String.valueOf(z));
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.IS_UPDATE, z);
int i3 = onResponse + 99;
onAttributionFailure = i3 % 128;
if (i3 % 2 != 0) {
return;
}
Object[] objArr = null;
int length = objArr.length;
}
@Override
public final void setCurrencyCode(String str) {
int i = onAttributionFailure + 35;
onResponse = i % 128;
if ((i % 2 != 0 ? 'A' : '/') != '/') {
AFb1sSDK AFVersionDeclaration = AFKeystoreWrapper().AFVersionDeclaration();
String[] strArr = new String[1];
strArr[1] = str;
AFVersionDeclaration.values("setCurrencyCode", strArr);
} else {
AFKeystoreWrapper().AFVersionDeclaration().values("setCurrencyCode", str);
}
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.CURRENCY_CODE, str);
int i2 = onAttributionFailure + 17;
onResponse = i2 % 128;
int i3 = i2 % 2;
}
@Override
public final void logLocation(Context context, double d, double d2) {
AFKeystoreWrapper().AFVersionDeclaration().values("logLocation", String.valueOf(d), String.valueOf(d2));
HashMap hashMap = new HashMap();
hashMap.put(AFInAppEventParameterName.LONGTITUDE, Double.toString(d2));
hashMap.put(AFInAppEventParameterName.LATITUDE, Double.toString(d));
AFKeystoreWrapper(context, AFInAppEventType.LOCATION_COORDINATES, hashMap);
int i = onAttributionFailure + 37;
onResponse = i % 128;
if (!(i % 2 == 0)) {
int i2 = 59 / 0;
}
}
final void AFInAppEventParameterName(WeakReference<Context> weakReference) {
int i = onResponse + 103;
onAttributionFailure = i % 128;
if (i % 2 == 0) {
Context context = weakReference.get();
Object[] objArr = null;
int length = objArr.length;
if (context == null) {
return;
}
} else if (weakReference.get() == null) {
return;
}
AFLogger.afInfoLog("app went to background");
SharedPreferences valueOf2 = valueOf(weakReference.get());
AppsFlyerProperties.getInstance().saveProperties(valueOf2);
long j = AFKeystoreWrapper().AFLogger().AFLogger$LogLevel;
HashMap hashMap = new HashMap();
String str = AFKeystoreWrapper().afWarnLog().AFInAppEventType;
if ((str == null ? 'I' : (char) 23) == 'I') {
AFLogger.afWarnLog("[callStats] AppsFlyer's SDK cannot send any event without providing DevKey.");
return;
}
String AFInAppEventType2 = AFInAppEventType("KSAppsFlyerId");
if ((AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, false) ? '@' : '/') == '@') {
hashMap.put(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, "true");
}
AFc1qSDK.AFa1vSDK values2 = AFa1bSDK.values(weakReference.get().getContentResolver());
if (values2 != null) {
int i2 = onResponse + 65;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
hashMap.put("amazon_aid", values2.AFInAppEventParameterName);
hashMap.put("amazon_aid_limit", String.valueOf(values2.AFInAppEventType));
int i4 = onResponse + 51;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
}
String string = AppsFlyerProperties.getInstance().getString("advertiserId");
if ((string != null ? 'L' : Typography.less) != '<') {
hashMap.put("advertiserId", string);
}
hashMap.put("app_id", weakReference.get().getPackageName());
hashMap.put("devkey", str);
hashMap.put("uid", AFb1wSDK.AFInAppEventParameterName(weakReference));
hashMap.put("time_in_app", String.valueOf(j));
hashMap.put("statType", "user_closed_app");
hashMap.put(TapjoyConstants.TJC_PLATFORM, "Android");
hashMap.put("launch_counter", Integer.toString(AFKeystoreWrapper(valueOf2, false)));
hashMap.put(AppsFlyerProperties.CHANNEL, AFInAppEventParameterName(weakReference.get()));
if ((AFInAppEventType2 == null ? Typography.less : 'I') == '<') {
AFInAppEventType2 = "";
}
hashMap.put("originalAppsflyerId", AFInAppEventType2);
if (!this.onAppOpenAttributionNative) {
AFLogger.afDebugLog("Stats call is disabled, ignore ...");
return;
}
AFf1xSDK aFf1xSDK = new AFf1xSDK();
((AFe1aSDK) aFf1xSDK).AFLogger$LogLevel = isStopped();
AFd1cSDK aFd1cSDK = new AFd1cSDK((AFf1xSDK) aFf1xSDK.AFKeystoreWrapper(AFKeystoreWrapper().AFInAppEventParameterName().AFInAppEventType.AFKeystoreWrapper("appsFlyerCount", 0)).AFInAppEventParameterName(hashMap).AFInAppEventParameterName(String.format(afErrorLog, AppsFlyerLib.getInstance().getHostPrefix(), AFInAppEventType().getHostName())), AFKeystoreWrapper());
AFd1pSDK afDebugLog2 = AFKeystoreWrapper().afDebugLog();
afDebugLog2.AFKeystoreWrapper.execute(new AFd1pSDK.AnonymousClass5(aFd1cSDK));
}
@Override
public final void logSession(Context context) {
int i = onResponse + 15;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFKeystoreWrapper().AFVersionDeclaration().values("logSession", new String[0]);
AFKeystoreWrapper().AFVersionDeclaration().AFInAppEventType();
values(context, AFe1iSDK.logSession);
Object obj = null;
AFKeystoreWrapper(context, (String) null, (Map<String, Object>) null);
int i3 = onAttributionFailure + 43;
onResponse = i3 % 128;
if ((i3 % 2 != 0 ? '\t' : 'V') != '\t') {
return;
}
super.hashCode();
}
private void values(Context context, AFe1iSDK aFe1iSDK) {
AFInAppEventType(context);
AFe1fSDK AFLogger = AFKeystoreWrapper().AFLogger();
AFe1gSDK AFKeystoreWrapper2 = AFa1oSDK.AFKeystoreWrapper(context);
if (AFLogger.AFInAppEventParameterName()) {
int i = onResponse + 53;
onAttributionFailure = i % 128;
if (!(i % 2 == 0)) {
AFLogger.values.put("api_name", aFe1iSDK.toString());
AFLogger.values(AFKeystoreWrapper2);
} else {
AFLogger.values.put("api_name", aFe1iSDK.toString());
AFLogger.values(AFKeystoreWrapper2);
int i2 = 49 / 0;
}
}
AFLogger.AFInAppEventType();
int i3 = onAttributionFailure + 79;
onResponse = i3 % 128;
if (i3 % 2 != 0) {
Object obj = null;
super.hashCode();
}
}
@Override
public final void sendAdRevenue(Context context, Map<String, Object> map) {
Activity activity;
AFInAppEventType(context);
AFe1dSDK aFe1dSDK = new AFe1dSDK();
if (!(context == null)) {
aFe1dSDK.AFKeystoreWrapper = (Application) context.getApplicationContext();
int i = onResponse + 57;
onAttributionFailure = i % 128;
int i2 = i % 2;
}
int AFKeystoreWrapper2 = AFKeystoreWrapper(valueOf(context));
aFe1dSDK.AFInAppEventType().put("ad_network", map);
aFe1dSDK.AFInAppEventType().put("adrevenue_counter", Integer.valueOf(AFKeystoreWrapper2));
if (!(context instanceof Activity ? false : true)) {
int i3 = onAttributionFailure + 13;
onResponse = i3 % 128;
int i4 = i3 % 2;
activity = (Activity) context;
} else {
activity = null;
int i5 = onResponse + 49;
onAttributionFailure = i5 % 128;
int i6 = i5 % 2;
}
AFInAppEventType(aFe1dSDK, activity);
}
@Override
public final void logEvent(Context context, String str, Map<String, Object> map) {
int i = onResponse + 59;
onAttributionFailure = i % 128;
char c = i % 2 == 0 ? '5' : ';';
Object[] objArr = null;
logEvent(context, str, map, null);
if (c != ';') {
int length = objArr.length;
}
int i2 = onAttributionFailure + 71;
onResponse = i2 % 128;
if ((i2 % 2 != 0 ? 'O' : (char) 26) != 'O') {
return;
}
int length2 = objArr.length;
}
private void AFKeystoreWrapper(Context context, String str, Map<String, Object> map) {
AFf1wSDK aFf1wSDK = new AFf1wSDK();
if ((context != null ? (char) 11 : '@') != '@') {
int i = onResponse + 79;
onAttributionFailure = i % 128;
int i2 = i % 2;
aFf1wSDK.AFKeystoreWrapper = (Application) context.getApplicationContext();
}
aFf1wSDK.afErrorLog = str;
aFf1wSDK.values = map;
AFInAppEventType(aFf1wSDK, !(context instanceof Activity) ? null : (Activity) context);
int i3 = onResponse + 109;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
final void AFInAppEventType(AFa1sSDK aFa1sSDK, Activity activity) {
AppsFlyerRequestListener appsFlyerRequestListener;
Uri AFInAppEventType2;
int i = onAttributionFailure + 49;
onResponse = i % 128;
int i2 = i % 2;
Application application = aFa1sSDK.AFKeystoreWrapper;
String str = "";
String obj = ((activity != null ? (char) 3 : (char) 2) != 3 || activity.getIntent() == null || (AFInAppEventType2 = AFb1lSDK.AFInAppEventType(activity)) == null) ? "" : AFInAppEventType2.toString();
if (AFKeystoreWrapper().afWarnLog().AFInAppEventType != null) {
String referrer = AppsFlyerProperties.getInstance().getReferrer(application);
if (referrer == null) {
int i3 = onAttributionFailure + 57;
onResponse = i3 % 128;
int i4 = i3 % 2;
} else {
str = referrer;
}
aFa1sSDK.afRDLog = str;
aFa1sSDK.AFInAppEventParameterName = obj;
values(aFa1sSDK);
return;
}
int i5 = onResponse + 31;
onAttributionFailure = i5 % 128;
if (i5 % 2 == 0) {
AFLogger.afWarnLog("[LogEvent/Launch] AppsFlyer's SDK cannot send any event without providing DevKey.");
appsFlyerRequestListener = aFa1sSDK.AFInAppEventType;
Object obj2 = null;
super.hashCode();
if ((appsFlyerRequestListener != null ? '%' : (char) 31) != '%') {
return;
}
} else {
AFLogger.afWarnLog("[LogEvent/Launch] AppsFlyer's SDK cannot send any event without providing DevKey.");
appsFlyerRequestListener = aFa1sSDK.AFInAppEventType;
if (!(appsFlyerRequestListener != null)) {
return;
}
}
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1aSDK.values);
}
@Override
public final void anonymizeUser(boolean z) {
int i = onAttributionFailure + 121;
onResponse = i % 128;
if (i % 2 == 0) {
AFKeystoreWrapper().AFVersionDeclaration().values("anonymizeUser", String.valueOf(z));
} else {
AFKeystoreWrapper().AFVersionDeclaration().values("anonymizeUser", String.valueOf(z));
}
AppsFlyerProperties.getInstance().set(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, z);
}
@Override
public final void registerConversionListener(Context context, AppsFlyerConversionListener appsFlyerConversionListener) {
int i = onResponse + 31;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFKeystoreWrapper().AFVersionDeclaration().values("registerConversionListener", new String[0]);
values(appsFlyerConversionListener);
int i3 = onAttributionFailure + 91;
onResponse = i3 % 128;
if ((i3 % 2 != 0 ? 'S' : '!') != '!') {
Object obj = null;
super.hashCode();
}
}
private static void values(AppsFlyerConversionListener appsFlyerConversionListener) {
int i = onResponse + 23;
onAttributionFailure = i % 128;
if (!(i % 2 != 0)) {
int i2 = 76 / 0;
if (appsFlyerConversionListener == null) {
return;
}
} else if (appsFlyerConversionListener == null) {
return;
}
valueOf = appsFlyerConversionListener;
int i3 = onAttributionFailure + 37;
onResponse = i3 % 128;
int i4 = i3 % 2;
}
@Override
public final void unregisterConversionListener() {
int i = onAttributionFailure + 27;
onResponse = i % 128;
if (i % 2 == 0) {
AFKeystoreWrapper().AFVersionDeclaration().values("unregisterConversionListener", new String[0]);
} else {
AFKeystoreWrapper().AFVersionDeclaration().values("unregisterConversionListener", new String[0]);
}
valueOf = null;
}
@Override
public final void registerValidatorListener(Context context, AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener) {
AFKeystoreWrapper().AFVersionDeclaration().values("registerValidatorListener", new String[0]);
AFLogger.afDebugLog("registerValidatorListener called");
if (!(appsFlyerInAppPurchaseValidatorListener != null)) {
int i = onResponse + 17;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFLogger.afDebugLog("registerValidatorListener null listener");
return;
}
AFInAppEventType = appsFlyerInAppPurchaseValidatorListener;
int i3 = onResponse + 99;
onAttributionFailure = i3 % 128;
if ((i3 % 2 == 0 ? 'R' : '1') != '1') {
Object[] objArr = null;
int length = objArr.length;
}
}
public static String AFKeystoreWrapper(SimpleDateFormat simpleDateFormat, long j) {
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
String format = simpleDateFormat.format(new Date(j));
int i = onResponse + 27;
onAttributionFailure = i % 128;
int i2 = i % 2;
return format;
}
private void AFInAppEventParameterName(Context context, String str, Map<String, Object> map, String str2, String str3) {
AFa1sSDK aFf1vSDK;
int i = onResponse;
int i2 = i + 59;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
if ((str != null ? (char) 7 : (char) 2) == 7) {
int i4 = i + 111;
onAttributionFailure = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 52 / 0;
}
if ((context == null ? '4' : 'Q') == '4') {
aFf1vSDK.AFKeystoreWrapper = (Application) context.getApplicationContext();
}
aFf1vSDK.afErrorLog = str;
aFf1vSDK.values = map;
aFf1vSDK.afRDLog = str2;
aFf1vSDK.AFInAppEventParameterName = str3;
values(aFf1vSDK);
}
aFf1vSDK = new AFf1vSDK();
if ((context == null ? '4' : 'Q') == '4') {
}
aFf1vSDK.afErrorLog = str;
aFf1vSDK.values = map;
aFf1vSDK.afRDLog = str2;
aFf1vSDK.AFInAppEventParameterName = str3;
values(aFf1vSDK);
}
private void values(AFa1sSDK aFa1sSDK) {
AppsFlyerRequestListener appsFlyerRequestListener;
int i = onResponse + 15;
onAttributionFailure = i % 128;
int i2 = i % 2;
boolean z = aFa1sSDK.afErrorLog == null;
if (values()) {
int i3 = onResponse + 43;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
AFLogger.afInfoLog("CustomerUserId not set, reporting is disabled", true);
return;
}
Object[] objArr = null;
if ((z ? (char) 27 : Typography.dollar) == 27) {
int i5 = onAttributionFailure + 93;
onResponse = i5 % 128;
int i6 = i5 % 2;
if ((AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.LAUNCH_PROTECT_ENABLED, true) ? '\\' : 'D') != '\\') {
AFLogger.afInfoLog("Allowing multiple launches within a 5 second time window.");
} else if (afErrorLog()) {
int i7 = onAttributionFailure + 43;
onResponse = i7 % 128;
if ((i7 % 2 != 0 ? (char) 30 : '%') != '%') {
appsFlyerRequestListener = aFa1sSDK.AFInAppEventType;
super.hashCode();
} else {
appsFlyerRequestListener = aFa1sSDK.AFInAppEventType;
}
int i8 = onResponse + 45;
onAttributionFailure = i8 % 128;
if (i8 % 2 != 0) {
return;
}
super.hashCode();
return;
}
this.afRDLog = System.currentTimeMillis();
}
AFInAppEventParameterName(AFKeystoreWrapper().values(), new AFa1vSDK(this, aFa1sSDK, (byte) 0), 0L, TimeUnit.MILLISECONDS);
int i9 = onResponse + 119;
onAttributionFailure = i9 % 128;
if (i9 % 2 == 0) {
int length = objArr.length;
}
}
private boolean afErrorLog() {
if (this.afRDLog > 0) {
long currentTimeMillis = System.currentTimeMillis() - this.afRDLog;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss.SSS Z", Locale.US);
String AFKeystoreWrapper2 = AFKeystoreWrapper(simpleDateFormat, this.afRDLog);
String AFKeystoreWrapper3 = AFKeystoreWrapper(simpleDateFormat, this.AFLogger$LogLevel);
if (currentTimeMillis < this.afWarnLog) {
int i = onResponse + 5;
onAttributionFailure = i % 128;
if (i % 2 == 0) {
boolean isStopped = isStopped();
Object[] objArr = null;
int length = objArr.length;
}
}
if ((!isStopped() ? (char) 4 : 'W') == 4) {
AFLogger.afInfoLog(String.format(Locale.US, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nSending launch (+%s ms)", AFKeystoreWrapper2, AFKeystoreWrapper3, Long.valueOf(currentTimeMillis)));
}
} else if (!isStopped()) {
AFLogger.afInfoLog("Sending first launch for this session!");
}
return false;
}
private void valueOf(Context context, String str) {
AFe1bSDK aFe1bSDK = new AFe1bSDK();
if (context != null) {
aFe1bSDK.AFKeystoreWrapper = (Application) context.getApplicationContext();
int i = onResponse + 65;
onAttributionFailure = i % 128;
int i2 = i % 2;
}
AFa1sSDK AFKeystoreWrapper2 = aFe1bSDK.AFKeystoreWrapper(AFKeystoreWrapper().AFInAppEventParameterName().AFInAppEventType.AFKeystoreWrapper("appsFlyerCount", 0));
AFKeystoreWrapper2.afRDLog = str;
if (str != null) {
int i3 = onResponse + 31;
onAttributionFailure = i3 % 128;
char c = i3 % 2 == 0 ? Typography.less : 'a';
int length = str.length();
if (c != '<') {
if ((length > 5 ? '9' : '2') != '9') {
return;
}
} else {
if ((length > 2 ? (char) 19 : ';') != 19) {
return;
}
}
if (AFInAppEventParameterName(AFKeystoreWrapper2, valueOf(context))) {
AFInAppEventParameterName(AFKeystoreWrapper().values(), new AFa1vSDK(this, AFKeystoreWrapper2, (byte) 0), 5L, TimeUnit.MILLISECONDS);
}
}
}
private boolean AFInAppEventParameterName(AFa1sSDK aFa1sSDK, SharedPreferences sharedPreferences) {
boolean z;
boolean z2;
int AFKeystoreWrapper2 = AFKeystoreWrapper(sharedPreferences, false);
if (AFKeystoreWrapper2 == 1) {
int i = onAttributionFailure;
int i2 = i + 13;
onResponse = i2 % 128;
int i3 = i2 % 2;
if (!(aFa1sSDK instanceof AFe1cSDK)) {
int i4 = i + 1;
int i5 = i4 % 128;
onResponse = i5;
int i6 = i4 % 2;
int i7 = i5 + 29;
onAttributionFailure = i7 % 128;
int i8 = i7 % 2;
z = true;
if (!sharedPreferences.getBoolean(AppsFlyerProperties.NEW_REFERRER_SENT, false)) {
if (!(AFKeystoreWrapper2 != 1)) {
z2 = true;
return !z2 || z;
}
}
z2 = false;
if (z2) {
}
}
}
z = false;
if (!sharedPreferences.getBoolean(AppsFlyerProperties.NEW_REFERRER_SENT, false)) {
}
z2 = false;
if (z2) {
}
}
private void AFInAppEventParameterName(Map<String, Object> map) {
boolean z;
int i = onAttributionFailure + 119;
onResponse = i % 128;
if (i % 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)) {
int i2 = onAttributionFailure + 21;
onResponse = i2 % 128;
int i3 = i2 % 2;
z = false;
if (z) {
int i4 = onAttributionFailure + 3;
onResponse = i4 % 128;
int i5 = i4 % 2;
if (map.get("advertiserId") != null) {
int i6 = onResponse + 25;
onAttributionFailure = i6 % 128;
int i7 = i6 % 2;
try {
if ((AFb1pSDK.valueOf(this.afInfoLog) ? 'C' : 'S') != 'S' && map.remove("android_id") != null) {
int i8 = onAttributionFailure + 11;
onResponse = i8 % 128;
if (!(i8 % 2 == 0)) {
AFLogger.afInfoLog("validateGaidAndIMEI :: removing: android_id");
Object obj = null;
super.hashCode();
} else {
AFLogger.afInfoLog("validateGaidAndIMEI :: removing: android_id");
}
int i9 = onAttributionFailure + 9;
onResponse = i9 % 128;
int i10 = i9 % 2;
}
if (!AFb1pSDK.valueOf(AFKeystoreWrapper().afWarnLog().valueOf) || map.remove("imei") == null) {
return;
}
AFLogger.afInfoLog("validateGaidAndIMEI :: removing: imei");
return;
} catch (Exception e) {
AFLogger.afErrorLog("failed to remove IMEI or AndroidID key from params; ", e);
return;
}
}
return;
}
return;
}
}
z = true;
if (z) {
}
}
private boolean afRDLog() {
int i = onResponse + 55;
int i2 = i % 128;
onAttributionFailure = i2;
int i3 = i % 2;
Map<String, Object> map = this.onAttributionFailureNative;
if (map != null) {
int i4 = i2 + 67;
onResponse = i4 % 128;
boolean z = i4 % 2 == 0;
boolean isEmpty = map.isEmpty();
if (z) {
if ((!isEmpty ? '(' : ':') == '(') {
return true;
}
} else {
int i5 = 74 / 0;
if (!isEmpty) {
}
}
}
return false;
}
private void values(Map<String, Object> map, boolean z) {
map.put("platformextension", this.onInstallConversionFailureNative.AFKeystoreWrapper());
if ((z ? 'I' : (char) 27) != 27) {
int i = onAttributionFailure + 125;
onResponse = i % 128;
if (!(i % 2 != 0)) {
map.put("platform_extension_v2", AFKeystoreWrapper().init().AFInAppEventType());
} else {
map.put("platform_extension_v2", AFKeystoreWrapper().init().AFInAppEventType());
int i2 = 79 / 0;
}
int i3 = onResponse + 113;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
}
public static Map<String, Object> valueOf(Map<String, Object> map) {
int i = onResponse + 97;
onAttributionFailure = i % 128;
int i2 = i % 2;
if ((map.containsKey("meta") ? '=' : 'N') == 'N') {
HashMap hashMap = new HashMap();
map.put("meta", hashMap);
return hashMap;
}
Map<String, Object> map2 = (Map) map.get("meta");
int i3 = onAttributionFailure + 103;
onResponse = i3 % 128;
int i4 = i3 % 2;
return map2;
}
private static boolean AFInAppEventParameterName(SharedPreferences sharedPreferences) {
int i = onResponse + 65;
onAttributionFailure = i % 128;
char c = i % 2 == 0 ? ',' : (char) 26;
Object[] objArr = null;
boolean parseBoolean = Boolean.parseBoolean(sharedPreferences.getString("sentSuccessfully", null));
if (c != 26) {
int length = objArr.length;
}
return parseBoolean;
}
private static void valueOf(Context context, Map<String, Object> map) {
String str;
int i = onResponse + 121;
onAttributionFailure = i % 128;
int i2 = i % 2;
WindowManager windowManager = (WindowManager) context.getSystemService("window");
if ((windowManager != null ? '\r' : 'A') != '\r') {
return;
}
int i3 = onResponse + 65;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
int rotation = windowManager.getDefaultDisplay().getRotation();
if (rotation == 0) {
str = "p";
} else if (rotation == 1) {
str = "l";
} else if (rotation == 2) {
str = "pr";
} else if (rotation != 3) {
str = "";
} else {
int i5 = onAttributionFailure + 117;
onResponse = i5 % 128;
int i6 = i5 % 2;
str = "lr";
}
map.put("sc_o", str);
}
private void valueOf(Context context, boolean z, Map<String, Object> map, int i) {
HashMap hashMap = new HashMap();
hashMap.put("cpu_abi", AFInAppEventParameterName("ro.product.cpu.abi"));
hashMap.put("cpu_abi2", AFInAppEventParameterName("ro.product.cpu.abi2"));
hashMap.put("arch", AFInAppEventParameterName("os.arch"));
hashMap.put("build_display_id", AFInAppEventParameterName("ro.build.display.id"));
if ((z ? '=' : '_') == '=') {
AFInAppEventType(context, hashMap);
if (i <= 2) {
int i2 = onAttributionFailure + 47;
onResponse = i2 % 128;
int i3 = i2 % 2;
hashMap.putAll(AFa1dSDK.AFInAppEventType(context).values());
}
}
hashMap.put("dim", AFc1lSDK.values(context));
map.put("deviceData", hashMap);
int i4 = onAttributionFailure + 125;
onResponse = i4 % 128;
if (i4 % 2 != 0) {
Object[] objArr = null;
int length = objArr.length;
}
}
public final void AFKeystoreWrapper(Context context, Map<String, ? super String> map) {
int i = onResponse + 121;
onAttributionFailure = i % 128;
int i2 = i % 2;
boolean AFKeystoreWrapper2 = AFKeystoreWrapper(AppsFlyerProperties.DISABLE_NETWORK_DATA, false);
AFa1hSDK.AFa1zSDK valueOf2 = AFKeystoreWrapper().onInstallConversionFailureNative().valueOf(context);
map.put("network", valueOf2.AFInAppEventType);
if (!AFKeystoreWrapper2 && valueOf2.AFInAppEventParameterName != null) {
int i3 = onAttributionFailure + 13;
onResponse = i3 % 128;
int i4 = i3 % 2;
map.put("operator", valueOf2.AFInAppEventParameterName);
}
if (!(AFKeystoreWrapper2)) {
int i5 = onResponse + 53;
onAttributionFailure = i5 % 128;
int i6 = i5 % 2;
if ((valueOf2.AFKeystoreWrapper != null ? (char) 6 : (char) 17) == 6) {
map.put("carrier", valueOf2.AFKeystoreWrapper);
}
}
int i7 = onAttributionFailure + 29;
onResponse = i7 % 128;
if (!(i7 % 2 == 0)) {
Object[] objArr = null;
int length = objArr.length;
}
}
private void AFInAppEventType(Context context, Map<String, Object> map) {
int i = onResponse + 47;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFc1zSDK.AFa1vSDK AFInAppEventType2 = AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFInAppEventType(context);
map.put("btl", Float.toString(AFInAppEventType2.valueOf));
if (AFInAppEventType2.values != null) {
int i3 = onResponse + 115;
onAttributionFailure = i3 % 128;
if (i3 % 2 == 0) {
map.put("btch", AFInAppEventType2.values);
int i4 = 56 / 0;
} else {
map.put("btch", AFInAppEventType2.values);
}
}
int i5 = onResponse + 101;
onAttributionFailure = i5 % 128;
if (!(i5 % 2 != 0)) {
int i6 = 64 / 0;
}
}
private static void AFInAppEventType(Map<String, Object> map) {
String string;
String string2;
int i = onResponse + 57;
onAttributionFailure = i % 128;
if (i % 2 == 0) {
string = AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.ONELINK_ID);
string2 = AppsFlyerProperties.getInstance().getString("onelinkVersion");
int i2 = 49 / 0;
} else {
string = AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.ONELINK_ID);
string2 = AppsFlyerProperties.getInstance().getString("onelinkVersion");
}
if (string2 != null) {
int i3 = onResponse + 5;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
map.put("onelink_ver", string2);
}
}
private static String values(Activity activity) {
Bundle extras;
String str = 0;
str = 0;
str = 0;
str = 0;
str = 0;
if (activity != null) {
int i = onAttributionFailure + 105;
onResponse = i % 128;
int i2 = i % 2;
Intent intent = activity.getIntent();
if (intent != null) {
int i3 = onAttributionFailure + 23;
onResponse = i3 % 128;
try {
if (i3 % 2 == 0) {
extras = intent.getExtras();
if ((extras != null ? '-' : 'X') != 'X') {
str = extras.getString("af");
if (str != 0) {
int i4 = onResponse + 51;
onAttributionFailure = i4 % 128;
if (i4 % 2 == 0) {
AFLogger.afInfoLog("Push Notification received af payload = ".concat(String.valueOf((Object) str)));
extras.remove("af");
activity.setIntent(intent.putExtras(extras));
int i5 = 41 / 0;
} else {
AFLogger.afInfoLog("Push Notification received af payload = ".concat(String.valueOf((Object) str)));
extras.remove("af");
activity.setIntent(intent.putExtras(extras));
}
}
}
} else {
extras = intent.getExtras();
int length = str.length;
if ((extras != null ? (char) 16 : '0') != 16) {
}
str = extras.getString("af");
if (str != 0) {
}
}
} catch (Throwable th) {
AFLogger.afErrorLog(th.getMessage(), th);
}
AFLogger.afErrorLog(th.getMessage(), th);
}
}
int i6 = onResponse + 79;
onAttributionFailure = i6 % 128;
if (i6 % 2 == 0) {
int i7 = 43 / 0;
return str;
}
return str;
}
private int AFKeystoreWrapper(SharedPreferences sharedPreferences) {
int i = onResponse + 61;
onAttributionFailure = i % 128;
int i2 = i % 2;
int AFInAppEventType2 = AFInAppEventType(sharedPreferences, "appsFlyerAdRevenueCount", true);
int i3 = onResponse + 103;
onAttributionFailure = i3 % 128;
if (!(i3 % 2 == 0)) {
return AFInAppEventType2;
}
Object obj = null;
super.hashCode();
return AFInAppEventType2;
}
public final void valueOf(Context context, Map<String, Object> map, Uri uri) {
AFInAppEventType(context);
if (!map.containsKey("af_deeplink")) {
int i = onResponse + 73;
onAttributionFailure = i % 128;
int i2 = i % 2;
String AFKeystoreWrapper2 = AFKeystoreWrapper(uri.toString());
AFa1tSDK onAppOpenAttributionNative = AFKeystoreWrapper().onAppOpenAttributionNative();
if ((onAppOpenAttributionNative.AFInAppEventParameterName != null) && onAppOpenAttributionNative.valueOf != null) {
if ((AFKeystoreWrapper2.contains(onAppOpenAttributionNative.AFInAppEventParameterName) ? '\r' : '1') == '\r') {
Uri.Builder buildUpon = Uri.parse(AFKeystoreWrapper2).buildUpon();
Uri.Builder buildUpon2 = Uri.EMPTY.buildUpon();
Iterator<Map.Entry<String, String>> it = onAppOpenAttributionNative.valueOf.entrySet().iterator();
int i3 = onResponse + 11;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
while (true) {
if (!it.hasNext()) {
break;
}
Map.Entry<String, String> next = it.next();
buildUpon.appendQueryParameter(next.getKey(), next.getValue());
buildUpon2.appendQueryParameter(next.getKey(), next.getValue());
}
AFKeystoreWrapper2 = buildUpon.build().toString();
map.put("appended_query_params", buildUpon2.build().getEncodedQuery());
}
}
map.put("af_deeplink", AFKeystoreWrapper2);
}
HashMap hashMap = new HashMap();
hashMap.put("link", uri.toString());
AFe1zSDK aFe1zSDK = new AFe1zSDK(AFKeystoreWrapper(), UUID.randomUUID(), uri);
if (aFe1zSDK.AFLogger$LogLevel()) {
map.put("isBrandedDomain", Boolean.TRUE);
}
AFa1cSDK.values(context, hashMap, uri);
if (!aFe1zSDK.afWarnLog()) {
AFb1oSDK.valueOf(hashMap);
return;
}
aFe1zSDK.afRDLog = values(hashMap);
AFd1pSDK afDebugLog2 = AFKeystoreWrapper().afDebugLog();
afDebugLog2.AFKeystoreWrapper.execute(new AFd1pSDK.AnonymousClass5(aFe1zSDK));
int i5 = onResponse + 95;
onAttributionFailure = i5 % 128;
int i6 = i5 % 2;
}
private static String AFKeystoreWrapper(String str) {
Object obj = null;
if (str == null) {
return null;
}
if (str.matches("fb\\d*?://authorize.*")) {
int i = onAttributionFailure + 99;
onResponse = i % 128;
if ((i % 2 != 0 ? '\f' : (char) 17) == '\f') {
boolean contains = str.contains("access_token");
super.hashCode();
}
}
return str;
}
private static String valueOf(String str) {
int i = onResponse + 65;
onAttributionFailure = i % 128;
int i2 = i % 2;
int indexOf = str.indexOf(63);
if (indexOf == -1) {
int i3 = onAttributionFailure;
int i4 = i3 + 121;
onResponse = i4 % 128;
int i5 = i4 % 2;
int i6 = i3 + 69;
onResponse = i6 % 128;
int i7 = i6 % 2;
return "";
}
return str.substring(indexOf);
}
private AFe1zSDK.AFa1zSDK values(final Map<String, String> map) {
AFe1zSDK.AFa1zSDK aFa1zSDK = new AFe1zSDK.AFa1zSDK() {
@Override
public final void AFInAppEventType(Map<String, String> map2) {
for (String str : map2.keySet()) {
map.put(str, map2.get(str));
}
AFb1oSDK.valueOf(map);
}
@Override
public final void AFKeystoreWrapper(String str) {
AFb1oSDK.values(str, DeepLinkResult.Error.NETWORK);
}
};
int i = onResponse + 65;
onAttributionFailure = i % 128;
if ((i % 2 == 0 ? 'J' : 'L') != 'J') {
return aFa1zSDK;
}
Object obj = null;
super.hashCode();
return aFa1zSDK;
}
private static void AFKeystoreWrapper(Context context, Map<String, Object> map, String str) {
int i = onResponse + 49;
onAttributionFailure = i % 128;
int i2 = i % 2;
SharedPreferences valueOf2 = valueOf(context);
SharedPreferences.Editor edit = valueOf2.edit();
try {
String string = valueOf2.getString("prev_event_name", null);
if (string != null) {
JSONObject jSONObject = new JSONObject();
jSONObject.put("prev_event_timestamp", valueOf2.getLong("prev_event_timestamp", -1L));
jSONObject.put("prev_event_name", string);
map.put("prev_event", jSONObject);
int i3 = onAttributionFailure + 105;
onResponse = i3 % 128;
int i4 = i3 % 2;
}
edit.putString("prev_event_name", str).putLong("prev_event_timestamp", System.currentTimeMillis()).apply();
} catch (Exception e) {
AFLogger.afErrorLog("Error while processing previous event.", e);
}
}
public static boolean AFKeystoreWrapper(Context context) {
int i = onAttributionFailure + 41;
onResponse = i % 128;
try {
} catch (Throwable th) {
AFLogger.afErrorLog("WARNING: Google play services is unavailable. ", th);
}
if (i % 2 != 0) {
int isGooglePlayServicesAvailable = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context);
Object obj = null;
super.hashCode();
if ((isGooglePlayServicesAvailable == 0 ? '\n' : '\b') != '\n') {
try {
context.getPackageManager().getPackageInfo("com.google.android.gms", 0);
int i2 = onResponse + 97;
onAttributionFailure = i2 % 128;
if (i2 % 2 != 0) {
return true;
}
int i3 = 2 / 0;
return true;
} catch (PackageManager.NameNotFoundException e) {
AFLogger.afErrorLog("WARNING: Google Play Services is unavailable. ", e);
return false;
}
}
}
return true;
}
private void values(Context context, Map<String, Object> map) {
String str;
int i = onResponse + 71;
onAttributionFailure = i % 128;
int i2 = i % 2;
AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
if ((appsFlyerProperties.getBoolean(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, false) ? (char) 14 : (char) 24) == 14) {
map.put(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, "true");
return;
}
AFc1xSDK afErrorLog2 = AFKeystoreWrapper().afErrorLog();
String AFKeystoreWrapper2 = AFKeystoreWrapper().afWarnLog().AFKeystoreWrapper(afErrorLog2);
if (!AFb1pSDK.valueOf(AFKeystoreWrapper2)) {
int i3 = onResponse + 13;
onAttributionFailure = i3 % 128;
if (i3 % 2 == 0) {
map.put("imei", AFKeystoreWrapper2);
int i4 = 17 / 0;
} else {
map.put("imei", AFKeystoreWrapper2);
}
}
boolean z = appsFlyerProperties.getBoolean(AppsFlyerProperties.COLLECT_ANDROID_ID, false);
Object[] objArr = null;
String AFInAppEventType2 = afErrorLog2.AFInAppEventType("androidIdCached", (String) null);
if ((z) && AFb1pSDK.valueOf(this.afInfoLog)) {
if (afDebugLog(context)) {
int i5 = onResponse + 55;
onAttributionFailure = i5 % 128;
int i6 = i5 % 2;
try {
str = Settings.Secure.getString(context.getContentResolver(), "android_id");
} catch (Exception e) {
if (AFInAppEventType2 != null) {
AFLogger.afDebugLog("use cached AndroidId: ".concat(String.valueOf(AFInAppEventType2)));
int i7 = onResponse + 119;
onAttributionFailure = i7 % 128;
int i8 = i7 % 2;
} else {
AFInAppEventType2 = null;
}
AFLogger.afErrorLog(e.getMessage(), e);
}
if (!(str != null)) {
if (AFInAppEventType2 != null) {
int i9 = onResponse + 19;
onAttributionFailure = i9 % 128;
int i10 = i9 % 2;
AFLogger.afDebugLog("use cached AndroidId: ".concat(String.valueOf(AFInAppEventType2)));
} else {
AFInAppEventType2 = null;
}
str = AFInAppEventType2;
}
}
str = null;
} else {
str = this.afInfoLog;
if (str != null) {
int i11 = onAttributionFailure + 9;
int i12 = i11 % 128;
onResponse = i12;
if (i11 % 2 != 0) {
int length = objArr.length;
}
int i13 = i12 + 87;
onAttributionFailure = i13 % 128;
int i14 = i13 % 2;
}
str = null;
}
if ((str != null ? 'Z' : ' ') != 'Z') {
AFLogger.afInfoLog("Android ID was not collected.");
} else {
int i15 = onResponse + 89;
onAttributionFailure = i15 % 128;
if (i15 % 2 == 0) {
afErrorLog2.AFKeystoreWrapper("androidIdCached", str);
map.put("android_id", str);
super.hashCode();
} else {
afErrorLog2.AFKeystoreWrapper("androidIdCached", str);
map.put("android_id", str);
}
}
AFc1qSDK.AFa1vSDK AFInAppEventParameterName2 = AFa1bSDK.AFInAppEventParameterName(context);
if (AFInAppEventParameterName2 != null) {
HashMap hashMap = new HashMap();
hashMap.put("isManual", AFInAppEventParameterName2.AFKeystoreWrapper);
hashMap.put("val", AFInAppEventParameterName2.AFInAppEventParameterName);
Boolean bool = AFInAppEventParameterName2.AFInAppEventType;
if (bool != null) {
hashMap.put("isLat", bool);
}
map.put("oaid", hashMap);
}
}
private static boolean afDebugLog(Context context) {
boolean z;
int i = onResponse + 85;
onAttributionFailure = i % 128;
if (i % 2 != 0 ? !AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, false) : !AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, true)) {
if (!AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, false)) {
z = false;
if (!z) {
int i2 = onAttributionFailure + 1;
onResponse = i2 % 128;
if ((i2 % 2 != 0 ? ' ' : (char) 26) == ' ') {
int i3 = 13 / 0;
}
}
return true;
}
}
int i4 = onResponse + 45;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
z = true;
if (!z) {
}
return true;
}
private static boolean afRDLog(Context context) {
int i = onResponse + 89;
onAttributionFailure = i % 128;
if ((i % 2 == 0 ? '/' : (char) 20) != 20) {
boolean contains = valueOf(context).contains("appsFlyerCount");
Object[] objArr = null;
int length = objArr.length;
}
}
private String AFLogger$LogLevel(Context context) {
int i = onAttributionFailure + 43;
onResponse = i % 128;
int i2 = i % 2;
SharedPreferences valueOf2 = valueOf(context);
if ((valueOf2.contains("INSTALL_STORE") ? '4' : 'V') != 'V') {
String string = valueOf2.getString("INSTALL_STORE", null);
int i3 = onResponse + 111;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
return string;
}
String level = (afRDLog(context) ? 'L' : '_') != '_' ? getLevel(context) : null;
values(context).AFKeystoreWrapper("INSTALL_STORE", level);
return level;
}
private String getLevel(Context context) {
String string = AppsFlyerProperties.getInstance().getString("api_store_value");
if (string == null) {
String values2 = values(context, "AF_STORE");
int i = onAttributionFailure + 19;
onResponse = i % 128;
if ((i % 2 != 0 ? '-' : '1') != '1') {
int i2 = 69 / 0;
return values2;
}
return values2;
}
int i3 = onAttributionFailure + 89;
onResponse = i3 % 128;
if ((i3 % 2 != 0 ? 'K' : '9') != 'K') {
return string;
}
int i4 = 10 / 0;
return string;
}
private static String AFInAppEventParameterName(String str) {
Object invoke;
int i = onAttributionFailure + 17;
onResponse = i % 128;
String str2 = null;
try {
if ((i % 2 != 0 ? '4' : '5') != '5') {
Class<?> cls = Class.forName("android.os.SystemProperties");
Class<?>[] clsArr = new Class[1];
clsArr[1] = String.class;
Method method = cls.getMethod("get", clsArr);
Object[] objArr = new Object[0];
objArr[1] = str;
invoke = method.invoke(null, objArr);
} else {
invoke = Class.forName("android.os.SystemProperties").getMethod("get", String.class).invoke(null, str);
}
str2 = (String) invoke;
} catch (Throwable th) {
AFLogger.afErrorLog(th.getMessage(), th);
}
int i2 = onResponse + 49;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
return str2;
}
private String values(Context context, String str) {
int i = onAttributionFailure + 23;
int i2 = i % 128;
onResponse = i2;
int i3 = i % 2;
if (context != null) {
AFInAppEventType(context);
String valueOf2 = AFKeystoreWrapper().AFInAppEventParameterName().valueOf(str);
int i4 = onAttributionFailure + 65;
onResponse = i4 % 128;
int i5 = i4 % 2;
return valueOf2;
}
int i6 = i2 + 117;
onAttributionFailure = i6 % 128;
Object obj = null;
if ((i6 % 2 == 0 ? (char) 20 : Typography.amp) == 20) {
super.hashCode();
}
int i7 = onAttributionFailure + 37;
onResponse = i7 % 128;
int i8 = i7 % 2;
return 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 i = onAttributionFailure + 19;
onResponse = i % 128;
int i2 = i % 2;
} catch (JSONException e) {
AFLogger.afErrorLog(e.getMessage(), e);
}
}
boolean z = false;
if (!(str2 == null)) {
jSONObject.put(c.a, str2);
}
if (str3 == null) {
z = true;
}
if (!z) {
jSONObject.put("af_siteid", str3);
int i3 = onAttributionFailure + 39;
onResponse = i3 % 128;
int i4 = i3 % 2;
}
if (!jSONObject.has("pid")) {
AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
return;
}
int i5 = onResponse + 103;
onAttributionFailure = i5 % 128;
int i6 = i5 % 2;
valueOf("preInstallName", jSONObject.toString());
int i7 = onResponse + 19;
onAttributionFailure = i7 % 128;
int i8 = i7 % 2;
}
private static void values(String str) {
try {
if (!(new JSONObject(str).has("pid"))) {
AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
int i = onResponse + 121;
onAttributionFailure = i % 128;
int i2 = i % 2;
return;
}
int i3 = onAttributionFailure + 103;
onResponse = i3 % 128;
if ((i3 % 2 != 0 ? 'J' : ',') != ',') {
valueOf("preInstallName", str);
Object[] objArr = null;
int length = objArr.length;
return;
}
valueOf("preInstallName", str);
} catch (JSONException e) {
AFLogger.afErrorLog("Error parsing JSON for preinstall", e);
}
}
private String afWarnLog(Context context) {
File afDebugLog2 = afDebugLog(AFInAppEventParameterName("ro.appsflyer.preinstall.path"));
if (AFInAppEventType(afDebugLog2)) {
afDebugLog2 = afDebugLog(values(context, "AF_PRE_INSTALL_PATH"));
}
if (AFInAppEventType(afDebugLog2)) {
afDebugLog2 = afDebugLog("/data/local/tmp/pre_install.appsflyer");
}
if ((AFInAppEventType(afDebugLog2) ? '7' : (char) 31) == '7') {
int i = onResponse + 49;
onAttributionFailure = i % 128;
int i2 = i % 2;
afDebugLog2 = afDebugLog("/etc/pre_install.appsflyer");
}
if (!(!AFInAppEventType(afDebugLog2))) {
int i3 = onAttributionFailure + 103;
onResponse = i3 % 128;
int i4 = i3 % 2;
return null;
}
return AFInAppEventType(afDebugLog2, context.getPackageName());
}
private static String AFInAppEventType(File file, String str) {
FileReader fileReader;
int i;
Properties properties;
Object obj = null;
try {
try {
try {
properties = new Properties();
fileReader = new FileReader(file);
} catch (Throwable th) {
AFLogger.afErrorLog(th.getMessage(), th);
i = onAttributionFailure + 11;
onResponse = i % 128;
if ((i % 2 != 0 ? '1' : 'G') != 'G') {
super.hashCode();
return null;
}
return null;
}
} catch (FileNotFoundException unused) {
fileReader = null;
} catch (Throwable th2) {
th = th2;
fileReader = null;
}
try {
properties.load(fileReader);
AFLogger.afInfoLog("Found PreInstall property!");
String property = properties.getProperty(str);
try {
fileReader.close();
} catch (Throwable th3) {
AFLogger.afErrorLog(th3.getMessage(), th3);
}
int i2 = onResponse + 29;
onAttributionFailure = i2 % 128;
if ((i2 % 2 == 0 ? (char) 20 : Typography.greater) != 20) {
return property;
}
int i3 = 29 / 0;
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();
}
i = onAttributionFailure + 11;
onResponse = i % 128;
if ((i % 2 != 0 ? '1' : 'G') != 'G') {
}
} catch (Throwable th4) {
th = th4;
AFLogger.afErrorLog(th.getMessage(), th);
if (fileReader != null) {
fileReader.close();
}
i = onAttributionFailure + 11;
onResponse = i % 128;
if ((i % 2 != 0 ? '1' : 'G') != 'G') {
}
}
} catch (Throwable th5) {
if (fileReader != null) {
try {
fileReader.close();
} catch (Throwable th6) {
AFLogger.afErrorLog(th6.getMessage(), th6);
}
}
throw th5;
}
}
private static boolean AFInAppEventType(File file) {
int i = onAttributionFailure + 69;
onResponse = i % 128;
if (i % 2 != 0) {
Object obj = null;
super.hashCode();
}
return true;
}
private static File afDebugLog(String str) {
int i = onAttributionFailure + 93;
int i2 = i % 128;
onResponse = i2;
int i3 = i % 2;
if ((str != null ? '9' : (char) 16) != '9') {
return null;
}
int i4 = i2 + 107;
onAttributionFailure = i4 % 128;
int i5 = i4 % 2;
try {
if (str.trim().length() > 0) {
File file = new File(str.trim());
int i6 = onAttributionFailure + 7;
onResponse = i6 % 128;
if (!(i6 % 2 == 0)) {
int i7 = 71 / 0;
return file;
}
return file;
}
return null;
} catch (Throwable th) {
AFLogger.afErrorLog(th.getMessage(), th);
return null;
}
}
private String AFVersionDeclaration(Context context) {
String str;
SharedPreferences valueOf2 = valueOf(context);
String AFInAppEventType2 = AFInAppEventType("preInstallName");
if ((AFInAppEventType2 != null ? (char) 28 : '\t') != '\t') {
return AFInAppEventType2;
}
Object obj = null;
if ((valueOf2.contains("preInstallName") ? (char) 21 : '?') != '?') {
str = valueOf2.getString("preInstallName", null);
} else {
if ((afRDLog(context) ? 'D' : (char) 18) == 'D') {
int i = onAttributionFailure + 107;
onResponse = i % 128;
int i2 = i % 2;
AFInAppEventType2 = afWarnLog(context);
if (AFInAppEventType2 == null) {
AFInAppEventType2 = values(context, "AF_PRE_INSTALL_NAME");
} else {
int i3 = onResponse + 19;
onAttributionFailure = i3 % 128;
if ((i3 % 2 == 0 ? '=' : '2') == '=') {
super.hashCode();
}
}
}
if (AFInAppEventType2 != null) {
values(context).AFKeystoreWrapper("preInstallName", AFInAppEventType2);
}
str = AFInAppEventType2;
}
if (str != null) {
valueOf("preInstallName", str);
}
return str;
}
@Deprecated
public final String AFInAppEventParameterName(Context context) {
int i = onAttributionFailure + 97;
onResponse = i % 128;
int i2 = i % 2;
AFInAppEventType(context);
String values2 = AFKeystoreWrapper().AFInAppEventParameterName().values();
int i3 = onResponse + 125;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
return values2;
}
@Override
public final boolean isPreInstalledApp(Context context) {
try {
} catch (PackageManager.NameNotFoundException e) {
AFLogger.afErrorLog("Could not check if app is pre installed", e);
}
if ((context.getPackageManager().getApplicationInfo(context.getPackageName(), 0).flags & 1) != 0) {
int i = onAttributionFailure + 111;
onResponse = i % 128;
int i2 = i % 2;
return true;
}
int i3 = onAttributionFailure + 105;
onResponse = i3 % 128;
int i4 = i3 % 2;
return false;
}
public static String values(AFc1xSDK aFc1xSDK, String str) {
String AFInAppEventType2 = aFc1xSDK.AFInAppEventType("CACHED_CHANNEL", (String) null);
if ((AFInAppEventType2 != null ? (char) 11 : (char) 23) == 23) {
aFc1xSDK.AFKeystoreWrapper("CACHED_CHANNEL", str);
return str;
}
int i = onAttributionFailure;
int i2 = i + 95;
onResponse = i2 % 128;
int i3 = i2 % 2;
int i4 = i + 59;
onResponse = i4 % 128;
int i5 = i4 % 2;
return AFInAppEventType2;
}
private String AFKeystoreWrapper(SimpleDateFormat simpleDateFormat, Context context) {
String str;
int i = onResponse + 27;
onAttributionFailure = i % 128;
int i2 = i % 2;
String string = valueOf(context).getString("appsFlyerFirstInstall", null);
if ((string == null ? '(' : 'Y') != 'Y') {
if (afRDLog(context)) {
AFLogger.afDebugLog("AppsFlyer: first launch detected");
str = simpleDateFormat.format(new Date());
} else {
int i3 = onAttributionFailure + 51;
onResponse = i3 % 128;
int i4 = i3 % 2;
str = "";
}
string = str;
values(context).AFKeystoreWrapper("appsFlyerFirstInstall", string);
}
AFLogger.afInfoLog("AppsFlyer: first launch date: ".concat(String.valueOf(string)));
return string;
}
@Override
public final String getAttributionId(Context context) {
try {
String AFKeystoreWrapper2 = new AFa1aSDK(context, AFKeystoreWrapper()).AFKeystoreWrapper();
int i = onAttributionFailure + 13;
onResponse = i % 128;
if ((i % 2 != 0 ? '_' : (char) 23) != '_') {
return AFKeystoreWrapper2;
}
int i2 = 25 / 0;
return AFKeystoreWrapper2;
} catch (Throwable th) {
AFLogger.afErrorLog("Could not collect facebook attribution id. ", th);
return null;
}
}
public static synchronized SharedPreferences valueOf(Context context) {
SharedPreferences sharedPreferences;
synchronized (AFb1xSDK.class) {
int i = onResponse + 71;
onAttributionFailure = i % 128;
int i2 = i % 2;
if ((AFInAppEventType().onResponseErrorNative == null ? 'T' : 'S') != 'S') {
AFInAppEventType().onResponseErrorNative = context.getApplicationContext().getSharedPreferences("appsflyer-data", 0);
int i3 = onResponse + 83;
onAttributionFailure = i3 % 128;
if (i3 % 2 == 0) {
}
}
sharedPreferences = AFInAppEventType().onResponseErrorNative;
}
return sharedPreferences;
}
public final AFc1xSDK values(Context context) {
int i = onResponse + 29;
onAttributionFailure = i % 128;
if (!(i % 2 == 0)) {
AFInAppEventType(context);
return AFKeystoreWrapper().afErrorLog();
}
AFInAppEventType(context);
AFc1xSDK afErrorLog2 = AFKeystoreWrapper().afErrorLog();
Object[] objArr = null;
int length = objArr.length;
return afErrorLog2;
}
public final int AFKeystoreWrapper(SharedPreferences sharedPreferences, boolean z) {
int i = onResponse + 47;
onAttributionFailure = i % 128;
char c = i % 2 == 0 ? '0' : 'B';
int AFInAppEventType2 = AFInAppEventType(sharedPreferences, "appsFlyerCount", z);
if (c == '0') {
Object[] objArr = null;
int length = objArr.length;
}
int i2 = onAttributionFailure + 1;
onResponse = i2 % 128;
int i3 = i2 % 2;
return AFInAppEventType2;
}
private int values(SharedPreferences sharedPreferences, boolean z) {
int i = onResponse + 65;
onAttributionFailure = i % 128;
boolean z2 = i % 2 != 0;
int AFInAppEventType2 = AFInAppEventType(sharedPreferences, "appsFlyerInAppEventCount", z);
if (!z2) {
Object obj = null;
super.hashCode();
}
int i2 = onResponse + 95;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
return AFInAppEventType2;
}
private int AFInAppEventType(SharedPreferences sharedPreferences, String str, boolean z) {
int i;
int i2 = onResponse + 123;
onAttributionFailure = i2 % 128;
if ((i2 % 2 == 0 ? (char) 17 : '\r') != '\r') {
i = sharedPreferences.getInt(str, 0);
} else {
i = sharedPreferences.getInt(str, 0);
}
if ((AFKeystoreWrapper().AFVersionDeclaration().afInfoLog() ? '1' : Typography.quote) != '\"') {
int i3 = onAttributionFailure + 117;
onResponse = i3 % 128;
int i4 = i3 % 2;
AFKeystoreWrapper().AFVersionDeclaration().AFInAppEventParameterName(String.valueOf(i));
int i5 = onAttributionFailure + 119;
onResponse = i5 % 128;
int i6 = i5 % 2;
}
return i;
}
private long afErrorLogForExcManagerOnly(Context context) {
long j;
long currentTimeMillis;
int i = onAttributionFailure + 91;
onResponse = i % 128;
boolean z = false;
if (i % 2 != 0) {
j = valueOf(context).getLong("AppsFlyerTimePassedSincePrevLaunch", 1L);
currentTimeMillis = System.currentTimeMillis();
values(context).AFInAppEventType("AppsFlyerTimePassedSincePrevLaunch", currentTimeMillis);
} else {
j = valueOf(context).getLong("AppsFlyerTimePassedSincePrevLaunch", 0L);
currentTimeMillis = System.currentTimeMillis();
values(context).AFInAppEventType("AppsFlyerTimePassedSincePrevLaunch", currentTimeMillis);
}
}
@Override
public final void validateAndLogInAppPurchase(Context context, String str, String str2, String str3, String str4, String str5, Map<String, String> map) {
AFb1sSDK AFVersionDeclaration = AFKeystoreWrapper().AFVersionDeclaration();
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();
AFVersionDeclaration.values("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 = AFInAppEventType;
if (appsFlyerInAppPurchaseValidatorListener != null) {
appsFlyerInAppPurchaseValidatorListener.onValidateInAppFailure("Please provide purchase parameters");
return;
}
return;
}
new Thread(new AFa1fSDK(context.getApplicationContext(), AFKeystoreWrapper().afWarnLog().AFInAppEventType, str, str2, str3, str4, str5, map, context instanceof Activity ? ((Activity) context).getIntent() : null)).start();
}
private static void AFInAppEventParameterName(ScheduledExecutorService scheduledExecutorService, Runnable runnable, long j, TimeUnit timeUnit) {
int i = onResponse + 91;
onAttributionFailure = i % 128;
try {
if ((i % 2 == 0 ? 'C' : 'H') != 'C') {
scheduledExecutorService.schedule(runnable, j, timeUnit);
return;
}
scheduledExecutorService.schedule(runnable, j, timeUnit);
Object obj = null;
super.hashCode();
} catch (RejectedExecutionException e) {
AFLogger.afErrorLog("scheduleJob failed with RejectedExecutionException Exception", e);
} catch (Throwable th) {
AFLogger.afErrorLog("scheduleJob failed with Exception", th);
}
}
@Override
@Deprecated
public final boolean isStopped() {
int i = onAttributionFailure + 25;
onResponse = i % 128;
int i2 = i % 2;
boolean valueOf2 = AFKeystoreWrapper().afWarnLog().valueOf();
int i3 = onResponse + 59;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
return valueOf2;
}
@Deprecated
public static String valueOf(HttpURLConnection httpURLConnection) {
String obj;
InputStreamReader inputStreamReader;
String str;
StringBuilder sb = new StringBuilder();
BufferedReader bufferedReader = null;
try {
try {
InputStream errorStream = httpURLConnection.getErrorStream();
if (errorStream == null) {
errorStream = httpURLConnection.getInputStream();
int i = onAttributionFailure + 57;
onResponse = i % 128;
int i2 = i % 2;
}
inputStreamReader = new InputStreamReader(errorStream);
try {
BufferedReader bufferedReader2 = new BufferedReader(inputStreamReader);
boolean z = false;
while (true) {
try {
String readLine = bufferedReader2.readLine();
if ((readLine != null ? (char) 18 : (char) 21) == 21) {
break;
}
int i3 = onResponse + 79;
onAttributionFailure = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 59 / 0;
str = z ? '\n' : "";
}
sb.append(str);
sb.append(readLine);
int i5 = onAttributionFailure + 21;
onResponse = i5 % 128;
int i6 = i5 % 2;
z = true;
} catch (Throwable th) {
th = th;
bufferedReader = bufferedReader2;
try {
StringBuilder sb2 = new StringBuilder("Could not read connection response from: ");
sb2.append(httpURLConnection.getURL().toString());
AFLogger.afErrorLog(sb2.toString(), th);
if (bufferedReader != null) {
bufferedReader.close();
}
if (inputStreamReader != null) {
inputStreamReader.close();
}
obj = sb.toString();
new JSONObject(obj);
return obj;
} catch (Throwable th2) {
if (bufferedReader != null) {
try {
bufferedReader.close();
} catch (Throwable th3) {
AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th3);
throw th2;
}
}
if ((inputStreamReader != null ? (char) 27 : 'U') == 27) {
inputStreamReader.close();
}
throw th2;
}
}
}
bufferedReader2.close();
inputStreamReader.close();
int i7 = onResponse + 113;
onAttributionFailure = i7 % 128;
int i8 = i7 % 2;
} catch (Throwable th4) {
th = th4;
}
} catch (Throwable th5) {
th = th5;
inputStreamReader = null;
}
} catch (Throwable th6) {
AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th6);
}
obj = sb.toString();
try {
new JSONObject(obj);
return obj;
} catch (JSONException e) {
AFLogger.afErrorLogForExcManagerOnly("error while parsing readServerResponse", e);
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("string_response", obj);
return jSONObject.toString();
} catch (JSONException e2) {
AFLogger.afErrorLogForExcManagerOnly("RESPONSE_NOT_JSON error", e2);
return new JSONObject().toString();
}
}
}
private static boolean onInstallConversionFailureNative(Context context) {
ConnectivityManager connectivityManager;
Network[] allNetworks;
int length;
if ((context != null ? '6' : (char) 1) != 1) {
int i = onResponse + 69;
onAttributionFailure = i % 128;
int i2 = i % 2;
if (Build.VERSION.SDK_INT < 23) {
if (Build.VERSION.SDK_INT >= 16) {
ArrayList arrayList = new ArrayList();
try {
Iterator it = Collections.list(NetworkInterface.getNetworkInterfaces()).iterator();
while (true) {
if ((it.hasNext() ? (char) 21 : '\r') == 21) {
NetworkInterface networkInterface = (NetworkInterface) it.next();
if (networkInterface.isUp()) {
arrayList.add(networkInterface.getName());
}
} else {
return arrayList.contains("tun0");
}
}
} catch (Exception e) {
AFLogger.afErrorLog("Failed collecting ivc data", e);
}
}
} else {
int i3 = onAttributionFailure + 59;
onResponse = i3 % 128;
try {
if (!(i3 % 2 != 0)) {
connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
allNetworks = connectivityManager.getAllNetworks();
length = allNetworks.length;
} else {
connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
allNetworks = connectivityManager.getAllNetworks();
length = allNetworks.length;
}
for (int i4 = 0; i4 < length; i4++) {
NetworkCapabilities networkCapabilities = connectivityManager.getNetworkCapabilities(allNetworks[i4]);
if ((networkCapabilities.hasTransport(4) ? '=' : (char) 21) != 21) {
if (!networkCapabilities.hasCapability(15)) {
int i5 = onAttributionFailure + 27;
onResponse = i5 % 128;
int i6 = i5 % 2;
return true;
}
}
}
return false;
} catch (Exception e2) {
AFLogger.afErrorLog("Failed collecting ivc data", e2);
}
}
}
return false;
}
@Override
public final void setHost(String str, String str2) {
int i = onAttributionFailure + 65;
onResponse = i % 128;
if (i % 2 != 0) {
int i2 = 62 / 0;
}
}
@Override
public final String getHostName() {
int i = onAttributionFailure + 5;
onResponse = i % 128;
int i2 = i % 2;
String AFInAppEventParameterName2 = AFKeystoreWrapper().onInstallConversionDataLoadedNative().AFInAppEventParameterName();
int i3 = onAttributionFailure + 111;
onResponse = i3 % 128;
if ((i3 % 2 != 0 ? (char) 3 : '_') != 3) {
return AFInAppEventParameterName2;
}
Object[] objArr = null;
int length = objArr.length;
return AFInAppEventParameterName2;
}
@Override
public final String getHostPrefix() {
int i = onResponse + 99;
onAttributionFailure = i % 128;
int i2 = i % 2;
String values2 = AFKeystoreWrapper().onInstallConversionDataLoadedNative().values();
int i3 = onAttributionFailure + 77;
onResponse = i3 % 128;
if (i3 % 2 != 0) {
Object[] objArr = null;
int length = objArr.length;
return values2;
}
return values2;
}
@Override
public final void setMinTimeBetweenSessions(int i) {
int i2 = onResponse + 91;
onAttributionFailure = i2 % 128;
int i3 = i2 % 2;
this.afWarnLog = TimeUnit.SECONDS.toMillis(i);
int i4 = onResponse + 3;
onAttributionFailure = i4 % 128;
if ((i4 % 2 == 0 ? 'K' : ' ') != 'K') {
return;
}
int i5 = 42 / 0;
}
private AFf1jSDK[] AFVersionDeclaration() {
int i = onResponse + 87;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFf1jSDK[] AFInAppEventParameterName2 = AFKeystoreWrapper().getLevel().AFInAppEventParameterName();
int i3 = onAttributionFailure + 7;
onResponse = i3 % 128;
if ((i3 % 2 != 0 ? (char) 20 : '4') != 20) {
return AFInAppEventParameterName2;
}
int i4 = 28 / 0;
return AFInAppEventParameterName2;
}
public class AFa1vSDK implements Runnable {
private final AFa1sSDK valueOf;
AFa1vSDK(AFb1xSDK aFb1xSDK, AFa1sSDK aFa1sSDK, byte b) {
this(aFa1sSDK);
}
private AFa1vSDK(AFa1sSDK aFa1sSDK) {
this.valueOf = aFa1sSDK;
}
@Override
public final void run() {
AFb1xSDK.AFKeystoreWrapper(AFb1xSDK.this, this.valueOf);
}
}
public class AFa1ySDK implements Runnable {
private final AFa1sSDK AFInAppEventType;
AFa1ySDK(AFb1xSDK aFb1xSDK, AFa1sSDK aFa1sSDK, byte b) {
this(aFa1sSDK);
}
private AFa1ySDK(AFa1sSDK aFa1sSDK) {
this.AFInAppEventType = aFa1sSDK;
}
@Override
public final void run() {
AFd1dSDK aFd1dSDK;
if (this.AFInAppEventType.AFInAppEventParameterName()) {
AFd1dSDK aFd1dSDK2 = new AFd1dSDK(this.AFInAppEventType, AFb1xSDK.this.AFKeystoreWrapper());
aFd1dSDK2.afWarnLog = AFb1xSDK.values(AFb1xSDK.this);
aFd1dSDK = aFd1dSDK2;
} else {
aFd1dSDK = new AFd1cSDK(this.AFInAppEventType, AFb1xSDK.this.AFKeystoreWrapper());
}
AFd1pSDK afDebugLog = AFb1xSDK.this.AFKeystoreWrapper().afDebugLog();
afDebugLog.AFKeystoreWrapper.execute(new AFd1pSDK.AnonymousClass5(aFd1dSDK));
}
}
@Override
public final void setPluginInfo(PluginInfo pluginInfo) {
int i = onAttributionFailure + 77;
onResponse = i % 128;
if (i % 2 == 0) {
Objects.requireNonNull(pluginInfo);
AFKeystoreWrapper().init().AFKeystoreWrapper(pluginInfo);
return;
}
Objects.requireNonNull(pluginInfo);
AFKeystoreWrapper().init().AFKeystoreWrapper(pluginInfo);
Object[] objArr = null;
int length = objArr.length;
}
class AFa1zSDK implements AFd1wSDK {
@Override
public final void AFInAppEventType(AFd1qSDK<?> aFd1qSDK) {
}
private AFa1zSDK() {
}
AFa1zSDK(AFb1xSDK aFb1xSDK, byte b) {
this();
}
@Override
public final void AFInAppEventParameterName(AFd1qSDK<?> aFd1qSDK) {
if (aFd1qSDK instanceof AFd1dSDK) {
AFb1xSDK.this.AFKeystoreWrapper().AFLogger().AFInAppEventParameterName(((AFd1cSDK) aFd1qSDK).afRDLog.afInfoLog);
}
}
@Override
public final void valueOf(AFd1qSDK<?> aFd1qSDK, AFd1tSDK aFd1tSDK) {
JSONObject AFInAppEventParameterName;
AFb1tSDK valueOf;
if (aFd1qSDK instanceof AFd1cSDK) {
AFd1cSDK aFd1cSDK = (AFd1cSDK) aFd1qSDK;
boolean z = aFd1qSDK instanceof AFd1dSDK;
if (z && AFInAppEventType()) {
AFd1dSDK aFd1dSDK = (AFd1dSDK) aFd1qSDK;
boolean z2 = true;
if (aFd1dSDK.AFInAppEventType != AFd1tSDK.SUCCESS && aFd1dSDK.AFInAppEventParameterName != 1) {
z2 = false;
}
if (z2) {
AFe1hSDK aFe1hSDK = new AFe1hSDK(aFd1dSDK, AFb1xSDK.this.AFKeystoreWrapper().afErrorLog());
AFd1pSDK afDebugLog = AFb1xSDK.this.AFKeystoreWrapper().afDebugLog();
afDebugLog.AFKeystoreWrapper.execute(new AFd1pSDK.AnonymousClass5(aFe1hSDK));
}
}
if (aFd1tSDK == AFd1tSDK.SUCCESS) {
AFb1xSDK aFb1xSDK = AFb1xSDK.this;
aFb1xSDK.values(AFb1xSDK.valueOf(aFb1xSDK)).AFKeystoreWrapper("sentSuccessfully", "true");
if (!(aFd1qSDK instanceof AFd1bSDK) && (valueOf = new AFe1mSDK(AFb1xSDK.valueOf(AFb1xSDK.this)).valueOf()) != null && valueOf.AFInAppEventParameterName()) {
String str = valueOf.AFKeystoreWrapper;
AFLogger.afDebugLog("Resending Uninstall token to AF servers: ".concat(String.valueOf(str)));
AFe1mSDK.AFKeystoreWrapper(str);
}
ResponseNetwork responseNetwork = ((AFd1iSDK) aFd1cSDK).afInfoLog;
if (responseNetwork != null && (AFInAppEventParameterName = AFb1nSDK.AFInAppEventParameterName((String) responseNetwork.getBody())) != null) {
AFb1xSDK.values(AFb1xSDK.this, AFInAppEventParameterName.optBoolean("send_background", false));
}
if (z) {
AFb1xSDK.values(AFb1xSDK.this, System.currentTimeMillis());
}
}
} else if (!(aFd1qSDK instanceof AFe1hSDK) || aFd1tSDK == AFd1tSDK.SUCCESS) {
} else {
AFe1lSDK aFe1lSDK = new AFe1lSDK(AFb1xSDK.this.AFKeystoreWrapper());
AFd1pSDK afDebugLog2 = AFb1xSDK.this.AFKeystoreWrapper().afDebugLog();
afDebugLog2.AFKeystoreWrapper.execute(new AFd1pSDK.AnonymousClass5(aFe1lSDK));
}
}
private static boolean AFInAppEventType() {
return AFb1xSDK.valueOf != null;
}
}
@Override
public final void sendPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
PurchaseHandler afInfoLog;
int i = onAttributionFailure + 53;
onResponse = i % 128;
if (i % 2 == 0) {
AFInAppEventType(context);
afInfoLog = AFKeystoreWrapper().afInfoLog();
} else {
AFInAppEventType(context);
afInfoLog = AFKeystoreWrapper().afInfoLog();
}
int i2 = onAttributionFailure + 41;
onResponse = i2 % 128;
int i3 = i2 % 2;
}
@Override
public final void sendInAppPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
PurchaseHandler afInfoLog;
int i = onAttributionFailure + 87;
onResponse = i % 128;
if ((i % 2 != 0 ? '2' : (char) 28) != 28) {
AFInAppEventType(context);
afInfoLog = AFKeystoreWrapper().afInfoLog();
String[] strArr = new String[0];
strArr[0] = "purchases";
} else {
AFInAppEventType(context);
afInfoLog = AFKeystoreWrapper().afInfoLog();
}
int i2 = onAttributionFailure + 73;
onResponse = i2 % 128;
int i3 = i2 % 2;
}
@Override
public final void setImeiData(String str) {
int i = onResponse + 15;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFKeystoreWrapper().AFVersionDeclaration().values("setImeiData", str);
AFKeystoreWrapper().afWarnLog().valueOf = str;
int i3 = onResponse + 113;
onAttributionFailure = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 63 / 0;
}
}
@Override
public final void logEvent(Context context, String str, Map<String, Object> map, AppsFlyerRequestListener appsFlyerRequestListener) {
HashMap hashMap = map == null ? null : new HashMap(map);
AFInAppEventType(context);
AFf1wSDK aFf1wSDK = new AFf1wSDK();
if (context != null) {
aFf1wSDK.AFKeystoreWrapper = (Application) context.getApplicationContext();
}
aFf1wSDK.afErrorLog = str;
aFf1wSDK.AFInAppEventType = appsFlyerRequestListener;
if (hashMap != null && hashMap.containsKey(AFInAppEventParameterName.TOUCH_OBJ)) {
HashMap hashMap2 = new HashMap();
Object obj = hashMap.get(AFInAppEventParameterName.TOUCH_OBJ);
if (obj instanceof MotionEvent) {
MotionEvent motionEvent = (MotionEvent) obj;
HashMap hashMap3 = new HashMap();
hashMap3.put("x", Float.valueOf(motionEvent.getX()));
hashMap3.put("y", Float.valueOf(motionEvent.getY()));
hashMap2.put("loc", hashMap3);
hashMap2.put("pf", Float.valueOf(motionEvent.getPressure()));
hashMap2.put("rad", Float.valueOf(motionEvent.getTouchMajor() / 2.0f));
} else {
hashMap2.put("error", "Parsing failed due to invalid input in 'af_touch_obj'.");
AFLogger.valueOf("Parsing failed due to invalid input in 'af_touch_obj'.");
}
Map<String, ?> singletonMap = Collections.singletonMap("tch_data", hashMap2);
hashMap.remove(AFInAppEventParameterName.TOUCH_OBJ);
aFf1wSDK.AFInAppEventParameterName(singletonMap);
}
aFf1wSDK.values = hashMap;
AFb1sSDK AFVersionDeclaration = AFKeystoreWrapper().AFVersionDeclaration();
String[] strArr = new String[2];
strArr[0] = str;
strArr[1] = new JSONObject(aFf1wSDK.values == null ? new HashMap() : aFf1wSDK.values).toString();
AFVersionDeclaration.values("logEvent", strArr);
if (str == null) {
values(context, AFe1iSDK.logEvent);
}
AFInAppEventType(aFf1wSDK, context instanceof Activity ? (Activity) context : null);
}
private void AFInAppEventParameterName(AFa1sSDK aFa1sSDK) {
Application application = aFa1sSDK.AFKeystoreWrapper;
if (application == null) {
int i = onResponse + 33;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFLogger.afDebugLog("sendWithEvent - got null context. skipping event/launch.");
return;
}
SharedPreferences valueOf2 = valueOf(application);
AppsFlyerProperties.getInstance().saveProperties(valueOf2);
if (!AFKeystoreWrapper().afWarnLog().valueOf()) {
StringBuilder sb = new StringBuilder("sendWithEvent from activity: ");
sb.append(application.getClass().getName());
AFLogger.afInfoLog(sb.toString());
}
boolean AFInAppEventParameterName2 = aFa1sSDK.AFInAppEventParameterName();
Map<String, ?> AFInAppEventType2 = AFInAppEventType(aFa1sSDK);
String str = (String) AFInAppEventType2.get("appsflyerKey");
?? r7 = 0;
int i3 = 0;
if (str != null) {
int i4 = onAttributionFailure + 49;
onResponse = i4 % 128;
if (i4 % 2 != 0) {
int length = str.length();
int length2 = r7.length;
}
}
AFLogger.afDebugLog("Not sending data yet, waiting for dev key");
AppsFlyerRequestListener appsFlyerRequestListener = aFa1sSDK.AFInAppEventType;
if (appsFlyerRequestListener != null) {
int i5 = onAttributionFailure + 55;
onResponse = i5 % 128;
if (i5 % 2 != 0) {
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1aSDK.values);
int i6 = 95 / 0;
} else {
appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1aSDK.values);
}
}
int i7 = onResponse + 79;
onAttributionFailure = i7 % 128;
if (i7 % 2 == 0) {
int length3 = r7.length;
}
}
public final Map<String, Object> AFInAppEventType(AFa1sSDK aFa1sSDK) {
String str;
String str2;
String str3;
String str4;
PackageManager.NameNotFoundException nameNotFoundException;
String str5;
SimpleDateFormat simpleDateFormat;
String str6;
AppsFlyerProperties appsFlyerProperties;
AFb1hSDK aFb1hSDK;
SharedPreferences sharedPreferences;
boolean z;
Application application;
Exception exc;
ConcurrentHashMap concurrentHashMap;
boolean z2;
SharedPreferences sharedPreferences2;
ConcurrentHashMap concurrentHashMap2;
Application application2;
AFa1uSDK.AFa1ySDK aFa1ySDK;
SharedPreferences sharedPreferences3;
AFa1uSDK.AFa1ySDK aFa1ySDK2;
ConcurrentHashMap concurrentHashMap3;
Application application3;
ArrayList arrayList;
SharedPreferences sharedPreferences4;
boolean z3;
Application application4;
Application application5;
AFc1qSDK.AFa1vSDK values2;
boolean z4;
SharedPreferences sharedPreferences5;
long availableBlocks;
long blockCount;
AFa1eSDK aFa1eSDK;
String[] strArr;
PackageInfo packageInfo;
String AFInAppEventParameterName2;
UiModeManager uiModeManager;
AFb1xSDK aFb1xSDK = this;
Application application6 = aFa1sSDK.AFKeystoreWrapper;
String str7 = AFKeystoreWrapper().afWarnLog().AFInAppEventType;
String str8 = aFa1sSDK.afErrorLog;
String jSONObject = new JSONObject(aFa1sSDK.values == null ? new HashMap() : aFa1sSDK.values).toString();
String str9 = aFa1sSDK.afRDLog;
SharedPreferences valueOf2 = valueOf(application6);
boolean AFInAppEventParameterName3 = aFa1sSDK.AFInAppEventParameterName();
String str10 = aFa1sSDK.AFInAppEventParameterName;
Map<String, Object> map = aFa1sSDK.valueOf;
AFa1bSDK.AFInAppEventType(application6, map);
Boolean bool = AFa1bSDK.AFInAppEventType;
if (bool == null || bool.booleanValue()) {
str = str10;
str2 = "Exception while collecting facebook's attribution ID. ";
str3 = "yyyy-MM-dd_HHmmssZ";
} else {
str = str10;
str3 = "yyyy-MM-dd_HHmmssZ";
str2 = "Exception while collecting facebook's attribution ID. ";
valueOf(map).put("ad_ids_disabled", Boolean.TRUE);
}
long time = new Date().getTime();
Object[] objArr = new Object[1];
AFKeystoreWrapper(ExpandableListView.getPackedPositionType(0L) + 5, "\uffff\n\ufff5\ufff7\u0006\u0003\ufff7\n\t\ufffb\u0003", (Process.myTid() >> 22) + 289, 13 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), true, objArr);
map.put(((String) objArr[0]).intern(), Long.toString(time));
String AFKeystoreWrapper2 = com.appsflyer.internal.AFa1ySDK.AFKeystoreWrapper(application6, time);
if (AFKeystoreWrapper2 != null) {
map.put("cksm_v1", AFKeystoreWrapper2);
}
try {
if (!isStopped()) {
StringBuilder sb = new StringBuilder("******* sendTrackingWithEvent: ");
sb.append(AFInAppEventParameterName3 ? "Launch" : str8);
AFLogger.afInfoLog(sb.toString());
} else {
AFLogger.afInfoLog("Reporting has been stopped");
}
AFKeystoreWrapper().AFLogger$LogLevel().AFKeystoreWrapper();
try {
List asList = Arrays.asList(application6.getPackageManager().getPackageInfo(application6.getPackageName(), 4096).requestedPermissions);
if (!asList.contains("android.permission.INTERNET")) {
AFLogger.afWarnLog("Permission android.permission.INTERNET is missing in the AndroidManifest.xml");
}
if (!asList.contains("android.permission.ACCESS_NETWORK_STATE")) {
AFLogger.afWarnLog("Permission android.permission.ACCESS_NETWORK_STATE is missing in the AndroidManifest.xml");
}
if (Build.VERSION.SDK_INT > 32 && !asList.contains("com.google.android.gms.permission.AD_ID")) {
AFLogger.afWarnLog("Permission com.google.android.gms.permission.AD_ID is missing in the AndroidManifest.xml");
}
} catch (Exception e) {
AFLogger.afErrorLog("Exception while validation permissions. ", e);
}
Object[] objArr2 = new Object[1];
AFKeystoreWrapper(KeyEvent.getDeadChar(0, 0) + 1, "\u0000", 232 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), Color.blue(0) + 1, false, objArr2);
map.put("af_events_api", ((String) objArr2[0]).intern());
int maximumFlingVelocity = (ViewConfiguration.getMaximumFlingVelocity() >> 16) + 5;
Application application7 = "�\u0007\ufffa\u000b\ufffb";
int combineMeasuredStates = 286 - View.combineMeasuredStates(0, 0);
boolean pressedStateDuration = 5 - (ViewConfiguration.getPressedStateDuration() >> 16);
SharedPreferences sharedPreferences6 = 1;
Object[] objArr3 = new Object[1];
AFKeystoreWrapper(maximumFlingVelocity, "�\u0007\ufffa\u000b\ufffb", combineMeasuredStates, pressedStateDuration, true, objArr3);
map.put(((String) objArr3[0]).intern(), Build.BRAND);
map.put("device", Build.DEVICE);
map.put(AppLovinEventTypes.USER_VIEWED_PRODUCT, Build.PRODUCT);
map.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
map.put(DeviceRequestsHelper.DEVICE_INFO_MODEL, Build.MODEL);
map.put("deviceType", Build.TYPE);
valueOf(application6, map);
AppsFlyerProperties appsFlyerProperties2 = AppsFlyerProperties.getInstance();
AFb1hSDK aFb1hSDK2 = new AFb1hSDK(application6);
AFe1fSDK AFLogger = AFKeystoreWrapper().AFLogger();
if (AFInAppEventParameterName3) {
if (afRDLog(application6)) {
if (!appsFlyerProperties2.isOtherSdkStringDisabled()) {
map.put("batteryLevel", String.valueOf(AFKeystoreWrapper().AppsFlyer2dXConversionCallback().AFInAppEventType(application6).valueOf));
}
afErrorLog(application6);
if (Build.VERSION.SDK_INT >= 23) {
uiModeManager = (UiModeManager) application6.getSystemService(UiModeManager.class);
} else {
uiModeManager = (UiModeManager) application6.getSystemService("uimode");
}
if (uiModeManager != null && uiModeManager.getCurrentModeType() == 4) {
map.put("tv", Boolean.TRUE);
}
if (AFe1jSDK.valueOf(application6)) {
map.put("inst_app", Boolean.TRUE);
}
}
map.put("timepassedsincelastlaunch", Long.toString(aFb1xSDK.afErrorLogForExcManagerOnly(application6)));
AFInAppEventType(map);
AFInAppEventType(map, AFLogger);
String str11 = aFb1xSDK.onResponseNative;
if (str11 != null) {
map.put("phone", str11);
}
if (!TextUtils.isEmpty(str9)) {
map.put(TapjoyConstants.TJC_REFERRER, str9);
}
String string = valueOf2.getString("extraReferrers", null);
if (string != null) {
map.put("extraReferrers", string);
}
String referrer = appsFlyerProperties2.getReferrer(application6);
if (!TextUtils.isEmpty(referrer) && map.get(TapjoyConstants.TJC_REFERRER) == null) {
map.put(TapjoyConstants.TJC_REFERRER, referrer);
}
long j = AFLogger.AFLogger$LogLevel;
if (j != 0) {
map.put("prev_session_dur", Long.valueOf(j));
}
map.put("exception_number", Long.valueOf(AFb1fSDK.values == null ? -1L : valueOf(AFb1fSDK.values).getLong("exception_number", 0L)));
AFb1eSDK aFb1eSDK = aFb1xSDK.onConversionDataSuccess;
if (aFb1eSDK != null) {
if (!aFb1eSDK.AFKeystoreWrapper.isEmpty()) {
map.put("partner_data", aFb1eSDK.AFKeystoreWrapper);
}
if (!aFb1eSDK.AFInAppEventType.isEmpty()) {
valueOf(map).put("partner_data", aFb1eSDK.AFInAppEventType);
aFb1eSDK.AFInAppEventType = new HashMap();
}
}
} else {
AFKeystoreWrapper(application6, map, str8);
}
String AFInAppEventType2 = AFInAppEventType("KSAppsFlyerId");
String AFInAppEventType3 = AFInAppEventType("KSAppsFlyerRICounter");
if (AFInAppEventType2 != null && AFInAppEventType3 != null && Integer.valueOf(AFInAppEventType3).intValue() > 0) {
map.put("reinstallCounter", AFInAppEventType3);
map.put("originalAppsflyerId", AFInAppEventType2);
}
String AFInAppEventType4 = AFInAppEventType(AppsFlyerProperties.ADDITIONAL_CUSTOM_DATA);
if (AFInAppEventType4 != null) {
map.put("customData", AFInAppEventType4);
}
try {
String installerPackageName = application6.getPackageManager().getInstallerPackageName(application6.getPackageName());
if (installerPackageName != null) {
map.put("installer_package", installerPackageName);
}
} catch (Exception e2) {
AFLogger.afErrorLog("Exception while getting the app's installer package. ", e2);
}
String string2 = appsFlyerProperties2.getString(AppsFlyerProperties.EXTENSION);
if (string2 != null && string2.length() > 0) {
map.put(AppsFlyerProperties.EXTENSION, string2);
}
String AFInAppEventParameterName4 = aFb1xSDK.AFInAppEventParameterName(application6);
String values3 = values(aFb1xSDK.values(application6), AFInAppEventParameterName4);
if ((values3 != null && !values3.equals(AFInAppEventParameterName4)) || (values3 == null && AFInAppEventParameterName4 != null)) {
map.put("af_latestchannel", AFInAppEventParameterName4);
}
String AFLogger$LogLevel = aFb1xSDK.AFLogger$LogLevel(application6);
if (AFLogger$LogLevel != null) {
map.put("af_installstore", AFLogger$LogLevel.toLowerCase(Locale.getDefault()));
}
String AFVersionDeclaration = aFb1xSDK.AFVersionDeclaration(application6);
if (AFVersionDeclaration != null) {
map.put("af_preinstall_name", AFVersionDeclaration.toLowerCase(Locale.getDefault()));
}
String level = aFb1xSDK.getLevel(application6);
if (level != null) {
map.put("af_currentstore", level.toLowerCase(Locale.getDefault()));
}
try {
if (str7 != null && str7.length() > 0) {
map.put("appsflyerKey", str7);
} else {
String str12 = AFKeystoreWrapper().afWarnLog().AFInAppEventType;
if (str12 != null && str12.length() > 0) {
map.put("appsflyerKey", str12);
} else {
AFLogger.afInfoLog("AppsFlyer dev key is missing!!! Please use AppsFlyerLib.getInstance().setAppsFlyerKey(...) to set it. ");
AFLogger.afInfoLog("AppsFlyer will not track this event.");
return null;
}
}
String valueOf3 = valueOf();
if (valueOf3 != null) {
map.put("appUserId", valueOf3);
}
String string3 = appsFlyerProperties2.getString(AppsFlyerProperties.USER_EMAILS);
if (string3 != null) {
map.put("user_emails", string3);
} else {
String AFInAppEventType5 = AFInAppEventType(AppsFlyerProperties.USER_EMAIL);
if (AFInAppEventType5 != null) {
map.put("sha1_el", AFb1ySDK.values(AFInAppEventType5));
}
}
if (str8 != null) {
map.put("eventName", str8);
map.put("eventValue", jSONObject);
}
if (AFLogger() != null) {
map.put(AppsFlyerProperties.APP_ID, AFInAppEventType(AppsFlyerProperties.APP_ID));
}
String AFInAppEventType6 = AFInAppEventType(AppsFlyerProperties.CURRENCY_CODE);
if (AFInAppEventType6 != null) {
if (AFInAppEventType6.length() != 3) {
StringBuilder sb2 = new StringBuilder("WARNING: currency code should be 3 characters!!! '");
sb2.append(AFInAppEventType6);
sb2.append("' is not a legal value.");
AFLogger.afWarnLog(sb2.toString());
}
map.put("currency", AFInAppEventType6);
}
String AFInAppEventType7 = AFInAppEventType(AppsFlyerProperties.IS_UPDATE);
if (AFInAppEventType7 != null) {
map.put("isUpdate", AFInAppEventType7);
}
map.put("af_preinstalled", Boolean.toString(aFb1xSDK.isPreInstalledApp(application6)));
if (appsFlyerProperties2.getBoolean(AppsFlyerProperties.COLLECT_FACEBOOK_ATTR_ID, true)) {
try {
try {
application6.getPackageManager().getApplicationInfo("com.facebook.katana", 0);
str5 = aFb1xSDK.getAttributionId(application6);
} catch (PackageManager.NameNotFoundException e3) {
nameNotFoundException = e3;
str4 = str2;
AFLogger.afErrorLogForExcManagerOnly("com.facebook.katana not found", nameNotFoundException, true);
AFLogger.afWarnLog(str4);
str5 = null;
if (str5 != null) {
}
aFb1xSDK.values(application6, map);
AFInAppEventParameterName2 = AFb1wSDK.AFInAppEventParameterName(new WeakReference(application6));
if (AFInAppEventParameterName2 != null) {
}
map.put("lang", Locale.getDefault().getDisplayLanguage());
map.put("lang_code", Locale.getDefault().getLanguage());
map.put("country", Locale.getDefault().getCountry());
aFb1xSDK.values(map, AFInAppEventParameterName3);
aFb1xSDK.AFKeystoreWrapper(application6, map);
str6 = str3;
simpleDateFormat = new SimpleDateFormat(str6, Locale.US);
map.put("installDate", AFKeystoreWrapper(simpleDateFormat, application6.getPackageManager().getPackageInfo(application6.getPackageName(), 0).firstInstallTime));
packageInfo = application6.getPackageManager().getPackageInfo(application6.getPackageName(), 0);
if (packageInfo.versionCode > valueOf2.getInt("versionCode", 0)) {
}
AFb1bSDK AFInAppEventParameterName5 = AFKeystoreWrapper().AFInAppEventParameterName();
map.put("app_version_code", Integer.toString(packageInfo.versionCode));
map.put("app_version_name", AFa1cSDK.AFInAppEventParameterName(AFInAppEventParameterName5.values.AFKeystoreWrapper, AFInAppEventParameterName5.values.AFKeystoreWrapper.getPackageName()));
map.put("targetSDKver", Integer.valueOf(AFInAppEventParameterName5.values.AFKeystoreWrapper.getApplicationInfo().targetSdkVersion));
long j2 = packageInfo.firstInstallTime;
long j3 = packageInfo.lastUpdateTime;
aFb1hSDK = aFb1hSDK2;
try {
appsFlyerProperties = appsFlyerProperties2;
try {
map.put("date1", new SimpleDateFormat(str6, Locale.US).format(new Date(j2)));
map.put("date2", new SimpleDateFormat(str6, Locale.US).format(new Date(j3)));
String AFKeystoreWrapper3 = aFb1xSDK.AFKeystoreWrapper(simpleDateFormat, application6);
Object[] objArr4 = new Object[1];
AFKeystoreWrapper(12 - (ViewConfiguration.getPressedStateDuration() >> 16), "\uffde\u0002�\b\u000f\ufffb₩\u000e\r\f\u0003\u0000\uffff\u000e\ufffb", 284 - TextUtils.indexOf((CharSequence) "", '0', 0), (ViewConfiguration.getWindowTouchSlop() >> 8) + 15, true, objArr4);
map.put(((String) objArr4[0]).intern(), AFKeystoreWrapper3);
} catch (Throwable th) {
th = th;
AFLogger.afErrorLog("Exception while collecting app version data ", th, true);
aFb1xSDK.AppsFlyer2dXConversionCallback = AFe1mSDK.AFKeystoreWrapper(application6);
StringBuilder sb3 = new StringBuilder("didConfigureTokenRefreshService=");
sb3.append(aFb1xSDK.AppsFlyer2dXConversionCallback);
AFLogger.afDebugLog(sb3.toString());
if (!aFb1xSDK.AppsFlyer2dXConversionCallback) {
}
if (AFInAppEventParameterName3) {
}
if (AFInAppEventParameterName3) {
}
if (AFInAppEventType("advertiserId") == null) {
}
values2 = AFa1bSDK.values(application5.getContentResolver());
if (values2 != null) {
}
map.put("registeredUninstall", Boolean.valueOf(AFe1mSDK.AFKeystoreWrapper(sharedPreferences4)));
z4 = z3;
sharedPreferences5 = sharedPreferences4;
int AFKeystoreWrapper4 = AFKeystoreWrapper(sharedPreferences5, z4);
map.put("counter", Integer.toString(AFKeystoreWrapper4));
map.put("iaecounter", Integer.toString(values(sharedPreferences5, str != null)));
if (z4) {
}
map.put("isFirstCall", Boolean.toString(!AFInAppEventParameterName(sharedPreferences5)));
valueOf(application5, z4, map, AFKeystoreWrapper4);
new AFb1ySDK();
map.put("af_v", AFb1ySDK.AFKeystoreWrapper(map));
new AFb1ySDK();
map.put("af_v2", AFb1ySDK.AFInAppEventParameterName(map));
map.put("ivc", Boolean.valueOf(onInstallConversionFailureNative(application5)));
if (sharedPreferences5.contains("is_stop_tracking_used")) {
}
HashMap hashMap = new HashMap();
hashMap.put("mcc", Integer.valueOf(application5.getResources().getConfiguration().mcc));
hashMap.put("mnc", Integer.valueOf(application5.getResources().getConfiguration().mnc));
map.put("cell", hashMap);
AFb1hSDK aFb1hSDK3 = aFb1hSDK;
map.put("sig", AFa1cSDK.values(aFb1hSDK3.AFInAppEventType.getPackageManager(), aFb1hSDK3.AFInAppEventType.getPackageName()));
map.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);
StringBuilder sb4 = new StringBuilder();
sb4.append((long) (availableBlocks / pow));
sb4.append("/");
sb4.append((long) (blockCount / pow));
map.put("disk", sb4.toString());
aFa1eSDK = this.AFLogger;
if (aFa1eSDK != null) {
}
return map;
}
} catch (Throwable th2) {
th = th2;
appsFlyerProperties = appsFlyerProperties2;
}
aFb1xSDK.AppsFlyer2dXConversionCallback = AFe1mSDK.AFKeystoreWrapper(application6);
StringBuilder sb32 = new StringBuilder("didConfigureTokenRefreshService=");
sb32.append(aFb1xSDK.AppsFlyer2dXConversionCallback);
AFLogger.afDebugLog(sb32.toString());
if (!aFb1xSDK.AppsFlyer2dXConversionCallback) {
}
if (AFInAppEventParameterName3) {
}
if (AFInAppEventParameterName3) {
}
if (AFInAppEventType("advertiserId") == null) {
}
values2 = AFa1bSDK.values(application5.getContentResolver());
if (values2 != null) {
}
map.put("registeredUninstall", Boolean.valueOf(AFe1mSDK.AFKeystoreWrapper(sharedPreferences4)));
z4 = z3;
sharedPreferences5 = sharedPreferences4;
int AFKeystoreWrapper42 = AFKeystoreWrapper(sharedPreferences5, z4);
map.put("counter", Integer.toString(AFKeystoreWrapper42));
map.put("iaecounter", Integer.toString(values(sharedPreferences5, str != null)));
if (z4) {
}
map.put("isFirstCall", Boolean.toString(!AFInAppEventParameterName(sharedPreferences5)));
valueOf(application5, z4, map, AFKeystoreWrapper42);
new AFb1ySDK();
map.put("af_v", AFb1ySDK.AFKeystoreWrapper(map));
new AFb1ySDK();
map.put("af_v2", AFb1ySDK.AFInAppEventParameterName(map));
map.put("ivc", Boolean.valueOf(onInstallConversionFailureNative(application5)));
if (sharedPreferences5.contains("is_stop_tracking_used")) {
}
HashMap hashMap2 = new HashMap();
hashMap2.put("mcc", Integer.valueOf(application5.getResources().getConfiguration().mcc));
hashMap2.put("mnc", Integer.valueOf(application5.getResources().getConfiguration().mnc));
map.put("cell", hashMap2);
AFb1hSDK aFb1hSDK32 = aFb1hSDK;
map.put("sig", AFa1cSDK.values(aFb1hSDK32.AFInAppEventType.getPackageManager(), aFb1hSDK32.AFInAppEventType.getPackageName()));
map.put("last_boot_time", Long.valueOf(System.currentTimeMillis() - SystemClock.elapsedRealtime()));
StatFs statFs2 = new StatFs(Environment.getDataDirectory().getAbsolutePath());
if (Build.VERSION.SDK_INT >= 18) {
}
double pow2 = Math.pow(2.0d, 20.0d);
StringBuilder sb42 = new StringBuilder();
sb42.append((long) (availableBlocks / pow2));
sb42.append("/");
sb42.append((long) (blockCount / pow2));
map.put("disk", sb42.toString());
aFa1eSDK = this.AFLogger;
if (aFa1eSDK != null) {
}
return map;
}
} catch (PackageManager.NameNotFoundException e4) {
str4 = str2;
nameNotFoundException = e4;
}
if (str5 != null) {
map.put("fb", str5);
}
}
aFb1xSDK.values(application6, map);
try {
AFInAppEventParameterName2 = AFb1wSDK.AFInAppEventParameterName(new WeakReference(application6));
if (AFInAppEventParameterName2 != null) {
map.put("uid", AFInAppEventParameterName2);
}
} catch (Exception e5) {
StringBuilder sb5 = new StringBuilder("ERROR: could not get uid ");
sb5.append(e5.getMessage());
AFLogger.afErrorLog(sb5.toString(), e5);
}
try {
map.put("lang", Locale.getDefault().getDisplayLanguage());
} catch (Exception e6) {
AFLogger.afErrorLog("Exception while collecting display language name. ", e6);
}
try {
map.put("lang_code", Locale.getDefault().getLanguage());
} catch (Exception e7) {
AFLogger.afErrorLog("Exception while collecting display language code. ", e7);
}
try {
map.put("country", Locale.getDefault().getCountry());
} catch (Exception e8) {
AFLogger.afErrorLog("Exception while collecting country name. ", e8);
}
aFb1xSDK.values(map, AFInAppEventParameterName3);
aFb1xSDK.AFKeystoreWrapper(application6, map);
str6 = str3;
simpleDateFormat = new SimpleDateFormat(str6, Locale.US);
try {
map.put("installDate", AFKeystoreWrapper(simpleDateFormat, application6.getPackageManager().getPackageInfo(application6.getPackageName(), 0).firstInstallTime));
} catch (Exception e9) {
AFLogger.afErrorLog("Exception while collecting install date. ", e9);
}
try {
packageInfo = application6.getPackageManager().getPackageInfo(application6.getPackageName(), 0);
if (packageInfo.versionCode > valueOf2.getInt("versionCode", 0)) {
aFb1xSDK.values(application6).valueOf("versionCode", packageInfo.versionCode);
}
AFb1bSDK AFInAppEventParameterName52 = AFKeystoreWrapper().AFInAppEventParameterName();
map.put("app_version_code", Integer.toString(packageInfo.versionCode));
map.put("app_version_name", AFa1cSDK.AFInAppEventParameterName(AFInAppEventParameterName52.values.AFKeystoreWrapper, AFInAppEventParameterName52.values.AFKeystoreWrapper.getPackageName()));
map.put("targetSDKver", Integer.valueOf(AFInAppEventParameterName52.values.AFKeystoreWrapper.getApplicationInfo().targetSdkVersion));
long j22 = packageInfo.firstInstallTime;
long j32 = packageInfo.lastUpdateTime;
aFb1hSDK = aFb1hSDK2;
appsFlyerProperties = appsFlyerProperties2;
map.put("date1", new SimpleDateFormat(str6, Locale.US).format(new Date(j22)));
map.put("date2", new SimpleDateFormat(str6, Locale.US).format(new Date(j32)));
String AFKeystoreWrapper32 = aFb1xSDK.AFKeystoreWrapper(simpleDateFormat, application6);
Object[] objArr42 = new Object[1];
AFKeystoreWrapper(12 - (ViewConfiguration.getPressedStateDuration() >> 16), "\uffde\u0002�\b\u000f\ufffb₩\u000e\r\f\u0003\u0000\uffff\u000e\ufffb", 284 - TextUtils.indexOf((CharSequence) "", '0', 0), (ViewConfiguration.getWindowTouchSlop() >> 8) + 15, true, objArr42);
map.put(((String) objArr42[0]).intern(), AFKeystoreWrapper32);
} catch (Throwable th3) {
th = th3;
appsFlyerProperties = appsFlyerProperties2;
aFb1hSDK = aFb1hSDK2;
}
aFb1xSDK.AppsFlyer2dXConversionCallback = AFe1mSDK.AFKeystoreWrapper(application6);
StringBuilder sb322 = new StringBuilder("didConfigureTokenRefreshService=");
sb322.append(aFb1xSDK.AppsFlyer2dXConversionCallback);
AFLogger.afDebugLog(sb322.toString());
if (!aFb1xSDK.AppsFlyer2dXConversionCallback) {
map.put("tokenRefreshConfigured", Boolean.FALSE);
}
if (AFInAppEventParameterName3) {
if (aFb1xSDK.afErrorLogForExcManagerOnly != null) {
if (map.get("af_deeplink") != null) {
AFLogger.afDebugLog("Skip 'af' payload as deeplink was found by path");
} else {
JSONObject jSONObject2 = new JSONObject(aFb1xSDK.afErrorLogForExcManagerOnly);
jSONObject2.put("isPush", "true");
map.put("af_deeplink", jSONObject2.toString());
}
}
aFb1xSDK.afErrorLogForExcManagerOnly = null;
map.put("open_referrer", str);
}
if (AFInAppEventParameterName3) {
z3 = AFInAppEventParameterName3;
sharedPreferences4 = valueOf2;
application4 = application6;
str = str8;
} else {
try {
try {
AFa1dSDK AFInAppEventType8 = AFa1dSDK.AFInAppEventType(application6);
ConcurrentHashMap concurrentHashMap4 = new ConcurrentHashMap();
List<Map<String, Object>> AFKeystoreWrapper5 = AFInAppEventType8.AFKeystoreWrapper();
try {
if (!AFKeystoreWrapper5.isEmpty()) {
new AFa1uSDK();
String str13 = NotificationBundleProcessor.PUSH_MINIFIED_BUTTON_TEXT;
String str14 = "uk";
HashMap hashMap3 = new HashMap();
Iterator<Map<String, Object>> it = AFKeystoreWrapper5.iterator();
while (true) {
if (!it.hasNext()) {
z2 = AFInAppEventParameterName3;
sharedPreferences2 = valueOf2;
concurrentHashMap2 = concurrentHashMap4;
application2 = application6;
str = str8;
break;
}
Map<String, Object> next = it.next();
HashMap hashMap4 = new HashMap();
Iterator<Map<String, Object>> it2 = it;
str = str8;
boolean z5 = next.get("sVS") != null;
try {
boolean z6 = next.get("sVE") != null;
if (z5 && z6) {
try {
aFa1ySDK = AFa1uSDK.AFa1ySDK.ALL;
} catch (Exception e10) {
exc = e10;
z = AFInAppEventParameterName3;
sharedPreferences = valueOf2;
application = application6;
AFLogger.afErrorLogForExcManagerOnly("error while getting sensors data", exc);
StringBuilder sb6 = new StringBuilder("Unexpected exception from AFSensorManager: ");
sb6.append(exc.getMessage());
AFLogger.afRDLog(sb6.toString());
application4 = application;
z3 = z;
sharedPreferences4 = sharedPreferences;
if (AFInAppEventType("advertiserId") == null) {
}
values2 = AFa1bSDK.values(application5.getContentResolver());
if (values2 != null) {
}
map.put("registeredUninstall", Boolean.valueOf(AFe1mSDK.AFKeystoreWrapper(sharedPreferences4)));
z4 = z3;
sharedPreferences5 = sharedPreferences4;
int AFKeystoreWrapper422 = AFKeystoreWrapper(sharedPreferences5, z4);
map.put("counter", Integer.toString(AFKeystoreWrapper422));
map.put("iaecounter", Integer.toString(values(sharedPreferences5, str != null)));
if (z4) {
}
map.put("isFirstCall", Boolean.toString(!AFInAppEventParameterName(sharedPreferences5)));
valueOf(application5, z4, map, AFKeystoreWrapper422);
new AFb1ySDK();
map.put("af_v", AFb1ySDK.AFKeystoreWrapper(map));
new AFb1ySDK();
map.put("af_v2", AFb1ySDK.AFInAppEventParameterName(map));
map.put("ivc", Boolean.valueOf(onInstallConversionFailureNative(application5)));
if (sharedPreferences5.contains("is_stop_tracking_used")) {
}
HashMap hashMap22 = new HashMap();
hashMap22.put("mcc", Integer.valueOf(application5.getResources().getConfiguration().mcc));
hashMap22.put("mnc", Integer.valueOf(application5.getResources().getConfiguration().mnc));
map.put("cell", hashMap22);
AFb1hSDK aFb1hSDK322 = aFb1hSDK;
map.put("sig", AFa1cSDK.values(aFb1hSDK322.AFInAppEventType.getPackageManager(), aFb1hSDK322.AFInAppEventType.getPackageName()));
map.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);
StringBuilder sb422 = new StringBuilder();
sb422.append((long) (availableBlocks / pow22));
sb422.append("/");
sb422.append((long) (blockCount / pow22));
map.put("disk", sb422.toString());
aFa1eSDK = this.AFLogger;
if (aFa1eSDK != null) {
}
return map;
}
} else if (z5) {
aFa1ySDK = AFa1uSDK.AFa1ySDK.FIRST;
} else {
aFa1ySDK = AFa1uSDK.AFa1ySDK.NONE;
}
if (aFa1ySDK != AFa1uSDK.AFa1ySDK.NONE) {
Integer num = (Integer) next.get("sT");
String str15 = (String) next.get("sN");
if (str15 != null) {
hashMap4.put(str13, str15);
} else {
hashMap4.put(str13, str14);
}
AFa1uSDK.AFa1wSDK aFa1wSDK = AFa1uSDK.AFa1wSDK.values()[num.intValue()];
String str16 = str13;
String str17 = str14;
ArrayList arrayList2 = new ArrayList(AFa1uSDK.AFInAppEventParameterName(next.get("sVS")));
if (aFa1ySDK == AFa1uSDK.AFa1ySDK.ALL) {
arrayList2.addAll(AFa1uSDK.AFInAppEventParameterName(next.get("sVE")));
}
if (aFa1wSDK == AFa1uSDK.AFa1wSDK.MAGNETOMETER) {
ArrayList arrayList3 = new ArrayList();
BigDecimal bigDecimal = (BigDecimal) arrayList2.get(0);
BigDecimal bigDecimal2 = (BigDecimal) arrayList2.get(1);
pressedStateDuration = AFInAppEventParameterName3;
SharedPreferences sharedPreferences7 = valueOf2;
try {
double doubleValue = bigDecimal.doubleValue();
sharedPreferences3 = sharedPreferences7;
application3 = application6;
BigDecimal valueOf4 = BigDecimal.valueOf(Math.atan2(bigDecimal2.doubleValue(), doubleValue) * 57.29577951308232d);
DecimalFormat decimalFormat = new DecimalFormat("##.#");
decimalFormat.setRoundingMode(RoundingMode.DOWN);
arrayList3.add(Double.valueOf(AFc1qSDK.AFa1vSDK.AFInAppEventParameterName(decimalFormat.format(valueOf4))));
DecimalFormat decimalFormat2 = new DecimalFormat("##.#");
decimalFormat2.setRoundingMode(RoundingMode.DOWN);
arrayList3.add(Double.valueOf(AFc1qSDK.AFa1vSDK.AFInAppEventParameterName(decimalFormat2.format((BigDecimal) arrayList2.get(2)))));
ArrayList arrayList4 = new ArrayList();
if (arrayList2.size() > 5) {
aFa1ySDK2 = aFa1ySDK;
concurrentHashMap3 = concurrentHashMap4;
BigDecimal subtract = BigDecimal.valueOf(Math.atan2(((BigDecimal) arrayList2.get(4)).doubleValue(), ((BigDecimal) arrayList2.get(3)).doubleValue()) * 57.29577951308232d).subtract(valueOf4);
DecimalFormat decimalFormat3 = new DecimalFormat("##.#");
decimalFormat3.setRoundingMode(RoundingMode.DOWN);
arrayList4.add(Double.valueOf(AFc1qSDK.AFa1vSDK.AFInAppEventParameterName(decimalFormat3.format(subtract))));
BigDecimal subtract2 = ((BigDecimal) arrayList2.get(5)).subtract((BigDecimal) arrayList2.get(2));
DecimalFormat decimalFormat4 = new DecimalFormat("##.#");
decimalFormat4.setRoundingMode(RoundingMode.DOWN);
arrayList4.add(Double.valueOf(AFc1qSDK.AFa1vSDK.AFInAppEventParameterName(decimalFormat4.format(subtract2))));
} else {
aFa1ySDK2 = aFa1ySDK;
concurrentHashMap3 = concurrentHashMap4;
}
arrayList = new ArrayList();
arrayList.add(arrayList3);
arrayList.add(arrayList4);
} catch (Exception e11) {
e = e11;
sharedPreferences6 = sharedPreferences7;
application7 = application6;
exc = e;
application = application7;
z = pressedStateDuration;
sharedPreferences = sharedPreferences6;
AFLogger.afErrorLogForExcManagerOnly("error while getting sensors data", exc);
StringBuilder sb62 = new StringBuilder("Unexpected exception from AFSensorManager: ");
sb62.append(exc.getMessage());
AFLogger.afRDLog(sb62.toString());
application4 = application;
z3 = z;
sharedPreferences4 = sharedPreferences;
if (AFInAppEventType("advertiserId") == null) {
}
values2 = AFa1bSDK.values(application5.getContentResolver());
if (values2 != null) {
}
map.put("registeredUninstall", Boolean.valueOf(AFe1mSDK.AFKeystoreWrapper(sharedPreferences4)));
z4 = z3;
sharedPreferences5 = sharedPreferences4;
int AFKeystoreWrapper4222 = AFKeystoreWrapper(sharedPreferences5, z4);
map.put("counter", Integer.toString(AFKeystoreWrapper4222));
map.put("iaecounter", Integer.toString(values(sharedPreferences5, str != null)));
if (z4) {
appsFlyerProperties.values = true;
}
map.put("isFirstCall", Boolean.toString(!AFInAppEventParameterName(sharedPreferences5)));
valueOf(application5, z4, map, AFKeystoreWrapper4222);
new AFb1ySDK();
map.put("af_v", AFb1ySDK.AFKeystoreWrapper(map));
new AFb1ySDK();
map.put("af_v2", AFb1ySDK.AFInAppEventParameterName(map));
map.put("ivc", Boolean.valueOf(onInstallConversionFailureNative(application5)));
if (sharedPreferences5.contains("is_stop_tracking_used")) {
}
HashMap hashMap222 = new HashMap();
hashMap222.put("mcc", Integer.valueOf(application5.getResources().getConfiguration().mcc));
hashMap222.put("mnc", Integer.valueOf(application5.getResources().getConfiguration().mnc));
map.put("cell", hashMap222);
AFb1hSDK aFb1hSDK3222 = aFb1hSDK;
map.put("sig", AFa1cSDK.values(aFb1hSDK3222.AFInAppEventType.getPackageManager(), aFb1hSDK3222.AFInAppEventType.getPackageName()));
map.put("last_boot_time", Long.valueOf(System.currentTimeMillis() - SystemClock.elapsedRealtime()));
StatFs statFs222 = new StatFs(Environment.getDataDirectory().getAbsolutePath());
if (Build.VERSION.SDK_INT >= 18) {
}
double pow222 = Math.pow(2.0d, 20.0d);
StringBuilder sb4222 = new StringBuilder();
sb4222.append((long) (availableBlocks / pow222));
sb4222.append("/");
sb4222.append((long) (blockCount / pow222));
map.put("disk", sb4222.toString());
aFa1eSDK = this.AFLogger;
if (aFa1eSDK != null) {
map.put("sharing_filter", strArr);
}
return map;
}
} else {
pressedStateDuration = AFInAppEventParameterName3;
sharedPreferences3 = valueOf2;
aFa1ySDK2 = aFa1ySDK;
concurrentHashMap3 = concurrentHashMap4;
application3 = application6;
ArrayList arrayList5 = new ArrayList();
if (arrayList2.size() > 5) {
BigDecimal subtract3 = ((BigDecimal) arrayList2.get(3)).subtract((BigDecimal) arrayList2.get(0));
DecimalFormat decimalFormat5 = new DecimalFormat("##.#");
decimalFormat5.setRoundingMode(RoundingMode.DOWN);
arrayList5.add(Double.valueOf(AFc1qSDK.AFa1vSDK.AFInAppEventParameterName(decimalFormat5.format(subtract3))));
BigDecimal subtract4 = ((BigDecimal) arrayList2.get(4)).subtract((BigDecimal) arrayList2.get(1));
DecimalFormat decimalFormat6 = new DecimalFormat("##.#");
decimalFormat6.setRoundingMode(RoundingMode.DOWN);
arrayList5.add(Double.valueOf(AFc1qSDK.AFa1vSDK.AFInAppEventParameterName(decimalFormat6.format(subtract4))));
BigDecimal subtract5 = ((BigDecimal) arrayList2.get(5)).subtract((BigDecimal) arrayList2.get(2));
DecimalFormat decimalFormat7 = new DecimalFormat("##.#");
decimalFormat7.setRoundingMode(RoundingMode.DOWN);
arrayList5.add(Double.valueOf(AFc1qSDK.AFa1vSDK.AFInAppEventParameterName(decimalFormat7.format(subtract5))));
}
ArrayList arrayList6 = new ArrayList();
DecimalFormat decimalFormat8 = new DecimalFormat("##.#");
decimalFormat8.setRoundingMode(RoundingMode.DOWN);
arrayList6.add(Double.valueOf(AFc1qSDK.AFa1vSDK.AFInAppEventParameterName(decimalFormat8.format((BigDecimal) arrayList2.get(0)))));
DecimalFormat decimalFormat9 = new DecimalFormat("##.#");
decimalFormat9.setRoundingMode(RoundingMode.DOWN);
arrayList6.add(Double.valueOf(AFc1qSDK.AFa1vSDK.AFInAppEventParameterName(decimalFormat9.format((BigDecimal) arrayList2.get(1)))));
DecimalFormat decimalFormat10 = new DecimalFormat("##.#");
decimalFormat10.setRoundingMode(RoundingMode.DOWN);
arrayList6.add(Double.valueOf(AFc1qSDK.AFa1vSDK.AFInAppEventParameterName(decimalFormat10.format((BigDecimal) arrayList2.get(2)))));
arrayList = new ArrayList();
arrayList.add(arrayList6);
arrayList.add(arrayList5);
}
hashMap4.put("v", arrayList);
hashMap3.put(AFa1uSDK.AFa1xSDK.values()[num.intValue()].values, hashMap4);
if (aFa1ySDK2 == AFa1uSDK.AFa1ySDK.FIRST) {
hashMap3.put("er", "no_svs");
}
aFb1xSDK = this;
it = it2;
str8 = str;
str13 = str16;
str14 = str17;
application6 = application3;
AFInAppEventParameterName3 = pressedStateDuration;
valueOf2 = sharedPreferences3;
concurrentHashMap4 = concurrentHashMap3;
} else {
z2 = AFInAppEventParameterName3;
sharedPreferences2 = valueOf2;
concurrentHashMap2 = concurrentHashMap4;
application2 = application6;
hashMap3 = new HashMap();
hashMap3.put("er", "na");
break;
}
} catch (Exception e12) {
e = e12;
pressedStateDuration = AFInAppEventParameterName3;
sharedPreferences6 = valueOf2;
}
}
concurrentHashMap = concurrentHashMap2;
concurrentHashMap.put("sensors", hashMap3);
application7 = application2;
pressedStateDuration = z2;
sharedPreferences6 = sharedPreferences2;
} else {
pressedStateDuration = AFInAppEventParameterName3;
sharedPreferences6 = valueOf2;
concurrentHashMap = concurrentHashMap4;
application7 = application6;
str = str8;
concurrentHashMap.put("sensors", "na");
}
map.putAll(concurrentHashMap);
application4 = application7;
z3 = pressedStateDuration;
sharedPreferences4 = sharedPreferences6;
} catch (Exception e13) {
e = e13;
}
} catch (Throwable th4) {
th = th4;
Throwable th5 = th;
AFLogger.afErrorLog(th5.getLocalizedMessage(), th5, true);
return map;
}
} catch (Exception e14) {
e = e14;
pressedStateDuration = AFInAppEventParameterName3;
sharedPreferences6 = valueOf2;
application7 = application6;
str = str8;
}
}
if (AFInAppEventType("advertiserId") == null) {
application5 = application4;
AFa1bSDK.AFInAppEventType(application5, map);
map.put("GAID_retry", String.valueOf(AFInAppEventType("advertiserId") != null));
} else {
application5 = application4;
}
values2 = AFa1bSDK.values(application5.getContentResolver());
if (values2 != null) {
map.put("amazon_aid", values2.AFInAppEventParameterName);
map.put("amazon_aid_limit", String.valueOf(values2.AFInAppEventType));
}
map.put("registeredUninstall", Boolean.valueOf(AFe1mSDK.AFKeystoreWrapper(sharedPreferences4)));
z4 = z3;
sharedPreferences5 = sharedPreferences4;
int AFKeystoreWrapper42222 = AFKeystoreWrapper(sharedPreferences5, z4);
map.put("counter", Integer.toString(AFKeystoreWrapper42222));
map.put("iaecounter", Integer.toString(values(sharedPreferences5, str != null)));
if (z4 && AFKeystoreWrapper42222 == 1) {
appsFlyerProperties.values = true;
}
map.put("isFirstCall", Boolean.toString(!AFInAppEventParameterName(sharedPreferences5)));
valueOf(application5, z4, map, AFKeystoreWrapper42222);
new AFb1ySDK();
map.put("af_v", AFb1ySDK.AFKeystoreWrapper(map));
new AFb1ySDK();
map.put("af_v2", AFb1ySDK.AFInAppEventParameterName(map));
map.put("ivc", Boolean.valueOf(onInstallConversionFailureNative(application5)));
if (sharedPreferences5.contains("is_stop_tracking_used")) {
map.put("istu", String.valueOf(sharedPreferences5.getBoolean("is_stop_tracking_used", false)));
}
HashMap hashMap2222 = new HashMap();
hashMap2222.put("mcc", Integer.valueOf(application5.getResources().getConfiguration().mcc));
hashMap2222.put("mnc", Integer.valueOf(application5.getResources().getConfiguration().mnc));
map.put("cell", hashMap2222);
AFb1hSDK aFb1hSDK32222 = aFb1hSDK;
map.put("sig", AFa1cSDK.values(aFb1hSDK32222.AFInAppEventType.getPackageManager(), aFb1hSDK32222.AFInAppEventType.getPackageName()));
map.put("last_boot_time", Long.valueOf(System.currentTimeMillis() - SystemClock.elapsedRealtime()));
StatFs statFs2222 = new StatFs(Environment.getDataDirectory().getAbsolutePath());
if (Build.VERSION.SDK_INT >= 18) {
long blockSizeLong = statFs2222.getBlockSizeLong();
availableBlocks = statFs2222.getAvailableBlocksLong() * blockSizeLong;
blockCount = statFs2222.getBlockCountLong() * blockSizeLong;
} else {
int blockSize = statFs2222.getBlockSize();
availableBlocks = statFs2222.getAvailableBlocks() * blockSize;
blockCount = statFs2222.getBlockCount() * blockSize;
}
double pow2222 = Math.pow(2.0d, 20.0d);
StringBuilder sb42222 = new StringBuilder();
sb42222.append((long) (availableBlocks / pow2222));
sb42222.append("/");
sb42222.append((long) (blockCount / pow2222));
map.put("disk", sb42222.toString());
aFa1eSDK = this.AFLogger;
if (aFa1eSDK != null && (strArr = aFa1eSDK.AFKeystoreWrapper) != null) {
map.put("sharing_filter", strArr);
}
} catch (Throwable th6) {
th = th6;
}
} catch (Throwable th7) {
th = th7;
Throwable th52 = th;
AFLogger.afErrorLog(th52.getLocalizedMessage(), th52, true);
return map;
}
return map;
}
private static void AFInAppEventType(Map<String, Object> map, AFe1fSDK aFe1fSDK) {
HashMap hashMap = new HashMap(aFe1fSDK.AFInAppEventType);
aFe1fSDK.AFInAppEventType.clear();
aFe1fSDK.AFInAppEventParameterName.valueOf("gcd");
if ((!hashMap.isEmpty() ? '%' : 'S') != '%') {
return;
}
int i = onAttributionFailure + 49;
onResponse = i % 128;
int i2 = i % 2;
valueOf(map).put("gcd", hashMap);
int i3 = onResponse + 47;
onAttributionFailure = i3 % 128;
int i4 = i3 % 2;
}
private void afDebugLog() {
int i = onAttributionFailure + 95;
onResponse = i % 128;
int i2 = i % 2;
if (AFd1hSDK.AFLogger()) {
return;
}
AFc1vSDK AFKeystoreWrapper2 = AFKeystoreWrapper();
AFd1pSDK afDebugLog2 = AFKeystoreWrapper2.afDebugLog();
afDebugLog2.AFKeystoreWrapper.execute(new AFd1pSDK.AnonymousClass5(new AFd1hSDK(AFKeystoreWrapper2)));
int i3 = onResponse + 31;
onAttributionFailure = i3 % 128;
if ((i3 % 2 == 0 ? (char) 28 : Typography.greater) != '>') {
Object obj = null;
super.hashCode();
}
}
@Override
public final String getAppsFlyerUID(Context context) {
int i = onResponse + 119;
onAttributionFailure = i % 128;
Object[] objArr = null;
if (i % 2 != 0) {
AFKeystoreWrapper().AFVersionDeclaration().values("getAppsFlyerUID", new String[0]);
} else {
AFKeystoreWrapper().AFVersionDeclaration().values("getAppsFlyerUID", new String[0]);
}
}
@Override
public final void setLogLevel(AFLogger.LogLevel logLevel) {
int i = onAttributionFailure + 89;
onResponse = i % 128;
int i2 = i % 2;
AFKeystoreWrapper().AFVersionDeclaration().values("log", String.valueOf(logLevel.getLevel() > AFLogger.LogLevel.NONE.getLevel()));
AppsFlyerProperties.getInstance().set("logLevel", logLevel.getLevel());
int i3 = onAttributionFailure + 73;
onResponse = i3 % 128;
if (!(i3 % 2 != 0)) {
return;
}
Object[] objArr = null;
int length = objArr.length;
}
public void AFInAppEventParameterName(Context context, Intent intent) {
boolean z;
int i = onResponse + 91;
onAttributionFailure = i % 128;
int i2 = i % 2;
AFInAppEventType(context);
AFa1tSDK onAppOpenAttributionNative = AFKeystoreWrapper().onAppOpenAttributionNative();
AFc1xSDK afErrorLog2 = AFKeystoreWrapper().afErrorLog();
Uri values2 = AFa1tSDK.values(intent);
if (values2 != null) {
if ((!values2.toString().isEmpty() ? (char) 29 : '\'') != '\'') {
z = true;
if ((!afErrorLog2.AFInAppEventParameterName("ddl_sent") ? '3' : '%') != '%') {
int i3 = onResponse + 111;
onAttributionFailure = i3 % 128;
Object obj = null;
if (i3 % 2 == 0) {
super.hashCode();
}
}
onAppOpenAttributionNative.AFInAppEventType(new HashMap(), intent, context);
}
}
z = false;
if ((!afErrorLog2.AFInAppEventParameterName("ddl_sent") ? '3' : '%') != '%') {
}
onAppOpenAttributionNative.AFInAppEventType(new HashMap(), intent, context);
}
private static void AFKeystoreWrapper(int i, String str, int i2, int i3, boolean z, Object[] objArr) {
char[] cArr;
String str2;
if (str != null) {
cArr = str.toCharArray();
}
char[] cArr2 = cArr;
synchronized (AFg1mSDK.valueOf) {
char[] cArr3 = new char[i3];
AFg1mSDK.AFInAppEventParameterName = 0;
while (AFg1mSDK.AFInAppEventParameterName < i3) {
AFg1mSDK.AFInAppEventType = cArr2[AFg1mSDK.AFInAppEventParameterName];
cArr3[AFg1mSDK.AFInAppEventParameterName] = (char) (AFg1mSDK.AFInAppEventType + i2);
int i4 = AFg1mSDK.AFInAppEventParameterName;
cArr3[i4] = (char) (cArr3[i4] - onAppOpenAttribution);
AFg1mSDK.AFInAppEventParameterName++;
}
if (i > 0) {
AFg1mSDK.AFKeystoreWrapper = i;
char[] cArr4 = new char[i3];
System.arraycopy(cArr3, 0, cArr4, 0, i3);
System.arraycopy(cArr4, 0, cArr3, i3 - AFg1mSDK.AFKeystoreWrapper, AFg1mSDK.AFKeystoreWrapper);
System.arraycopy(cArr4, AFg1mSDK.AFKeystoreWrapper, cArr3, 0, i3 - AFg1mSDK.AFKeystoreWrapper);
}
if (z) {
char[] cArr5 = new char[i3];
AFg1mSDK.AFInAppEventParameterName = 0;
while (AFg1mSDK.AFInAppEventParameterName < i3) {
cArr5[AFg1mSDK.AFInAppEventParameterName] = cArr3[(i3 - AFg1mSDK.AFInAppEventParameterName) - 1];
AFg1mSDK.AFInAppEventParameterName++;
}
cArr3 = cArr5;
}
str2 = new String(cArr3);
}
objArr[0] = str2;
}
}