SG6 GAME v1.2版本的 MD5 值为:e05d9d2dd2bb5cc643956d31ab441e99

以下内容为反编译后的 AFa1dSDK.java 源代码,内容仅作参考


package com.appsflyer.internal;

import android.app.Activity;
import android.app.Application;
import android.app.UiModeManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.StrictMode;
import android.text.TextUtils;
import android.view.MotionEvent;
import androidx.constraintlayout.core.motion.utils.TypedValues;
import com.alibaba.fastjson.asm.Opcodes;
import com.alibaba.fastjson.parser.JSONLexer;
import com.appsflyer.AFInAppEventParameterName;
import com.appsflyer.AFInAppEventType;
import com.appsflyer.AFKeystoreWrapper;
import com.appsflyer.AFLogger;
import com.appsflyer.AFVersionDeclaration;
import com.appsflyer.AppsFlyerConversionListener;
import com.appsflyer.AppsFlyerInAppPurchaseValidatorListener;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.PurchaseHandler;
import com.appsflyer.attribution.AppsFlyerRequestListener;
import com.appsflyer.deeplink.DeepLinkListener;
import com.appsflyer.deeplink.DeepLinkResult;
import com.appsflyer.internal.AFa1uSDK;
import com.appsflyer.internal.AFb1iSDK;
import com.appsflyer.internal.AFc1uSDK;
import com.appsflyer.internal.AFd1iSDK;
import com.appsflyer.internal.AFd1tSDK;
import com.appsflyer.internal.AFf1jSDK;
import com.appsflyer.internal.components.network.http.ResponseNetwork;
import com.appsflyer.internal.platform_extension.PluginInfo;
import com.google.android.gms.common.GoogleApiAvailability;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.messaging.Constants;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.net.HttpURLConnection;
import java.net.URI;
import java.nio.charset.Charset;
import java.security.KeyStoreException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.TimeZone;
import java.util.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 AFa1dSDK extends AppsFlyerLib {
    static AppsFlyerInAppPurchaseValidatorListener AFInAppEventParameterName = null;
    public static final String AFKeystoreWrapper;
    private static AFa1dSDK afErrorLog = null;
    private static String afRDLog = null;
    private static int onAttributionFailure = 0;
    private static int onConversionDataFail = 1;
    private static char[] onResponse;
    static final String valueOf;
    public static final String values;
    private String AFLogger$LogLevel;
    public AFa1bSDK afDebugLog;
    private Map<Long, String> afErrorLogForExcManagerOnly;
    String afInfoLog;
    private boolean init;
    private final AFc1xSDK onAppOpenAttribution;
    private SharedPreferences onAttributionFailureNative;
    private Map<String, Object> onConversionDataSuccess;
    private boolean onInstallConversionDataLoadedNative;
    private Application onInstallConversionFailureNative;
    private AFb1hSDK onResponseErrorNative;
    private String onResponseNative;
    public volatile AppsFlyerConversionListener AFInAppEventType = null;
    private long AFLogger = -1;
    private long afWarnLog = -1;
    private long getLevel = TimeUnit.SECONDS.toMillis(5);
    private boolean AFVersionDeclaration = false;
    private final AFb1xSDK onAppOpenAttributionNative = new AFb1xSDK();
    private boolean AppsFlyer2dXConversionCallback = false;
    private boolean onDeepLinkingNative = false;
    private final Executor onDeepLinking = Executors.newSingleThreadExecutor();

    static void AFInAppEventType() {
        onResponse = new char[]{148, 296, 287, 284, 291, 285, 280, 279, 286, 291, 288, 286, 24, 137, 269, 263, 270, 269, 141, 293, 299, 290, 287, 272, 268, 292, 294, 287, 289, 295, 300, 301, 282, 'k'};
    }

    static Map AFInAppEventType(AFa1dSDK aFa1dSDK) {
        int i = onConversionDataFail + 33;
        onAttributionFailure = i % 128;
        char c = i % 2 != 0 ? 'U' : 'Q';
        Map<String, Object> map = aFa1dSDK.onConversionDataSuccess;
        if (c == 'U') {
            Object obj = null;
            super.hashCode();
        }
        return map;
    }

    static boolean AFInAppEventType(AFa1dSDK aFa1dSDK, boolean z) {
        int i = onAttributionFailure + 23;
        int i2 = i % 128;
        onConversionDataFail = i2;
        int i3 = i % 2;
        aFa1dSDK.AppsFlyer2dXConversionCallback = z;
        int i4 = i2 + 15;
        onAttributionFailure = i4 % 128;
        if (!(i4 % 2 != 0)) {
            return z;
        }
        Object[] objArr = null;
        int length = objArr.length;
        return z;
    }

    static void valueOf(AFa1dSDK aFa1dSDK) {
        int i = onAttributionFailure + 125;
        onConversionDataFail = i % 128;
        char c = i % 2 == 0 ? (char) 0 : (char) 21;
        aFa1dSDK.afErrorLogForExcManagerOnly();
        if (c == 0) {
            Object obj = null;
            super.hashCode();
        }
        int i2 = onAttributionFailure + 103;
        onConversionDataFail = i2 % 128;
        int i3 = i2 % 2;
    }

    static long values(AFa1dSDK aFa1dSDK, long j) {
        int i = onAttributionFailure;
        int i2 = i + 25;
        onConversionDataFail = i2 % 128;
        int i3 = i2 % 2;
        aFa1dSDK.afWarnLog = j;
        int i4 = i + 31;
        onConversionDataFail = i4 % 128;
        int i5 = i4 % 2;
        return j;
    }

    static Application values(AFa1dSDK aFa1dSDK) {
        int i = onAttributionFailure + 45;
        onConversionDataFail = i % 128;
        char c = i % 2 == 0 ? 'B' : '+';
        Application application = aFa1dSDK.onInstallConversionFailureNative;
        if (c != '+') {
            Object obj = null;
            super.hashCode();
        }
        return application;
    }

    static void values(AFa1dSDK aFa1dSDK, AFa1qSDK aFa1qSDK) {
        int i = onAttributionFailure + 109;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        aFa1dSDK.valueOf(aFa1qSDK);
        int i3 = onAttributionFailure + 1;
        onConversionDataFail = i3 % 128;
        if (i3 % 2 == 0) {
            int i4 = 91 / 0;
        }
    }

    static {
        AFInAppEventType();
        valueOf = "253";
        Object[] objArr = new Object[1];
        AFInAppEventParameterName("\u0001", false, new int[]{33, 1, Opcodes.RET, 1}, objArr);
        String substring = "6.12.1".substring(0, "6.12.1".lastIndexOf(((String) objArr[0]).intern()));
        AFKeystoreWrapper = substring;
        afRDLog = "https://%sstats.%s/stats";
        StringBuilder sb = new StringBuilder();
        sb.append(substring);
        sb.append("/androidevent?buildnumber=6.12.1&app_id=");
        values = sb.toString();
        AFInAppEventParameterName = null;
        afErrorLog = new AFa1dSDK();
        int i = onConversionDataFail + 105;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
    }

    public final AFc1zSDK AFInAppEventParameterName() {
        int i = onAttributionFailure + 65;
        int i2 = i % 128;
        onConversionDataFail = i2;
        int i3 = i % 2;
        AFc1xSDK aFc1xSDK = this.onAppOpenAttribution;
        int i4 = i2 + 121;
        onAttributionFailure = i4 % 128;
        int i5 = i4 % 2;
        return aFc1xSDK;
    }

    public AFa1dSDK() {
        AFVersionDeclaration.init();
        this.onAppOpenAttribution = new AFc1xSDK();
        AFd1tSDK level = AFInAppEventParameterName().getLevel();
        level.values.add(new AFa1xSDK(this, (byte) 0));
    }

    public static AFa1dSDK valueOf() {
        int i = onAttributionFailure + 27;
        int i2 = i % 128;
        onConversionDataFail = i2;
        int i3 = i % 2;
        AFa1dSDK aFa1dSDK = afErrorLog;
        int i4 = i2 + 113;
        onAttributionFailure = i4 % 128;
        if ((i4 % 2 != 0 ? '(' : 'W') != '(') {
            return aFa1dSDK;
        }
        Object[] objArr = null;
        int length = objArr.length;
        return aFa1dSDK;
    }

    @Override
    @Deprecated
    public final void performOnAppAttribution(Context context, URI uri) {
        int i = onConversionDataFail + 11;
        onAttributionFailure = i % 128;
        if ((i % 2 != 0 ? '5' : 'U') != 'U') {
            Object[] objArr = null;
            int length = objArr.length;
        }
        AFb1uSDK init = AFInAppEventParameterName().init();
        StringBuilder sb = new StringBuilder("Link is \"");
        sb.append(uri);
        sb.append("\"");
        init.AFInAppEventType(sb.toString(), DeepLinkResult.Error.NETWORK);
        int i2 = onAttributionFailure + 61;
        onConversionDataFail = i2 % 128;
        int i3 = i2 % 2;
    }

    @Override
    @Deprecated
    public final void setSharingFilter(String... strArr) {
        int i = onConversionDataFail + 55;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        setSharingFilterForPartners(strArr);
        int i3 = onConversionDataFail + 47;
        onAttributionFailure = i3 % 128;
        if ((i3 % 2 != 0 ? '(' : '5') != '5') {
            int i4 = 30 / 0;
        }
    }

    @Override
    @Deprecated
    public final void setSharingFilterForAllPartners() {
        int i = onConversionDataFail + 41;
        onAttributionFailure = i % 128;
        if (!(i % 2 != 0)) {
            setSharingFilterForPartners("all");
        } else {
            String[] strArr = new String[0];
            strArr[0] = "all";
            setSharingFilterForPartners(strArr);
        }
        int i2 = onConversionDataFail + 51;
        onAttributionFailure = i2 % 128;
        int i3 = i2 % 2;
    }

    @Override
    public final void setSharingFilterForPartners(String... strArr) {
        this.afDebugLog = new AFa1bSDK(strArr);
        int i = onAttributionFailure + 65;
        onConversionDataFail = i % 128;
        if (i % 2 != 0) {
            return;
        }
        Object obj = null;
        super.hashCode();
    }

    @Override
    public final void appendParametersToDeepLinkingURL(String str, Map<String, String> map) {
        int i = onAttributionFailure + 51;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        AFb1uSDK init = AFInAppEventParameterName().init();
        init.values = str;
        init.AFInAppEventParameterName = map;
        int i3 = onConversionDataFail + 79;
        onAttributionFailure = i3 % 128;
        if ((i3 % 2 != 0 ? '\'' : JSONLexer.EOI) != '\'') {
            return;
        }
        Object obj = null;
        super.hashCode();
    }

    @Override
    public final void subscribeForDeepLink(DeepLinkListener deepLinkListener) {
        int i = onAttributionFailure + 69;
        onConversionDataFail = i % 128;
        if (!(i % 2 == 0)) {
            subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
        } else {
            subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
            int i2 = 46 / 0;
        }
        int i3 = onAttributionFailure + 51;
        onConversionDataFail = i3 % 128;
        int i4 = i3 % 2;
    }

    @Override
    public final void performOnDeepLinking(final Intent intent, Context context) {
        if (!(intent != null)) {
            int i = onAttributionFailure + 35;
            onConversionDataFail = i % 128;
            if (i % 2 != 0) {
                AFInAppEventParameterName().init().AFInAppEventType("performOnDeepLinking was called with null intent", DeepLinkResult.Error.DEVELOPER_ERROR);
                return;
            }
            AFInAppEventParameterName().init().AFInAppEventType("performOnDeepLinking was called with null intent", DeepLinkResult.Error.DEVELOPER_ERROR);
            Object[] objArr = null;
            int length = objArr.length;
        } else if (context != null) {
            final Context applicationContext = context.getApplicationContext();
            AFInAppEventType(applicationContext);
            AFInAppEventParameterName().valueOf().execute(new Runnable() {
                @Override
                public final void run() {
                    AFa1dSDK.this.AFInAppEventParameterName(applicationContext, intent);
                }
            });
        } else {
            int i2 = onAttributionFailure + 125;
            onConversionDataFail = i2 % 128;
            if ((i2 % 2 == 0 ? ';' : (char) 1) == 1) {
                AFInAppEventParameterName().init().AFInAppEventType("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
                return;
            }
            AFInAppEventParameterName().init().AFInAppEventType("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
            int i3 = 29 / 0;
        }
    }

    public void AFInAppEventParameterName(Context context, Intent intent) {
        Uri uri;
        boolean z;
        AFInAppEventType(context);
        AFb1uSDK init = AFInAppEventParameterName().init();
        AFb1fSDK AFKeystoreWrapper2 = AFInAppEventParameterName().AFKeystoreWrapper();
        Object obj = null;
        if (intent != null) {
            int i = onConversionDataFail + 25;
            onAttributionFailure = i % 128;
            if (i % 2 != 0) {
                boolean equals = "android.intent.action.VIEW".equals(intent.getAction());
                super.hashCode();
            }
            if ((uri == null ? '!' : ':') != ':') {
                int i2 = onAttributionFailure + 15;
                onConversionDataFail = i2 % 128;
                int i3 = i2 % 2;
                if (!uri.toString().isEmpty()) {
                    int i4 = onAttributionFailure + 49;
                    onConversionDataFail = i4 % 128;
                    if (i4 % 2 != 0) {
                        z = true;
                        if ((AFKeystoreWrapper2.AFKeystoreWrapper("ddl_sent") ? 'N' : '5') != '5') {
                            int i5 = onConversionDataFail + 81;
                            int i6 = i5 % 128;
                            onAttributionFailure = i6;
                            int i7 = i5 % 2;
                            if (!z) {
                                int i8 = i6 + 69;
                                onConversionDataFail = i8 % 128;
                                boolean z2 = i8 % 2 != 0;
                                init.AFInAppEventType("No direct deep link", (DeepLinkResult.Error) null);
                                if (!z2) {
                                    super.hashCode();
                                    return;
                                }
                                return;
                            }
                        }
                        init.valueOf(new HashMap(), intent, context);
                    }
                }
            }
            z = false;
            if ((AFKeystoreWrapper2.AFKeystoreWrapper("ddl_sent") ? 'N' : '5') != '5') {
            }
            init.valueOf(new HashMap(), intent, context);
        }
        uri = null;
        if ((uri == null ? '!' : ':') != ':') {
        }
        z = false;
        if ((AFKeystoreWrapper2.AFKeystoreWrapper("ddl_sent") ? 'N' : '5') != '5') {
        }
        init.valueOf(new HashMap(), intent, context);
    }

    @Override
    public final void addPushNotificationDeepLinkPath(String... strArr) {
        List<String> asList;
        List<List<String>> list;
        int i = onConversionDataFail + 91;
        onAttributionFailure = i % 128;
        if (!(i % 2 == 0)) {
            asList = Arrays.asList(strArr);
            list = AFInAppEventParameterName().init().AFKeystoreWrapper;
            boolean contains = list.contains(asList);
            Object obj = null;
            super.hashCode();
        } else {
            asList = Arrays.asList(strArr);
            list = AFInAppEventParameterName().init().AFKeystoreWrapper;
        }
        int i2 = onConversionDataFail + 59;
        onAttributionFailure = i2 % 128;
        int i3 = i2 % 2;
    }

    @Override
    public final void setDisableAdvertisingIdentifiers(boolean z) {
        int i = onAttributionFailure + 3;
        onConversionDataFail = i % 128;
        boolean z2 = false;
        if (i % 2 == 0) {
            AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z)));
            Object[] objArr = null;
            int length = objArr.length;
        } else {
            AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z)));
        }
    }

    @Override
    public final void setDisableNetworkData(boolean z) {
        int i = onAttributionFailure + 113;
        onConversionDataFail = i % 128;
        if (i % 2 == 0) {
            AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z)));
            AFKeystoreWrapper(AppsFlyerProperties.DISABLE_NETWORK_DATA, z);
            Object[] objArr = null;
            int length = objArr.length;
            return;
        }
        AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z)));
        AFKeystoreWrapper(AppsFlyerProperties.DISABLE_NETWORK_DATA, z);
    }

    public final void valueOf(Context context, Intent intent) {
        if (intent.getStringExtra("appsflyer_preinstall") != null) {
            int i = onConversionDataFail + 19;
            onAttributionFailure = i % 128;
            int i2 = i % 2;
            AFInAppEventParameterName(intent.getStringExtra("appsflyer_preinstall"));
        }
        AFLogger.afInfoLog("****** onReceive called *******");
        AppsFlyerProperties.getInstance();
        String stringExtra = intent.getStringExtra("referrer");
        AFLogger.afInfoLog("Play store referrer: ".concat(String.valueOf(stringExtra)));
        if ((stringExtra != null ? 'H' : Typography.amp) == 'H') {
            valueOf(context).values("referrer", stringExtra);
            AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
            appsFlyerProperties.set("AF_REFERRER", stringExtra);
            appsFlyerProperties.AFInAppEventParameterName = stringExtra;
            if (AppsFlyerProperties.getInstance().AFInAppEventType()) {
                int i3 = onConversionDataFail + 23;
                onAttributionFailure = i3 % 128;
                int i4 = i3 % 2;
                AFLogger.afInfoLog("onReceive: isLaunchCalled");
                AFInAppEventType(context, AFe1nSDK.onReceive);
                values(context, stringExtra);
                int i5 = onConversionDataFail + 19;
                onAttributionFailure = i5 % 128;
                int i6 = i5 % 2;
            }
        }
        int i7 = onConversionDataFail + 111;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
    }

    private static void valueOf(JSONObject jSONObject) {
        String str;
        ArrayList arrayList = new ArrayList();
        Iterator<String> keys = jSONObject.keys();
        int i = onConversionDataFail + 45;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        while (true) {
            if (!keys.hasNext()) {
                break;
            }
            try {
                JSONArray jSONArray = new JSONArray((String) jSONObject.get(keys.next()));
                int i3 = 0;
                while (true) {
                    if (!(i3 >= jSONArray.length())) {
                        arrayList.add(Long.valueOf(jSONArray.getLong(i3)));
                        i3++;
                    }
                }
            } catch (JSONException e) {
                AFLogger.afErrorLogForExcManagerOnly("error at timeStampArr", e);
            }
        }
        Collections.sort(arrayList);
        Iterator<String> keys2 = jSONObject.keys();
        int i4 = onConversionDataFail + 53;
        onAttributionFailure = i4 % 128;
        int i5 = i4 % 2;
        Object obj = null;
        loop2: while (true) {
            str = null;
            while (true) {
                if (!(!keys2.hasNext()) && str == null) {
                    String next = keys2.next();
                    try {
                        JSONArray jSONArray2 = new JSONArray((String) jSONObject.get(next));
                        int i6 = onAttributionFailure + 53;
                        onConversionDataFail = i6 % 128;
                        int i7 = i6 % 2;
                        int i8 = 0;
                        while (true) {
                            if ((i8 < jSONArray2.length() ? 'B' : '2') != 'B') {
                                break;
                            }
                            int i9 = onConversionDataFail + 73;
                            onAttributionFailure = i9 % 128;
                            int i10 = i9 % 2;
                            if ((jSONArray2.getLong(i8) != ((Long) arrayList.get(0)).longValue() ? (char) 2 : '5') == 2 && jSONArray2.getLong(i8) != ((Long) arrayList.get(1)).longValue() && 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 i11 = onConversionDataFail + 77;
            onAttributionFailure = i11 % 128;
            char c = i11 % 2 != 0 ? '_' : 'b';
            jSONObject.remove(str);
            if (c != '_') {
                return;
            }
            super.hashCode();
        }
    }

    public final void AFInAppEventParameterName(Context context, String str) {
        JSONArray jSONArray;
        JSONArray jSONArray2;
        JSONObject jSONObject;
        int i = onConversionDataFail + 7;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        AFLogger.afDebugLog("received a new (extra) referrer: ".concat(String.valueOf(str)));
        try {
            long currentTimeMillis = System.currentTimeMillis();
            String valueOf2 = valueOf(context).valueOf("extraReferrers", (String) null);
            if (valueOf2 == null) {
                jSONObject = new JSONObject();
                jSONArray2 = new JSONArray();
            } else {
                JSONObject jSONObject2 = new JSONObject(valueOf2);
                if (jSONObject2.has(str)) {
                    jSONArray = new JSONArray((String) jSONObject2.get(str));
                    int i3 = onAttributionFailure + 17;
                    onConversionDataFail = i3 % 128;
                    int i4 = i3 % 2;
                } else {
                    jSONArray = new JSONArray();
                }
                jSONArray2 = jSONArray;
                jSONObject = jSONObject2;
            }
            if (jSONArray2.length() < 5) {
                int i5 = onConversionDataFail + 63;
                onAttributionFailure = i5 % 128;
                int i6 = i5 % 2;
                jSONArray2.put(currentTimeMillis);
            }
            if (((long) jSONObject.length()) >= 4) {
                valueOf(jSONObject);
            }
            jSONObject.put(str, jSONArray2.toString());
            valueOf(context).values("extraReferrers", jSONObject.toString());
        } 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) {
        AFInAppEventType(context);
        final AFc1zSDK AFInAppEventParameterName2 = AFInAppEventParameterName();
        AFInAppEventParameterName2.AFVersionDeclaration().values = z;
        AFInAppEventParameterName2.valueOf().submit(new Runnable() {
            @Override
            public final void run() {
                AFa1dSDK.AFInAppEventParameterName(AFc1zSDK.this);
            }
        });
        if ((z ? 'M' : 'C') != 'C') {
            int i = onConversionDataFail + 17;
            onAttributionFailure = i % 128;
            int i2 = i % 2;
            AFInAppEventParameterName2.AFKeystoreWrapper().valueOf("is_stop_tracking_used", true);
            int i3 = onConversionDataFail + 65;
            onAttributionFailure = i3 % 128;
            int i4 = i3 % 2;
        }
        int i5 = onConversionDataFail + 57;
        onAttributionFailure = i5 % 128;
        int i6 = i5 % 2;
    }

    public static void AFInAppEventParameterName(AFc1zSDK aFc1zSDK) {
        int i = onConversionDataFail + 31;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        aFc1zSDK.AppsFlyer2dXConversionCallback().valueOf();
        int i3 = onAttributionFailure + 69;
        onConversionDataFail = i3 % 128;
        int i4 = i3 % 2;
    }

    @Override
    public final String getSdkVersion() {
        AFc1zSDK AFInAppEventParameterName2;
        int i = onConversionDataFail + 119;
        onAttributionFailure = i % 128;
        if ((i % 2 != 0 ? '3' : '@') != '3') {
            AFInAppEventParameterName2 = AFInAppEventParameterName();
            AFInAppEventParameterName2.afErrorLogForExcManagerOnly().AFInAppEventType("getSdkVersion", new String[0]);
        } else {
            AFInAppEventParameterName2 = AFInAppEventParameterName();
            AFInAppEventParameterName2.afErrorLogForExcManagerOnly().AFInAppEventType("getSdkVersion", new String[1]);
        }
        AFInAppEventParameterName2.AFInAppEventParameterName();
        String AFInAppEventParameterName3 = AFb1cSDK.AFInAppEventParameterName();
        int i2 = onAttributionFailure + 39;
        onConversionDataFail = i2 % 128;
        if (!(i2 % 2 != 0)) {
            Object obj = null;
            super.hashCode();
            return AFInAppEventParameterName3;
        }
        return AFInAppEventParameterName3;
    }

    @Override
    public final void onPause(Context context) {
        int i = onAttributionFailure + 69;
        onConversionDataFail = i % 128;
        Object[] objArr = null;
        if (!(i % 2 == 0)) {
            AFInAppEventParameterName().onDeepLinkingNative().valueOf(context);
        } else {
            AFInAppEventParameterName().onDeepLinkingNative().valueOf(context);
            super.hashCode();
        }
        int i2 = onAttributionFailure + 119;
        onConversionDataFail = i2 % 128;
        if ((i2 % 2 == 0 ? '[' : ':') != '[') {
            return;
        }
        int length = objArr.length;
    }

    @Override
    public final void updateServerUninstallToken(Context context, String str) {
        AFInAppEventType(context);
        AFe1sSDK aFe1sSDK = new AFe1sSDK(context);
        if (str == null || str.trim().isEmpty()) {
            AFLogger.afWarnLog("[register] Firebase Token is either empty or null and was not registered.");
            return;
        }
        AFLogger.afInfoLog("[register] Firebase Refreshed Token = ".concat(String.valueOf(str)));
        AFb1oSDK AFKeystoreWrapper2 = aFe1sSDK.AFKeystoreWrapper();
        if (AFKeystoreWrapper2 == null || !str.equals(AFKeystoreWrapper2.AFKeystoreWrapper)) {
            long currentTimeMillis = System.currentTimeMillis();
            boolean z = AFKeystoreWrapper2 == null || currentTimeMillis - AFKeystoreWrapper2.values > TimeUnit.SECONDS.toMillis(2L);
            AFb1oSDK aFb1oSDK = new AFb1oSDK(str, currentTimeMillis, !z);
            aFe1sSDK.values.values("afUninstallToken", aFb1oSDK.AFKeystoreWrapper);
            aFe1sSDK.values.AFInAppEventType("afUninstallToken_received_time", aFb1oSDK.values);
            aFe1sSDK.values.valueOf("afUninstallToken_queued", aFb1oSDK.valueOf());
            if (z) {
                AFe1sSDK.AFKeystoreWrapper(str);
            }
        }
    }

    @Override
    public final void setDebugLog(boolean z) {
        AFLogger.LogLevel logLevel;
        int i = onConversionDataFail;
        int i2 = i + 115;
        onAttributionFailure = i2 % 128;
        if ((i2 % 2 != 0 ? 'A' : 'U') != 'U') {
            int i3 = 25 / 0;
        }
        setLogLevel(logLevel);
        int i4 = onAttributionFailure + 75;
        onConversionDataFail = i4 % 128;
        int i5 = i4 % 2;
    }

    @Override
    public final void setOaidData(String str) {
        int i = onConversionDataFail + 15;
        onAttributionFailure = i % 128;
        if ((i % 2 != 0 ? (char) 25 : Typography.greater) != 25) {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setOaidData", str);
        } else {
            AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
            String[] strArr = new String[1];
            strArr[1] = str;
            afErrorLogForExcManagerOnly.AFInAppEventType("setOaidData", strArr);
        }
        AFa1bSDK.AFInAppEventParameterName = str;
    }

    @Override
    public final void setAndroidIdData(String str) {
        int i = onConversionDataFail + 69;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setAndroidIdData", str);
        this.afInfoLog = str;
        int i3 = onConversionDataFail + 123;
        onAttributionFailure = i3 % 128;
        if ((i3 % 2 != 0 ? '@' : '^') != '@') {
            return;
        }
        Object obj = null;
        super.hashCode();
    }

    private static void AFKeystoreWrapper(String str, String str2) {
        int i = onConversionDataFail + 105;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        AppsFlyerProperties.getInstance().set(str, str2);
        int i3 = onAttributionFailure + 105;
        onConversionDataFail = i3 % 128;
        if ((i3 % 2 == 0 ? 'D' : (char) 4) != 'D') {
            return;
        }
        Object obj = null;
        super.hashCode();
    }

    private static void AFKeystoreWrapper(String str, boolean z) {
        int i = onConversionDataFail + 23;
        onAttributionFailure = i % 128;
        if ((i % 2 != 0 ? 'M' : (char) 19) != 'M') {
            AppsFlyerProperties.getInstance().set(str, z);
        } else {
            AppsFlyerProperties.getInstance().set(str, z);
            int i2 = 54 / 0;
        }
        int i3 = onAttributionFailure + 71;
        onConversionDataFail = i3 % 128;
        if ((i3 % 2 == 0 ? 'U' : (char) 20) != 20) {
            int i4 = 70 / 0;
        }
    }

    private static String valueOf(String str) {
        int i = onConversionDataFail + 55;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        String string = AppsFlyerProperties.getInstance().getString(str);
        int i3 = onAttributionFailure + 69;
        onConversionDataFail = i3 % 128;
        if (i3 % 2 != 0) {
            return string;
        }
        int i4 = 40 / 0;
        return string;
    }

    private static boolean AFInAppEventParameterName(String str, boolean z) {
        int i = onConversionDataFail + 105;
        onAttributionFailure = i % 128;
        if ((i % 2 != 0 ? (char) 24 : '8') != '8') {
            boolean z2 = AppsFlyerProperties.getInstance().getBoolean(str, z);
            Object obj = null;
            super.hashCode();
            return z2;
        }
        return AppsFlyerProperties.getInstance().getBoolean(str, z);
    }

    public final boolean AFKeystoreWrapper() {
        int i = onAttributionFailure + 107;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        if ((AFInAppEventParameterName(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false) ? 'V' : ';') == 'V') {
            if ((values() == null ? Typography.quote : (char) 16) == '\"') {
                int i3 = onAttributionFailure + 69;
                int i4 = i3 % 128;
                onConversionDataFail = i4;
                int i5 = i3 % 2;
                int i6 = i4 + 15;
                onAttributionFailure = i6 % 128;
                int i7 = i6 % 2;
                return true;
            }
        }
        int i8 = onAttributionFailure + 79;
        onConversionDataFail = i8 % 128;
        int i9 = i8 % 2;
        return false;
    }

    @Override
    public final void waitForCustomerUserId(boolean z) {
        String concat;
        boolean z2;
        int i = onAttributionFailure + 125;
        onConversionDataFail = i % 128;
        if ((i % 2 == 0 ? '\\' : '8') != '\\') {
            concat = "initAfterCustomerUserID: ".concat(String.valueOf(z));
            z2 = true;
        } else {
            concat = "initAfterCustomerUserID: ".concat(String.valueOf(z));
            z2 = false;
        }
        AFLogger.afInfoLog(concat, z2);
        AFKeystoreWrapper(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, z);
        int i2 = onAttributionFailure + 23;
        onConversionDataFail = i2 % 128;
        if ((i2 % 2 == 0 ? 'K' : '.') != 'K') {
            return;
        }
        Object[] objArr = null;
        int length = objArr.length;
    }

    @Override
    public final void setCustomerIdAndLogSession(String str, Context context) {
        String str2;
        int i = onAttributionFailure + 13;
        onConversionDataFail = i % 128;
        if (i % 2 == 0) {
            Object[] objArr = null;
            int length = objArr.length;
            if (context == null) {
                return;
            }
        } else {
            if ((context != null ? (char) 11 : 'N') != 11) {
                return;
            }
        }
        if (!AFKeystoreWrapper()) {
            setCustomerUserId(str);
            AFLogger.afInfoLog("waitForCustomerUserId is false; setting CustomerUserID: ".concat(String.valueOf(str)), true);
            int i2 = onAttributionFailure + 31;
            onConversionDataFail = i2 % 128;
            int i3 = i2 % 2;
            return;
        }
        setCustomerUserId(str);
        StringBuilder sb = new StringBuilder("CustomerUserId set: ");
        sb.append(str);
        sb.append(" - Initializing AppsFlyer Tacking");
        AFLogger.afInfoLog(sb.toString(), true);
        String referrer = AppsFlyerProperties.getInstance().getReferrer(AFInAppEventParameterName().AFKeystoreWrapper());
        AFInAppEventType(context, AFe1nSDK.setCustomerIdAndLogSession);
        String str3 = AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType;
        if (referrer == null) {
            int i4 = onConversionDataFail + 29;
            onAttributionFailure = i4 % 128;
            if (i4 % 2 != 0) {
                int i5 = 80 / 0;
            }
            str2 = "";
        } else {
            str2 = referrer;
        }
        if (!(context instanceof Activity ? false : true)) {
            ((Activity) context).getIntent();
        }
        AFKeystoreWrapper(context, null, null, str2, null);
    }

    @Override
    public final String getOutOfStore(Context context) {
        String string;
        int i = onConversionDataFail + 75;
        onAttributionFailure = i % 128;
        Object obj = null;
        if (i % 2 != 0) {
            string = AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.AF_STORE_FROM_API);
            super.hashCode();
        } else {
            string = AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.AF_STORE_FROM_API);
        }
    }

    @Override
    public final void setOutOfStore(String str) {
        int i = onConversionDataFail + 23;
        onAttributionFailure = i % 128;
        Object[] objArr = null;
        if (i % 2 != 0) {
            int length = objArr.length;
        }
    }

    @Override
    public final void setAppInviteOneLink(String str) {
        int i = onConversionDataFail + 113;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setAppInviteOneLink", str);
        AFLogger.afInfoLog("setAppInviteOneLink = ".concat(String.valueOf(str)));
        if ((str != null ? (char) 6 : '!') != 6 || !str.equals(AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.ONELINK_ID))) {
            AppsFlyerProperties.getInstance().remove(AppsFlyerProperties.ONELINK_DOMAIN);
            AppsFlyerProperties.getInstance().remove(AppsFlyerProperties.ONELINK_VERSION);
            AppsFlyerProperties.getInstance().remove(AppsFlyerProperties.ONELINK_SCHEME);
        }
        AFKeystoreWrapper(AppsFlyerProperties.ONELINK_ID, str);
        int i3 = onConversionDataFail + 97;
        onAttributionFailure = i3 % 128;
        if (!(i3 % 2 != 0)) {
            return;
        }
        int i4 = 87 / 0;
    }

    @Override
    public final void setAdditionalData(Map<String, Object> map) {
        int i = onConversionDataFail + 43;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        if (map != null) {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setAdditionalData", map.toString());
            AppsFlyerProperties.getInstance().setCustomData(new JSONObject(map).toString());
            int i3 = onAttributionFailure + 5;
            onConversionDataFail = i3 % 128;
            int i4 = i3 % 2;
        }
        int i5 = onConversionDataFail + 55;
        onAttributionFailure = i5 % 128;
        int i6 = i5 % 2;
    }

    @Override
    public final void sendPushNotificationData(Activity activity) {
        String valueOf2;
        long j;
        if (activity != null) {
            int i = onConversionDataFail + 49;
            onAttributionFailure = i % 128;
            int i2 = i % 2;
            if (activity.getIntent() != null) {
                AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
                StringBuilder sb = new StringBuilder("activity_intent_");
                sb.append(activity.getIntent().toString());
                afErrorLogForExcManagerOnly.AFInAppEventType("sendPushNotificationData", activity.getLocalClassName(), sb.toString());
                valueOf2 = valueOf(activity);
                this.AFLogger$LogLevel = valueOf2;
                if (valueOf2 == null) {
                    long currentTimeMillis = System.currentTimeMillis();
                    if (this.afErrorLogForExcManagerOnly == null) {
                        AFLogger.afInfoLog("pushes: initializing pushes history..");
                        this.afErrorLogForExcManagerOnly = new ConcurrentHashMap();
                        j = currentTimeMillis;
                    } else {
                        try {
                            long j2 = AppsFlyerProperties.getInstance().getLong("pushPayloadMaxAging", 1800000L);
                            j = currentTimeMillis;
                            for (Long l : this.afErrorLogForExcManagerOnly.keySet()) {
                                try {
                                    JSONObject jSONObject = new JSONObject(this.AFLogger$LogLevel);
                                    JSONObject jSONObject2 = new JSONObject(this.afErrorLogForExcManagerOnly.get(l));
                                    if (jSONObject.opt("pid").equals(jSONObject2.opt("pid"))) {
                                        int i3 = onAttributionFailure + 23;
                                        onConversionDataFail = i3 % 128;
                                        int i4 = i3 % 2;
                                        if (jSONObject.opt("c").equals(jSONObject2.opt("c"))) {
                                            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.AFLogger$LogLevel = null;
                                            return;
                                        }
                                    }
                                    if (currentTimeMillis - l.longValue() > j2) {
                                        this.afErrorLogForExcManagerOnly.remove(l);
                                    }
                                    if (l.longValue() <= j) {
                                        j = l.longValue();
                                    }
                                } catch (Throwable th) {
                                    th = th;
                                    StringBuilder sb3 = new StringBuilder("Error while handling push notification measurement: ");
                                    sb3.append(th.getClass().getSimpleName());
                                    AFLogger.afErrorLog(sb3.toString(), th);
                                    if (this.afErrorLogForExcManagerOnly.size() == AppsFlyerProperties.getInstance().getInt("pushPayloadHistorySize", 2)) {
                                    }
                                    this.afErrorLogForExcManagerOnly.put(Long.valueOf(currentTimeMillis), this.AFLogger$LogLevel);
                                    start(activity);
                                    return;
                                }
                            }
                        } catch (Throwable th2) {
                            th = th2;
                            j = currentTimeMillis;
                        }
                    }
                    if (this.afErrorLogForExcManagerOnly.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.afErrorLogForExcManagerOnly.remove(Long.valueOf(j));
                    }
                    this.afErrorLogForExcManagerOnly.put(Long.valueOf(currentTimeMillis), this.AFLogger$LogLevel);
                    start(activity);
                    return;
                }
                return;
            }
        }
        if ((activity != null ? (char) 11 : 'Q') != 11) {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("sendPushNotificationData", "activity_null");
        } else {
            int i5 = onConversionDataFail + 31;
            onAttributionFailure = i5 % 128;
            if (i5 % 2 == 0) {
                AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("sendPushNotificationData", activity.getLocalClassName(), "activity_intent_null");
            } else {
                AFb1wSDK afErrorLogForExcManagerOnly2 = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
                String[] strArr = new String[3];
                strArr[1] = activity.getLocalClassName();
                strArr[1] = "activity_intent_null";
                afErrorLogForExcManagerOnly2.AFInAppEventType("sendPushNotificationData", strArr);
            }
        }
        valueOf2 = valueOf(activity);
        this.AFLogger$LogLevel = valueOf2;
        if (valueOf2 == null) {
        }
    }

    @Override
    public final void setUserEmails(String... strArr) {
        int i = onConversionDataFail + 61;
        onAttributionFailure = i % 128;
        Object[] objArr = null;
        if (i % 2 == 0) {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setUserEmails", strArr);
            setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
        } else {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setUserEmails", strArr);
            setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
            int length = objArr.length;
        }
        int i2 = onConversionDataFail + 91;
        onAttributionFailure = i2 % 128;
        if ((i2 % 2 != 0 ? ' ' : (char) 28) != 28) {
            int length2 = objArr.length;
        }
    }

    @Override
    public final void setUserEmails(AppsFlyerProperties.EmailsCryptType emailsCryptType, String... strArr) {
        ArrayList arrayList = new ArrayList(strArr.length + 1);
        arrayList.add(emailsCryptType.toString());
        arrayList.addAll(Arrays.asList(strArr));
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setUserEmails", (String[]) arrayList.toArray(new String[strArr.length + 1]));
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EMAIL_CRYPT_TYPE, emailsCryptType.getValue());
        HashMap hashMap = new HashMap();
        String str = null;
        ArrayList arrayList2 = new ArrayList();
        int length = strArr.length;
        int i = onConversionDataFail + 47;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        int i3 = 0;
        while (true) {
            if (i3 < length) {
                String str2 = strArr[i3];
                if (AnonymousClass2.AFInAppEventParameterName[emailsCryptType.ordinal()] != 2) {
                    arrayList2.add(AFb1zSDK.AFInAppEventParameterName(str2));
                    str = "sha256_el_arr";
                } else {
                    arrayList2.add(str2);
                    int i4 = onConversionDataFail + 21;
                    onAttributionFailure = i4 % 128;
                    int i5 = i4 % 2;
                    str = "plain_el_arr";
                }
                i3++;
            } else {
                hashMap.put(str, arrayList2);
                AppsFlyerProperties.getInstance().setUserEmails(new JSONObject(hashMap).toString());
                return;
            }
        }
    }

    static class AnonymousClass2 {
        static final int[] AFInAppEventParameterName;

        static {
            int[] iArr = new int[AppsFlyerProperties.EmailsCryptType.values().length];
            AFInAppEventParameterName = iArr;
            try {
                iArr[AppsFlyerProperties.EmailsCryptType.SHA256.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                AFInAppEventParameterName[AppsFlyerProperties.EmailsCryptType.NONE.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
        }
    }

    @Override
    public final void setCollectAndroidID(boolean z) {
        int i = onAttributionFailure + 19;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCollectAndroidID", String.valueOf(z));
        AFKeystoreWrapper(AppsFlyerProperties.COLLECT_ANDROID_ID, Boolean.toString(z));
        AFKeystoreWrapper(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, Boolean.toString(z));
        int i3 = onConversionDataFail + 121;
        onAttributionFailure = i3 % 128;
        int i4 = i3 % 2;
    }

    @Override
    public final void setCollectIMEI(boolean z) {
        int i = onAttributionFailure + 83;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCollectIMEI", String.valueOf(z));
        AFKeystoreWrapper(AppsFlyerProperties.COLLECT_IMEI, Boolean.toString(z));
        AFKeystoreWrapper(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, Boolean.toString(z));
        int i3 = onAttributionFailure + 81;
        onConversionDataFail = i3 % 128;
        if (!(i3 % 2 != 0)) {
            int i4 = 9 / 0;
        }
    }

    @Override
    @Deprecated
    public final void setCollectOaid(boolean z) {
        int i = onAttributionFailure + 23;
        onConversionDataFail = i % 128;
        if ((i % 2 == 0 ? (char) 16 : '7') != '7') {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCollectOaid", String.valueOf(z));
        } else {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCollectOaid", String.valueOf(z));
        }
        AFKeystoreWrapper(AppsFlyerProperties.COLLECT_OAID, Boolean.toString(z));
        int i2 = onAttributionFailure + 101;
        onConversionDataFail = i2 % 128;
        if ((i2 % 2 == 0 ? 'R' : 'O') != 'O') {
            Object obj = null;
            super.hashCode();
        }
    }

    @Override
    public final AppsFlyerLib init(String str, AppsFlyerConversionListener appsFlyerConversionListener, Context context) {
        String str2;
        if (!this.init) {
            this.init = true;
            AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType = str;
            AFc1pSDK.AFInAppEventParameterName(str);
            if (!(context == null)) {
                this.onInstallConversionFailureNative = (Application) context.getApplicationContext();
                AFInAppEventType(context);
                AFInAppEventParameterName().AFLogger().valueOf = System.currentTimeMillis();
                AFInAppEventParameterName().onResponseErrorNative().AFInAppEventType();
                AFInAppEventParameterName().afDebugLog().valueOf(new AFd1cSDK() {
                    @Override
                    public final void onRemoteConfigUpdateFinished(AFe1zSDK aFe1zSDK) {
                        AFa1dSDK.this.AFInAppEventParameterName(aFe1zSDK);
                    }
                });
                afDebugLog();
                this.onAppOpenAttribution.AFVersionDeclaration().AFInAppEventParameterName();
            } else {
                AFLogger.afWarnLog("context is null, Google Install Referrer will be not initialized");
            }
            AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
            String[] strArr = new String[2];
            strArr[0] = str;
            if ((appsFlyerConversionListener == null ? ',' : ')') != ')') {
                str2 = "null";
            } else {
                int i = onConversionDataFail + 105;
                onAttributionFailure = i % 128;
                int i2 = i % 2;
                str2 = "conversionDataListener";
            }
            strArr[1] = str2;
            afErrorLogForExcManagerOnly.AFInAppEventType("init", strArr);
            AFLogger.AFInAppEventParameterName(String.format("Initializing AppsFlyer SDK: (v%s.%s)", "6.12.1", valueOf));
            this.AFInAppEventType = appsFlyerConversionListener;
            return this;
        }
        int i3 = onConversionDataFail + 15;
        onAttributionFailure = i3 % 128;
        int i4 = i3 % 2;
        return this;
    }

    public void AFInAppEventParameterName(AFe1zSDK aFe1zSDK) {
        int i = onConversionDataFail + 115;
        onAttributionFailure = i % 128;
        Object[] objArr = null;
        if ((i % 2 != 0 ? (char) 24 : '.') != 24) {
            if (aFe1zSDK != AFe1zSDK.SUCCESS) {
                return;
            }
        } else {
            AFe1zSDK aFe1zSDK2 = AFe1zSDK.SUCCESS;
            int length = objArr.length;
            if (aFe1zSDK != aFe1zSDK2) {
                return;
            }
        }
        int i2 = onAttributionFailure + 9;
        onConversionDataFail = i2 % 128;
        if (i2 % 2 != 0) {
            AFInAppEventParameterName().onResponseErrorNative().values();
            return;
        }
        AFInAppEventParameterName().onResponseErrorNative().values();
        super.hashCode();
    }

    private void afDebugLog() {
        AFf1kSDK AFLogger$LogLevel = AFInAppEventParameterName().AFLogger$LogLevel();
        AFf1pSDK afRDLog2 = afRDLog();
        Runnable AFInAppEventType = AFInAppEventType(afRDLog2);
        AFLogger$LogLevel.values(afRDLog2);
        AFLogger$LogLevel.values(new AFf1cSDK(AFInAppEventType));
        AFLogger$LogLevel.values(new AFf1gSDK(AFInAppEventType, AFInAppEventParameterName()));
        AFLogger$LogLevel.values(new AFf1hSDK(AFInAppEventType, AFInAppEventParameterName()));
        if ((!afErrorLog() ? (char) 21 : 'N') == 21) {
            AFLogger$LogLevel.AFInAppEventParameterName(this.onInstallConversionFailureNative, AFInAppEventType, AFInAppEventParameterName());
        }
        AFf1jSDK[] AFInAppEventType2 = AFLogger$LogLevel.AFInAppEventType();
        int length = AFInAppEventType2.length;
        int i = onAttributionFailure + 75;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        int i3 = 0;
        while (true) {
            if (!(i3 < length)) {
                return;
            }
            int i4 = onAttributionFailure + 65;
            onConversionDataFail = i4 % 128;
            int i5 = i4 % 2;
            AFInAppEventType2[i3].AFKeystoreWrapper(this.onInstallConversionFailureNative);
            i3++;
        }
    }

    private AFf1pSDK afRDLog() {
        AFf1pSDK aFf1pSDK = new AFf1pSDK(new Runnable() {
            @Override
            public final void run() {
                AFa1dSDK.this.getLevel();
            }
        }, AFInAppEventParameterName().valueOf());
        int i = onConversionDataFail + 31;
        onAttributionFailure = i % 128;
        if ((i % 2 != 0 ? '\f' : ')') != ')') {
            int i2 = 30 / 0;
            return aFf1pSDK;
        }
        return aFf1pSDK;
    }

    public void getLevel() {
        ScheduledExecutorService values2;
        Runnable runnable;
        int i = onConversionDataFail + 101;
        onAttributionFailure = i % 128;
        if ((i % 2 != 0 ? (char) 22 : (char) 20) != 22) {
            values2 = AFInAppEventParameterName().values();
            runnable = new Runnable() {
                @Override
                public final void run() {
                    AFa1dSDK.this.AFVersionDeclaration();
                }
            };
        } else {
            values2 = AFInAppEventParameterName().values();
            runnable = new Runnable() {
                @Override
                public final void run() {
                    AFa1dSDK.this.AFVersionDeclaration();
                }
            };
        }
        AFInAppEventType(values2, runnable, 0L, TimeUnit.MILLISECONDS);
    }

    public void AFVersionDeclaration() {
        try {
            AFe1hSDK aFe1hSDK = new AFe1hSDK();
            if ((AFInAppEventParameterName(aFe1hSDK, valueOf(this.onInstallConversionFailureNative)) ? '\\' : '=') != '\\') {
                return;
            }
            int i = onConversionDataFail + 123;
            onAttributionFailure = i % 128;
            int i2 = i % 2;
            valueOf(aFe1hSDK);
            int i3 = onAttributionFailure + 83;
            onConversionDataFail = i3 % 128;
            int i4 = i3 % 2;
        } catch (Throwable th) {
            AFLogger.afErrorLog(th.getMessage(), th);
        }
    }

    private Runnable AFInAppEventType(final AFf1pSDK aFf1pSDK) {
        Runnable runnable;
        int i = onConversionDataFail + 75;
        onAttributionFailure = i % 128;
        Object[] objArr = null;
        if (i % 2 == 0) {
            runnable = new Runnable() {
                @Override
                public final void run() {
                    AFa1dSDK.this.AFKeystoreWrapper(aFf1pSDK);
                }
            };
        } else {
            runnable = new Runnable() {
                @Override
                public final void run() {
                    AFa1dSDK.this.AFKeystoreWrapper(aFf1pSDK);
                }
            };
            int length = objArr.length;
        }
        int i2 = onAttributionFailure + 49;
        onConversionDataFail = i2 % 128;
        if ((i2 % 2 == 0 ? 'V' : (char) 30) != 'V') {
            return runnable;
        }
        int length2 = objArr.length;
        return runnable;
    }

    public void AFKeystoreWrapper(AFf1pSDK aFf1pSDK) {
        boolean z;
        AFb1fSDK valueOf2 = valueOf(this.onInstallConversionFailureNative);
        int AFInAppEventType = AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType.AFInAppEventType("appsFlyerCount", 0);
        boolean AFKeystoreWrapper2 = valueOf2.AFKeystoreWrapper(AppsFlyerProperties.NEW_REFERRER_SENT);
        if ((aFf1pSDK.afRDLog == AFf1jSDK.AFa1vSDK.NOT_STARTED ? 'L' : (char) 31) != 31) {
            int i = onConversionDataFail + 15;
            onAttributionFailure = i % 128;
            int i2 = i % 2;
            z = true;
        } else {
            z = false;
        }
        if (AFInAppEventType != 1) {
            return;
        }
        int i3 = onConversionDataFail + 91;
        onAttributionFailure = i3 % 128;
        if (i3 % 2 != 0) {
            Object[] objArr = null;
            int length = objArr.length;
        }
    }

    private boolean afErrorLog() {
        int i = onAttributionFailure + 89;
        onConversionDataFail = i % 128;
        if ((i % 2 == 0 ? 'N' : (char) 24) != 24) {
            int i2 = 59 / 0;
            return AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType("AF_PREINSTALL_DISABLED");
        }
        return AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType("AF_PREINSTALL_DISABLED");
    }

    private void AFInAppEventParameterName(Context context) {
        this.onConversionDataSuccess = new HashMap();
        final long currentTimeMillis = System.currentTimeMillis();
        final AFa1uSDK.AFa1xSDK aFa1xSDK = new AFa1uSDK.AFa1xSDK() {
            @Override
            public final void AFInAppEventType(String str, String str2, String str3) {
                if (str != null) {
                    AFLogger.afInfoLog("Facebook Deferred AppLink data received: ".concat(String.valueOf(str)));
                    AFa1dSDK.AFInAppEventType(AFa1dSDK.this).put("link", str);
                    if (str2 != null) {
                        AFa1dSDK.AFInAppEventType(AFa1dSDK.this).put("target_url", str2);
                    }
                    if (str3 != null) {
                        HashMap hashMap = new HashMap();
                        HashMap hashMap2 = new HashMap();
                        hashMap2.put("promo_code", str3);
                        hashMap.put("deeplink_context", hashMap2);
                        AFa1dSDK.AFInAppEventType(AFa1dSDK.this).put("extras", hashMap);
                    }
                } else {
                    AFa1dSDK.AFInAppEventType(AFa1dSDK.this).put("link", "");
                }
                AFa1dSDK.AFInAppEventType(AFa1dSDK.this).put("ttr", String.valueOf(System.currentTimeMillis() - currentTimeMillis));
            }

            @Override
            public final void AFInAppEventParameterName(String str) {
                AFa1dSDK.AFInAppEventType(AFa1dSDK.this).put(Constants.IPC_BUNDLE_KEY_SEND_ERROR, str);
            }
        };
        try {
            Object obj = null;
            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 obj2, 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("com.facebook.platform.APPLINK_NATIVE_URL");
                                str3 = bundle2.getString("target_url");
                                Bundle bundle3 = bundle2.getBundle("extras");
                                str = (bundle3 == null || (bundle = bundle3.getBundle("deeplink_context")) == null) ? null : bundle.getString("promo_code");
                            } else {
                                str = null;
                                str2 = null;
                                str3 = null;
                            }
                            AFa1xSDK aFa1xSDK2 = aFa1xSDK;
                            if (aFa1xSDK2 != null) {
                                aFa1xSDK2.AFInAppEventType(str2, str3, str);
                            }
                        } else {
                            AFa1xSDK aFa1xSDK3 = aFa1xSDK;
                            if (aFa1xSDK3 != null) {
                                aFa1xSDK3.AFInAppEventType(null, null, null);
                            }
                        }
                        return null;
                    }
                    AFa1xSDK aFa1xSDK4 = aFa1xSDK;
                    if (aFa1xSDK4 != null) {
                        aFa1xSDK4.AFInAppEventParameterName("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)) {
                method.invoke(null, context, string, newProxyInstance);
                int i = onAttributionFailure + 21;
                onConversionDataFail = i % 128;
                if ((i % 2 == 0 ? (char) 2 : (char) 3) != 2) {
                    return;
                }
                super.hashCode();
                return;
            }
            int i2 = onConversionDataFail + 55;
            onAttributionFailure = i2 % 128;
            if ((i2 % 2 != 0 ? 'A' : 'W') != 'W') {
                aFa1xSDK.AFInAppEventParameterName("Facebook app id not defined in resources");
                super.hashCode();
                return;
            }
            aFa1xSDK.AFInAppEventParameterName("Facebook app id not defined in resources");
        } catch (ClassNotFoundException e) {
            AFLogger.afErrorLogForExcManagerOnly("FB class missing error", e);
            aFa1xSDK.AFInAppEventParameterName(e.toString());
        } catch (IllegalAccessException e2) {
            AFLogger.afErrorLogForExcManagerOnly("FB illegal access", e2);
            aFa1xSDK.AFInAppEventParameterName(e2.toString());
        } catch (NoSuchMethodException e3) {
            AFLogger.afErrorLogForExcManagerOnly("FB method missing error", e3);
            aFa1xSDK.AFInAppEventParameterName(e3.toString());
        } catch (InvocationTargetException e4) {
            AFLogger.afErrorLogForExcManagerOnly("FB invocation error", e4);
            aFa1xSDK.AFInAppEventParameterName(e4.toString());
        }
    }

    @Override
    public final void enableFacebookDeferredApplinks(boolean z) {
        int i = onConversionDataFail + 113;
        int i2 = i % 128;
        onAttributionFailure = i2;
        int i3 = i % 2;
        this.onDeepLinkingNative = z;
        int i4 = i2 + 47;
        onConversionDataFail = i4 % 128;
        int i5 = i4 % 2;
    }

    @Override
    public final void start(Context context) {
        int i = onConversionDataFail + 107;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        start(context, null);
        int i3 = onAttributionFailure + 55;
        onConversionDataFail = i3 % 128;
        int i4 = i3 % 2;
    }

    @Override
    public final void start(Context context, String str) {
        int i = onConversionDataFail + 37;
        onAttributionFailure = i % 128;
        boolean z = i % 2 != 0;
        Object[] objArr = null;
        start(context, str, null);
        if (!z) {
            return;
        }
        int length = objArr.length;
    }

    @Override
    public final void start(Context context, String str, final AppsFlyerRequestListener appsFlyerRequestListener) {
        if (AFInAppEventParameterName().onDeepLinkingNative().AFKeystoreWrapper()) {
            return;
        }
        if (!this.init) {
            int i = onConversionDataFail + 17;
            onAttributionFailure = i % 128;
            int i2 = i % 2;
            AFLogger.afWarnLog("ERROR: AppsFlyer SDK is not initialized! The API call 'start()' must be called after the 'init(String, AppsFlyerConversionListener)' API method, which should be called on the Application's onCreate.");
            if (str == null) {
                if (appsFlyerRequestListener != null) {
                    appsFlyerRequestListener.onError(41, "No dev key");
                    return;
                }
                return;
            }
        }
        AFInAppEventType(context);
        final AFe1lSDK AFLogger = AFInAppEventParameterName().AFLogger();
        AFLogger.values(AFa1rSDK.AFKeystoreWrapper(context));
        this.onInstallConversionFailureNative = (Application) context.getApplicationContext();
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("start", str);
        String str2 = valueOf;
        AFLogger.afInfoLog(String.format("Starting AppsFlyer: (v%s.%s)", "6.12.1", str2));
        StringBuilder sb = new StringBuilder("Build Number: ");
        sb.append(str2);
        AFLogger.afInfoLog(sb.toString());
        AppsFlyerProperties.getInstance().loadProperties(AFInAppEventParameterName().AFKeystoreWrapper());
        if (!TextUtils.isEmpty(str)) {
            int i3 = onAttributionFailure + 87;
            onConversionDataFail = i3 % 128;
            if (i3 % 2 == 0) {
                AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType = str;
                AFc1pSDK.AFInAppEventParameterName(str);
                int i4 = 66 / 0;
            } else {
                AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType = str;
                AFc1pSDK.AFInAppEventParameterName(str);
            }
        } else if (TextUtils.isEmpty(AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType)) {
            AFLogger.afWarnLog("ERROR: AppsFlyer SDK is not initialized! You must provide AppsFlyer Dev-Key either in the 'init' API method (should be called on Application's onCreate),or in the start() API (should be called on Activity's onCreate).");
            if ((appsFlyerRequestListener != null ? '`' : '5') != '`') {
                return;
            }
            appsFlyerRequestListener.onError(41, "No dev key");
            return;
        }
        AFInAppEventParameterName().afDebugLog().valueOf(null);
        afErrorLogForExcManagerOnly();
        afInfoLog(this.onInstallConversionFailureNative.getBaseContext());
        if ((this.onDeepLinkingNative ? '(' : (char) 14) != 14) {
            int i5 = onAttributionFailure + 77;
            onConversionDataFail = i5 % 128;
            int i6 = i5 % 2;
            AFInAppEventParameterName(this.onInstallConversionFailureNative.getApplicationContext());
        }
        this.onAppOpenAttribution.onDeepLinkingNative().AFInAppEventParameterName(context, new AFb1iSDK.AFa1wSDK() {
            @Override
            public final void values(Activity activity) {
                AFLogger.AFInAppEventParameterName();
                AFa1dSDK.this.AFInAppEventParameterName().afDebugLog().valueOf(null);
                AFa1dSDK.valueOf(AFa1dSDK.this);
                AFa1dSDK aFa1dSDK = AFa1dSDK.this;
                int AFInAppEventType = aFa1dSDK.AFInAppEventType(aFa1dSDK.valueOf((Context) activity), false);
                AFLogger.afInfoLog("onBecameForeground");
                if (AFInAppEventType < 2) {
                    AFa1dSDK.this.AFInAppEventParameterName().afWarnLog().AFInAppEventType();
                }
                AFe1bSDK aFe1bSDK = new AFe1bSDK();
                if (activity != null) {
                    AFa1dSDK.this.AFInAppEventParameterName().init().valueOf(aFe1bSDK.AFInAppEventType(), activity.getIntent(), activity.getApplication());
                }
                AFa1dSDK aFa1dSDK2 = AFa1dSDK.this;
                aFe1bSDK.AFInAppEventType = appsFlyerRequestListener;
                aFa1dSDK2.values(aFe1bSDK, activity);
            }

            @Override
            public final void AFKeystoreWrapper(Context context2) {
                AFLogger.afInfoLog("onBecameBackground");
                AFe1lSDK aFe1lSDK = AFLogger;
                long currentTimeMillis = System.currentTimeMillis();
                if (aFe1lSDK.afDebugLog != 0) {
                    long j = currentTimeMillis - aFe1lSDK.afDebugLog;
                    if (j > 0 && j < 1000) {
                        j = 1000;
                    }
                    aFe1lSDK.afErrorLogForExcManagerOnly = TimeUnit.MILLISECONDS.toSeconds(j);
                    aFe1lSDK.AFKeystoreWrapper.AFInAppEventType("prev_session_dur", aFe1lSDK.afErrorLogForExcManagerOnly);
                } else {
                    AFLogger.afInfoLog("Metrics: fg ts is missing");
                }
                AFLogger.afInfoLog("callStatsBackground background call");
                AFa1dSDK.this.AFInAppEventType(new WeakReference<>(context2));
                AFa1dSDK.this.AFInAppEventParameterName().onResponseErrorNative().AFKeystoreWrapper();
                AFb1wSDK afErrorLogForExcManagerOnly = AFa1dSDK.this.AFInAppEventParameterName().afErrorLogForExcManagerOnly();
                if (afErrorLogForExcManagerOnly.afErrorLog()) {
                    afErrorLogForExcManagerOnly.valueOf();
                    if (context2 != null && !AppsFlyerLib.getInstance().isStopped()) {
                        afErrorLogForExcManagerOnly.AFInAppEventType(context2.getPackageName(), context2.getPackageManager(), AFa1dSDK.this.AFInAppEventParameterName());
                    }
                    afErrorLogForExcManagerOnly.AFInAppEventType();
                } else {
                    AFLogger.afDebugLog("RD status is OFF");
                }
                AFa1dSDK.this.AFInAppEventParameterName().afWarnLog().values();
            }
        });
    }

    private static void afInfoLog(Context context) {
        int i = onAttributionFailure + 15;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        try {
            if (!((context.getPackageManager().getPackageInfo(context.getPackageName(), 0).applicationInfo.flags & 32768) == 0)) {
                int i3 = onConversionDataFail + 33;
                onAttributionFailure = i3 % 128;
                if (i3 % 2 != 0) {
                    int identifier = context.getResources().getIdentifier("appsflyer_backup_rules", "xml", context.getPackageName());
                    Object obj = null;
                    super.hashCode();
                }
            }
            int i4 = onAttributionFailure + 57;
            onConversionDataFail = i4 % 128;
            if (i4 % 2 == 0) {
                int i5 = 27 / 0;
            }
        } catch (Exception e) {
            AFLogger.afErrorLogForExcManagerOnly("checkBackupRules Exception", e);
            AFLogger.afRDLog("checkBackupRules Exception: ".concat(String.valueOf(e)));
        }
    }

    private void afDebugLog(Context context) {
        int i;
        if (AFa1cSDK.valueOf()) {
            i = 23;
            AFLogger.afRDLog("OPPO device found");
        } else {
            i = 18;
        }
        if (Build.VERSION.SDK_INT >= i && !AFInAppEventParameterName(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.valueOf()) {
                aFKeystoreWrapper.AFKeystoreWrapper = AFa1aSDK.AFInAppEventParameterName(AFInAppEventParameterName().onAppOpenAttributionNative(), AFInAppEventParameterName().AFKeystoreWrapper());
                aFKeystoreWrapper.AFInAppEventType = 0;
                aFKeystoreWrapper.valueOf(aFKeystoreWrapper.AFInAppEventParameterName());
            } else {
                String AFInAppEventParameterName2 = aFKeystoreWrapper.AFInAppEventParameterName();
                synchronized (aFKeystoreWrapper.AFInAppEventParameterName) {
                    aFKeystoreWrapper.AFInAppEventType++;
                    AFLogger.afInfoLog("Deleting key with alias: ".concat(String.valueOf(AFInAppEventParameterName2)));
                    try {
                        synchronized (aFKeystoreWrapper.AFInAppEventParameterName) {
                            aFKeystoreWrapper.values.deleteEntry(AFInAppEventParameterName2);
                        }
                    } catch (KeyStoreException e) {
                        StringBuilder sb2 = new StringBuilder("Exception ");
                        sb2.append(e.getMessage());
                        sb2.append(" occurred");
                        AFLogger.afErrorLog(sb2.toString(), e);
                    }
                }
                aFKeystoreWrapper.valueOf(aFKeystoreWrapper.AFInAppEventParameterName());
            }
            AFKeystoreWrapper("KSAppsFlyerId", aFKeystoreWrapper.AFKeystoreWrapper());
            AFKeystoreWrapper("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 values() {
        int i = onConversionDataFail + 93;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        String valueOf2 = valueOf(AppsFlyerProperties.APP_USER_ID);
        int i3 = onConversionDataFail + 103;
        onAttributionFailure = i3 % 128;
        if (!(i3 % 2 == 0)) {
            int i4 = 33 / 0;
            return valueOf2;
        }
        return valueOf2;
    }

    @Override
    public final void setCustomerUserId(String str) {
        int i = onAttributionFailure + 99;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCustomerUserId", str);
        AFLogger.afInfoLog("setCustomerUserId = ".concat(String.valueOf(str)));
        AFKeystoreWrapper(AppsFlyerProperties.APP_USER_ID, str);
        AFKeystoreWrapper(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false);
        int i3 = onConversionDataFail + 63;
        onAttributionFailure = i3 % 128;
        if (!(i3 % 2 != 0)) {
            return;
        }
        Object[] objArr = null;
        int length = objArr.length;
    }

    @Override
    public final void setPhoneNumber(String str) {
        int i = onAttributionFailure + 81;
        onConversionDataFail = i % 128;
        boolean z = i % 2 != 0;
        Object[] objArr = null;
        this.onResponseNative = AFb1zSDK.AFInAppEventParameterName(str);
        if (!z) {
            super.hashCode();
        }
        int i2 = onConversionDataFail + 101;
        onAttributionFailure = i2 % 128;
        if (!(i2 % 2 != 0)) {
            return;
        }
        int length = objArr.length;
    }

    private static String AFLogger() {
        int i = onAttributionFailure + 79;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        String valueOf2 = valueOf(AppsFlyerProperties.APP_ID);
        int i3 = onConversionDataFail + 101;
        onAttributionFailure = i3 % 128;
        if ((i3 % 2 != 0 ? '5' : 'Y') != '5') {
            return valueOf2;
        }
        Object obj = null;
        super.hashCode();
        return valueOf2;
    }

    @Override
    public final void setAppId(String str) {
        int i = onAttributionFailure + 77;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setAppId", str);
        AFKeystoreWrapper(AppsFlyerProperties.APP_ID, str);
        int i3 = onAttributionFailure + 19;
        onConversionDataFail = i3 % 128;
        int i4 = i3 % 2;
    }

    @Override
    public final void setExtension(String str) {
        int i = onConversionDataFail + 45;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setExtension", str);
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EXTENSION, str);
        int i3 = onConversionDataFail + 53;
        onAttributionFailure = i3 % 128;
        if (!(i3 % 2 == 0)) {
            Object obj = null;
            super.hashCode();
        }
    }

    @Override
    public final void setIsUpdate(boolean z) {
        int i = onConversionDataFail + 7;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setIsUpdate", String.valueOf(z));
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.IS_UPDATE, z);
        int i3 = onConversionDataFail + 11;
        onAttributionFailure = i3 % 128;
        if (!(i3 % 2 == 0)) {
            Object[] objArr = null;
            int length = objArr.length;
        }
    }

    @Override
    public final void setCurrencyCode(String str) {
        int i = onAttributionFailure + 97;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setCurrencyCode", str);
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.CURRENCY_CODE, str);
        int i3 = onConversionDataFail + 77;
        onAttributionFailure = i3 % 128;
        int i4 = i3 % 2;
    }

    @Override
    public final void logLocation(Context context, double d, double d2) {
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("logLocation", String.valueOf(d), String.valueOf(d2));
        HashMap hashMap = new HashMap();
        hashMap.put(AFInAppEventParameterName.LONGITUDE, Double.toString(d2));
        hashMap.put(AFInAppEventParameterName.LATITUDE, Double.toString(d));
        valueOf(context, AFInAppEventType.LOCATION_COORDINATES, hashMap);
        int i = onAttributionFailure + 79;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
    }

    final void AFInAppEventType(WeakReference<Context> weakReference) {
        if (weakReference.get() == null) {
            return;
        }
        AFLogger.afInfoLog("app went to background");
        AFb1fSDK valueOf2 = valueOf(weakReference.get());
        AppsFlyerProperties.getInstance().saveProperties(valueOf2);
        long j = AFInAppEventParameterName().AFLogger().afErrorLogForExcManagerOnly;
        HashMap hashMap = new HashMap();
        String str = AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType;
        Object obj = null;
        if ((str == null ? (char) 20 : (char) 2) == 20) {
            int i = onConversionDataFail + 11;
            onAttributionFailure = i % 128;
            char c = i % 2 != 0 ? (char) 5 : (char) 30;
            AFLogger.afWarnLog("[callStats] AppsFlyer's SDK cannot send any event without providing DevKey.");
            if (c != 30) {
                super.hashCode();
                return;
            }
            return;
        }
        String valueOf3 = valueOf("KSAppsFlyerId");
        if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, false)) {
            hashMap.put(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, "true");
        }
        AFc1uSDK.AFa1wSDK values2 = AFa1bSDK.values(weakReference.get().getContentResolver());
        if (values2 != null) {
            hashMap.put("amazon_aid", values2.AFInAppEventParameterName);
            hashMap.put("amazon_aid_limit", String.valueOf(values2.AFInAppEventType));
        }
        String string = AppsFlyerProperties.getInstance().getString("advertiserId");
        if (string != null) {
            int i2 = onConversionDataFail + 39;
            onAttributionFailure = i2 % 128;
            int i3 = i2 % 2;
            hashMap.put("advertiserId", string);
        }
        hashMap.put("app_id", weakReference.get().getPackageName());
        hashMap.put("devkey", str);
        hashMap.put("uid", AFa1aSDK.AFInAppEventParameterName(AFInAppEventParameterName().onAppOpenAttributionNative(), AFInAppEventParameterName().AFKeystoreWrapper()));
        hashMap.put("time_in_app", String.valueOf(j));
        hashMap.put("statType", "user_closed_app");
        hashMap.put("platform", "Android");
        hashMap.put("launch_counter", Integer.toString(AFInAppEventType(valueOf2, false)));
        hashMap.put(AppsFlyerProperties.CHANNEL, AFInAppEventParameterName().AFInAppEventParameterName().AFKeystoreWrapper());
        if (valueOf3 != null) {
            int i4 = onConversionDataFail + 15;
            onAttributionFailure = i4 % 128;
            if ((i4 % 2 != 0 ? 'E' : (char) 16) == 'E') {
                super.hashCode();
            }
        } else {
            int i5 = onAttributionFailure + 61;
            onConversionDataFail = i5 % 128;
            int i6 = i5 % 2;
            valueOf3 = "";
        }
        hashMap.put("originalAppsflyerId", valueOf3);
        if (!this.AppsFlyer2dXConversionCallback) {
            AFLogger.afDebugLog("Stats call is disabled, ignore ...");
            return;
        }
        AFf1wSDK aFf1wSDK = new AFf1wSDK();
        aFf1wSDK.afWarnLog = isStopped();
        AFd1eSDK aFd1eSDK = new AFd1eSDK((AFf1wSDK) aFf1wSDK.valueOf(AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType.AFInAppEventType("appsFlyerCount", 0)).AFInAppEventType(hashMap).valueOf(String.format(afRDLog, AppsFlyerLib.getInstance().getHostPrefix(), valueOf().getHostName())), AFInAppEventParameterName());
        AFd1tSDK level = AFInAppEventParameterName().getLevel();
        level.AFKeystoreWrapper.execute(new AFd1tSDK.AnonymousClass5(aFd1eSDK));
    }

    @Override
    public final void logSession(Context context) {
        int i = onAttributionFailure + 73;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("logSession", new String[0]);
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().values();
        AFInAppEventType(context, AFe1nSDK.logSession);
        Object obj = null;
        valueOf(context, (String) null, (Map<String, Object>) null);
        int i3 = onAttributionFailure + 111;
        onConversionDataFail = i3 % 128;
        if (!(i3 % 2 == 0)) {
            return;
        }
        super.hashCode();
    }

    private void AFInAppEventType(Context context, AFe1nSDK aFe1nSDK) {
        int i = onConversionDataFail + 117;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        AFInAppEventType(context);
        AFe1lSDK AFLogger = AFInAppEventParameterName().AFLogger();
        AFe1oSDK AFKeystoreWrapper2 = AFa1rSDK.AFKeystoreWrapper(context);
        if (!(!AFLogger.values())) {
            AFLogger.values.put("api_name", aFe1nSDK.toString());
            AFLogger.values(AFKeystoreWrapper2);
            int i3 = onConversionDataFail + 3;
            onAttributionFailure = i3 % 128;
            int i4 = i3 % 2;
        }
        AFLogger.AFInAppEventParameterName();
    }

    @Override
    public final void sendAdRevenue(Context context, Map<String, Object> map) {
        int AFInAppEventParameterName2 = AFInAppEventParameterName(valueOf(context));
        HashMap hashMap = new HashMap();
        hashMap.put("ad_network", map);
        hashMap.put("adrevenue_counter", Integer.valueOf(AFInAppEventParameterName2));
        AFInAppEventType(context, hashMap, new AFe1gSDK());
        int i = onAttributionFailure + 25;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
    }

    @Override
    public final void sendAdImpression(Context context, Map<String, Object> map) {
        int AFKeystoreWrapper2 = AFKeystoreWrapper(valueOf(context));
        HashMap hashMap = new HashMap();
        hashMap.put("ad_network", map);
        hashMap.put("adimpression_counter", Integer.valueOf(AFKeystoreWrapper2));
        AFInAppEventType(context, hashMap, new AFe1jSDK());
        int i = onAttributionFailure + 117;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
    }

    private void AFInAppEventType(Context context, Map<String, Object> map, AFa1qSDK aFa1qSDK) {
        Activity activity;
        int i = onConversionDataFail + 19;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        AFInAppEventType(context);
        aFa1qSDK.AFInAppEventType(map);
        if (!(!(context instanceof Activity))) {
            int i3 = onConversionDataFail;
            int i4 = i3 + 83;
            onAttributionFailure = i4 % 128;
            int i5 = i4 % 2;
            activity = (Activity) context;
            int i6 = i3 + 107;
            onAttributionFailure = i6 % 128;
            int i7 = i6 % 2;
        } else {
            activity = null;
        }
        values(aFa1qSDK, activity);
    }

    @Override
    public final void logEvent(Context context, String str, Map<String, Object> map) {
        int i = onConversionDataFail + 73;
        onAttributionFailure = i % 128;
        boolean z = i % 2 != 0;
        Object[] objArr = null;
        logEvent(context, str, map, null);
        if (z) {
            int length = objArr.length;
        }
        int i2 = onAttributionFailure + 81;
        onConversionDataFail = i2 % 128;
        if (i2 % 2 == 0) {
            int length2 = objArr.length;
        }
    }

    private void valueOf(Context context, String str, Map<String, Object> map) {
        Activity activity;
        AFe1aSDK aFe1aSDK = new AFe1aSDK();
        aFe1aSDK.afDebugLog = str;
        aFe1aSDK.AFKeystoreWrapper = map;
        if ((context instanceof Activity ? 'K' : (char) 24) != 'K') {
            activity = null;
            int i = onConversionDataFail + 25;
            onAttributionFailure = i % 128;
            int i2 = i % 2;
        } else {
            int i3 = onConversionDataFail + 29;
            onAttributionFailure = i3 % 128;
            int i4 = i3 % 2;
            activity = (Activity) context;
        }
        values(aFe1aSDK, activity);
    }

    final void values(AFa1qSDK aFa1qSDK, Activity activity) {
        int i = onAttributionFailure + 23;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        AFInAppEventType(aFa1qSDK, activity);
        if (!(AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType != null)) {
            AFLogger.afWarnLog("[LogEvent/Launch] AppsFlyer's SDK cannot send any event without providing DevKey.");
            AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.AFInAppEventType;
            if (appsFlyerRequestListener != null) {
                int i3 = onAttributionFailure + 99;
                onConversionDataFail = i3 % 128;
                int i4 = i3 % 2;
                appsFlyerRequestListener.onError(41, "No dev key");
                return;
            }
            return;
        }
        String referrer = AppsFlyerProperties.getInstance().getReferrer(AFInAppEventParameterName().AFKeystoreWrapper());
        if (referrer == null) {
            referrer = "";
        }
        aFa1qSDK.AFLogger = referrer;
        AFInAppEventType(aFa1qSDK);
    }

    @Override
    public final void anonymizeUser(boolean z) {
        int i = onConversionDataFail + 1;
        onAttributionFailure = i % 128;
        if ((i % 2 != 0 ? 'V' : (char) 16) != 16) {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("anonymizeUser", String.valueOf(z));
        } else {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("anonymizeUser", String.valueOf(z));
        }
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, z);
        int i2 = onConversionDataFail + 11;
        onAttributionFailure = i2 % 128;
        int i3 = i2 % 2;
    }

    @Override
    public final void registerConversionListener(Context context, AppsFlyerConversionListener appsFlyerConversionListener) {
        int i = onAttributionFailure + 111;
        onConversionDataFail = i % 128;
        if (!(i % 2 == 0)) {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("registerConversionListener", new String[0]);
        } else {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("registerConversionListener", new String[0]);
        }
        AFInAppEventParameterName(appsFlyerConversionListener);
        int i2 = onConversionDataFail + 73;
        onAttributionFailure = i2 % 128;
        int i3 = i2 % 2;
    }

    private void AFInAppEventParameterName(AppsFlyerConversionListener appsFlyerConversionListener) {
        int i = onConversionDataFail + 97;
        onAttributionFailure = i % 128;
        if ((i % 2 != 0 ? '4' : (char) 30) == '4') {
            Object[] objArr = null;
            int length = objArr.length;
            if (appsFlyerConversionListener == null) {
                return;
            }
        } else if (appsFlyerConversionListener == null) {
            return;
        }
        this.AFInAppEventType = appsFlyerConversionListener;
        int i2 = onConversionDataFail + 21;
        onAttributionFailure = i2 % 128;
        int i3 = i2 % 2;
    }

    @Override
    public final void unregisterConversionListener() {
        int i = onConversionDataFail + 63;
        onAttributionFailure = i % 128;
        if (i % 2 != 0) {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("unregisterConversionListener", new String[0]);
        } else {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("unregisterConversionListener", new String[0]);
        }
        this.AFInAppEventType = null;
    }

    @Override
    public final void registerValidatorListener(Context context, AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener) {
        int i = onConversionDataFail + 81;
        onAttributionFailure = i % 128;
        if ((i % 2 != 0 ? 'A' : '3') != 'A') {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("registerValidatorListener", new String[0]);
            AFLogger.afDebugLog("registerValidatorListener called");
        } else {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("registerValidatorListener", new String[1]);
            AFLogger.afDebugLog("registerValidatorListener called");
        }
    }

    public static String values(SimpleDateFormat simpleDateFormat, long j) {
        simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
        String format = simpleDateFormat.format(new Date(j));
        int i = onConversionDataFail + 59;
        onAttributionFailure = i % 128;
        if (!(i % 2 != 0)) {
            return format;
        }
        Object[] objArr = null;
        int length = objArr.length;
        return format;
    }

    private void AFKeystoreWrapper(Context context, String str, Map<String, Object> map, String str2, String str3) {
        AFa1qSDK aFe1bSDK;
        int i;
        int i2 = onAttributionFailure + 45;
        onConversionDataFail = i2 % 128;
        int i3 = i2 % 2;
        if (!(str != null) || str.trim().isEmpty()) {
            aFe1bSDK = new AFe1bSDK();
            i = onAttributionFailure + 115;
        } else {
            aFe1bSDK = new AFe1aSDK();
            i = onAttributionFailure + 125;
        }
        onConversionDataFail = i % 128;
        int i4 = i % 2;
        AFInAppEventType(context);
        aFe1bSDK.afDebugLog = str;
        aFe1bSDK.AFKeystoreWrapper = map;
        aFe1bSDK.AFLogger = str2;
        aFe1bSDK.values = str3;
        AFInAppEventType(aFe1bSDK);
        int i5 = onConversionDataFail + 105;
        onAttributionFailure = i5 % 128;
        if (i5 % 2 != 0) {
            Object[] objArr = null;
            int length = objArr.length;
        }
    }

    private boolean afInfoLog() {
        int i = onAttributionFailure + 125;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        if (this.AFLogger > 0) {
            long currentTimeMillis = System.currentTimeMillis() - this.AFLogger;
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss.SSS Z", Locale.US);
            String values2 = values(simpleDateFormat, this.AFLogger);
            String values3 = values(simpleDateFormat, this.afWarnLog);
            if (currentTimeMillis < this.getLevel) {
                if (!isStopped()) {
                    AFLogger.afInfoLog(String.format(Locale.US, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nThis launch is blocked: %s ms < %s ms", values2, values3, Long.valueOf(currentTimeMillis), Long.valueOf(this.getLevel)));
                    return true;
                }
            }
            if (!isStopped()) {
                AFLogger.afInfoLog(String.format(Locale.US, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nSending launch (+%s ms)", values2, values3, Long.valueOf(currentTimeMillis)));
            }
        } else {
            if ((!isStopped() ? '!' : 'D') == '!') {
                int i3 = onAttributionFailure + 37;
                onConversionDataFail = i3 % 128;
                int i4 = i3 % 2;
                AFLogger.afInfoLog("Sending first launch for this session!");
            }
        }
        int i5 = onAttributionFailure + 81;
        onConversionDataFail = i5 % 128;
        if (i5 % 2 == 0) {
            int i6 = 8 / 0;
            return false;
        }
        return false;
    }

    private void values(Context context, String str) {
        AFa1qSDK valueOf2 = new AFe1iSDK().valueOf(AFInAppEventParameterName().AFInAppEventParameterName().AFInAppEventType.AFInAppEventType("appsFlyerCount", 0));
        valueOf2.AFLogger = str;
        if (str != null) {
            int i = onConversionDataFail + 121;
            onAttributionFailure = i % 128;
            if (i % 2 != 0) {
            }
        }
        int i2 = onConversionDataFail + 11;
        onAttributionFailure = i2 % 128;
        if (!(i2 % 2 == 0)) {
            Object obj = null;
            super.hashCode();
        }
    }

    private void valueOf(AFa1qSDK aFa1qSDK) {
        Context context = AFInAppEventParameterName().onAppOpenAttributionNative().AFInAppEventParameterName;
        if (context == null) {
            AFLogger.afDebugLog("sendWithEvent - got null context. skipping event/launch.");
            return;
        }
        AFb1fSDK valueOf2 = valueOf(context);
        AppsFlyerProperties.getInstance().saveProperties(valueOf2);
        if (!AFInAppEventParameterName().AFVersionDeclaration().values()) {
            StringBuilder sb = new StringBuilder("sendWithEvent from activity: ");
            sb.append(context.getClass().getName());
            AFLogger.afInfoLog(sb.toString());
            int i = onAttributionFailure + 61;
            onConversionDataFail = i % 128;
            int i2 = i % 2;
        }
        boolean values2 = aFa1qSDK.values();
        Map<String, ?> values3 = values(aFa1qSDK);
        String str = (String) values3.get("appsflyerKey");
        char c = ')';
        if (str != null) {
            int i3 = onConversionDataFail + 101;
            onAttributionFailure = i3 % 128;
            ?? r9 = 0;
            if (i3 % 2 != 0) {
                int length = str.length();
                super.hashCode();
            }
        }
        AFLogger.afDebugLog("Not sending data yet, waiting for dev key");
        AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.AFInAppEventType;
        if (appsFlyerRequestListener != null) {
            appsFlyerRequestListener.onError(41, "No dev key");
        }
    }

    private boolean AFInAppEventParameterName(AFa1qSDK aFa1qSDK, AFb1fSDK aFb1fSDK) {
        boolean z;
        boolean z2;
        int i = onConversionDataFail + 49;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        int AFInAppEventType = AFInAppEventType(aFb1fSDK, false);
        if ((AFInAppEventType == 1 ? (char) 17 : Typography.quote) == 17) {
            int i3 = onAttributionFailure + 109;
            int i4 = i3 % 128;
            onConversionDataFail = i4;
            int i5 = i3 % 2;
            if (!(aFa1qSDK instanceof AFe1hSDK)) {
                int i6 = i4 + 89;
                onAttributionFailure = i6 % 128;
                int i7 = i6 % 2;
                z = true;
                if (!(!aFb1fSDK.AFKeystoreWrapper(AppsFlyerProperties.NEW_REFERRER_SENT))) {
                    if ((AFInAppEventType == 1 ? Typography.dollar : '8') == '$') {
                        z2 = true;
                        return !z2 || z;
                    }
                }
                z2 = false;
                if (z2) {
                }
            }
        }
        z = false;
        if (!(!aFb1fSDK.AFKeystoreWrapper(AppsFlyerProperties.NEW_REFERRER_SENT))) {
        }
        z2 = false;
        if (z2) {
        }
    }

    private void valueOf(Map<String, Object> map) {
        boolean z;
        if (!AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, false)) {
            if ((AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, false) ? '\r' : 'R') == 'R') {
                z = false;
                if (z) {
                    int i = onConversionDataFail + 53;
                    onAttributionFailure = i % 128;
                    int i2 = i % 2;
                    if (map.get("advertiserId") != null) {
                        try {
                        } catch (Exception e) {
                            AFLogger.afErrorLog("failed to remove IMEI or AndroidID key from params; ", e);
                            return;
                        }
                        if ((AFb1vSDK.AFInAppEventParameterName(this.afInfoLog) ? 'U' : 'D') != 'D') {
                            int i3 = onAttributionFailure + 51;
                            onConversionDataFail = i3 % 128;
                            if (i3 % 2 == 0) {
                                int i4 = 17 / 0;
                            }
                            AFLogger.afErrorLog("failed to remove IMEI or AndroidID key from params; ", e);
                            return;
                        }
                        if (AFb1vSDK.AFInAppEventParameterName(AFInAppEventParameterName().AFVersionDeclaration().valueOf)) {
                            if ((map.remove("imei") != null ? (char) 1 : (char) 28) != 1) {
                                return;
                            }
                            AFLogger.afInfoLog("validateGaidAndIMEI :: removing: imei");
                            return;
                        }
                        return;
                    }
                    return;
                }
                return;
            }
        }
        z = true;
        if (z) {
        }
    }

    private boolean afWarnLog() {
        int i = onConversionDataFail;
        int i2 = i + 113;
        onAttributionFailure = i2 % 128;
        int i3 = i2 % 2;
        Map<String, Object> map = this.onConversionDataSuccess;
        if ((map != null ? (char) 25 : '1') != 25) {
            return false;
        }
        int i4 = i + 87;
        onAttributionFailure = i4 % 128;
        int i5 = i4 % 2;
        if ((!map.isEmpty() ? '?' : (char) 17) != 17) {
            int i6 = onConversionDataFail + 11;
            onAttributionFailure = i6 % 128;
            int i7 = i6 % 2;
            return true;
        }
        return false;
    }

    public final Map<String, Object> values(AFa1qSDK aFa1qSDK) {
        String str;
        String str2;
        String str3;
        PackageManager.NameNotFoundException nameNotFoundException;
        String str4;
        SimpleDateFormat simpleDateFormat;
        String str5;
        AppsFlyerProperties appsFlyerProperties;
        String str6;
        AFc1uSDK.AFa1wSDK values2;
        AFa1bSDK aFa1bSDK;
        String[] strArr;
        PackageInfo packageInfo;
        String AFInAppEventParameterName2;
        UiModeManager uiModeManager;
        Context context = AFInAppEventParameterName().onAppOpenAttributionNative().AFInAppEventParameterName;
        String str7 = AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType;
        String str8 = aFa1qSDK.afDebugLog;
        String jSONObject = new JSONObject(aFa1qSDK.AFKeystoreWrapper == null ? new HashMap() : aFa1qSDK.AFKeystoreWrapper).toString();
        String str9 = aFa1qSDK.AFLogger;
        AFb1fSDK valueOf2 = valueOf(context);
        boolean values3 = aFa1qSDK.values();
        Map<String, Object> map = aFa1qSDK.AFInAppEventParameterName;
        AFa1bSDK.valueOf(context, map);
        Boolean bool = AFa1bSDK.valueOf;
        if (bool == null || bool.booleanValue()) {
            str = "Exception while collecting facebook's attribution ID. ";
            str2 = "yyyy-MM-dd_HHmmssZ";
        } else {
            str2 = "yyyy-MM-dd_HHmmssZ";
            str = "Exception while collecting facebook's attribution ID. ";
            AFInAppEventParameterName(map).put("ad_ids_disabled", Boolean.TRUE);
        }
        long time = new Date().getTime();
        Object[] objArr = new Object[1];
        AFInAppEventParameterName("\u0000\u0001\u0001\u0000\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000", false, new int[]{0, 12, Opcodes.PUTFIELD, 5}, objArr);
        map.put(((String) objArr[0]).intern(), Long.toString(time));
        String valueOf3 = AFb1eSDK.valueOf(context, time);
        if (valueOf3 != null) {
            map.put("cksm_v1", valueOf3);
        }
        try {
            if (!isStopped()) {
                StringBuilder sb = new StringBuilder("******* sendTrackingWithEvent: ");
                sb.append(values3 ? "Launch" : str8);
                AFLogger.afInfoLog(sb.toString());
            } else {
                AFLogger.afInfoLog("Reporting has been stopped");
            }
            AFInAppEventParameterName().AppsFlyer2dXConversionCallback().AFInAppEventParameterName();
            try {
                List asList = Arrays.asList(context.getPackageManager().getPackageInfo(context.getPackageName(), 4096).requestedPermissions);
                if (!asList.contains("android.permission.INTERNET")) {
                    AFLogger.afWarnLog("Permission android.permission.INTERNET is missing in the AndroidManifest.xml");
                }
                if (!asList.contains("android.permission.ACCESS_NETWORK_STATE")) {
                    AFLogger.afWarnLog("Permission android.permission.ACCESS_NETWORK_STATE is missing in the AndroidManifest.xml");
                }
                if (Build.VERSION.SDK_INT > 32 && !asList.contains("com.google.android.gms.permission.AD_ID")) {
                    AFLogger.afWarnLog("Permission com.google.android.gms.permission.AD_ID is missing in the AndroidManifest.xml");
                }
            } catch (Exception e) {
                AFLogger.afErrorLog("Exception while validation permissions. ", e);
            }
            AFe1tSDK afRDLog2 = AFInAppEventParameterName().afRDLog();
            Object[] objArr2 = new Object[1];
            AFInAppEventParameterName("\u0001", true, new int[]{12, 1, 0, 1}, objArr2);
            map.put("af_events_api", ((String) objArr2[0]).intern());
            Object[] objArr3 = new Object[1];
            AFInAppEventParameterName("\u0000\u0000\u0000\u0000\u0001", false, new int[]{13, 5, 164, 2}, objArr3);
            map.put(((String) objArr3[0]).intern(), Build.BRAND);
            map.put("device", Build.DEVICE);
            map.put("product", Build.PRODUCT);
            map.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
            map.put("model", Build.MODEL);
            map.put("deviceType", Build.TYPE);
            afRDLog2.AFKeystoreWrapper(map);
            AppsFlyerProperties appsFlyerProperties2 = AppsFlyerProperties.getInstance();
            AFe1lSDK AFLogger = AFInAppEventParameterName().AFLogger();
            if (values3) {
                if (afRDLog2.afErrorLog()) {
                    if (!appsFlyerProperties2.isOtherSdkStringDisabled()) {
                        map.put("batteryLevel", String.valueOf(AFInAppEventParameterName().onConversionDataSuccess().AFInAppEventParameterName(context).AFKeystoreWrapper));
                    }
                    afDebugLog(context);
                    if (Build.VERSION.SDK_INT >= 23) {
                        uiModeManager = (UiModeManager) context.getSystemService(UiModeManager.class);
                    } else {
                        uiModeManager = (UiModeManager) context.getSystemService("uimode");
                    }
                    if (uiModeManager != null && uiModeManager.getCurrentModeType() == 4) {
                        map.put("tv", Boolean.TRUE);
                    }
                    if (AFe1mSDK.AFInAppEventParameterName(context)) {
                        map.put("inst_app", Boolean.TRUE);
                    }
                }
                map.put("timepassedsincelastlaunch", Long.toString(afErrorLog(context)));
                afRDLog2.AFInAppEventType(map);
                afRDLog2.values(map);
                String str10 = this.onResponseNative;
                if (str10 != null) {
                    map.put("phone", str10);
                }
                if (!TextUtils.isEmpty(str9)) {
                    map.put("referrer", str9);
                }
                String valueOf4 = valueOf2.valueOf("extraReferrers", (String) null);
                if (valueOf4 != null) {
                    map.put("extraReferrers", valueOf4);
                }
                String referrer = appsFlyerProperties2.getReferrer(AFInAppEventParameterName().AFKeystoreWrapper());
                if (!TextUtils.isEmpty(referrer) && map.get("referrer") == null) {
                    map.put("referrer", referrer);
                }
                long j = AFLogger.afErrorLogForExcManagerOnly;
                if (j != 0) {
                    map.put("prev_session_dur", Long.valueOf(j));
                }
                AFb1hSDK aFb1hSDK = this.onResponseErrorNative;
                if (aFb1hSDK != null) {
                    if (!aFb1hSDK.AFInAppEventParameterName.isEmpty()) {
                        map.put("partner_data", aFb1hSDK.AFInAppEventParameterName);
                    }
                    if (!aFb1hSDK.AFInAppEventType.isEmpty()) {
                        AFInAppEventParameterName(map).put("partner_data", aFb1hSDK.AFInAppEventType);
                        aFb1hSDK.AFInAppEventType = new HashMap();
                    }
                }
            } else {
                afRDLog2.AFKeystoreWrapper(map, str8);
            }
            String valueOf5 = valueOf("KSAppsFlyerId");
            String valueOf6 = valueOf("KSAppsFlyerRICounter");
            if (valueOf5 != null && valueOf6 != null && Integer.parseInt(valueOf6) > 0) {
                map.put("reinstallCounter", valueOf6);
                map.put("originalAppsflyerId", valueOf5);
            }
            String valueOf7 = valueOf(AppsFlyerProperties.ADDITIONAL_CUSTOM_DATA);
            if (valueOf7 != null) {
                map.put("customData", valueOf7);
            }
            map.putAll(this.onAppOpenAttribution.afErrorLog().AFInAppEventType());
            String string = appsFlyerProperties2.getString(AppsFlyerProperties.EXTENSION);
            if (string != null && string.length() > 0) {
                map.put(AppsFlyerProperties.EXTENSION, string);
            }
            String AFKeystoreWrapper2 = AFInAppEventParameterName().AFInAppEventParameterName().AFKeystoreWrapper();
            String values4 = values(valueOf(context), AFKeystoreWrapper2);
            if ((values4 != null && !values4.equals(AFKeystoreWrapper2)) || (values4 == null && AFKeystoreWrapper2 != null)) {
                map.put("af_latestchannel", AFKeystoreWrapper2);
            }
            String AFInAppEventParameterName3 = afRDLog2.AFInAppEventParameterName();
            if (AFInAppEventParameterName3 != null) {
                map.put("af_installstore", AFInAppEventParameterName3.toLowerCase(Locale.getDefault()));
            }
            String afDebugLog = afRDLog2.afDebugLog();
            if (afDebugLog != null) {
                map.put("af_preinstall_name", afDebugLog.toLowerCase(Locale.getDefault()));
            }
            String AFInAppEventType = afRDLog2.AFInAppEventType();
            if (AFInAppEventType != null) {
                map.put("af_currentstore", AFInAppEventType.toLowerCase(Locale.getDefault()));
            }
            if (str7 != null && str7.length() > 0) {
                map.put("appsflyerKey", str7);
            } else {
                String str11 = AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType;
                if (str11 != null && str11.length() > 0) {
                    map.put("appsflyerKey", str11);
                } else {
                    AFLogger.afInfoLog("AppsFlyer dev key is missing!!! Please use  AppsFlyerLib.getInstance().setAppsFlyerKey(...) to set it. ");
                    AFLogger.afInfoLog("AppsFlyer will not track this event.");
                    return null;
                }
            }
            String values5 = values();
            if (values5 != null) {
                map.put("appUserId", values5);
            }
            String string2 = appsFlyerProperties2.getString(AppsFlyerProperties.USER_EMAILS);
            if (string2 != null) {
                map.put("user_emails", string2);
            } else {
                String valueOf8 = valueOf(AppsFlyerProperties.USER_EMAIL);
                if (valueOf8 != null) {
                    map.put("sha1_el", AFb1zSDK.values(valueOf8));
                }
            }
            if (str8 != null) {
                map.put("eventName", str8);
                map.put("eventValue", jSONObject);
            }
            if (AFLogger() != null) {
                map.put(AppsFlyerProperties.APP_ID, valueOf(AppsFlyerProperties.APP_ID));
            }
            String valueOf9 = valueOf(AppsFlyerProperties.CURRENCY_CODE);
            if (valueOf9 != null) {
                if (valueOf9.length() != 3) {
                    StringBuilder sb2 = new StringBuilder("WARNING: currency code should be 3 characters!!! '");
                    sb2.append(valueOf9);
                    sb2.append("' is not a legal value.");
                    AFLogger.afWarnLog(sb2.toString());
                }
                map.put(FirebaseAnalytics.Param.CURRENCY, valueOf9);
            }
            String valueOf10 = valueOf(AppsFlyerProperties.IS_UPDATE);
            if (valueOf10 != null) {
                map.put("isUpdate", valueOf10);
            }
            map.put("af_preinstalled", Boolean.toString(isPreInstalledApp(context)));
            if (appsFlyerProperties2.getBoolean(AppsFlyerProperties.COLLECT_FACEBOOK_ATTR_ID, true)) {
                try {
                    try {
                        context.getPackageManager().getApplicationInfo("com.facebook.katana", 0);
                        str4 = getAttributionId(context);
                    } catch (PackageManager.NameNotFoundException e2) {
                        nameNotFoundException = e2;
                        str3 = str;
                        AFLogger.afErrorLogForExcManagerOnly("com.facebook.katana not found", nameNotFoundException, true);
                        AFLogger.afWarnLog(str3);
                        str4 = null;
                        if (str4 != null) {
                        }
                        afRDLog2.AFInAppEventType(map, this.afInfoLog);
                        AFInAppEventParameterName2 = AFa1aSDK.AFInAppEventParameterName(AFInAppEventParameterName().onAppOpenAttributionNative(), AFInAppEventParameterName().AFKeystoreWrapper());
                        if (AFInAppEventParameterName2 != null) {
                        }
                        map.put("lang", Locale.getDefault().getDisplayLanguage());
                        map.put("lang_code", Locale.getDefault().getLanguage());
                        map.put("country", Locale.getDefault().getCountry());
                        afRDLog2.values(map, values3);
                        afRDLog2.valueOf(map);
                        str5 = str2;
                        simpleDateFormat = new SimpleDateFormat(str5, Locale.US);
                        map.put("installDate", values(simpleDateFormat, context.getPackageManager().getPackageInfo(context.getPackageName(), 0).firstInstallTime));
                        packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
                        if (packageInfo.versionCode > valueOf2.AFInAppEventType("versionCode", 0)) {
                        }
                        AFb1cSDK AFInAppEventParameterName4 = AFInAppEventParameterName().AFInAppEventParameterName();
                        map.put("app_version_code", Integer.toString(packageInfo.versionCode));
                        map.put("app_version_name", AFa1cSDK.AFInAppEventParameterName(AFInAppEventParameterName4.values.AFInAppEventParameterName, AFInAppEventParameterName4.values.AFInAppEventParameterName.getPackageName()));
                        map.put("targetSDKver", Integer.valueOf(AFInAppEventParameterName4.values.AFInAppEventParameterName.getApplicationInfo().targetSdkVersion));
                        try {
                            long j2 = packageInfo.firstInstallTime;
                            try {
                                long j3 = packageInfo.lastUpdateTime;
                                appsFlyerProperties = appsFlyerProperties2;
                                try {
                                    str6 = str8;
                                    try {
                                        map.put("date1", new SimpleDateFormat(str5, Locale.US).format(new Date(j2)));
                                        map.put("date2", new SimpleDateFormat(str5, Locale.US).format(new Date(j3)));
                                        String AFInAppEventParameterName5 = afRDLog2.AFInAppEventParameterName(simpleDateFormat);
                                        int[] iArr = new int[4];
                                        try {
                                            iArr[0] = 18;
                                            iArr[1] = 15;
                                            iArr[2] = 186;
                                            iArr[3] = 9;
                                            Object[] objArr4 = new Object[1];
                                            AFInAppEventParameterName("\u0001\u0000\u0001\u0001\u0001\u0000\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0000", false, iArr, objArr4);
                                            map.put(((String) objArr4[0]).intern(), AFInAppEventParameterName5);
                                        } catch (Throwable th) {
                                            th = th;
                                            AFLogger.afErrorLog("Exception while collecting app version data ", th, true);
                                            this.onInstallConversionDataLoadedNative = AFe1sSDK.AFInAppEventParameterName(context);
                                            StringBuilder sb3 = new StringBuilder("didConfigureTokenRefreshService=");
                                            sb3.append(this.onInstallConversionDataLoadedNative);
                                            AFLogger.afDebugLog(sb3.toString());
                                            if (!this.onInstallConversionDataLoadedNative) {
                                            }
                                            if (values3) {
                                            }
                                            if (!values3) {
                                            }
                                            if (valueOf("advertiserId") == null) {
                                            }
                                            values2 = AFa1bSDK.values(context.getContentResolver());
                                            if (values2 != null) {
                                            }
                                            map.put("registeredUninstall", Boolean.valueOf(AFe1sSDK.AFInAppEventType(valueOf2)));
                                            int AFInAppEventType2 = AFInAppEventType(valueOf2, values3);
                                            map.put("counter", Integer.toString(AFInAppEventType2));
                                            map.put("iaecounter", Integer.toString(values(valueOf2, str6 != null)));
                                            if (values3) {
                                            }
                                            map.put("isFirstCall", Boolean.toString(!afRDLog2.AFLogger()));
                                            afRDLog2.AFInAppEventParameterName(values3, map, AFInAppEventType2);
                                            new AFb1zSDK();
                                            map.put("af_v", AFb1zSDK.values(map));
                                            new AFb1zSDK();
                                            map.put("af_v2", AFb1zSDK.AFKeystoreWrapper(map));
                                            map.put("ivc", Boolean.valueOf(afRDLog2.afInfoLog()));
                                            if (valueOf2.valueOf("is_stop_tracking_used")) {
                                            }
                                            HashMap hashMap = new HashMap();
                                            hashMap.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
                                            hashMap.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
                                            map.put("cell", hashMap);
                                            map.put("sig", afRDLog2.valueOf());
                                            map.put("last_boot_time", Long.valueOf(afRDLog2.AFKeystoreWrapper()));
                                            map.put("disk", afRDLog2.values());
                                            aFa1bSDK = this.afDebugLog;
                                            if (aFa1bSDK != null) {
                                            }
                                            return map;
                                        }
                                    } catch (Throwable th2) {
                                        th = th2;
                                        AFLogger.afErrorLog("Exception while collecting app version data ", th, true);
                                        this.onInstallConversionDataLoadedNative = AFe1sSDK.AFInAppEventParameterName(context);
                                        StringBuilder sb32 = new StringBuilder("didConfigureTokenRefreshService=");
                                        sb32.append(this.onInstallConversionDataLoadedNative);
                                        AFLogger.afDebugLog(sb32.toString());
                                        if (!this.onInstallConversionDataLoadedNative) {
                                        }
                                        if (values3) {
                                        }
                                        if (!values3) {
                                        }
                                        if (valueOf("advertiserId") == null) {
                                        }
                                        values2 = AFa1bSDK.values(context.getContentResolver());
                                        if (values2 != null) {
                                        }
                                        map.put("registeredUninstall", Boolean.valueOf(AFe1sSDK.AFInAppEventType(valueOf2)));
                                        int AFInAppEventType22 = AFInAppEventType(valueOf2, values3);
                                        map.put("counter", Integer.toString(AFInAppEventType22));
                                        map.put("iaecounter", Integer.toString(values(valueOf2, str6 != null)));
                                        if (values3) {
                                        }
                                        map.put("isFirstCall", Boolean.toString(!afRDLog2.AFLogger()));
                                        afRDLog2.AFInAppEventParameterName(values3, map, AFInAppEventType22);
                                        new AFb1zSDK();
                                        map.put("af_v", AFb1zSDK.values(map));
                                        new AFb1zSDK();
                                        map.put("af_v2", AFb1zSDK.AFKeystoreWrapper(map));
                                        map.put("ivc", Boolean.valueOf(afRDLog2.afInfoLog()));
                                        if (valueOf2.valueOf("is_stop_tracking_used")) {
                                        }
                                        HashMap hashMap2 = new HashMap();
                                        hashMap2.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
                                        hashMap2.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
                                        map.put("cell", hashMap2);
                                        map.put("sig", afRDLog2.valueOf());
                                        map.put("last_boot_time", Long.valueOf(afRDLog2.AFKeystoreWrapper()));
                                        map.put("disk", afRDLog2.values());
                                        aFa1bSDK = this.afDebugLog;
                                        if (aFa1bSDK != null) {
                                        }
                                        return map;
                                    }
                                } catch (Throwable th3) {
                                    th = th3;
                                    str6 = str8;
                                    AFLogger.afErrorLog("Exception while collecting app version data ", th, true);
                                    this.onInstallConversionDataLoadedNative = AFe1sSDK.AFInAppEventParameterName(context);
                                    StringBuilder sb322 = new StringBuilder("didConfigureTokenRefreshService=");
                                    sb322.append(this.onInstallConversionDataLoadedNative);
                                    AFLogger.afDebugLog(sb322.toString());
                                    if (!this.onInstallConversionDataLoadedNative) {
                                    }
                                    if (values3) {
                                    }
                                    if (!values3) {
                                    }
                                    if (valueOf("advertiserId") == null) {
                                    }
                                    values2 = AFa1bSDK.values(context.getContentResolver());
                                    if (values2 != null) {
                                    }
                                    map.put("registeredUninstall", Boolean.valueOf(AFe1sSDK.AFInAppEventType(valueOf2)));
                                    int AFInAppEventType222 = AFInAppEventType(valueOf2, values3);
                                    map.put("counter", Integer.toString(AFInAppEventType222));
                                    map.put("iaecounter", Integer.toString(values(valueOf2, str6 != null)));
                                    if (values3) {
                                    }
                                    map.put("isFirstCall", Boolean.toString(!afRDLog2.AFLogger()));
                                    afRDLog2.AFInAppEventParameterName(values3, map, AFInAppEventType222);
                                    new AFb1zSDK();
                                    map.put("af_v", AFb1zSDK.values(map));
                                    new AFb1zSDK();
                                    map.put("af_v2", AFb1zSDK.AFKeystoreWrapper(map));
                                    map.put("ivc", Boolean.valueOf(afRDLog2.afInfoLog()));
                                    if (valueOf2.valueOf("is_stop_tracking_used")) {
                                    }
                                    HashMap hashMap22 = new HashMap();
                                    hashMap22.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
                                    hashMap22.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
                                    map.put("cell", hashMap22);
                                    map.put("sig", afRDLog2.valueOf());
                                    map.put("last_boot_time", Long.valueOf(afRDLog2.AFKeystoreWrapper()));
                                    map.put("disk", afRDLog2.values());
                                    aFa1bSDK = this.afDebugLog;
                                    if (aFa1bSDK != null) {
                                    }
                                    return map;
                                }
                            } catch (Throwable th4) {
                                th = th4;
                                appsFlyerProperties = appsFlyerProperties2;
                            }
                        } catch (Throwable th5) {
                            th = th5;
                            appsFlyerProperties = appsFlyerProperties2;
                            str6 = str8;
                        }
                        this.onInstallConversionDataLoadedNative = AFe1sSDK.AFInAppEventParameterName(context);
                        StringBuilder sb3222 = new StringBuilder("didConfigureTokenRefreshService=");
                        sb3222.append(this.onInstallConversionDataLoadedNative);
                        AFLogger.afDebugLog(sb3222.toString());
                        if (!this.onInstallConversionDataLoadedNative) {
                        }
                        if (values3) {
                        }
                        if (!values3) {
                        }
                        if (valueOf("advertiserId") == null) {
                        }
                        values2 = AFa1bSDK.values(context.getContentResolver());
                        if (values2 != null) {
                        }
                        map.put("registeredUninstall", Boolean.valueOf(AFe1sSDK.AFInAppEventType(valueOf2)));
                        int AFInAppEventType2222 = AFInAppEventType(valueOf2, values3);
                        map.put("counter", Integer.toString(AFInAppEventType2222));
                        map.put("iaecounter", Integer.toString(values(valueOf2, str6 != null)));
                        if (values3) {
                            appsFlyerProperties.valueOf = true;
                        }
                        map.put("isFirstCall", Boolean.toString(!afRDLog2.AFLogger()));
                        afRDLog2.AFInAppEventParameterName(values3, map, AFInAppEventType2222);
                        new AFb1zSDK();
                        map.put("af_v", AFb1zSDK.values(map));
                        new AFb1zSDK();
                        map.put("af_v2", AFb1zSDK.AFKeystoreWrapper(map));
                        map.put("ivc", Boolean.valueOf(afRDLog2.afInfoLog()));
                        if (valueOf2.valueOf("is_stop_tracking_used")) {
                        }
                        HashMap hashMap222 = new HashMap();
                        hashMap222.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
                        hashMap222.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
                        map.put("cell", hashMap222);
                        map.put("sig", afRDLog2.valueOf());
                        map.put("last_boot_time", Long.valueOf(afRDLog2.AFKeystoreWrapper()));
                        map.put("disk", afRDLog2.values());
                        aFa1bSDK = this.afDebugLog;
                        if (aFa1bSDK != null) {
                            map.put("sharing_filter", strArr);
                        }
                        return map;
                    }
                } catch (PackageManager.NameNotFoundException e3) {
                    str3 = str;
                    nameNotFoundException = e3;
                }
                if (str4 != null) {
                    map.put("fb", str4);
                }
            }
            afRDLog2.AFInAppEventType(map, this.afInfoLog);
            try {
                AFInAppEventParameterName2 = AFa1aSDK.AFInAppEventParameterName(AFInAppEventParameterName().onAppOpenAttributionNative(), AFInAppEventParameterName().AFKeystoreWrapper());
                if (AFInAppEventParameterName2 != null) {
                    map.put("uid", AFInAppEventParameterName2);
                }
            } catch (Exception e4) {
                StringBuilder sb4 = new StringBuilder("ERROR: could not get uid ");
                sb4.append(e4.getMessage());
                AFLogger.afErrorLog(sb4.toString(), e4);
            }
            try {
                map.put("lang", Locale.getDefault().getDisplayLanguage());
            } catch (Exception e5) {
                AFLogger.afErrorLog("Exception while collecting display language name. ", e5);
            }
            try {
                map.put("lang_code", Locale.getDefault().getLanguage());
            } catch (Exception e6) {
                AFLogger.afErrorLog("Exception while collecting display language code. ", e6);
            }
            try {
                map.put("country", Locale.getDefault().getCountry());
            } catch (Exception e7) {
                AFLogger.afErrorLog("Exception while collecting country name. ", e7);
            }
            afRDLog2.values(map, values3);
            afRDLog2.valueOf(map);
            str5 = str2;
            simpleDateFormat = new SimpleDateFormat(str5, Locale.US);
            try {
                map.put("installDate", values(simpleDateFormat, context.getPackageManager().getPackageInfo(context.getPackageName(), 0).firstInstallTime));
            } catch (Exception e8) {
                AFLogger.afErrorLog("Exception while collecting install date. ", e8);
            }
            try {
                packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
                if (packageInfo.versionCode > valueOf2.AFInAppEventType("versionCode", 0)) {
                    valueOf(context).valueOf("versionCode", packageInfo.versionCode);
                }
                AFb1cSDK AFInAppEventParameterName42 = AFInAppEventParameterName().AFInAppEventParameterName();
                map.put("app_version_code", Integer.toString(packageInfo.versionCode));
                map.put("app_version_name", AFa1cSDK.AFInAppEventParameterName(AFInAppEventParameterName42.values.AFInAppEventParameterName, AFInAppEventParameterName42.values.AFInAppEventParameterName.getPackageName()));
                map.put("targetSDKver", Integer.valueOf(AFInAppEventParameterName42.values.AFInAppEventParameterName.getApplicationInfo().targetSdkVersion));
                long j22 = packageInfo.firstInstallTime;
                long j32 = packageInfo.lastUpdateTime;
                appsFlyerProperties = appsFlyerProperties2;
                str6 = str8;
                map.put("date1", new SimpleDateFormat(str5, Locale.US).format(new Date(j22)));
                map.put("date2", new SimpleDateFormat(str5, Locale.US).format(new Date(j32)));
                String AFInAppEventParameterName52 = afRDLog2.AFInAppEventParameterName(simpleDateFormat);
                int[] iArr2 = new int[4];
                iArr2[0] = 18;
                iArr2[1] = 15;
                iArr2[2] = 186;
                iArr2[3] = 9;
                Object[] objArr42 = new Object[1];
                AFInAppEventParameterName("\u0001\u0000\u0001\u0001\u0001\u0000\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0000", false, iArr2, objArr42);
                map.put(((String) objArr42[0]).intern(), AFInAppEventParameterName52);
            } catch (Throwable th6) {
                th = th6;
                appsFlyerProperties = appsFlyerProperties2;
                str6 = str8;
            }
            this.onInstallConversionDataLoadedNative = AFe1sSDK.AFInAppEventParameterName(context);
            StringBuilder sb32222 = new StringBuilder("didConfigureTokenRefreshService=");
            sb32222.append(this.onInstallConversionDataLoadedNative);
            AFLogger.afDebugLog(sb32222.toString());
            if (!this.onInstallConversionDataLoadedNative) {
                map.put("tokenRefreshConfigured", Boolean.FALSE);
            }
            if (values3) {
                if (this.AFLogger$LogLevel != null) {
                    if (map.get("af_deeplink") != null) {
                        AFLogger.afDebugLog("Skip 'af' payload as deeplink was found by path");
                    } else {
                        JSONObject jSONObject2 = new JSONObject(this.AFLogger$LogLevel);
                        jSONObject2.put("isPush", "true");
                        map.put("af_deeplink", jSONObject2.toString());
                    }
                }
                this.AFLogger$LogLevel = null;
                map.put("open_referrer", aFa1qSDK.values);
                if (!AFb1vSDK.valueOf(aFa1qSDK.afRDLog)) {
                    map.put("af_web_referrer", aFa1qSDK.afRDLog);
                }
            }
            if (!values3) {
                try {
                    map.putAll(AFInAppEventParameterName().afWarnLog().valueOf());
                } catch (Exception e9) {
                    AFLogger.afErrorLogForExcManagerOnly("error while getting sensors data", e9);
                    StringBuilder sb5 = new StringBuilder("Unexpected exception from AFSensorManager: ");
                    sb5.append(e9.getMessage());
                    AFLogger.afRDLog(sb5.toString());
                }
            }
            if (valueOf("advertiserId") == null) {
                AFa1bSDK.valueOf(context, map);
                map.put("GAID_retry", String.valueOf(valueOf("advertiserId") != null));
            }
            values2 = AFa1bSDK.values(context.getContentResolver());
            if (values2 != null) {
                map.put("amazon_aid", values2.AFInAppEventParameterName);
                map.put("amazon_aid_limit", String.valueOf(values2.AFInAppEventType));
            }
            map.put("registeredUninstall", Boolean.valueOf(AFe1sSDK.AFInAppEventType(valueOf2)));
            int AFInAppEventType22222 = AFInAppEventType(valueOf2, values3);
            map.put("counter", Integer.toString(AFInAppEventType22222));
            map.put("iaecounter", Integer.toString(values(valueOf2, str6 != null)));
            if (values3 && AFInAppEventType22222 == 1) {
                appsFlyerProperties.valueOf = true;
            }
            map.put("isFirstCall", Boolean.toString(!afRDLog2.AFLogger()));
            afRDLog2.AFInAppEventParameterName(values3, map, AFInAppEventType22222);
            new AFb1zSDK();
            map.put("af_v", AFb1zSDK.values(map));
            new AFb1zSDK();
            map.put("af_v2", AFb1zSDK.AFKeystoreWrapper(map));
            map.put("ivc", Boolean.valueOf(afRDLog2.afInfoLog()));
            if (valueOf2.valueOf("is_stop_tracking_used")) {
                map.put("istu", String.valueOf(valueOf2.AFKeystoreWrapper("is_stop_tracking_used")));
            }
            HashMap hashMap2222 = new HashMap();
            hashMap2222.put("mcc", Integer.valueOf(context.getResources().getConfiguration().mcc));
            hashMap2222.put("mnc", Integer.valueOf(context.getResources().getConfiguration().mnc));
            map.put("cell", hashMap2222);
            map.put("sig", afRDLog2.valueOf());
            map.put("last_boot_time", Long.valueOf(afRDLog2.AFKeystoreWrapper()));
            map.put("disk", afRDLog2.values());
            aFa1bSDK = this.afDebugLog;
            if (aFa1bSDK != null && (strArr = aFa1bSDK.AFInAppEventType) != null) {
                map.put("sharing_filter", strArr);
            }
        } catch (Throwable th7) {
            AFLogger.afErrorLog(th7.getLocalizedMessage(), th7, true);
        }
        return map;
    }

    public static Map<String, Object> AFInAppEventParameterName(Map<String, Object> map) {
        int i = onAttributionFailure + 65;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        if ((map.containsKey("meta") ? '^' : '`') != '^') {
            HashMap hashMap = new HashMap();
            map.put("meta", hashMap);
            return hashMap;
        }
        int i3 = onAttributionFailure + 63;
        onConversionDataFail = i3 % 128;
        int i4 = i3 % 2;
        return (Map) map.get("meta");
    }

    private static String valueOf(Activity activity) {
        int i;
        int i2 = onAttributionFailure + 13;
        int i3 = i2 % 128;
        onConversionDataFail = i3;
        int i4 = i2 % 2;
        String str = 0;
        str = 0;
        str = 0;
        str = 0;
        if (activity != null) {
            int i5 = i3 + 83;
            onAttributionFailure = i5 % 128;
            int i6 = i5 % 2;
            Intent intent = activity.getIntent();
            if ((intent != null ? '[' : '^') != '^') {
                try {
                    Bundle extras = intent.getExtras();
                    if (extras != null) {
                        int i7 = onConversionDataFail + 63;
                        onAttributionFailure = i7 % 128;
                        if (i7 % 2 == 0) {
                            str = extras.getString("af");
                            if (str != 0) {
                                str = str;
                                int i8 = onAttributionFailure + 11;
                                onConversionDataFail = i8 % 128;
                                int i9 = i8 % 2;
                                AFLogger.afInfoLog("Push Notification received af payload = ".concat(String.valueOf((Object) str)));
                                extras.remove("af");
                                activity.setIntent(intent.putExtras(extras));
                            }
                        } else {
                            String string = extras.getString("af");
                            try {
                                int length = str.length;
                                if (!(string == null)) {
                                    str = string;
                                    int i82 = onAttributionFailure + 11;
                                    onConversionDataFail = i82 % 128;
                                    int i92 = i82 % 2;
                                    AFLogger.afInfoLog("Push Notification received af payload = ".concat(String.valueOf((Object) str)));
                                    extras.remove("af");
                                    activity.setIntent(intent.putExtras(extras));
                                } else {
                                    str = string;
                                }
                            } catch (Throwable th) {
                                th = th;
                                str = string;
                                AFLogger.afErrorLog(th.getMessage(), th);
                                i = onAttributionFailure + 53;
                                onConversionDataFail = i % 128;
                                if ((i % 2 != 0 ? 'T' : (char) 25) == 'T') {
                                }
                            }
                        }
                    }
                } catch (Throwable th2) {
                    th = th2;
                }
            }
        }
        i = onAttributionFailure + 53;
        onConversionDataFail = i % 128;
        if ((i % 2 != 0 ? 'T' : (char) 25) == 'T') {
            return str;
        }
        int i10 = 61 / 0;
        return str;
    }

    private int AFInAppEventParameterName(AFb1fSDK aFb1fSDK) {
        int i = onConversionDataFail + 27;
        onAttributionFailure = i % 128;
        if (i % 2 != 0) {
        }
        return valueOf(aFb1fSDK, "appsFlyerAdRevenueCount", true);
    }

    private int AFKeystoreWrapper(AFb1fSDK aFb1fSDK) {
        int i = onAttributionFailure + 15;
        onConversionDataFail = i % 128;
        return i % 2 == 0 ? valueOf(aFb1fSDK, "appsFlyerAdImpressionCount", false) : valueOf(aFb1fSDK, "appsFlyerAdImpressionCount", true);
    }

    public final void values(Context context, Map<String, Object> map, Uri uri) {
        int i = onConversionDataFail + 45;
        onAttributionFailure = i % 128;
        Object[] objArr = null;
        boolean z = false;
        if ((i % 2 != 0 ? (char) 25 : '%') != '%') {
            AFInAppEventType(context);
            boolean containsKey = map.containsKey("af_deeplink");
            int length = objArr.length;
        } else {
            AFInAppEventType(context);
        }
    }

    private static String AFKeystoreWrapper(String str) {
        int i = onAttributionFailure + 111;
        onConversionDataFail = i % 128;
        Object[] objArr = null;
        if (i % 2 == 0) {
            int length = objArr.length;
        }
    }

    private static String values(String str) {
        int i = onAttributionFailure + 105;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        int indexOf = str.indexOf(63);
        if (indexOf == -1) {
            int i3 = onConversionDataFail;
            int i4 = i3 + 95;
            onAttributionFailure = i4 % 128;
            if ((i4 % 2 != 0 ? 'M' : '-') != '-') {
                int i5 = 16 / 0;
            }
            int i6 = i3 + 97;
            onAttributionFailure = i6 % 128;
            int i7 = i6 % 2;
            return "";
        }
        return str.substring(indexOf);
    }

    private AFd1iSDK.AFa1xSDK values(final Map<String, String> map) {
        AFd1iSDK.AFa1xSDK aFa1xSDK = new AFd1iSDK.AFa1xSDK() {
            @Override
            public final void AFKeystoreWrapper(String str) {
                AFa1dSDK.this.AFInAppEventParameterName().init().AFInAppEventType(str, DeepLinkResult.Error.NETWORK);
            }

            @Override
            public final void AFKeystoreWrapper(Map<String, String> map2) {
                for (String str : map2.keySet()) {
                    map.put(str, map2.get(str));
                }
                AFa1dSDK.this.AFInAppEventParameterName().init().AFInAppEventParameterName(map);
            }
        };
        int i = onAttributionFailure + 89;
        onConversionDataFail = i % 128;
        if (i % 2 != 0) {
            return aFa1xSDK;
        }
        int i2 = 87 / 0;
        return aFa1xSDK;
    }

    public static boolean AFKeystoreWrapper(Context context) {
        int i = onConversionDataFail + 71;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        try {
        } catch (Throwable th) {
            AFLogger.afErrorLog("WARNING:  Google play services is unavailable. ", th);
        }
        if ((GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) == 0 ? (char) 25 : 'X') != 25) {
            int i3 = onConversionDataFail + 25;
            onAttributionFailure = i3 % 128;
            int i4 = i3 % 2;
            try {
                context.getPackageManager().getPackageInfo("com.google.android.gms", 0);
                return true;
            } catch (PackageManager.NameNotFoundException e) {
                AFLogger.afErrorLog("WARNING:  Google Play Services is unavailable. ", e);
                return false;
            }
        }
        return true;
    }

    private String AFKeystoreWrapper(Context context, String str) {
        int i = onAttributionFailure + 83;
        int i2 = i % 128;
        onConversionDataFail = i2;
        if (i % 2 == 0) {
            int i3 = 74 / 0;
        }
    }

    @Override
    public final void setPreinstallAttribution(String str, String str2, String str3) {
        AFLogger.afDebugLog("setPreinstallAttribution API called");
        JSONObject jSONObject = new JSONObject();
        try {
            if (str != null) {
                int i = onConversionDataFail + 37;
                onAttributionFailure = i % 128;
                if (i % 2 == 0) {
                    jSONObject.put("pid", str);
                } else {
                    jSONObject.put("pid", str);
                    int i2 = 49 / 0;
                }
            }
            if (str2 != null) {
                int i3 = onAttributionFailure + 1;
                onConversionDataFail = i3 % 128;
                if ((i3 % 2 == 0 ? 'W' : Typography.dollar) != 'W') {
                    jSONObject.put("c", str2);
                } else {
                    jSONObject.put("c", str2);
                    int i4 = 65 / 0;
                }
            }
            if (str3 != null) {
                jSONObject.put("af_siteid", str3);
            }
        } catch (JSONException e) {
            AFLogger.afErrorLog(e.getMessage(), e);
        }
        if (!jSONObject.has("pid")) {
            AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
            return;
        }
        int i5 = onConversionDataFail + 95;
        onAttributionFailure = i5 % 128;
        if (i5 % 2 == 0) {
            AFKeystoreWrapper("preInstallName", jSONObject.toString());
            return;
        }
        AFKeystoreWrapper("preInstallName", jSONObject.toString());
        Object[] objArr = null;
        int length = objArr.length;
    }

    private static void AFInAppEventParameterName(String str) {
        try {
            if (!(!new JSONObject(str).has("pid"))) {
                int i = onAttributionFailure + 121;
                onConversionDataFail = i % 128;
                int i2 = i % 2;
                AFKeystoreWrapper("preInstallName", str);
                return;
            }
            AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
            int i3 = onConversionDataFail + 39;
            onAttributionFailure = i3 % 128;
            int i4 = i3 % 2;
        } catch (JSONException e) {
            AFLogger.afErrorLog("Error parsing JSON for preinstall", e);
        }
    }

    @Override
    public final boolean isPreInstalledApp(Context context) {
        int i = onAttributionFailure + 37;
        onConversionDataFail = i % 128;
        try {
        } catch (PackageManager.NameNotFoundException e) {
            AFLogger.afErrorLog("Could not check if app is pre installed", e);
        }
        if (i % 2 == 0) {
            if ((context.getPackageManager().getApplicationInfo(context.getPackageName(), 0).flags | 1) != 0) {
                return true;
            }
            int i2 = onConversionDataFail + 121;
            onAttributionFailure = i2 % 128;
            int i3 = i2 % 2;
            return false;
        }
    }

    public static String values(AFb1fSDK aFb1fSDK, String str) {
        int i = onConversionDataFail + 45;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        Object[] objArr = null;
        String valueOf2 = aFb1fSDK.valueOf("CACHED_CHANNEL", (String) null);
        if ((valueOf2 != null ? '\n' : (char) 30) == 30) {
            aFb1fSDK.values("CACHED_CHANNEL", str);
            return str;
        }
        int i3 = onAttributionFailure + 113;
        onConversionDataFail = i3 % 128;
        if (!(i3 % 2 != 0)) {
            int length = objArr.length;
        }
        return valueOf2;
    }

    @Override
    public final String getAttributionId(Context context) {
        Object[] objArr = null;
        try {
            String AFInAppEventParameterName2 = new AFa1eSDK(context, AFInAppEventParameterName()).AFInAppEventParameterName();
            int i = onConversionDataFail + 113;
            onAttributionFailure = i % 128;
            if ((i % 2 != 0 ? 'V' : '1') != 'V') {
                return AFInAppEventParameterName2;
            }
            int length = objArr.length;
            return AFInAppEventParameterName2;
        } catch (Throwable th) {
            AFLogger.afErrorLog("Could not collect facebook attribution id. ", th);
            return null;
        }
    }

    public static synchronized SharedPreferences values(Context context) {
        SharedPreferences sharedPreferences;
        StrictMode.ThreadPolicy allowThreadDiskReads;
        synchronized (AFa1dSDK.class) {
            int i = onAttributionFailure + 31;
            onConversionDataFail = i % 128;
            int i2 = i % 2;
            if ((valueOf().onAttributionFailureNative == null ? 'c' : (char) 31) != 31) {
                int i3 = onConversionDataFail + 37;
                onAttributionFailure = i3 % 128;
                if ((i3 % 2 != 0 ? '+' : (char) 4) != 4) {
                    allowThreadDiskReads = StrictMode.allowThreadDiskReads();
                    valueOf().onAttributionFailureNative = context.getApplicationContext().getSharedPreferences("appsflyer-data", 0);
                } else {
                    allowThreadDiskReads = StrictMode.allowThreadDiskReads();
                    valueOf().onAttributionFailureNative = context.getApplicationContext().getSharedPreferences("appsflyer-data", 0);
                }
                StrictMode.setThreadPolicy(allowThreadDiskReads);
            }
            sharedPreferences = valueOf().onAttributionFailureNative;
        }
        return sharedPreferences;
    }

    public final AFb1fSDK valueOf(Context context) {
        int i = onConversionDataFail + 61;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        AFInAppEventType(context);
        AFb1fSDK AFKeystoreWrapper2 = AFInAppEventParameterName().AFKeystoreWrapper();
        int i3 = onConversionDataFail + 1;
        onAttributionFailure = i3 % 128;
        if (!(i3 % 2 != 0)) {
            return AFKeystoreWrapper2;
        }
        Object[] objArr = null;
        int length = objArr.length;
        return AFKeystoreWrapper2;
    }

    public final int AFInAppEventType(AFb1fSDK aFb1fSDK, boolean z) {
        int i = onAttributionFailure + 75;
        onConversionDataFail = i % 128;
        boolean z2 = i % 2 != 0;
        int valueOf2 = valueOf(aFb1fSDK, "appsFlyerCount", z);
        if (!z2) {
            Object obj = null;
            super.hashCode();
        }
        int i2 = onAttributionFailure + 41;
        onConversionDataFail = i2 % 128;
        if (!(i2 % 2 == 0)) {
            return valueOf2;
        }
        int i3 = 71 / 0;
        return valueOf2;
    }

    private int values(AFb1fSDK aFb1fSDK, boolean z) {
        int i = onAttributionFailure + 123;
        onConversionDataFail = i % 128;
        char c = i % 2 == 0 ? (char) 6 : 'Q';
        int valueOf2 = valueOf(aFb1fSDK, "appsFlyerInAppEventCount", z);
        if (c == 6) {
            int i2 = 9 / 0;
        }
        return valueOf2;
    }

    private int valueOf(AFb1fSDK aFb1fSDK, String str, boolean z) {
        int i = onAttributionFailure + 21;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        int AFInAppEventType = aFb1fSDK.AFInAppEventType(str, 0);
        if (z) {
            int i3 = onAttributionFailure + 89;
            onConversionDataFail = i3 % 128;
            int i4 = i3 % 2;
            AFInAppEventType++;
            aFb1fSDK.valueOf(str, AFInAppEventType);
        }
        if ((AFInAppEventParameterName().afErrorLogForExcManagerOnly().afErrorLog() ? '*' : 'Z') != 'Z') {
            int i5 = onConversionDataFail + 83;
            onAttributionFailure = i5 % 128;
            if (i5 % 2 != 0) {
                AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType(String.valueOf(AFInAppEventType));
                int i6 = 92 / 0;
            } else {
                AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType(String.valueOf(AFInAppEventType));
            }
        }
        return AFInAppEventType;
    }

    private long afErrorLog(Context context) {
        AFb1fSDK valueOf2 = valueOf(context);
        long values2 = valueOf2.values("AppsFlyerTimePassedSincePrevLaunch", 0L);
        long currentTimeMillis = System.currentTimeMillis();
        valueOf2.AFInAppEventType("AppsFlyerTimePassedSincePrevLaunch", currentTimeMillis);
        Object obj = null;
        if (values2 <= 0) {
            int i = onConversionDataFail + 5;
            onAttributionFailure = i % 128;
            if (i % 2 != 0) {
                super.hashCode();
                return -1L;
            }
            return -1L;
        }
        long j = currentTimeMillis - values2;
        int i2 = onAttributionFailure;
        int i3 = i2 + 53;
        onConversionDataFail = i3 % 128;
        long j2 = i3 % 2 == 0 ? 1000 ^ j : j / 1000;
        int i4 = i2 + 11;
        onConversionDataFail = i4 % 128;
        if ((i4 % 2 == 0 ? (char) 14 : 'T') != 14) {
            return j2;
        }
        super.hashCode();
        return j2;
    }

    @Override
    public final String getAppsFlyerUID(Context context) {
        int i = onConversionDataFail + 35;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("getAppsFlyerUID", new String[0]);
        if (!(context != null)) {
            int i3 = onAttributionFailure + 47;
            onConversionDataFail = i3 % 128;
            boolean z = i3 % 2 != 0;
            Object[] objArr = null;
            if (!z) {
                int length = objArr.length;
                return null;
            }
            return null;
        }
        AFInAppEventType(context);
        AFb1cSDK AFInAppEventParameterName2 = AFInAppEventParameterName().AFInAppEventParameterName();
        String AFInAppEventParameterName3 = AFa1aSDK.AFInAppEventParameterName(AFInAppEventParameterName2.values, AFInAppEventParameterName2.AFInAppEventType);
        int i4 = onConversionDataFail + 69;
        onAttributionFailure = i4 % 128;
        if (i4 % 2 != 0) {
            int i5 = 77 / 0;
            return AFInAppEventParameterName3;
        }
        return AFInAppEventParameterName3;
    }

    @Override
    public final void validateAndLogInAppPurchase(Context context, String str, String str2, String str3, String str4, String str5, Map<String, String> map) {
        AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
        String[] strArr = new String[6];
        strArr[0] = str;
        strArr[1] = str2;
        strArr[2] = str3;
        strArr[3] = str4;
        strArr[4] = str5;
        strArr[5] = map == null ? "" : map.toString();
        afErrorLogForExcManagerOnly.AFInAppEventType("validateAndTrackInAppPurchase", strArr);
        if (!isStopped()) {
            StringBuilder sb = new StringBuilder("Validate in app called with parameters: ");
            sb.append(str3);
            sb.append(" ");
            sb.append(str4);
            sb.append(" ");
            sb.append(str5);
            AFLogger.afInfoLog(sb.toString());
        }
        if (str == null || str4 == null || str2 == null || str5 == null || str3 == null) {
            AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener = AFInAppEventParameterName;
            if (appsFlyerInAppPurchaseValidatorListener != null) {
                appsFlyerInAppPurchaseValidatorListener.onValidateInAppFailure("Please provide purchase parameters");
                return;
            }
            return;
        }
        new Thread(new AFa1kSDK(context.getApplicationContext(), AFInAppEventParameterName().AFVersionDeclaration().AFInAppEventType, str, str2, str3, str4, str5, map, context instanceof Activity ? ((Activity) context).getIntent() : null)).start();
    }

    private static void AFInAppEventType(ScheduledExecutorService scheduledExecutorService, Runnable runnable, long j, TimeUnit timeUnit) {
        int i = onConversionDataFail + 107;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        try {
            scheduledExecutorService.schedule(runnable, j, timeUnit);
            int i3 = onConversionDataFail + 109;
            onAttributionFailure = i3 % 128;
            int i4 = i3 % 2;
        } 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() {
        boolean values2;
        int i = onConversionDataFail + 79;
        onAttributionFailure = i % 128;
        if ((i % 2 != 0 ? 'K' : 'R') != 'R') {
            values2 = AFInAppEventParameterName().AFVersionDeclaration().values();
            Object obj = null;
            super.hashCode();
        } else {
            values2 = AFInAppEventParameterName().AFVersionDeclaration().values();
        }
        int i2 = onAttributionFailure + 89;
        onConversionDataFail = i2 % 128;
        int i3 = i2 % 2;
        return values2;
    }

    @Deprecated
    public static String AFInAppEventType(HttpURLConnection httpURLConnection) {
        String obj;
        InputStreamReader inputStreamReader;
        StringBuilder sb = new StringBuilder();
        BufferedReader bufferedReader = null;
        try {
            try {
                InputStream errorStream = httpURLConnection.getErrorStream();
                boolean z = false;
                if (!(errorStream != null)) {
                    errorStream = httpURLConnection.getInputStream();
                }
                inputStreamReader = new InputStreamReader(errorStream, Charset.defaultCharset());
                try {
                    BufferedReader bufferedReader2 = new BufferedReader(inputStreamReader);
                    while (true) {
                        try {
                            String readLine = bufferedReader2.readLine();
                            if ((readLine != null ? '*' : (char) 2) != '*') {
                                break;
                            }
                            int i = onAttributionFailure + 41;
                            onConversionDataFail = i % 128;
                            int i2 = i % 2;
                            sb.append((z ? 'V' : ' ') != ' ' ? '\n' : "");
                            sb.append(readLine);
                            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();
                                }
                                int i3 = onAttributionFailure + 69;
                                onConversionDataFail = i3 % 128;
                                int i4 = i3 % 2;
                                obj = sb.toString();
                                new JSONObject(obj);
                                return obj;
                            } catch (Throwable th2) {
                                if (bufferedReader != null) {
                                    try {
                                        bufferedReader.close();
                                    } catch (Throwable th3) {
                                        AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th3);
                                        throw th2;
                                    }
                                }
                                if (inputStreamReader != null) {
                                    int i5 = onConversionDataFail + 117;
                                    onAttributionFailure = i5 % 128;
                                    int i6 = i5 % 2;
                                    inputStreamReader.close();
                                }
                                throw th2;
                            }
                        }
                    }
                    bufferedReader2.close();
                    inputStreamReader.close();
                } catch (Throwable th4) {
                    th = th4;
                }
            } catch (Throwable th5) {
                th = th5;
                inputStreamReader = null;
            }
        } catch (Throwable th6) {
            AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th6);
        }
        obj = sb.toString();
        try {
            new JSONObject(obj);
            return obj;
        } catch (JSONException 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();
            }
        }
    }

    @Override
    public final void setHost(String str, String str2) {
        String str3;
        if (AFb1vSDK.valueOf(str2)) {
            AFLogger.afWarnLog("hostname was empty or null - call for setHost is skipped");
            return;
        }
        int i = onConversionDataFail;
        int i2 = i + 49;
        int i3 = i2 % 128;
        onAttributionFailure = i3;
        int i4 = i2 % 2;
        if (!(str == null)) {
            int i5 = i + 27;
            onAttributionFailure = i5 % 128;
            int i6 = i5 % 2;
            str3 = str.trim();
        } else {
            int i7 = i3 + 109;
            onConversionDataFail = i7 % 128;
            int i8 = i7 % 2;
            str3 = "";
        }
        AFc1cSDK.AFInAppEventType(new AFc1dSDK(str3, str2.trim()));
        int i9 = onConversionDataFail + 33;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    public final String getHostName() {
        int i = onConversionDataFail + 59;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        String AFInAppEventType = AFInAppEventParameterName().onInstallConversionDataLoadedNative().AFInAppEventType();
        int i3 = onAttributionFailure + 115;
        onConversionDataFail = i3 % 128;
        if (!(i3 % 2 != 0)) {
            int i4 = 37 / 0;
            return AFInAppEventType;
        }
        return AFInAppEventType;
    }

    @Override
    public final String getHostPrefix() {
        int i = onAttributionFailure + 83;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        String valueOf2 = AFInAppEventParameterName().onInstallConversionDataLoadedNative().valueOf();
        int i3 = onConversionDataFail + 89;
        onAttributionFailure = i3 % 128;
        int i4 = i3 % 2;
        return valueOf2;
    }

    @Override
    public final void setMinTimeBetweenSessions(int i) {
        int i2 = onConversionDataFail + 91;
        onAttributionFailure = i2 % 128;
        int i3 = i2 % 2;
        this.getLevel = TimeUnit.SECONDS.toMillis(i);
        int i4 = onConversionDataFail + 79;
        onAttributionFailure = i4 % 128;
        if ((i4 % 2 != 0 ? (char) 4 : (char) 29) != 4) {
            return;
        }
        Object obj = null;
        super.hashCode();
    }

    private AFf1jSDK[] AFLogger$LogLevel() {
        int i = onConversionDataFail + 75;
        onAttributionFailure = i % 128;
        if (!(i % 2 != 0)) {
            return AFInAppEventParameterName().AFLogger$LogLevel().AFInAppEventType();
        }
        int i2 = 5 / 0;
        return AFInAppEventParameterName().AFLogger$LogLevel().AFInAppEventType();
    }

    public class AFa1vSDK implements Runnable {
        private final AFa1qSDK AFInAppEventParameterName;

        AFa1vSDK(AFa1dSDK aFa1dSDK, AFa1qSDK aFa1qSDK, byte b) {
            this(aFa1qSDK);
        }

        private AFa1vSDK(AFa1qSDK aFa1qSDK) {
            this.AFInAppEventParameterName = aFa1qSDK;
        }

        @Override
        public final void run() {
            AFa1dSDK.values(AFa1dSDK.this, this.AFInAppEventParameterName);
        }
    }

    public class AFa1ySDK implements Runnable {
        private final AFa1qSDK valueOf;

        AFa1ySDK(AFa1dSDK aFa1dSDK, AFa1qSDK aFa1qSDK, byte b) {
            this(aFa1qSDK);
        }

        private AFa1ySDK(AFa1qSDK aFa1qSDK) {
            this.valueOf = aFa1qSDK;
        }

        @Override
        public final void run() {
            AFd1hSDK aFd1hSDK;
            if (this.valueOf.values()) {
                AFd1hSDK aFd1hSDK2 = new AFd1hSDK(this.valueOf, AFa1dSDK.this.AFInAppEventParameterName());
                aFd1hSDK2.getLevel = AFa1dSDK.AFInAppEventType(AFa1dSDK.this);
                aFd1hSDK = aFd1hSDK2;
            } else {
                aFd1hSDK = new AFd1eSDK(this.valueOf, AFa1dSDK.this.AFInAppEventParameterName());
            }
            AFd1tSDK level = AFa1dSDK.this.AFInAppEventParameterName().getLevel();
            level.AFKeystoreWrapper.execute(new AFd1tSDK.AnonymousClass5(aFd1hSDK));
        }
    }

    @Override
    public final void setPluginInfo(PluginInfo pluginInfo) {
        int i = onConversionDataFail + 9;
        onAttributionFailure = i % 128;
        Object[] objArr = null;
        if (i % 2 == 0) {
            Objects.requireNonNull(pluginInfo);
            AFInAppEventParameterName().onInstallConversionFailureNative().values(pluginInfo);
        } else {
            Objects.requireNonNull(pluginInfo);
            AFInAppEventParameterName().onInstallConversionFailureNative().values(pluginInfo);
            int length = objArr.length;
        }
        int i2 = onAttributionFailure + 109;
        onConversionDataFail = i2 % 128;
        if (i2 % 2 == 0) {
            int length2 = objArr.length;
        }
    }

    class AFa1xSDK implements AFd1zSDK {
        @Override
        public final void AFKeystoreWrapper(AFd1uSDK<?> aFd1uSDK) {
        }

        private AFa1xSDK() {
        }

        AFa1xSDK(AFa1dSDK aFa1dSDK, byte b) {
            this();
        }

        @Override
        public final void AFInAppEventType(AFd1uSDK<?> aFd1uSDK) {
            if (aFd1uSDK instanceof AFd1hSDK) {
                AFa1dSDK.this.AFInAppEventParameterName().AFLogger().AFKeystoreWrapper(((AFd1eSDK) aFd1uSDK).afInfoLog.afErrorLog);
            }
        }

        @Override
        public final void AFInAppEventType(AFd1uSDK<?> aFd1uSDK, AFd1ySDK aFd1ySDK) {
            JSONObject AFInAppEventParameterName;
            AFb1oSDK AFKeystoreWrapper;
            if (aFd1uSDK instanceof AFd1eSDK) {
                AFd1eSDK aFd1eSDK = (AFd1eSDK) aFd1uSDK;
                boolean z = aFd1uSDK instanceof AFd1hSDK;
                if (z && valueOf()) {
                    AFd1hSDK aFd1hSDK = (AFd1hSDK) aFd1uSDK;
                    boolean z2 = true;
                    if (aFd1hSDK.AFKeystoreWrapper != AFd1ySDK.SUCCESS && aFd1hSDK.AFInAppEventParameterName != 1) {
                        z2 = false;
                    }
                    if (z2) {
                        AFe1kSDK aFe1kSDK = new AFe1kSDK(aFd1hSDK, AFa1dSDK.this.AFInAppEventParameterName().AFKeystoreWrapper());
                        AFd1tSDK level = AFa1dSDK.this.AFInAppEventParameterName().getLevel();
                        level.AFKeystoreWrapper.execute(new AFd1tSDK.AnonymousClass5(aFe1kSDK));
                    }
                }
                if (aFd1ySDK == AFd1ySDK.SUCCESS) {
                    AFa1dSDK aFa1dSDK = AFa1dSDK.this;
                    aFa1dSDK.valueOf(AFa1dSDK.values(aFa1dSDK)).values("sentSuccessfully", "true");
                    if (!(aFd1uSDK instanceof AFd1gSDK) && (AFKeystoreWrapper = new AFe1sSDK(AFa1dSDK.values(AFa1dSDK.this)).AFKeystoreWrapper()) != null && AFKeystoreWrapper.valueOf()) {
                        String str = AFKeystoreWrapper.AFKeystoreWrapper;
                        AFLogger.afDebugLog("Resending Uninstall token to AF servers: ".concat(String.valueOf(str)));
                        AFe1sSDK.AFKeystoreWrapper(str);
                    }
                    ResponseNetwork responseNetwork = ((AFd1nSDK) aFd1eSDK).AFLogger;
                    if (responseNetwork != null && (AFInAppEventParameterName = AFb1tSDK.AFInAppEventParameterName((String) responseNetwork.getBody())) != null) {
                        AFa1dSDK.AFInAppEventType(AFa1dSDK.this, AFInAppEventParameterName.optBoolean("send_background", false));
                    }
                    if (z) {
                        AFa1dSDK.values(AFa1dSDK.this, System.currentTimeMillis());
                    }
                }
            } else if (!(aFd1uSDK instanceof AFe1kSDK) || aFd1ySDK == AFd1ySDK.SUCCESS) {
            } else {
                AFe1rSDK aFe1rSDK = new AFe1rSDK(AFa1dSDK.this.AFInAppEventParameterName());
                AFd1tSDK level2 = AFa1dSDK.this.AFInAppEventParameterName().getLevel();
                level2.AFKeystoreWrapper.execute(new AFd1tSDK.AnonymousClass5(aFe1rSDK));
            }
        }

        private boolean valueOf() {
            return AFa1dSDK.this.AFInAppEventType != null;
        }
    }

    public final void AFInAppEventType(Context context) {
        AFc1xSDK aFc1xSDK;
        int i = onConversionDataFail + 25;
        onAttributionFailure = i % 128;
        if (i % 2 != 0) {
            aFc1xSDK = this.onAppOpenAttribution;
            Object obj = null;
            super.hashCode();
        } else {
            aFc1xSDK = this.onAppOpenAttribution;
        }
    }

    @Override
    public final void sendPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
        int i = onConversionDataFail + 69;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        AFInAppEventType(context);
        PurchaseHandler afInfoLog = AFInAppEventParameterName().afInfoLog();
        if (afInfoLog.AFInAppEventParameterName(map, purchaseValidationCallback, "subscriptions")) {
            AFd1pSDK aFd1pSDK = new AFd1pSDK(map, purchaseValidationCallback, afInfoLog.valueOf);
            AFd1tSDK aFd1tSDK = afInfoLog.AFInAppEventParameterName;
            aFd1tSDK.AFKeystoreWrapper.execute(new AFd1tSDK.AnonymousClass5(aFd1pSDK));
        }
        int i3 = onAttributionFailure + 5;
        onConversionDataFail = i3 % 128;
        int i4 = i3 % 2;
    }

    @Override
    public final void sendInAppPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
        PurchaseHandler afInfoLog;
        int i = onAttributionFailure + 117;
        onConversionDataFail = i % 128;
        if ((i % 2 == 0 ? (char) 27 : '\n') != 27) {
            AFInAppEventType(context);
            afInfoLog = AFInAppEventParameterName().afInfoLog();
        } else {
            AFInAppEventType(context);
            afInfoLog = AFInAppEventParameterName().afInfoLog();
            String[] strArr = new String[0];
            strArr[1] = "purchases";
        }
        int i2 = onAttributionFailure + 33;
        onConversionDataFail = i2 % 128;
        if ((i2 % 2 == 0 ? '6' : '\b') != '6') {
            return;
        }
        Object[] objArr = null;
        int length = objArr.length;
    }

    @Override
    public final void subscribeForDeepLink(DeepLinkListener deepLinkListener, long j) {
        int i = onAttributionFailure + 77;
        onConversionDataFail = i % 128;
        if ((i % 2 == 0 ? '6' : '_') != '6') {
            AFInAppEventParameterName().init().valueOf = deepLinkListener;
            AFInAppEventParameterName().init().afRDLog = j;
        } else {
            AFInAppEventParameterName().init().valueOf = deepLinkListener;
            AFInAppEventParameterName().init().afRDLog = j;
            Object obj = null;
            super.hashCode();
        }
        int i2 = onConversionDataFail + 125;
        onAttributionFailure = i2 % 128;
        int i3 = i2 % 2;
    }

    @Override
    public final void setPartnerData(String str, Map<String, Object> map) {
        String concat;
        int i = onConversionDataFail + 73;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        if (this.onResponseErrorNative == null) {
            this.onResponseErrorNative = new AFb1hSDK();
        }
        AFb1hSDK aFb1hSDK = this.onResponseErrorNative;
        if (str != null) {
            if ((str.isEmpty() ? '2' : 'G') == 'G') {
                if (!(map == null)) {
                    if (map.isEmpty() ? false : true) {
                        StringBuilder sb = new StringBuilder("Setting partner data for ");
                        sb.append(str);
                        sb.append(": ");
                        sb.append(map);
                        AFLogger.afDebugLog(sb.toString());
                        int length = new JSONObject(map).toString().length();
                        if (length > 1000) {
                            AFLogger.afWarnLog("Partner data 1000 characters limit exceeded");
                            HashMap hashMap = new HashMap();
                            hashMap.put(Constants.IPC_BUNDLE_KEY_SEND_ERROR, "limit exceeded: ".concat(String.valueOf(length)));
                            aFb1hSDK.AFInAppEventType.put(str, hashMap);
                            return;
                        }
                        aFb1hSDK.AFInAppEventParameterName.put(str, map);
                        aFb1hSDK.AFInAppEventType.remove(str);
                        int i3 = onConversionDataFail + 121;
                        onAttributionFailure = i3 % 128;
                        if (i3 % 2 != 0) {
                            Object[] objArr = null;
                            int length2 = objArr.length;
                            return;
                        }
                        return;
                    }
                }
                if (aFb1hSDK.AFInAppEventParameterName.remove(str) != null) {
                    concat = "Cleared partner data for ".concat(String.valueOf(str));
                } else {
                    int i4 = onAttributionFailure + 97;
                    onConversionDataFail = i4 % 128;
                    int i5 = i4 % 2;
                    concat = "Partner data is missing or `null`";
                }
                AFLogger.afWarnLog(concat);
                return;
            }
        }
        AFLogger.afWarnLog("Partner ID is missing or `null`");
    }

    @Override
    public final void setImeiData(String str) {
        int i = onConversionDataFail + 119;
        onAttributionFailure = i % 128;
        if ((i % 2 != 0 ? '+' : 'S') != 'S') {
            AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
            String[] strArr = new String[1];
            strArr[1] = str;
            afErrorLogForExcManagerOnly.AFInAppEventType("setImeiData", strArr);
        } else {
            AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("setImeiData", str);
        }
        AFInAppEventParameterName().AFVersionDeclaration().valueOf = str;
        int i2 = onAttributionFailure + 81;
        onConversionDataFail = i2 % 128;
        if (!(i2 % 2 != 0)) {
            int i3 = 50 / 0;
        }
    }

    @Override
    public final void setResolveDeepLinkURLs(String... strArr) {
        int i = onAttributionFailure + 71;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        AFLogger.afDebugLog(String.format("setResolveDeepLinkURLs %s", Arrays.toString(strArr)));
        AFb1uSDK init = AFInAppEventParameterName().init();
        init.afDebugLog.clear();
        init.afDebugLog.addAll(Arrays.asList(strArr));
        int i3 = onConversionDataFail + 79;
        onAttributionFailure = i3 % 128;
        if (!(i3 % 2 != 0)) {
            return;
        }
        Object obj = null;
        super.hashCode();
    }

    @Override
    public final void setOneLinkCustomDomain(String... strArr) {
        String format;
        int i = onAttributionFailure + 111;
        onConversionDataFail = i % 128;
        if (!(i % 2 != 0)) {
            Object[] objArr = new Object[0];
            objArr[1] = Arrays.toString(strArr);
            format = String.format("setOneLinkCustomDomain %s", objArr);
        } else {
            format = String.format("setOneLinkCustomDomain %s", Arrays.toString(strArr));
        }
        AFLogger.afDebugLog(format);
        AFInAppEventParameterName().init().afInfoLog = strArr;
        int i2 = onAttributionFailure + 65;
        onConversionDataFail = i2 % 128;
        if ((i2 % 2 == 0 ? (char) 14 : ':') != 14) {
            return;
        }
        Object obj = null;
        super.hashCode();
    }

    @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);
        AFe1aSDK aFe1aSDK = new AFe1aSDK();
        aFe1aSDK.afDebugLog = str;
        aFe1aSDK.AFInAppEventType = appsFlyerRequestListener;
        if (hashMap != null && hashMap.containsKey(AFInAppEventParameterName.TOUCH_OBJ)) {
            HashMap hashMap2 = new HashMap();
            Object obj = hashMap.get(AFInAppEventParameterName.TOUCH_OBJ);
            if (obj instanceof MotionEvent) {
                MotionEvent motionEvent = (MotionEvent) obj;
                HashMap hashMap3 = new HashMap();
                hashMap3.put("x", Float.valueOf(motionEvent.getX()));
                hashMap3.put("y", Float.valueOf(motionEvent.getY()));
                hashMap2.put("loc", hashMap3);
                hashMap2.put("pf", Float.valueOf(motionEvent.getPressure()));
                hashMap2.put("rad", Float.valueOf(motionEvent.getTouchMajor() / 2.0f));
            } else {
                hashMap2.put(Constants.IPC_BUNDLE_KEY_SEND_ERROR, "Parsing failed due to invalid input in 'af_touch_obj'.");
                AFLogger.AFInAppEventType("Parsing failed due to invalid input in 'af_touch_obj'.");
            }
            Map<String, ?> singletonMap = Collections.singletonMap("tch_data", hashMap2);
            hashMap.remove(AFInAppEventParameterName.TOUCH_OBJ);
            aFe1aSDK.AFInAppEventType(singletonMap);
        }
        aFe1aSDK.AFKeystoreWrapper = hashMap;
        AFb1wSDK afErrorLogForExcManagerOnly = AFInAppEventParameterName().afErrorLogForExcManagerOnly();
        String[] strArr = new String[2];
        strArr[0] = str;
        strArr[1] = new JSONObject(aFe1aSDK.AFKeystoreWrapper == null ? new HashMap() : aFe1aSDK.AFKeystoreWrapper).toString();
        afErrorLogForExcManagerOnly.AFInAppEventType("logEvent", strArr);
        if (str == null) {
            AFInAppEventType(context, AFe1nSDK.logEvent);
        }
        values(aFe1aSDK, context instanceof Activity ? (Activity) context : null);
    }

    private void AFInAppEventType(AFa1qSDK aFa1qSDK, Activity activity) {
        int i = onConversionDataFail + 75;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        AFf1tSDK onResponseNative = AFInAppEventParameterName().onResponseNative();
        aFa1qSDK.values = onResponseNative.AFInAppEventType(activity);
        aFa1qSDK.afRDLog = onResponseNative.valueOf(activity);
        int i3 = onConversionDataFail + 35;
        onAttributionFailure = i3 % 128;
        if (i3 % 2 != 0) {
            int i4 = 18 / 0;
        }
    }

    private void AFInAppEventType(AFa1qSDK aFa1qSDK) {
        boolean z;
        if ((aFa1qSDK.afDebugLog == null ? '2' : '6') != '6') {
            int i = onAttributionFailure + 97;
            onConversionDataFail = i % 128;
            int i2 = i % 2;
            z = true;
        } else {
            z = false;
        }
        if (AFKeystoreWrapper()) {
            int i3 = onConversionDataFail + 71;
            onAttributionFailure = i3 % 128;
            int i4 = i3 % 2;
            AFLogger.afInfoLog("CustomerUserId not set, reporting is disabled", true);
            return;
        }
        if ((z ? '8' : (char) 16) == '8') {
            int i5 = onConversionDataFail + 125;
            onAttributionFailure = i5 % 128;
            int i6 = i5 % 2;
            if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.LAUNCH_PROTECT_ENABLED, true)) {
                if ((afInfoLog() ? (char) 21 : '0') != '0') {
                    int i7 = onConversionDataFail + 77;
                    onAttributionFailure = i7 % 128;
                    int i8 = i7 % 2;
                    AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.AFInAppEventType;
                    if (appsFlyerRequestListener != null) {
                        appsFlyerRequestListener.onError(10, "Event timeout. Check 'minTimeBetweenSessions' param");
                        return;
                    }
                    return;
                }
            } else {
                AFLogger.afInfoLog("Allowing multiple launches within a 5 second time window.");
            }
            this.AFLogger = System.currentTimeMillis();
        }
        AFInAppEventType(AFInAppEventParameterName().values(), new AFa1vSDK(this, aFa1qSDK, (byte) 0), 0L, TimeUnit.MILLISECONDS);
    }

    private void afErrorLogForExcManagerOnly() {
        int i = onAttributionFailure + 61;
        onConversionDataFail = i % 128;
        int i2 = i % 2;
        if (AFd1mSDK.afRDLog()) {
            return;
        }
        AFc1zSDK AFInAppEventParameterName2 = AFInAppEventParameterName();
        AFd1tSDK level = AFInAppEventParameterName2.getLevel();
        level.AFKeystoreWrapper.execute(new AFd1tSDK.AnonymousClass5(new AFd1mSDK(AFInAppEventParameterName2)));
        int i3 = onConversionDataFail + 105;
        onAttributionFailure = i3 % 128;
        int i4 = i3 % 2;
    }

    @Override
    public final void setLogLevel(AFLogger.LogLevel logLevel) {
        boolean z;
        int i = onConversionDataFail + 87;
        onAttributionFailure = i % 128;
        int i2 = i % 2;
        if (logLevel.getLevel() <= AFLogger.LogLevel.NONE.getLevel()) {
            z = false;
        } else {
            int i3 = onConversionDataFail + 89;
            onAttributionFailure = i3 % 128;
            int i4 = i3 % 2;
            z = true;
        }
        AFInAppEventParameterName().afErrorLogForExcManagerOnly().AFInAppEventType("log", String.valueOf(z));
        AppsFlyerProperties.getInstance().set("logLevel", logLevel.getLevel());
        int i5 = onAttributionFailure + 9;
        onConversionDataFail = i5 % 128;
        int i6 = i5 % 2;
    }

    private static void AFInAppEventParameterName(String str, boolean z, int[] iArr, Object[] objArr) {
        byte[] bArr;
        String str2;
        if (str != null) {
            bArr = str.getBytes("ISO-8859-1");
        }
        byte[] bArr2 = bArr;
        synchronized (AFg1mSDK.AFInAppEventType) {
            int i = iArr[0];
            int i2 = iArr[1];
            int i3 = iArr[2];
            int i4 = iArr[3];
            char[] cArr = new char[i2];
            System.arraycopy(onResponse, i, cArr, 0, i2);
            if (bArr2 != null) {
                char[] cArr2 = new char[i2];
                AFg1mSDK.AFKeystoreWrapper = 0;
                char c = 0;
                while (AFg1mSDK.AFKeystoreWrapper < i2) {
                    if (bArr2[AFg1mSDK.AFKeystoreWrapper] == 1) {
                        cArr2[AFg1mSDK.AFKeystoreWrapper] = (char) (((cArr[AFg1mSDK.AFKeystoreWrapper] << 1) + 1) - c);
                    } else {
                        cArr2[AFg1mSDK.AFKeystoreWrapper] = (char) ((cArr[AFg1mSDK.AFKeystoreWrapper] << 1) - c);
                    }
                    c = cArr2[AFg1mSDK.AFKeystoreWrapper];
                    AFg1mSDK.AFKeystoreWrapper++;
                }
                cArr = cArr2;
            }
            if (i4 > 0) {
                char[] cArr3 = new char[i2];
                System.arraycopy(cArr, 0, cArr3, 0, i2);
                int i5 = i2 - i4;
                System.arraycopy(cArr3, 0, cArr, i5, i4);
                System.arraycopy(cArr3, i4, cArr, 0, i5);
            }
            if (z) {
                char[] cArr4 = new char[i2];
                AFg1mSDK.AFKeystoreWrapper = 0;
                while (AFg1mSDK.AFKeystoreWrapper < i2) {
                    cArr4[AFg1mSDK.AFKeystoreWrapper] = cArr[(i2 - AFg1mSDK.AFKeystoreWrapper) - 1];
                    AFg1mSDK.AFKeystoreWrapper++;
                }
                cArr = cArr4;
            }
            if (i3 > 0) {
                AFg1mSDK.AFKeystoreWrapper = 0;
                while (AFg1mSDK.AFKeystoreWrapper < i2) {
                    cArr[AFg1mSDK.AFKeystoreWrapper] = (char) (cArr[AFg1mSDK.AFKeystoreWrapper] - iArr[2]);
                    AFg1mSDK.AFKeystoreWrapper++;
                }
            }
            str2 = new String(cArr);
        }
        objArr[0] = str2;
    }
}