导航菜单

页面标题

页面副标题

Crédito Express v1.0.3 - AFb1zSDK.java 源代码

正在查看: Crédito Express v1.0.3 应用的 AFb1zSDK.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.appsflyer.internal;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.pm.ProviderInfo;
import android.content.pm.ResolveInfo;
import android.graphics.PointF;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Process;
import android.provider.Settings;
import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.ViewConfiguration;
import com.appsflyer.AFInAppEventParameterName;
import com.appsflyer.AFInAppEventType;
import com.appsflyer.AFKeystoreWrapper;
import com.appsflyer.AFLogger;
import com.appsflyer.AFVersionDeclaration;
import com.appsflyer.AppsFlyerConversionListener;
import com.appsflyer.AppsFlyerInAppPurchaseValidatorListener;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.PurchaseHandler;
import com.appsflyer.attribution.AppsFlyerRequestListener;
import com.appsflyer.attribution.RequestError;
import com.appsflyer.deeplink.DeepLinkListener;
import com.appsflyer.deeplink.DeepLinkResult;
import com.appsflyer.internal.AFa1gSDK;
import com.appsflyer.internal.AFa1rSDK;
import com.appsflyer.internal.AFa1zSDK;
import com.appsflyer.internal.AFb1wSDK;
import com.appsflyer.internal.AFb1zSDK;
import com.appsflyer.internal.AFc1vSDK;
import com.appsflyer.internal.AFd1hSDK;
import com.appsflyer.internal.AFd1xSDK.AnonymousClass2;
import com.appsflyer.internal.AFf1uSDK;
import com.appsflyer.internal.components.network.http.ResponseNetwork;
import com.google.android.gms.common.GoogleApiAvailability;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.net.HttpURLConnection;
import java.net.URI;
import java.security.KeyStoreException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;
import java.util.TimeZone;
import java.util.UUID;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import okhttp3.HttpUrl;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public final class AFb1zSDK extends AppsFlyerLib {
    public static final String AFInAppEventParameterName;
    static final String AFInAppEventType;
    public static final String AFKeystoreWrapper;
    private static String AFLogger = null;
    private static String AFLogger$LogLevel = null;
    private static String AFVersionDeclaration = null;
    private static char[] AppsFlyerConversionListener = null;
    private static String afErrorLog = null;
    private static AFb1zSDK afErrorLogForExcManagerOnly = null;
    private static final String afInfoLog;
    private static String afWarnLog = null;
    private static String getLevel = null;
    private static int getSdkVersion = 1;
    private static int onPause;
    private static long onValidateInAppFailure;
    public static volatile AppsFlyerConversionListener valueOf;
    static AppsFlyerInAppPurchaseValidatorListener values;
    private AFb1cSDK AppsFlyerInAppPurchaseValidatorListener;
    String afDebugLog;
    public AFa1fSDK afRDLog;
    private SharedPreferences onAppOpenAttribution;
    private String onAppOpenAttributionNative;
    private Map<String, Object> onAttributionFailure;
    private boolean onAttributionFailureNative;
    private Application onDeepLinking;
    private Map<Long, String> onDeepLinkingNative;
    private String onResponse;
    private final AFb1bSDK onResponseError;
    private boolean onResponseNative;
    private long onInstallConversionFailureNative = -1;
    private long init = -1;
    private long onInstallConversionDataLoadedNative = TimeUnit.SECONDS.toMillis(5);
    private boolean AppsFlyer2dXConversionCallback = false;
    private final AFb1rSDK onResponseErrorNative = new AFb1rSDK();
    private boolean onConversionDataSuccess = false;
    private boolean onConversionDataFail = false;
    private final Executor onValidateInApp = Executors.newSingleThreadExecutor();

    public class AnonymousClass1 implements Runnable {
        public AnonymousClass1() {
        }

        public void AFInAppEventParameterName() {
            try {
                AFe1hSDK aFe1hSDK = new AFe1hSDK();
                Application values = AFb1zSDK.values(AFb1zSDK.this);
                if (values != null) {
                    aFe1hSDK.AFKeystoreWrapper = (Application) values.getApplicationContext();
                }
                AFb1zSDK aFb1zSDK = AFb1zSDK.this;
                if (AFb1zSDK.AFInAppEventParameterName(aFb1zSDK, aFe1hSDK, AFb1zSDK.AFInAppEventType(AFb1zSDK.values(aFb1zSDK)))) {
                    AFb1zSDK.AFInAppEventType(AFb1zSDK.this, aFe1hSDK);
                }
            } catch (Throwable th) {
                AFLogger.afErrorLog(th.getMessage(), th);
            }
        }

        @Override
        public final void run() {
            AFb1zSDK.AFInAppEventType(AFb1zSDK.valueOf(AFb1zSDK.this).AFInAppEventType(), new Runnable() {
                @Override
                public final void run() {
                    AFb1zSDK.AnonymousClass1.this.AFInAppEventParameterName();
                }
            }, TimeUnit.MILLISECONDS);
        }
    }

    public static class AnonymousClass10 {
        static final int[] values;

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

    public class AFa1vSDK implements AFd1zSDK {
        private AFa1vSDK() {
        }

        private static boolean AFInAppEventParameterName() {
            return AFb1zSDK.valueOf != null;
        }

        @Override
        public final void AFInAppEventType(AFd1tSDK<?> aFd1tSDK, AFc1aSDK aFc1aSDK) {
            JSONObject AFKeystoreWrapper;
            AFb1sSDK valueOf;
            if (!(aFd1tSDK instanceof AFd1eSDK)) {
                if (!(aFd1tSDK instanceof AFe1qSDK) || aFc1aSDK == AFc1aSDK.SUCCESS) {
                    return;
                }
                AFe1sSDK aFe1sSDK = new AFe1sSDK(AFb1zSDK.valueOf(AFb1zSDK.this));
                AFd1xSDK afDebugLog = AFb1zSDK.valueOf(AFb1zSDK.this).afDebugLog();
                afDebugLog.AFKeystoreWrapper.execute(afDebugLog.new AnonymousClass2(aFe1sSDK));
                return;
            }
            AFd1eSDK aFd1eSDK = (AFd1eSDK) aFd1tSDK;
            boolean z6 = aFd1tSDK instanceof AFd1iSDK;
            if (z6 && AFInAppEventParameterName()) {
                AFd1iSDK aFd1iSDK = (AFd1iSDK) aFd1tSDK;
                if (aFd1iSDK.AFInAppEventType == AFc1aSDK.SUCCESS || aFd1iSDK.valueOf == 1) {
                    Context context = AFb1zSDK.valueOf(AFb1zSDK.this).valueOf.values;
                    if (context == null) {
                        throw new IllegalStateException("Context must be set via setContext method before calling this dependency.");
                    }
                    AFe1qSDK aFe1qSDK = new AFe1qSDK(aFd1iSDK, new AFb1eSDK(AFb1zSDK.AFInAppEventType(context)));
                    AFd1xSDK afDebugLog2 = AFb1zSDK.valueOf(AFb1zSDK.this).afDebugLog();
                    afDebugLog2.AFKeystoreWrapper.execute(afDebugLog2.new AnonymousClass2(aFe1qSDK));
                }
            }
            if (aFc1aSDK == AFc1aSDK.SUCCESS) {
                AFb1zSDK aFb1zSDK = AFb1zSDK.this;
                aFb1zSDK.AFInAppEventParameterName(AFb1zSDK.values(aFb1zSDK)).AFInAppEventParameterName("sentSuccessfully", "true");
                if (!(aFd1tSDK instanceof AFd1gSDK) && (valueOf = new AFe1pSDK(AFb1zSDK.values(AFb1zSDK.this)).valueOf()) != null && valueOf.AFInAppEventType()) {
                    String str = valueOf.AFInAppEventParameterName;
                    AFLogger.afDebugLog("Resending Uninstall token to AF servers: ".concat(String.valueOf(str)));
                    AFe1pSDK.valueOf(str);
                }
                ResponseNetwork responseNetwork = ((AFd1kSDK) aFd1eSDK).afDebugLog;
                if (responseNetwork != null && (AFKeystoreWrapper = AFb1tSDK.AFKeystoreWrapper((String) responseNetwork.getBody())) != null) {
                    AFb1zSDK.valueOf(AFb1zSDK.this, AFKeystoreWrapper.optBoolean("send_background", false));
                }
                if (z6) {
                    AFb1zSDK.AFInAppEventType(AFb1zSDK.this, System.currentTimeMillis());
                }
            }
        }

        @Override
        public final void AFKeystoreWrapper(AFd1tSDK<?> aFd1tSDK) {
            if (aFd1tSDK instanceof AFd1iSDK) {
                AFb1zSDK.this.AFInAppEventParameterName().afRDLog().AFInAppEventParameterName(((AFd1eSDK) aFd1tSDK).AFLogger.afDebugLog);
            }
        }

        @Override
        public final void valueOf(AFd1tSDK<?> aFd1tSDK) {
        }

        public AFa1vSDK(AFb1zSDK aFb1zSDK, byte b7) {
            this();
        }
    }

    public class AFa1xSDK implements Runnable {
        private final AFa1sSDK valueOf;

        private AFa1xSDK(AFa1sSDK aFa1sSDK) {
            this.valueOf = aFa1sSDK;
        }

        @Override
        public final void run() {
            AFb1zSDK.AFInAppEventType(AFb1zSDK.this, this.valueOf);
        }

        public AFa1xSDK(AFb1zSDK aFb1zSDK, AFa1sSDK aFa1sSDK, byte b7) {
            this(aFa1sSDK);
        }
    }

    public class AFa1zSDK implements Runnable {
        private final AFa1sSDK values;

        private AFa1zSDK(AFa1sSDK aFa1sSDK) {
            this.values = aFa1sSDK;
        }

        @Override
        public final void run() {
            AFd1eSDK aFd1eSDK;
            if (this.values.AFKeystoreWrapper()) {
                AFd1iSDK aFd1iSDK = new AFd1iSDK(this.values, AFb1zSDK.this.AFInAppEventParameterName());
                aFd1iSDK.AFVersionDeclaration = AFb1zSDK.AFInAppEventParameterName(AFb1zSDK.this);
                aFd1eSDK = aFd1iSDK;
            } else {
                aFd1eSDK = new AFd1eSDK(this.values, AFb1zSDK.this.AFInAppEventParameterName());
            }
            AFd1xSDK afDebugLog = AFb1zSDK.this.AFInAppEventParameterName().afDebugLog();
            afDebugLog.AFKeystoreWrapper.execute(afDebugLog.new AnonymousClass2(aFd1eSDK));
        }

        public AFa1zSDK(AFb1zSDK aFb1zSDK, AFa1sSDK aFa1sSDK, byte b7) {
            this(aFa1sSDK);
        }
    }

    static {
        valueOf();
        AFInAppEventType = "228";
        Object[] objArr = new Object[1];
        AFInAppEventParameterName((char) ((PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)) + 36816), 1 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), 33 - ((Process.getThreadPriority(0) + 20) >> 6), objArr);
        String substring = "6.10.0".substring(0, "6.10.0".lastIndexOf(((String) objArr[0]).intern()));
        AFKeystoreWrapper = substring;
        AFLogger = "https://%sstats.%s/stats";
        StringBuilder sb = new StringBuilder();
        sb.append(substring);
        sb.append("/androidevent?buildnumber=6.10.0&app_id=");
        AFInAppEventParameterName = sb.toString();
        afErrorLog = "https://%sadrevenue.%s/api/v2/generic/v6.10.0/android?app_id=";
        StringBuilder sb2 = new StringBuilder();
        sb2.append(substring);
        sb2.append("/androidevent?app_id=");
        String obj = sb2.toString();
        afInfoLog = obj;
        StringBuilder sb3 = new StringBuilder("https://%sconversions.%s/api/v");
        sb3.append(obj);
        AFVersionDeclaration = sb3.toString();
        StringBuilder sb4 = new StringBuilder("https://%slaunches.%s/api/v");
        sb4.append(obj);
        AFLogger$LogLevel = sb4.toString();
        StringBuilder sb5 = new StringBuilder("https://%sinapps.%s/api/v");
        sb5.append(obj);
        getLevel = sb5.toString();
        StringBuilder sb6 = new StringBuilder("https://%sattr.%s/api/v");
        sb6.append(obj);
        afWarnLog = sb6.toString();
        values = null;
        valueOf = null;
        afErrorLogForExcManagerOnly = new AFb1zSDK();
        int i7 = getSdkVersion + 43;
        onPause = i7 % 128;
        if (i7 % 2 != 0) {
            throw null;
        }
    }

    public AFb1zSDK() {
        AFVersionDeclaration.init();
        AFb1bSDK aFb1bSDK = new AFb1bSDK();
        this.onResponseError = aFb1bSDK;
        AFd1xSDK afDebugLog = aFb1bSDK.afDebugLog();
        afDebugLog.AFInAppEventParameterName.add(new AFa1vSDK(this, (byte) 0));
    }

    private static int AFInAppEventParameterName(SharedPreferences sharedPreferences) {
        int i7 = onPause + 103;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        int AFInAppEventParameterName2 = AFInAppEventParameterName(sharedPreferences, "appsFlyerAdRevenueCount", true);
        int i9 = onPause + 31;
        getSdkVersion = i9 % 128;
        int i10 = i9 % 2;
        return AFInAppEventParameterName2;
    }

    private static int AFInAppEventType(SharedPreferences sharedPreferences, boolean z6) {
        int i7 = getSdkVersion + 29;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        int AFInAppEventParameterName2 = AFInAppEventParameterName(sharedPreferences, "appsFlyerInAppEventCount", z6);
        int i9 = onPause + 65;
        getSdkVersion = i9 % 128;
        int i10 = i9 % 2;
        return AFInAppEventParameterName2;
    }

    public static String AFKeystoreWrapper() {
        int i7 = getSdkVersion + 123;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        String AFInAppEventParameterName2 = AFInAppEventParameterName(AppsFlyerProperties.APP_USER_ID);
        int i9 = getSdkVersion + 123;
        onPause = i9 % 128;
        int i10 = i9 % 2;
        return AFInAppEventParameterName2;
    }

    private static String AFLogger() {
        int i7 = onPause + 103;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        String AFInAppEventParameterName2 = AFInAppEventParameterName(AppsFlyerProperties.APP_ID);
        int i9 = getSdkVersion + 119;
        onPause = i9 % 128;
        int i10 = i9 % 2;
        return AFInAppEventParameterName2;
    }

    private String AFLogger$LogLevel(Context context) {
        SharedPreferences AFInAppEventType2 = AFInAppEventType(context);
        String str = null;
        if (AFInAppEventType2.contains("INSTALL_STORE")) {
            int i7 = getSdkVersion + 93;
            onPause = i7 % 128;
            int i8 = i7 % 2;
            return AFInAppEventType2.getString("INSTALL_STORE", null);
        }
        if (afRDLog(context)) {
            int i9 = getSdkVersion + 89;
            onPause = i9 % 128;
            int i10 = i9 % 2;
            str = AFVersionDeclaration(context);
        }
        AFInAppEventParameterName(context).AFInAppEventParameterName("INSTALL_STORE", str);
        return str;
    }

    private String AFVersionDeclaration(Context context) {
        int i7 = getSdkVersion + 99;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        String string = AppsFlyerProperties.getInstance().getString("api_store_value");
        if (string != null) {
            int i9 = getSdkVersion + 59;
            onPause = i9 % 128;
            if (i9 % 2 == 0) {
                return string;
            }
            throw null;
        }
        String AFInAppEventType2 = AFInAppEventType(context, "AF_STORE");
        int i10 = getSdkVersion + 59;
        onPause = i10 % 128;
        int i11 = i10 % 2;
        return AFInAppEventType2;
    }

    private static java.io.File afDebugLog(java.lang.String r2) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.afDebugLog(java.lang.String):java.io.File");
    }

    private static void afErrorLog(Context context) {
        int i7 = onPause + 71;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        try {
            if ((context.getPackageManager().getPackageInfo(context.getPackageName(), 0).applicationInfo.flags & 32768) != 0) {
                if (context.getResources().getIdentifier("appsflyer_backup_rules", "xml", context.getPackageName()) != 0) {
                    int i9 = onPause + 111;
                    getSdkVersion = i9 % 128;
                    int i10 = i9 % 2;
                    AFLogger.afInfoLog("appsflyer_backup_rules.xml detected, using AppsFlyer defined backup rules for AppsFlyer SDK data", true);
                    return;
                }
                AFLogger.values("'allowBackup' is set to true; appsflyer_backup_rules.xml not detected.\nAppsFlyer shared preferences should be excluded from auto backup by adding: <exclude domain=\"sharedpref\" path=\"appsflyer-data\"/> to the Application's <full-backup-content> rules");
            }
            int i11 = getSdkVersion + 73;
            onPause = i11 % 128;
            int i12 = i11 % 2;
        } catch (Exception e7) {
            AFLogger.afErrorLogForExcManagerOnly("checkBackupRules Exception", e7);
            AFLogger.afRDLog("checkBackupRules Exception: ".concat(String.valueOf(e7)));
        }
    }

    private String afErrorLogForExcManagerOnly(Context context) {
        File afDebugLog = afDebugLog(AFKeystoreWrapper("ro.appsflyer.preinstall.path"));
        if (!(!AFInAppEventParameterName(afDebugLog))) {
            afDebugLog = afDebugLog(AFInAppEventType(context, "AF_PRE_INSTALL_PATH"));
        }
        if (AFInAppEventParameterName(afDebugLog)) {
            afDebugLog = afDebugLog("/data/local/tmp/pre_install.appsflyer");
            int i7 = onPause + 79;
            getSdkVersion = i7 % 128;
            int i8 = i7 % 2;
        }
        if (AFInAppEventParameterName(afDebugLog)) {
            int i9 = onPause + 17;
            getSdkVersion = i9 % 128;
            if (i9 % 2 == 0) {
                afDebugLog("/etc/pre_install.appsflyer");
                throw null;
            }
            afDebugLog = afDebugLog("/etc/pre_install.appsflyer");
        }
        if (!AFInAppEventParameterName(afDebugLog)) {
            return AFKeystoreWrapper(afDebugLog, context.getPackageName());
        }
        int i10 = onPause + 61;
        getSdkVersion = i10 % 128;
        int i11 = i10 % 2;
        return null;
    }

    private void afInfoLog() {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.afInfoLog():void");
    }

    private static boolean afRDLog(Context context) {
        if (AFInAppEventType(context).contains("appsFlyerCount")) {
            return false;
        }
        int i7 = getSdkVersion;
        int i8 = i7 + 67;
        onPause = i8 % 128;
        int i9 = i8 % 2;
        int i10 = i7 + 55;
        onPause = i10 % 128;
        if (i10 % 2 != 0) {
            int i11 = 30 / 0;
        }
        return true;
    }

    private String afWarnLog(Context context) {
        String str;
        SharedPreferences AFInAppEventType2 = AFInAppEventType(context);
        String AFInAppEventParameterName2 = AFInAppEventParameterName("preInstallName");
        if (AFInAppEventParameterName2 != null) {
            return AFInAppEventParameterName2;
        }
        if (AFInAppEventType2.contains("preInstallName")) {
            str = AFInAppEventType2.getString("preInstallName", null);
        } else {
            if (!(!afRDLog(context))) {
                int i7 = onPause + 119;
                getSdkVersion = i7 % 128;
                int i8 = i7 % 2;
                AFInAppEventParameterName2 = afErrorLogForExcManagerOnly(context);
                if (AFInAppEventParameterName2 == null) {
                    AFInAppEventParameterName2 = AFInAppEventType(context, "AF_PRE_INSTALL_NAME");
                    int i9 = onPause + 61;
                    getSdkVersion = i9 % 128;
                    int i10 = i9 % 2;
                }
            }
            if (AFInAppEventParameterName2 != null) {
                int i11 = onPause + 81;
                getSdkVersion = i11 % 128;
                int i12 = i11 % 2;
                AFInAppEventParameterName(context).AFInAppEventParameterName("preInstallName", AFInAppEventParameterName2);
            }
            str = AFInAppEventParameterName2;
        }
        if (str != null) {
            int i13 = onPause + 45;
            getSdkVersion = i13 % 128;
            int i14 = i13 % 2;
            AFKeystoreWrapper("preInstallName", str);
            if (i14 == 0) {
                throw null;
            }
        }
        return str;
    }

    private long getLevel(Context context) {
        int i7 = onPause + 89;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        long j7 = AFInAppEventType(context).getLong("AppsFlyerTimePassedSincePrevLaunch", 0L);
        long currentTimeMillis = System.currentTimeMillis();
        AFInAppEventParameterName(context).AFInAppEventType("AppsFlyerTimePassedSincePrevLaunch", currentTimeMillis);
        if (j7 <= 0) {
            return -1L;
        }
        long j8 = currentTimeMillis - j7;
        int i9 = onPause + 101;
        getSdkVersion = i9 % 128;
        return i9 % 2 == 0 ? j8 * 1000 : j8 / 1000;
    }

    private static boolean onInstallConversionDataLoadedNative(android.content.Context r7) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.onInstallConversionDataLoadedNative(android.content.Context):boolean");
    }

    private static float onInstallConversionFailureNative(Context context) {
        try {
            Intent registerReceiver = context.getApplicationContext().registerReceiver(null, new IntentFilter("android.intent.action.BATTERY_CHANGED"));
            int intExtra = registerReceiver.getIntExtra("level", -1);
            int intExtra2 = registerReceiver.getIntExtra("scale", -1);
            if (intExtra == -1) {
                return 50.0f;
            }
            int i7 = onPause + 73;
            int i8 = i7 % 128;
            getSdkVersion = i8;
            int i9 = i7 % 2;
            if (intExtra2 == -1) {
                return 50.0f;
            }
            float f7 = (intExtra / intExtra2) * 100.0f;
            int i10 = i8 + 67;
            onPause = i10 % 128;
            int i11 = i10 % 2;
            return f7;
        } catch (Throwable th) {
            AFLogger.afErrorLog(th.getMessage(), th);
            return 1.0f;
        }
    }

    public static AFb1bSDK valueOf(AFb1zSDK aFb1zSDK) {
        int i7 = getSdkVersion;
        int i8 = i7 + 11;
        onPause = i8 % 128;
        int i9 = i8 % 2;
        AFb1bSDK aFb1bSDK = aFb1zSDK.onResponseError;
        if (i9 != 0) {
            throw null;
        }
        int i10 = i7 + 101;
        onPause = i10 % 128;
        int i11 = i10 % 2;
        return aFb1bSDK;
    }

    public static Application values(AFb1zSDK aFb1zSDK) {
        int i7 = getSdkVersion + 71;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        Application application = aFb1zSDK.onDeepLinking;
        if (i8 == 0) {
            return application;
        }
        throw null;
    }

    @Override
    public final void addPushNotificationDeepLinkPath(String... strArr) {
        int i7 = onPause + 107;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        List<String> asList = Arrays.asList(strArr);
        if (i8 == 0) {
            AFa1qSDK.AFInAppEventParameterName().afDebugLog.contains(asList);
            throw null;
        }
        List<List<String>> list = AFa1qSDK.AFInAppEventParameterName().afDebugLog;
        if (list.contains(asList)) {
            return;
        }
        list.add(asList);
        int i9 = getSdkVersion + 109;
        onPause = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    public final void anonymizeUser(boolean z6) {
        int i7 = onPause + 69;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            AFb1uSDK AFInAppEventType2 = AFb1uSDK.AFInAppEventType();
            String[] strArr = new String[0];
            strArr[1] = String.valueOf(z6);
            AFInAppEventType2.AFKeystoreWrapper("anonymizeUser", strArr);
        } else {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("anonymizeUser", String.valueOf(z6));
        }
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, z6);
    }

    @Override
    public final void appendParametersToDeepLinkingURL(String str, Map<String, String> map) {
        int i7 = getSdkVersion + 93;
        onPause = i7 % 128;
        if (i7 % 2 != 0) {
            AFa1qSDK AFInAppEventParameterName2 = AFa1qSDK.AFInAppEventParameterName();
            AFInAppEventParameterName2.valueOf = str;
            AFInAppEventParameterName2.afErrorLog = map;
            int i8 = 61 / 0;
        } else {
            AFa1qSDK AFInAppEventParameterName3 = AFa1qSDK.AFInAppEventParameterName();
            AFInAppEventParameterName3.valueOf = str;
            AFInAppEventParameterName3.afErrorLog = map;
        }
        int i9 = onPause + 39;
        getSdkVersion = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    public final void enableFacebookDeferredApplinks(boolean z6) {
        int i7 = onPause + 45;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        this.onConversionDataFail = z6;
        if (i8 == 0) {
            throw null;
        }
    }

    @Override
    public final String getAppsFlyerUID(Context context) {
        int i7 = onPause + 5;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("getAppsFlyerUID", new String[0]);
        if (context == null) {
            int i9 = onPause + 119;
            getSdkVersion = i9 % 128;
            int i10 = i9 % 2;
            return null;
        }
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            AFc1ySDK aFc1ySDK = aFb1bSDK.valueOf;
            if (context != null) {
                aFc1ySDK.values = context.getApplicationContext();
            }
        }
        return AFb1xSDK.AFInAppEventParameterName(new WeakReference(this.onResponseError.values().valueOf.values));
    }

    @Override
    public final String getAttributionId(Context context) {
        try {
            String AFInAppEventParameterName2 = new AFb1ySDK(context, AFInAppEventParameterName()).AFInAppEventParameterName();
            int i7 = getSdkVersion + 103;
            onPause = i7 % 128;
            int i8 = i7 % 2;
            return AFInAppEventParameterName2;
        } catch (Throwable th) {
            AFLogger.afErrorLog("Could not collect facebook attribution id. ", th);
            return null;
        }
    }

    @Override
    public final String getHostName() {
        int i7 = getSdkVersion + 91;
        onPause = i7 % 128;
        if (i7 % 2 == 0) {
            return AFInAppEventParameterName().AppsFlyer2dXConversionCallback().AFKeystoreWrapper();
        }
        AFInAppEventParameterName().AppsFlyer2dXConversionCallback().AFKeystoreWrapper();
        throw null;
    }

    @Override
    public final String getHostPrefix() {
        int i7 = onPause + 53;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            AFInAppEventParameterName().AppsFlyer2dXConversionCallback().AFInAppEventParameterName();
            throw null;
        }
        String AFInAppEventParameterName2 = AFInAppEventParameterName().AppsFlyer2dXConversionCallback().AFInAppEventParameterName();
        int i8 = onPause + 83;
        getSdkVersion = i8 % 128;
        if (i8 % 2 != 0) {
            return AFInAppEventParameterName2;
        }
        throw null;
    }

    @Override
    public final String getOutOfStore(Context context) {
        int i7 = onPause + 25;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            AppsFlyerProperties.getInstance().getString("api_store_value");
            throw null;
        }
        String string = AppsFlyerProperties.getInstance().getString("api_store_value");
        if (string == null) {
            String AFInAppEventType2 = AFInAppEventType(context, "AF_STORE");
            if (AFInAppEventType2 != null) {
                return AFInAppEventType2;
            }
            AFLogger.afInfoLog("No out-of-store value set");
            return null;
        }
        int i8 = getSdkVersion + 43;
        int i9 = i8 % 128;
        onPause = i9;
        if (i8 % 2 != 0) {
            throw null;
        }
        int i10 = i9 + 61;
        getSdkVersion = i10 % 128;
        int i11 = i10 % 2;
        return string;
    }

    @Override
    public final String getSdkVersion() {
        AFc1xSDK AFInAppEventParameterName2;
        int i7 = getSdkVersion + 45;
        onPause = i7 % 128;
        if (i7 % 2 != 0) {
            AFInAppEventParameterName2 = AFInAppEventParameterName();
            AFInAppEventParameterName2.AFLogger$LogLevel().AFKeystoreWrapper("getSdkVersion", new String[1]);
        } else {
            AFInAppEventParameterName2 = AFInAppEventParameterName();
            AFInAppEventParameterName2.AFLogger$LogLevel().AFKeystoreWrapper("getSdkVersion", new String[0]);
        }
        AFInAppEventParameterName2.values();
        return AFb1fSDK.valueOf();
    }

    @Override
    public final AppsFlyerLib init(String str, AppsFlyerConversionListener appsFlyerConversionListener, Context context) {
        String str2;
        if (this.onAttributionFailureNative) {
            return this;
        }
        this.onAttributionFailureNative = true;
        this.onResponseError.AFVersionDeclaration().AFInAppEventType = str;
        AFc1sSDK.values(str);
        if (context != null) {
            this.onDeepLinking = (Application) context.getApplicationContext();
            AFb1bSDK aFb1bSDK = this.onResponseError;
            int i7 = getSdkVersion + 103;
            onPause = i7 % 128;
            int i8 = i7 % 2;
            aFb1bSDK.valueOf.values = context.getApplicationContext();
            AFInAppEventParameterName().afRDLog().AFInAppEventType = System.currentTimeMillis();
            AFInAppEventParameterName().onInstallConversionDataLoadedNative().valueOf();
            AFInAppEventParameterName().afInfoLog().AFInAppEventType(new AFd1dSDK() {
                @Override
                public final void onRemoteConfigUpdateFinished(AFd1aSDK aFd1aSDK) {
                    AFb1zSDK.this.AFInAppEventType(aFd1aSDK);
                }
            });
            AFf1sSDK level = AFInAppEventParameterName().getLevel();
            final AFf1ySDK aFf1ySDK = new AFf1ySDK(new AnonymousClass1());
            Runnable runnable = new Runnable() {
                @Override
                public final void run() {
                    SharedPreferences AFInAppEventType2 = AFb1zSDK.AFInAppEventType(AFb1zSDK.values(AFb1zSDK.this));
                    int AFInAppEventParameterName2 = AFb1zSDK.AFInAppEventParameterName(AFInAppEventType2, false);
                    boolean z6 = AFInAppEventType2.getBoolean(AppsFlyerProperties.NEW_REFERRER_SENT, false);
                    boolean z7 = aFf1ySDK.afDebugLog == AFf1uSDK.AFa1ySDK.NOT_STARTED;
                    if (AFInAppEventParameterName2 == 1) {
                        if (z7 || z6) {
                            AFb1zSDK aFb1zSDK = AFb1zSDK.this;
                            AFe1hSDK aFe1hSDK = new AFe1hSDK();
                            Application values2 = AFb1zSDK.values(AFb1zSDK.this);
                            if (values2 != null) {
                                aFe1hSDK.AFKeystoreWrapper = (Application) values2.getApplicationContext();
                            }
                            AFb1zSDK.AFInAppEventType(aFb1zSDK, aFe1hSDK);
                        }
                    }
                }
            };
            level.AFKeystoreWrapper(aFf1ySDK);
            level.AFKeystoreWrapper(new AFf1oSDK(runnable));
            level.AFKeystoreWrapper(new AFf1tSDK(runnable, AFInAppEventParameterName()));
            level.AFKeystoreWrapper(new AFf1qSDK(runnable, AFInAppEventParameterName()));
            Application application = this.onDeepLinking;
            AFc1xSDK AFInAppEventParameterName2 = AFInAppEventParameterName();
            List<ResolveInfo> queryIntentContentProviders = application.getPackageManager().queryIntentContentProviders(new Intent("com.appsflyer.referrer.INSTALL_PROVIDER"), 0);
            if (queryIntentContentProviders == null || queryIntentContentProviders.isEmpty()) {
                int i9 = onPause + 69;
                getSdkVersion = i9 % 128;
                int i10 = i9 % 2;
            } else {
                ArrayList arrayList = new ArrayList();
                Iterator<ResolveInfo> it = queryIntentContentProviders.iterator();
                while (it.hasNext()) {
                    ProviderInfo providerInfo = it.next().providerInfo;
                    if (providerInfo != null) {
                        arrayList.add(new AFf1rSDK(providerInfo, runnable, AFInAppEventParameterName2));
                    } else {
                        AFLogger.afWarnLog("[Preinstall]: com.appsflyer.referrer.INSTALL_PROVIDER Action is set for non ContentProvider component");
                    }
                }
                if (!arrayList.isEmpty()) {
                    level.values.addAll(arrayList);
                    StringBuilder sb = new StringBuilder("[Preinstall]: Detected ");
                    sb.append(arrayList.size());
                    sb.append(" valid preinstall provider(s)");
                    AFLogger.afDebugLog(sb.toString());
                }
            }
            for (AFf1uSDK aFf1uSDK : level.values()) {
                aFf1uSDK.AFInAppEventType(this.onDeepLinking);
            }
            this.onResponseError.AFVersionDeclaration().valueOf();
            AFb1iSDK.AFKeystoreWrapper = this.onDeepLinking;
        } else {
            AFLogger.afWarnLog("context is null, Google Install Referrer will be not initialized");
        }
        AFb1uSDK AFInAppEventType2 = AFb1uSDK.AFInAppEventType();
        String[] strArr = new String[2];
        strArr[0] = str;
        if (appsFlyerConversionListener == null) {
            int i11 = onPause + 93;
            getSdkVersion = i11 % 128;
            int i12 = i11 % 2;
            str2 = "null";
        } else {
            str2 = "conversionDataListener";
        }
        strArr[1] = str2;
        AFInAppEventType2.AFKeystoreWrapper("init", strArr);
        AFLogger.valueOf(String.format("Initializing AppsFlyer SDK: (v%s.%s)", "6.10.0", AFInAppEventType));
        valueOf = appsFlyerConversionListener;
        int i13 = onPause + 77;
        getSdkVersion = i13 % 128;
        int i14 = i13 % 2;
        return this;
    }

    @Override
    public final boolean isPreInstalledApp(Context context) {
        int i7 = getSdkVersion + 91;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        try {
        } catch (PackageManager.NameNotFoundException e7) {
            AFLogger.afErrorLog("Could not check if app is pre installed", e7);
        }
        if ((context.getPackageManager().getApplicationInfo(context.getPackageName(), 0).flags & 1) != 0) {
            return true;
        }
        int i9 = getSdkVersion + 29;
        onPause = i9 % 128;
        int i10 = i9 % 2;
        int i11 = onPause + 29;
        getSdkVersion = i11 % 128;
        if (i11 % 2 != 0) {
            return false;
        }
        throw null;
    }

    @Override
    @Deprecated
    public final boolean isStopped() {
        int i7 = getSdkVersion + 69;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        boolean AFKeystoreWrapper2 = this.onResponseError.AFVersionDeclaration().AFKeystoreWrapper();
        int i9 = onPause + 63;
        getSdkVersion = i9 % 128;
        int i10 = i9 % 2;
        return AFKeystoreWrapper2;
    }

    @Override
    public final void logEvent(Context context, String str, Map<String, Object> map) {
        int i7 = getSdkVersion + 11;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        logEvent(context, str, map, null);
        if (i8 != 0) {
            int i9 = 46 / 0;
        }
        int i10 = onPause + 71;
        getSdkVersion = i10 % 128;
        int i11 = i10 % 2;
    }

    @Override
    public final void logLocation(Context context, double d7, double d8) {
        AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("logLocation", String.valueOf(d7), String.valueOf(d8));
        HashMap hashMap = new HashMap();
        hashMap.put(AFInAppEventParameterName.LONGTITUDE, Double.toString(d8));
        hashMap.put(AFInAppEventParameterName.LATITUDE, Double.toString(d7));
        values(context, AFInAppEventType.LOCATION_COORDINATES, hashMap);
        int i7 = onPause + 85;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            int i8 = 86 / 0;
        }
    }

    @Override
    public final void logSession(Context context) {
        int i7 = onPause + 121;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("logSession", new String[0]);
        } else {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("logSession", new String[0]);
        }
        AFb1uSDK.AFInAppEventType().afRDLog();
        AFKeystoreWrapper(context, AFe1lSDK.logSession);
        values(context, null, null);
        int i8 = onPause + 87;
        getSdkVersion = i8 % 128;
        int i9 = i8 % 2;
    }

    @Override
    public final void onPause(Context context) {
        int i7 = onPause + 5;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        AFb1wSDK.AFa1xSDK aFa1xSDK = AFb1wSDK.values;
        if (aFa1xSDK != null) {
            int i9 = getSdkVersion + 5;
            onPause = i9 % 128;
            int i10 = i9 % 2;
            aFa1xSDK.values(context);
            if (i10 != 0) {
                throw null;
            }
        }
    }

    @Override
    @Deprecated
    public final void performOnAppAttribution(Context context, URI uri) {
        int i7 = onPause + 107;
        int i8 = i7 % 128;
        getSdkVersion = i8;
        int i9 = i7 % 2;
        if (uri != null) {
            int i10 = i8 + 19;
            onPause = i10 % 128;
            int i11 = i10 % 2;
            if (!uri.toString().isEmpty()) {
                if (context == null) {
                    StringBuilder sb = new StringBuilder("Context is \"");
                    sb.append(context);
                    sb.append("\"");
                    AFb1oSDK.AFInAppEventType(sb.toString(), DeepLinkResult.Error.NETWORK);
                    return;
                }
                AFa1qSDK.AFInAppEventParameterName();
                AFa1qSDK.valueOf(context, new HashMap(), Uri.parse(uri.toString()));
                int i12 = getSdkVersion + 117;
                onPause = i12 % 128;
                int i13 = i12 % 2;
                return;
            }
        }
        StringBuilder sb2 = new StringBuilder("Link is \"");
        sb2.append(uri);
        sb2.append("\"");
        AFb1oSDK.AFInAppEventType(sb2.toString(), DeepLinkResult.Error.NETWORK);
    }

    @Override
    public final void performOnDeepLinking(final android.content.Intent r4, android.content.Context r5) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.performOnDeepLinking(android.content.Intent, android.content.Context):void");
    }

    @Override
    public final void registerConversionListener(Context context, AppsFlyerConversionListener appsFlyerConversionListener) {
        int i7 = getSdkVersion + 53;
        onPause = i7 % 128;
        if (i7 % 2 != 0) {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("registerConversionListener", new String[1]);
        } else {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("registerConversionListener", new String[0]);
        }
        AFInAppEventType(appsFlyerConversionListener);
    }

    @Override
    public final void registerValidatorListener(Context context, AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener) {
        AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("registerValidatorListener", new String[0]);
        AFLogger.afDebugLog("registerValidatorListener called");
        if (appsFlyerInAppPurchaseValidatorListener != null) {
            values = appsFlyerInAppPurchaseValidatorListener;
            return;
        }
        int i7 = getSdkVersion + 7;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        AFLogger.afDebugLog("registerValidatorListener null listener");
        int i9 = onPause + 19;
        getSdkVersion = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    public final void sendAdRevenue(Context context, Map<String, Object> map) {
        int i7 = getSdkVersion + 51;
        onPause = i7 % 128;
        if (i7 % 2 != 0) {
            throw null;
        }
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            AFc1ySDK aFc1ySDK = aFb1bSDK.valueOf;
            if (context != null) {
                aFc1ySDK.values = context.getApplicationContext();
                int i8 = onPause + 65;
                getSdkVersion = i8 % 128;
                int i9 = i8 % 2;
            }
        }
        AFe1kSDK aFe1kSDK = new AFe1kSDK();
        if (context != null) {
            int i10 = getSdkVersion + 15;
            onPause = i10 % 128;
            int i11 = i10 % 2;
            aFe1kSDK.AFKeystoreWrapper = (Application) context.getApplicationContext();
        }
        int AFInAppEventParameterName2 = AFInAppEventParameterName(AFInAppEventType(context));
        aFe1kSDK.AFInAppEventType().put("ad_network", map);
        aFe1kSDK.AFInAppEventType().put("adrevenue_counter", Integer.valueOf(AFInAppEventParameterName2));
        values(aFe1kSDK, context instanceof Activity ? (Activity) context : null);
    }

    @Override
    public final void sendInAppPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
        int i7 = getSdkVersion + 3;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        AFb1bSDK aFb1bSDK = this.onResponseError;
        Context applicationContext = context.getApplicationContext();
        if (applicationContext != null) {
            int i9 = onPause;
            int i10 = i9 + 85;
            getSdkVersion = i10 % 128;
            int i11 = i10 % 2;
            AFc1ySDK aFc1ySDK = aFb1bSDK.valueOf;
            if (i11 == 0) {
                int i12 = 35 / 0;
            }
            int i13 = i9 + 43;
            getSdkVersion = i13 % 128;
            int i14 = i13 % 2;
            aFc1ySDK.values = applicationContext.getApplicationContext();
            if (i14 == 0) {
                throw null;
            }
        }
        PurchaseHandler AFLogger2 = AFInAppEventParameterName().AFLogger();
        if (AFLogger2.valueOf(map, purchaseValidationCallback, "purchases")) {
            AFd1jSDK aFd1jSDK = new AFd1jSDK(map, purchaseValidationCallback, AFLogger2.AFInAppEventType);
            AFd1xSDK aFd1xSDK = AFLogger2.values;
            aFd1xSDK.AFKeystoreWrapper.execute(aFd1xSDK.new AnonymousClass2(aFd1jSDK));
        }
    }

    @Override
    public final void sendPurchaseData(android.content.Context r4, java.util.Map<java.lang.String, java.lang.Object> r5, com.appsflyer.PurchaseHandler.PurchaseValidationCallback r6) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.sendPurchaseData(android.content.Context, java.util.Map, com.appsflyer.PurchaseHandler$PurchaseValidationCallback):void");
    }

    @Override
    public final void sendPushNotificationData(android.app.Activity r17) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.sendPushNotificationData(android.app.Activity):void");
    }

    @Override
    public final void setAdditionalData(Map<String, Object> map) {
        int i7 = getSdkVersion + 103;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        if (map != null) {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setAdditionalData", map.toString());
            AppsFlyerProperties.getInstance().setCustomData(new JSONObject(map).toString());
        }
        int i9 = getSdkVersion + 31;
        onPause = i9 % 128;
        if (i9 % 2 != 0) {
            int i10 = 76 / 0;
        }
    }

    @Override
    public final void setAndroidIdData(String str) {
        int i7 = onPause + 23;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setAndroidIdData", str);
        } else {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setAndroidIdData", str);
        }
        this.afDebugLog = str;
        int i8 = onPause + 105;
        getSdkVersion = i8 % 128;
        int i9 = i8 % 2;
    }

    @Override
    public final void setAppId(String str) {
        int i7 = onPause + 93;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            AFb1uSDK AFInAppEventType2 = AFb1uSDK.AFInAppEventType();
            String[] strArr = new String[0];
            strArr[0] = str;
            AFInAppEventType2.AFKeystoreWrapper("setAppId", strArr);
        } else {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setAppId", str);
        }
        AFKeystoreWrapper(AppsFlyerProperties.APP_ID, str);
    }

    @Override
    public final void setAppInviteOneLink(java.lang.String r7) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.setAppInviteOneLink(java.lang.String):void");
    }

    @Override
    public final void setCollectAndroidID(boolean z6) {
        int i7 = getSdkVersion + 17;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setCollectAndroidID", String.valueOf(z6));
        AFKeystoreWrapper(AppsFlyerProperties.COLLECT_ANDROID_ID, Boolean.toString(z6));
        AFKeystoreWrapper(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, Boolean.toString(z6));
        int i9 = getSdkVersion + 49;
        onPause = i9 % 128;
        if (i9 % 2 != 0) {
            throw null;
        }
    }

    @Override
    public final void setCollectIMEI(boolean z6) {
        int i7 = getSdkVersion + 33;
        onPause = i7 % 128;
        if (i7 % 2 != 0) {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setCollectIMEI", String.valueOf(z6));
        } else {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setCollectIMEI", String.valueOf(z6));
        }
        AFKeystoreWrapper(AppsFlyerProperties.COLLECT_IMEI, Boolean.toString(z6));
        AFKeystoreWrapper(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, Boolean.toString(z6));
    }

    @Override
    @Deprecated
    public final void setCollectOaid(boolean z6) {
        int i7 = getSdkVersion + 77;
        onPause = i7 % 128;
        if (i7 % 2 != 0) {
            AFb1uSDK AFInAppEventType2 = AFb1uSDK.AFInAppEventType();
            String[] strArr = new String[1];
            strArr[1] = String.valueOf(z6);
            AFInAppEventType2.AFKeystoreWrapper("setCollectOaid", strArr);
        } else {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setCollectOaid", String.valueOf(z6));
        }
        AFKeystoreWrapper(AppsFlyerProperties.COLLECT_OAID, Boolean.toString(z6));
        int i8 = onPause + 125;
        getSdkVersion = i8 % 128;
        if (i8 % 2 == 0) {
            int i9 = 26 / 0;
        }
    }

    @Override
    public final void setCurrencyCode(String str) {
        int i7 = getSdkVersion + 13;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setCurrencyCode", str);
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.CURRENCY_CODE, str);
        int i9 = getSdkVersion + 31;
        onPause = i9 % 128;
        if (i9 % 2 != 0) {
            int i10 = 91 / 0;
        }
    }

    @Override
    public final void setCustomerIdAndLogSession(String str, Context context) {
        if (context != null) {
            int i7 = onPause + 73;
            getSdkVersion = i7 % 128;
            if (i7 % 2 == 0) {
                values();
                throw null;
            }
            boolean values2 = values();
            setCustomerUserId(str);
            if (!values2) {
                AFLogger.afInfoLog("waitForCustomerUserId is false; setting CustomerUserID: ".concat(String.valueOf(str)), true);
                return;
            }
            StringBuilder sb = new StringBuilder("CustomerUserId set: ");
            sb.append(str);
            sb.append(" - Initializing AppsFlyer Tacking");
            AFLogger.afInfoLog(sb.toString(), true);
            String referrer = AppsFlyerProperties.getInstance().getReferrer(context);
            AFKeystoreWrapper(context, AFe1lSDK.setCustomerIdAndLogSession);
            String str2 = this.onResponseError.AFVersionDeclaration().AFInAppEventType;
            if (referrer == null) {
                referrer = HttpUrl.FRAGMENT_ENCODE_SET;
            } else {
                int i8 = onPause + 53;
                getSdkVersion = i8 % 128;
                int i9 = i8 % 2;
            }
            String str3 = referrer;
            if (context instanceof Activity) {
                int i10 = onPause + 73;
                getSdkVersion = i10 % 128;
                int i11 = i10 % 2;
                ((Activity) context).getIntent();
            }
            AFKeystoreWrapper(context, null, null, str3, null);
        }
    }

    @Override
    public final void setCustomerUserId(String str) {
        int i7 = onPause + 7;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setCustomerUserId", str);
        AFLogger.afInfoLog("setCustomerUserId = ".concat(String.valueOf(str)));
        AFKeystoreWrapper(AppsFlyerProperties.APP_USER_ID, str);
        AFKeystoreWrapper(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false);
        int i9 = onPause + 123;
        getSdkVersion = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    public final void setDebugLog(boolean z6) {
        AFLogger.LogLevel logLevel;
        int i7 = onPause + 103;
        int i8 = i7 % 128;
        getSdkVersion = i8;
        int i9 = i7 % 2;
        if (z6) {
            int i10 = i8 + 79;
            onPause = i10 % 128;
            int i11 = i10 % 2;
            logLevel = AFLogger.LogLevel.DEBUG;
            if (i11 != 0) {
                int i12 = 7 / 0;
            }
        } else {
            logLevel = AFLogger.LogLevel.NONE;
            int i13 = onPause + 31;
            getSdkVersion = i13 % 128;
            int i14 = i13 % 2;
        }
        setLogLevel(logLevel);
    }

    @Override
    public final void setDisableAdvertisingIdentifiers(boolean z6) {
        boolean z7;
        int i7 = getSdkVersion + 27;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z6)));
        if (z6) {
            z7 = false;
        } else {
            int i9 = getSdkVersion + 125;
            onPause = i9 % 128;
            int i10 = i9 % 2;
            z7 = true;
        }
        AFa1bSDK.AFInAppEventParameterName = Boolean.valueOf(z7);
        AppsFlyerProperties.getInstance().remove("advertiserIdEnabled");
        AppsFlyerProperties.getInstance().remove("advertiserId");
    }

    @Override
    public final void setDisableNetworkData(boolean z6) {
        int i7 = onPause + 35;
        getSdkVersion = i7 % 128;
        if (i7 % 2 != 0) {
            AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z6)));
            AFKeystoreWrapper(AppsFlyerProperties.DISABLE_NETWORK_DATA, z6);
        } else {
            AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z6)));
            AFKeystoreWrapper(AppsFlyerProperties.DISABLE_NETWORK_DATA, z6);
            int i8 = 62 / 0;
        }
    }

    @Override
    public final void setExtension(String str) {
        int i7 = onPause + 21;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setExtension", str);
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EXTENSION, str);
        int i9 = onPause + 15;
        getSdkVersion = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    public final void setHost(java.lang.String r4, java.lang.String r5) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.setHost(java.lang.String, java.lang.String):void");
    }

    @Override
    public final void setImeiData(String str) {
        int i7 = getSdkVersion + 1;
        onPause = i7 % 128;
        if (i7 % 2 != 0) {
            AFb1uSDK AFInAppEventType2 = AFb1uSDK.AFInAppEventType();
            String[] strArr = new String[1];
            strArr[1] = str;
            AFInAppEventType2.AFKeystoreWrapper("setImeiData", strArr);
        } else {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setImeiData", str);
        }
        this.onResponseError.AFVersionDeclaration().valueOf = str;
    }

    @Override
    public final void setIsUpdate(boolean z6) {
        int i7 = getSdkVersion + 59;
        onPause = i7 % 128;
        if (i7 % 2 != 0) {
            AFb1uSDK AFInAppEventType2 = AFb1uSDK.AFInAppEventType();
            String[] strArr = new String[1];
            strArr[1] = String.valueOf(z6);
            AFInAppEventType2.AFKeystoreWrapper("setIsUpdate", strArr);
        } else {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setIsUpdate", String.valueOf(z6));
        }
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.IS_UPDATE, z6);
        int i8 = getSdkVersion + 41;
        onPause = i8 % 128;
        if (i8 % 2 != 0) {
            int i9 = 26 / 0;
        }
    }

    @Override
    public final void setLogLevel(AFLogger.LogLevel logLevel) {
        boolean z6;
        if (logLevel.getLevel() > AFLogger.LogLevel.NONE.getLevel()) {
            int i7 = getSdkVersion + 107;
            onPause = i7 % 128;
            int i8 = i7 % 2;
            z6 = true;
        } else {
            int i9 = getSdkVersion + 71;
            onPause = i9 % 128;
            int i10 = i9 % 2;
            z6 = false;
        }
        this.onResponseError.AFLogger$LogLevel().AFKeystoreWrapper("log", String.valueOf(z6));
        AppsFlyerProperties.getInstance().set("logLevel", logLevel.getLevel());
    }

    @Override
    public final void setMinTimeBetweenSessions(int i7) {
        int i8 = getSdkVersion + 23;
        onPause = i8 % 128;
        int i9 = i8 % 2;
        this.onInstallConversionDataLoadedNative = TimeUnit.SECONDS.toMillis(i7);
        int i10 = onPause + 9;
        getSdkVersion = i10 % 128;
        if (i10 % 2 == 0) {
            throw null;
        }
    }

    @Override
    public final void setOaidData(String str) {
        int i7 = getSdkVersion + 47;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setOaidData", str);
        AFa1bSDK.valueOf = str;
        int i9 = getSdkVersion + 25;
        onPause = i9 % 128;
        if (i9 % 2 != 0) {
            throw null;
        }
    }

    @Override
    public final void setOneLinkCustomDomain(String... strArr) {
        int i7 = getSdkVersion + 87;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        AFLogger.afDebugLog(String.format("setOneLinkCustomDomain %s", Arrays.toString(strArr)));
        AFa1qSDK.AFKeystoreWrapper = strArr;
        int i9 = getSdkVersion + 19;
        onPause = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    public final void setOutOfStore(String str) {
        int i7 = onPause;
        int i8 = i7 + 115;
        getSdkVersion = i8 % 128;
        int i9 = i8 % 2;
        if (str == null) {
            AFLogger.values("Cannot set setOutOfStore with null");
            int i10 = onPause + 19;
            getSdkVersion = i10 % 128;
            int i11 = i10 % 2;
            return;
        }
        int i12 = i7 + 85;
        getSdkVersion = i12 % 128;
        int i13 = i12 % 2;
        String lowerCase = str.toLowerCase();
        AppsFlyerProperties.getInstance().set("api_store_value", lowerCase);
        AFLogger.afInfoLog("Store API set with value: ".concat(String.valueOf(lowerCase)), true);
        int i14 = onPause + 29;
        getSdkVersion = i14 % 128;
        int i15 = i14 % 2;
    }

    @Override
    public final void setPartnerData(String str, Map<String, Object> map) {
        String concat;
        int i7 = getSdkVersion + 77;
        onPause = i7 % 128;
        if (i7 % 2 != 0) {
            throw null;
        }
        if (this.AppsFlyerInAppPurchaseValidatorListener == null) {
            this.AppsFlyerInAppPurchaseValidatorListener = new AFb1cSDK();
            int i8 = getSdkVersion + 119;
            onPause = i8 % 128;
            int i9 = i8 % 2;
        }
        AFb1cSDK aFb1cSDK = this.AppsFlyerInAppPurchaseValidatorListener;
        if (str != null) {
            int i10 = getSdkVersion + 87;
            onPause = i10 % 128;
            int i11 = i10 % 2;
            if (!str.isEmpty()) {
                if (map != null) {
                    int i12 = getSdkVersion + 43;
                    onPause = i12 % 128;
                    if (i12 % 2 != 0) {
                        map.isEmpty();
                        throw null;
                    }
                    if (!map.isEmpty()) {
                        StringBuilder sb = new StringBuilder("Setting partner data for ");
                        sb.append(str);
                        sb.append(": ");
                        sb.append(map);
                        AFLogger.afDebugLog(sb.toString());
                        int length = new JSONObject(map).toString().length();
                        if (length <= 1000) {
                            aFb1cSDK.values.put(str, map);
                            aFb1cSDK.AFInAppEventParameterName.remove(str);
                            return;
                        } else {
                            AFLogger.afWarnLog("Partner data 1000 characters limit exceeded");
                            HashMap hashMap = new HashMap();
                            hashMap.put("error", "limit exceeded: ".concat(String.valueOf(length)));
                            aFb1cSDK.AFInAppEventParameterName.put(str, hashMap);
                            return;
                        }
                    }
                }
                if (aFb1cSDK.values.remove(str) == null) {
                    int i13 = getSdkVersion + 19;
                    onPause = i13 % 128;
                    int i14 = i13 % 2;
                    concat = "Partner data is missing or `null`";
                } else {
                    concat = "Cleared partner data for ".concat(str);
                }
                AFLogger.afWarnLog(concat);
                return;
            }
        }
        AFLogger.afWarnLog("Partner ID is missing or `null`");
    }

    @Override
    public final void setPhoneNumber(String str) {
        int i7 = onPause + 29;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        this.onResponse = AFa1aSDK.values(str);
        int i9 = getSdkVersion + 83;
        onPause = i9 % 128;
        if (i9 % 2 != 0) {
            throw null;
        }
    }

    @Override
    public final void setPreinstallAttribution(String str, String str2, String str3) {
        AFLogger.afDebugLog("setPreinstallAttribution API called");
        JSONObject jSONObject = new JSONObject();
        if (str != null) {
            try {
                jSONObject.put("pid", str);
            } catch (JSONException e7) {
                AFLogger.afErrorLog(e7.getMessage(), e7);
            }
        }
        if (str2 != null) {
            int i7 = onPause + 63;
            getSdkVersion = i7 % 128;
            if (i7 % 2 == 0) {
                jSONObject.put("c", str2);
                int i8 = 70 / 0;
            } else {
                jSONObject.put("c", str2);
            }
        }
        if (str3 != null) {
            jSONObject.put("af_siteid", str3);
        }
        if (!jSONObject.has("pid")) {
            AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
            return;
        }
        int i9 = getSdkVersion + 47;
        onPause = i9 % 128;
        int i10 = i9 % 2;
        AFKeystoreWrapper("preInstallName", jSONObject.toString());
        int i11 = getSdkVersion + 35;
        onPause = i11 % 128;
        int i12 = i11 % 2;
    }

    @Override
    public final void setResolveDeepLinkURLs(String... strArr) {
        int i7 = getSdkVersion + 111;
        onPause = i7 % 128;
        AFLogger.afDebugLog(i7 % 2 != 0 ? String.format("setResolveDeepLinkURLs %s", Arrays.toString(strArr)) : String.format("setResolveDeepLinkURLs %s", Arrays.toString(strArr)));
        List<String> list = AFa1qSDK.AFInAppEventParameterName;
        list.clear();
        list.addAll(Arrays.asList(strArr));
    }

    @Override
    @Deprecated
    public final void setSharingFilter(String... strArr) {
        int i7 = getSdkVersion + 73;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        setSharingFilterForPartners(strArr);
        int i9 = getSdkVersion + 11;
        onPause = i9 % 128;
        if (i9 % 2 != 0) {
            throw null;
        }
    }

    @Override
    @Deprecated
    public final void setSharingFilterForAllPartners() {
        int i7 = getSdkVersion + 125;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        setSharingFilterForPartners("all");
        int i9 = getSdkVersion + 79;
        onPause = i9 % 128;
        if (i9 % 2 != 0) {
            throw null;
        }
    }

    @Override
    public final void setSharingFilterForPartners(String... strArr) {
        this.afRDLog = new AFa1fSDK(strArr);
        int i7 = onPause + 121;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            throw null;
        }
    }

    @Override
    public final void setUserEmails(com.appsflyer.AppsFlyerProperties.EmailsCryptType r10, java.lang.String... r11) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.setUserEmails(com.appsflyer.AppsFlyerProperties$EmailsCryptType, java.lang.String[]):void");
    }

    @Override
    public final void start(Context context) {
        int i7 = onPause + 39;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        start(context, null);
        int i9 = getSdkVersion + 123;
        onPause = i9 % 128;
        if (i9 % 2 != 0) {
            throw null;
        }
    }

    @Override
    public final void stop(boolean z6, Context context) {
        int i7 = onPause;
        int i8 = i7 + 81;
        getSdkVersion = i8 % 128;
        if (i8 % 2 == 0) {
            throw null;
        }
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            AFc1ySDK aFc1ySDK = aFb1bSDK.valueOf;
            if (context != null) {
                int i9 = i7 + 87;
                getSdkVersion = i9 % 128;
                int i10 = i9 % 2;
                aFc1ySDK.values = context.getApplicationContext();
            }
        }
        this.onResponseError.AFVersionDeclaration().AFInAppEventParameterName = z6;
        try {
            File file = new File(this.onResponseError.afWarnLog().AFInAppEventType.values.getFilesDir(), "AFRequestCache");
            if (file.exists()) {
                File[] listFiles = file.listFiles();
                if (listFiles != null) {
                    int length = listFiles.length;
                    int i11 = onPause + 115;
                    getSdkVersion = i11 % 128;
                    int i12 = i11 % 2;
                    int i13 = 0;
                    while (i13 < length) {
                        File file2 = listFiles[i13];
                        StringBuilder sb = new StringBuilder("CACHE: Found cached request");
                        sb.append(file2.getName());
                        AFLogger.afInfoLog(sb.toString());
                        StringBuilder sb2 = new StringBuilder("CACHE: Deleting ");
                        sb2.append(file2.getName());
                        sb2.append(" from cache");
                        AFLogger.afInfoLog(sb2.toString());
                        file2.delete();
                        i13++;
                        int i14 = getSdkVersion + 33;
                        onPause = i14 % 128;
                        int i15 = i14 % 2;
                    }
                }
            } else {
                file.mkdir();
            }
        } catch (Exception e7) {
            AFLogger.afErrorLog("CACHE: Could not cache request", e7);
        }
        if (z6) {
            AFInAppEventParameterName(context).valueOf("is_stop_tracking_used", true);
        }
    }

    @Override
    public final void subscribeForDeepLink(DeepLinkListener deepLinkListener) {
        int i7 = onPause + 71;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
        int i9 = onPause + 95;
        getSdkVersion = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    public final void unregisterConversionListener() {
        int i7 = getSdkVersion + 79;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("unregisterConversionListener", new String[0]);
        valueOf = null;
        int i9 = onPause + 121;
        getSdkVersion = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    public final void updateServerUninstallToken(Context context, String str) {
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            aFb1bSDK.valueOf.values = context.getApplicationContext();
        }
        AFe1pSDK aFe1pSDK = new AFe1pSDK(context);
        if (str == null || str.trim().isEmpty()) {
            AFLogger.afWarnLog("[register] Firebase Token is either empty or null and was not registered.");
            return;
        }
        AFLogger.afInfoLog("[register] Firebase Refreshed Token = ".concat(str));
        AFb1sSDK valueOf2 = aFe1pSDK.valueOf();
        if (valueOf2 == null || !str.equals(valueOf2.AFInAppEventParameterName)) {
            long currentTimeMillis = System.currentTimeMillis();
            boolean z6 = valueOf2 == null || currentTimeMillis - valueOf2.values > TimeUnit.SECONDS.toMillis(2L);
            AFb1sSDK aFb1sSDK = new AFb1sSDK(str, currentTimeMillis, !z6);
            aFe1pSDK.AFInAppEventType.AFInAppEventParameterName("afUninstallToken", aFb1sSDK.AFInAppEventParameterName);
            aFe1pSDK.AFInAppEventType.AFInAppEventType("afUninstallToken_received_time", aFb1sSDK.values);
            aFe1pSDK.AFInAppEventType.valueOf("afUninstallToken_queued", aFb1sSDK.AFInAppEventType());
            if (z6) {
                AFe1pSDK.valueOf(str);
            }
        }
    }

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

    @Override
    public final void waitForCustomerUserId(boolean z6) {
        String concat;
        boolean z7;
        int i7 = getSdkVersion + 69;
        onPause = i7 % 128;
        if (i7 % 2 != 0) {
            concat = "initAfterCustomerUserID: ".concat(String.valueOf(z6));
            z7 = false;
        } else {
            concat = "initAfterCustomerUserID: ".concat(String.valueOf(z6));
            z7 = true;
        }
        AFLogger.afInfoLog(concat, z7);
        AFKeystoreWrapper(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, z6);
        int i8 = getSdkVersion + 85;
        onPause = i8 % 128;
        int i9 = i8 % 2;
    }

    private static int AFInAppEventParameterName(android.content.SharedPreferences r3, java.lang.String r4, boolean r5) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.AFInAppEventParameterName(android.content.SharedPreferences, java.lang.String, boolean):int");
    }

    public static long AFInAppEventType(AFb1zSDK aFb1zSDK, long j7) {
        int i7 = onPause;
        int i8 = i7 + 35;
        getSdkVersion = i8 % 128;
        int i9 = i8 % 2;
        aFb1zSDK.init = j7;
        if (i9 == 0) {
            int i10 = 20 / 0;
        }
        int i11 = i7 + 49;
        getSdkVersion = i11 % 128;
        if (i11 % 2 != 0) {
            return j7;
        }
        throw null;
    }

    public static String AFKeystoreWrapper(AFb1gSDK aFb1gSDK, String str) {
        int i7 = onPause + 43;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        String valueOf2 = aFb1gSDK.valueOf("CACHED_CHANNEL", (String) null);
        if (valueOf2 != null) {
            int i9 = getSdkVersion + 69;
            onPause = i9 % 128;
            int i10 = i9 % 2;
            return valueOf2;
        }
        aFb1gSDK.AFInAppEventParameterName("CACHED_CHANNEL", str);
        int i11 = onPause + 105;
        getSdkVersion = i11 % 128;
        if (i11 % 2 != 0) {
            return str;
        }
        throw null;
    }

    private void AFLogger(Context context) {
        String str;
        this.onAttributionFailure = new HashMap();
        final long currentTimeMillis = System.currentTimeMillis();
        final AFa1rSDK.AFa1vSDK aFa1vSDK = new AFa1rSDK.AFa1vSDK() {
            @Override
            public final void AFKeystoreWrapper(String str2) {
                AFb1zSDK.AFInAppEventParameterName(AFb1zSDK.this).put("error", str2);
            }

            @Override
            public final void values(String str2, String str3, String str4) {
                if (str2 != null) {
                    AFLogger.afInfoLog("Facebook Deferred AppLink data received: ".concat(str2));
                    AFb1zSDK.AFInAppEventParameterName(AFb1zSDK.this).put("link", str2);
                    if (str3 != null) {
                        AFb1zSDK.AFInAppEventParameterName(AFb1zSDK.this).put("target_url", str3);
                    }
                    if (str4 != null) {
                        HashMap hashMap = new HashMap();
                        HashMap hashMap2 = new HashMap();
                        hashMap2.put("promo_code", str4);
                        hashMap.put("deeplink_context", hashMap2);
                        AFb1zSDK.AFInAppEventParameterName(AFb1zSDK.this).put("extras", hashMap);
                    }
                } else {
                    AFb1zSDK.AFInAppEventParameterName(AFb1zSDK.this).put("link", HttpUrl.FRAGMENT_ENCODE_SET);
                }
                AFb1zSDK.AFInAppEventParameterName(AFb1zSDK.this).put("ttr", String.valueOf(System.currentTimeMillis() - currentTimeMillis));
            }
        };
        try {
            Class.forName("com.facebook.FacebookSdk").getMethod("sdkInitialize", Context.class).invoke(null, context);
            final Class<?> cls = Class.forName("com.facebook.applinks.AppLinkData");
            Class<?> cls2 = Class.forName("com.facebook.applinks.AppLinkData$CompletionHandler");
            Method method = cls.getMethod("fetchDeferredAppLinkData", Context.class, String.class, cls2);
            Object newProxyInstance = Proxy.newProxyInstance(cls2.getClassLoader(), new Class[]{cls2}, new InvocationHandler() {
                @Override
                public final Object invoke(Object obj, Method method2, Object[] objArr) throws Throwable {
                    String str2;
                    String str3;
                    String str4;
                    Bundle bundle;
                    if (!method2.getName().equals("onDeferredAppLinkDataFetched")) {
                        AFa1vSDK aFa1vSDK2 = aFa1vSDK;
                        if (aFa1vSDK2 != null) {
                            aFa1vSDK2.AFKeystoreWrapper("onDeferredAppLinkDataFetched invocation failed");
                        }
                        return null;
                    }
                    Object obj2 = objArr[0];
                    if (obj2 != null) {
                        Bundle bundle2 = (Bundle) Bundle.class.cast(cls.getMethod("getArgumentBundle", new Class[0]).invoke(cls.cast(obj2), new Object[0]));
                        if (bundle2 != null) {
                            str3 = bundle2.getString("com.facebook.platform.APPLINK_NATIVE_URL");
                            str4 = bundle2.getString("target_url");
                            Bundle bundle3 = bundle2.getBundle("extras");
                            str2 = (bundle3 == null || (bundle = bundle3.getBundle("deeplink_context")) == null) ? null : bundle.getString("promo_code");
                        } else {
                            str2 = null;
                            str3 = null;
                            str4 = null;
                        }
                        AFa1vSDK aFa1vSDK3 = aFa1vSDK;
                        if (aFa1vSDK3 != null) {
                            aFa1vSDK3.values(str3, str4, str2);
                        }
                    } else {
                        AFa1vSDK aFa1vSDK4 = aFa1vSDK;
                        if (aFa1vSDK4 != null) {
                            aFa1vSDK4.values(null, null, null);
                        }
                    }
                    return null;
                }
            });
            String string = context.getString(context.getResources().getIdentifier("facebook_app_id", "string", context.getPackageName()));
            if (!TextUtils.isEmpty(string)) {
                method.invoke(null, context, string, newProxyInstance);
                int i7 = getSdkVersion + 55;
                onPause = i7 % 128;
                int i8 = i7 % 2;
                return;
            }
            int i9 = onPause + 89;
            getSdkVersion = i9 % 128;
            if (i9 % 2 != 0) {
                aFa1vSDK.AFKeystoreWrapper("Facebook app id not defined in resources");
            } else {
                aFa1vSDK.AFKeystoreWrapper("Facebook app id not defined in resources");
                int i10 = 67 / 0;
            }
        } catch (ClassNotFoundException e7) {
            e = e7;
            str = "FB class missing error";
            AFLogger.afErrorLogForExcManagerOnly(str, e);
            aFa1vSDK.AFKeystoreWrapper(e.toString());
        } catch (IllegalAccessException e8) {
            e = e8;
            str = "FB illegal access";
            AFLogger.afErrorLogForExcManagerOnly(str, e);
            aFa1vSDK.AFKeystoreWrapper(e.toString());
        } catch (NoSuchMethodException e9) {
            e = e9;
            str = "FB method missing error";
            AFLogger.afErrorLogForExcManagerOnly(str, e);
            aFa1vSDK.AFKeystoreWrapper(e.toString());
        } catch (InvocationTargetException e10) {
            e = e10;
            str = "FB invocation error";
            AFLogger.afErrorLogForExcManagerOnly(str, e);
            aFa1vSDK.AFKeystoreWrapper(e.toString());
        }
    }

    private static void afDebugLog(Context context) {
        int i7;
        if (AFa1dSDK.values()) {
            AFLogger.afRDLog("OPPO device found");
            i7 = 23;
        } else {
            i7 = 18;
        }
        int i8 = Build.VERSION.SDK_INT;
        if (i8 < i7 || AFInAppEventParameterName(AppsFlyerProperties.DISABLE_KEYSTORE, true)) {
            StringBuilder sb = new StringBuilder("OS SDK is=");
            sb.append(i8);
            sb.append("; no KeyStore usage");
            AFLogger.afRDLog(sb.toString());
            return;
        }
        StringBuilder sb2 = new StringBuilder("OS SDK is=");
        sb2.append(i8);
        sb2.append("; use KeyStore");
        AFLogger.afRDLog(sb2.toString());
        AFKeystoreWrapper aFKeystoreWrapper = new AFKeystoreWrapper(context);
        if (aFKeystoreWrapper.AFKeystoreWrapper()) {
            String AFInAppEventParameterName2 = aFKeystoreWrapper.AFInAppEventParameterName();
            synchronized (aFKeystoreWrapper.valueOf) {
                aFKeystoreWrapper.AFKeystoreWrapper++;
                AFLogger.afInfoLog("Deleting key with alias: ".concat(String.valueOf(AFInAppEventParameterName2)));
                try {
                    synchronized (aFKeystoreWrapper.valueOf) {
                        aFKeystoreWrapper.AFInAppEventType.deleteEntry(AFInAppEventParameterName2);
                    }
                } catch (KeyStoreException e7) {
                    StringBuilder sb3 = new StringBuilder("Exception ");
                    sb3.append(e7.getMessage());
                    sb3.append(" occurred");
                    AFLogger.afErrorLog(sb3.toString(), e7);
                }
            }
        } else {
            aFKeystoreWrapper.AFInAppEventParameterName = AFb1xSDK.AFInAppEventParameterName(new WeakReference(context));
            aFKeystoreWrapper.AFKeystoreWrapper = 0;
        }
        aFKeystoreWrapper.AFKeystoreWrapper(aFKeystoreWrapper.AFInAppEventParameterName());
        AFKeystoreWrapper("KSAppsFlyerId", aFKeystoreWrapper.valueOf());
        AFKeystoreWrapper("KSAppsFlyerRICounter", String.valueOf(aFKeystoreWrapper.AFInAppEventType()));
    }

    private boolean afErrorLog() {
        int i7 = onPause + 119;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            throw null;
        }
        Map<String, Object> map = this.onAttributionFailure;
        if (map != null && !map.isEmpty()) {
            int i8 = getSdkVersion + 83;
            onPause = i8 % 128;
            int i9 = i8 % 2;
            return true;
        }
        int i10 = onPause + 9;
        getSdkVersion = i10 % 128;
        if (i10 % 2 != 0) {
            return false;
        }
        throw null;
    }

    private static boolean afInfoLog(android.content.Context r4) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.afInfoLog(android.content.Context):boolean");
    }

    private AFf1uSDK[] afRDLog() {
        int i7 = onPause + 1;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            AFInAppEventParameterName().getLevel().values();
            throw null;
        }
        AFf1uSDK[] values2 = AFInAppEventParameterName().getLevel().values();
        int i8 = onPause + 29;
        getSdkVersion = i8 % 128;
        if (i8 % 2 != 0) {
            return values2;
        }
        throw null;
    }

    private AFd1hSDK.AFa1zSDK valueOf(final Map<String, String> map) {
        AFd1hSDK.AFa1zSDK aFa1zSDK = new AFd1hSDK.AFa1zSDK() {
            @Override
            public final void AFInAppEventParameterName(String str) {
                AFb1oSDK.AFInAppEventType(str, DeepLinkResult.Error.NETWORK);
            }

            @Override
            public final void AFInAppEventType(Map<String, String> map2) {
                for (String str : map2.keySet()) {
                    map.put(str, map2.get(str));
                }
                AFb1oSDK.AFInAppEventParameterName((Map<String, String>) map);
            }
        };
        int i7 = onPause + 95;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            int i8 = 42 / 0;
        }
        return aFa1zSDK;
    }

    private static java.lang.String values(java.lang.String r10) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.values(java.lang.String):java.lang.String");
    }

    @Override
    public final void logEvent(Context context, String str, Map<String, Object> map, AppsFlyerRequestListener appsFlyerRequestListener) {
        HashMap hashMap = map == null ? null : new HashMap(map);
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            aFb1bSDK.valueOf.values = context.getApplicationContext();
        }
        AFe1iSDK aFe1iSDK = new AFe1iSDK();
        if (context != null) {
            aFe1iSDK.AFKeystoreWrapper = (Application) context.getApplicationContext();
        }
        aFe1iSDK.afRDLog = str;
        aFe1iSDK.AFInAppEventType = appsFlyerRequestListener;
        if (hashMap != null && hashMap.containsKey(AFInAppEventParameterName.TOUCH_OBJ)) {
            HashMap hashMap2 = new HashMap();
            Object obj = hashMap.get(AFInAppEventParameterName.TOUCH_OBJ);
            if (obj instanceof MotionEvent) {
                MotionEvent motionEvent = (MotionEvent) obj;
                HashMap hashMap3 = new HashMap();
                hashMap3.put("x", Float.valueOf(motionEvent.getX()));
                hashMap3.put("y", Float.valueOf(motionEvent.getY()));
                hashMap2.put("loc", hashMap3);
                hashMap2.put("pf", Float.valueOf(motionEvent.getPressure()));
                hashMap2.put("rad", Float.valueOf(motionEvent.getTouchMajor() / 2.0f));
            } else {
                hashMap2.put("error", "Parsing failed due to invalid input in 'af_touch_obj'.");
                AFLogger.values("Parsing failed due to invalid input in 'af_touch_obj'.");
            }
            Map<String, ?> singletonMap = Collections.singletonMap("tch_data", hashMap2);
            hashMap.remove(AFInAppEventParameterName.TOUCH_OBJ);
            aFe1iSDK.AFInAppEventType(singletonMap);
        }
        aFe1iSDK.values = hashMap;
        AFb1uSDK AFLogger$LogLevel2 = AFInAppEventParameterName().AFLogger$LogLevel();
        String[] strArr = new String[2];
        strArr[0] = str;
        Map map2 = aFe1iSDK.values;
        if (map2 == null) {
            map2 = new HashMap();
        }
        strArr[1] = new JSONObject(map2).toString();
        AFLogger$LogLevel2.AFKeystoreWrapper("logEvent", strArr);
        if (str == null) {
            AFKeystoreWrapper(context, AFe1lSDK.logEvent);
        }
        values(aFe1iSDK, context instanceof Activity ? (Activity) context : null);
    }

    @Override
    public final void setUserEmails(String... strArr) {
        int i7 = getSdkVersion + 47;
        onPause = i7 % 128;
        if (i7 % 2 == 0) {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setUserEmails", strArr);
            setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
        } else {
            AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("setUserEmails", strArr);
            setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
            throw null;
        }
    }

    @Override
    public final void start(Context context, String str) {
        int i7 = getSdkVersion + 125;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        start(context, str, null);
        int i9 = onPause + 67;
        getSdkVersion = i9 % 128;
        if (i9 % 2 == 0) {
            throw null;
        }
    }

    @Override
    public final void subscribeForDeepLink(DeepLinkListener deepLinkListener, long j7) {
        int i7 = onPause + 67;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            AFa1qSDK.AFInAppEventParameterName().AFInAppEventType = deepLinkListener;
            AFb1pSDK.getLevel = j7;
            int i8 = 54 / 0;
        } else {
            AFa1qSDK.AFInAppEventParameterName().AFInAppEventType = deepLinkListener;
            AFb1pSDK.getLevel = j7;
        }
        int i9 = onPause + 55;
        getSdkVersion = i9 % 128;
        if (i9 % 2 == 0) {
            int i10 = 48 / 0;
        }
    }

    public static int AFInAppEventParameterName(SharedPreferences sharedPreferences, boolean z6) {
        int i7 = getSdkVersion + 117;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        int AFInAppEventParameterName2 = AFInAppEventParameterName(sharedPreferences, "appsFlyerCount", z6);
        if (i8 != 0) {
            int i9 = 9 / 0;
        }
        return AFInAppEventParameterName2;
    }

    public static synchronized android.content.SharedPreferences AFInAppEventType(android.content.Context r4) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.AFInAppEventType(android.content.Context):android.content.SharedPreferences");
    }

    private static String AFKeystoreWrapper(File file, String str) {
        FileReader fileReader;
        int i7;
        try {
            try {
                try {
                    Properties properties = new Properties();
                    fileReader = new FileReader(file);
                    try {
                        properties.load(fileReader);
                        AFLogger.afInfoLog("Found PreInstall property!");
                        String property = properties.getProperty(str);
                        try {
                            fileReader.close();
                        } catch (Throwable th) {
                            AFLogger.afErrorLog(th.getMessage(), th);
                        }
                        int i8 = getSdkVersion + 27;
                        onPause = i8 % 128;
                        if (i8 % 2 != 0) {
                            int i9 = 60 / 0;
                        }
                        return property;
                    } catch (FileNotFoundException unused) {
                        StringBuilder sb = new StringBuilder("PreInstall file wasn't found: ");
                        sb.append(file.getAbsolutePath());
                        AFLogger.afDebugLog(sb.toString());
                        if (fileReader != null) {
                            fileReader.close();
                            i7 = getSdkVersion + 119;
                            onPause = i7 % 128;
                            int i10 = i7 % 2;
                        }
                        return null;
                    } catch (Throwable th2) {
                        th = th2;
                        AFLogger.afErrorLog(th.getMessage(), th);
                        if (fileReader != null) {
                            fileReader.close();
                            i7 = onPause + 101;
                            getSdkVersion = i7 % 128;
                            int i102 = i7 % 2;
                        }
                        return null;
                    }
                } catch (Throwable th3) {
                    if (fileReader != null) {
                        try {
                            fileReader.close();
                        } catch (Throwable th4) {
                            AFLogger.afErrorLog(th4.getMessage(), th4);
                        }
                    }
                    throw th3;
                }
            } catch (FileNotFoundException unused2) {
                fileReader = null;
            } catch (Throwable th5) {
                th = th5;
                fileReader = null;
            }
        } catch (Throwable th6) {
            AFLogger.afErrorLog(th6.getMessage(), th6);
        }
    }

    private boolean afDebugLog() {
        if (this.onInstallConversionFailureNative > 0) {
            long currentTimeMillis = System.currentTimeMillis() - this.onInstallConversionFailureNative;
            Locale locale = Locale.US;
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss.SSS Z", locale);
            String AFKeystoreWrapper2 = AFKeystoreWrapper(simpleDateFormat, this.onInstallConversionFailureNative);
            String AFKeystoreWrapper3 = AFKeystoreWrapper(simpleDateFormat, this.init);
            if (currentTimeMillis < this.onInstallConversionDataLoadedNative) {
                int i7 = getSdkVersion + 23;
                onPause = i7 % 128;
                int i8 = i7 % 2;
                if (!isStopped()) {
                    int i9 = getSdkVersion + 61;
                    onPause = i9 % 128;
                    int i10 = i9 % 2;
                    AFLogger.afInfoLog(String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nThis launch is blocked: %s ms < %s ms", AFKeystoreWrapper2, AFKeystoreWrapper3, Long.valueOf(currentTimeMillis), Long.valueOf(this.onInstallConversionDataLoadedNative)));
                    return true;
                }
            }
            if (!isStopped()) {
                AFLogger.afInfoLog(String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nSending launch (+%s ms)", AFKeystoreWrapper2, AFKeystoreWrapper3, Long.valueOf(currentTimeMillis)));
            }
        } else if (!isStopped()) {
            int i11 = getSdkVersion + 115;
            onPause = i11 % 128;
            int i12 = i11 % 2;
            AFLogger.afInfoLog("Sending first launch for this session!");
            if (i12 != 0) {
                throw null;
            }
        }
        int i13 = getSdkVersion + 51;
        onPause = i13 % 128;
        int i14 = i13 % 2;
        return false;
    }

    private static String valueOf(Activity activity) {
        String str = null;
        if (activity != null) {
            int i7 = onPause + 79;
            getSdkVersion = i7 % 128;
            if (i7 % 2 == 0) {
                activity.getIntent();
                throw null;
            }
            Intent intent = activity.getIntent();
            if (intent != null) {
                try {
                    Bundle extras = intent.getExtras();
                    if (extras != null) {
                        String string = extras.getString("af");
                        if (string != null) {
                            int i8 = getSdkVersion + 87;
                            onPause = i8 % 128;
                            try {
                                if (i8 % 2 == 0) {
                                    AFLogger.afInfoLog("Push Notification received af payload = ".concat(string));
                                    extras.remove("af");
                                    activity.setIntent(intent.putExtras(extras));
                                } else {
                                    AFLogger.afInfoLog("Push Notification received af payload = ".concat(string));
                                    extras.remove("af");
                                    activity.setIntent(intent.putExtras(extras));
                                    throw null;
                                }
                            } catch (Throwable th) {
                                th = th;
                                str = string;
                                AFLogger.afErrorLog(th.getMessage(), th);
                                int i9 = getSdkVersion + 119;
                                onPause = i9 % 128;
                                int i10 = i9 % 2;
                                return str;
                            }
                        }
                        str = string;
                    }
                } catch (Throwable th2) {
                    th = th2;
                }
            }
        }
        int i92 = getSdkVersion + 119;
        onPause = i92 % 128;
        int i102 = i92 % 2;
        return str;
    }

    private java.lang.String values(java.text.SimpleDateFormat r4, android.content.Context r5) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.values(java.text.SimpleDateFormat, android.content.Context):java.lang.String");
    }

    @Override
    public final void start(Context context, String str, final AppsFlyerRequestListener appsFlyerRequestListener) {
        int i7 = onPause + 89;
        getSdkVersion = i7 % 128;
        if (i7 % 2 == 0) {
            AFb1wSDK.AFa1xSDK aFa1xSDK = AFb1wSDK.values;
            throw null;
        }
        if (AFb1wSDK.values != null) {
            return;
        }
        if (!this.onAttributionFailureNative) {
            int i8 = getSdkVersion + 71;
            onPause = i8 % 128;
            int i9 = i8 % 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(RequestError.NO_DEV_KEY, AFb1dSDK.AFKeystoreWrapper);
                    int i10 = getSdkVersion + 119;
                    onPause = i10 % 128;
                    int i11 = i10 % 2;
                    return;
                }
                return;
            }
        }
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            aFb1bSDK.valueOf.values = context.getApplicationContext();
            int i12 = onPause + 95;
            getSdkVersion = i12 % 128;
            int i13 = i12 % 2;
        }
        final AFe1nSDK afRDLog = AFInAppEventParameterName().afRDLog();
        afRDLog.AFInAppEventParameterName(AFa1lSDK.AFInAppEventParameterName(context));
        this.onDeepLinking = (Application) context.getApplicationContext();
        AFb1uSDK.AFInAppEventType().AFKeystoreWrapper("start", str);
        String str2 = AFInAppEventType;
        AFLogger.afInfoLog(String.format("Starting AppsFlyer: (v%s.%s)", "6.10.0", str2));
        StringBuilder sb = new StringBuilder("Build Number: ");
        sb.append(str2);
        AFLogger.afInfoLog(sb.toString());
        AppsFlyerProperties.getInstance().loadProperties(this.onDeepLinking.getApplicationContext());
        if (!TextUtils.isEmpty(str)) {
            int i14 = getSdkVersion + 109;
            onPause = i14 % 128;
            int i15 = i14 % 2;
            this.onResponseError.AFVersionDeclaration().AFInAppEventType = str;
            AFc1sSDK.values(str);
        } else if (TextUtils.isEmpty(this.onResponseError.AFVersionDeclaration().AFInAppEventType)) {
            AFLogger.afWarnLog("ERROR: AppsFlyer SDK is not initialized! You must provide AppsFlyer Dev-Key either in the 'init' API method (should be called on Application's onCreate),or in the start() API (should be called on Activity's onCreate).");
            if (appsFlyerRequestListener != null) {
                appsFlyerRequestListener.onError(RequestError.NO_DEV_KEY, AFb1dSDK.AFKeystoreWrapper);
                return;
            }
            return;
        }
        AFInAppEventParameterName().afInfoLog().AFInAppEventType(null);
        afInfoLog();
        afErrorLog(this.onDeepLinking.getBaseContext());
        if (this.onConversionDataFail) {
            int i16 = onPause + 95;
            getSdkVersion = i16 % 128;
            int i17 = i16 % 2;
            AFLogger(this.onDeepLinking.getApplicationContext());
        }
        AFb1wSDK.values(context, new AFb1wSDK.AFa1xSDK() {
            @Override
            public final void valueOf(Activity activity) {
                afRDLog.AFKeystoreWrapper();
                AFb1zSDK.this.AFInAppEventParameterName().afInfoLog().AFInAppEventType(null);
                AFb1zSDK.AFKeystoreWrapper(AFb1zSDK.this);
                int AFInAppEventParameterName2 = AFb1zSDK.AFInAppEventParameterName(AFb1zSDK.AFInAppEventType(activity), false);
                AFLogger.afInfoLog("onBecameForeground");
                if (AFInAppEventParameterName2 < 2) {
                    AFa1eSDK valueOf2 = AFa1eSDK.valueOf(activity);
                    valueOf2.AFKeystoreWrapper.post(valueOf2.afInfoLog);
                    valueOf2.AFKeystoreWrapper.post(valueOf2.AFInAppEventParameterName);
                }
                AFe1bSDK aFe1bSDK = new AFe1bSDK();
                AFa1qSDK.AFInAppEventParameterName().AFInAppEventType(aFe1bSDK.AFInAppEventType(), activity.getIntent(), activity.getApplication());
                AFb1zSDK aFb1zSDK = AFb1zSDK.this;
                aFe1bSDK.AFKeystoreWrapper = (Application) activity.getApplicationContext();
                aFe1bSDK.AFInAppEventType = appsFlyerRequestListener;
                aFb1zSDK.values(aFe1bSDK, activity);
            }

            @Override
            public final void values(Context context2) {
                AFLogger.afInfoLog("onBecameBackground");
                AFe1nSDK aFe1nSDK = afRDLog;
                long currentTimeMillis = System.currentTimeMillis();
                long j7 = aFe1nSDK.afDebugLog;
                if (j7 != 0) {
                    long j8 = currentTimeMillis - j7;
                    if (j8 > 0 && j8 < 1000) {
                        j8 = 1000;
                    }
                    long seconds = TimeUnit.MILLISECONDS.toSeconds(j8);
                    aFe1nSDK.AFLogger$LogLevel = seconds;
                    aFe1nSDK.AFInAppEventParameterName.AFInAppEventType("prev_session_dur", seconds);
                } else {
                    AFLogger.afInfoLog("Metrics: fg ts is missing");
                }
                AFLogger.afInfoLog("callStatsBackground background call");
                AFb1zSDK.this.valueOf(new WeakReference<>(context2));
                AFb1zSDK.this.AFInAppEventParameterName().onInstallConversionDataLoadedNative().AFInAppEventType();
                AFb1uSDK AFInAppEventType2 = AFb1uSDK.AFInAppEventType();
                if (AFInAppEventType2.afDebugLog()) {
                    AFInAppEventType2.AFInAppEventParameterName();
                    if (context2 != null && !AppsFlyerLib.getInstance().isStopped()) {
                        AFInAppEventType2.valueOf(context2.getPackageName(), context2.getPackageManager(), AFb1zSDK.valueOf(AFb1zSDK.this));
                    }
                    AFInAppEventType2.AFKeystoreWrapper();
                } else {
                    AFLogger.afDebugLog("RD status is OFF");
                }
                AFa1eSDK.valueOf(context2).AFKeystoreWrapper();
            }
        }, this.onResponseError.valueOf());
    }

    public static AFb1zSDK AFInAppEventType() {
        int i7 = onPause + 21;
        int i8 = i7 % 128;
        getSdkVersion = i8;
        int i9 = i7 % 2;
        AFb1zSDK aFb1zSDK = afErrorLogForExcManagerOnly;
        int i10 = i8 + 25;
        onPause = i10 % 128;
        if (i10 % 2 != 0) {
            int i11 = 97 / 0;
        }
        return aFb1zSDK;
    }

    private static String AFKeystoreWrapper(String str) {
        Object invoke;
        int i7 = onPause + 105;
        getSdkVersion = i7 % 128;
        String str2 = null;
        try {
            if (i7 % 2 == 0) {
                Class<?> cls = Class.forName("android.os.SystemProperties");
                Class<?>[] clsArr = new Class[0];
                clsArr[0] = String.class;
                Method method = cls.getMethod("get", clsArr);
                Object[] objArr = new Object[0];
                objArr[1] = str;
                invoke = method.invoke(null, objArr);
            } else {
                invoke = Class.forName("android.os.SystemProperties").getMethod("get", String.class).invoke(null, str);
            }
            str2 = (String) invoke;
            return str2;
        } catch (Throwable th) {
            AFLogger.afErrorLog(th.getMessage(), th);
            return str2;
        }
    }

    public final AFb1gSDK AFInAppEventParameterName(Context context) {
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            aFb1bSDK.valueOf.values = context.getApplicationContext();
        }
        Context context2 = this.onResponseError.valueOf.values;
        if (context2 != null) {
            return new AFb1eSDK(AFInAppEventType(context2));
        }
        throw new IllegalStateException("Context must be set via setContext method before calling this dependency.");
    }

    @Deprecated
    public final String valueOf(Context context) {
        int i7 = onPause + 11;
        int i8 = i7 % 128;
        getSdkVersion = i8;
        int i9 = i7 % 2;
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            AFc1ySDK aFc1ySDK = aFb1bSDK.valueOf;
            int i10 = i8 + 63;
            onPause = i10 % 128;
            int i11 = i10 % 2;
            aFc1ySDK.values = context.getApplicationContext();
            if (i11 != 0) {
                throw null;
            }
        }
        return this.onResponseError.values().values();
    }

    public final void values(Context context, Intent intent) {
        int i7 = getSdkVersion + 63;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        if (intent.getStringExtra("appsflyer_preinstall") != null) {
            AFInAppEventType(intent.getStringExtra("appsflyer_preinstall"));
        }
        AFLogger.afInfoLog("****** onReceive called *******");
        AppsFlyerProperties.getInstance();
        String stringExtra = intent.getStringExtra("referrer");
        AFLogger.afInfoLog("Play store referrer: ".concat(String.valueOf(stringExtra)));
        if (stringExtra != null) {
            int i9 = onPause + 67;
            getSdkVersion = i9 % 128;
            if (i9 % 2 == 0) {
                AFInAppEventParameterName(context).AFInAppEventParameterName("referrer", stringExtra);
                AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
                appsFlyerProperties.set("AF_REFERRER", stringExtra);
                appsFlyerProperties.AFKeystoreWrapper = stringExtra;
                AppsFlyerProperties.getInstance().AFKeystoreWrapper();
                throw null;
            }
            AFInAppEventParameterName(context).AFInAppEventParameterName("referrer", stringExtra);
            AppsFlyerProperties appsFlyerProperties2 = AppsFlyerProperties.getInstance();
            appsFlyerProperties2.set("AF_REFERRER", stringExtra);
            appsFlyerProperties2.AFKeystoreWrapper = stringExtra;
            if (AppsFlyerProperties.getInstance().AFKeystoreWrapper()) {
                AFLogger.afInfoLog("onReceive: isLaunchCalled");
                AFKeystoreWrapper(context, AFe1lSDK.onReceive);
                values(context, stringExtra);
            }
        }
    }

    private String AFInAppEventType(Context context, String str) {
        int i7 = getSdkVersion;
        int i8 = i7 + 51;
        onPause = i8 % 128;
        int i9 = i8 % 2;
        if (context == null) {
            int i10 = i7 + 9;
            onPause = i10 % 128;
            int i11 = i10 % 2;
            return null;
        }
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            int i12 = i7 + 5;
            onPause = i12 % 128;
            if (i12 % 2 != 0) {
                AFc1ySDK aFc1ySDK = aFb1bSDK.valueOf;
                throw null;
            }
            AFc1ySDK aFc1ySDK2 = aFb1bSDK.valueOf;
            if (context != null) {
                aFc1ySDK2.values = context.getApplicationContext();
            }
        }
        return AFInAppEventParameterName().values().AFKeystoreWrapper(str);
    }

    public static String AFKeystoreWrapper(SimpleDateFormat simpleDateFormat, long j7) {
        simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
        String format = simpleDateFormat.format(new Date(j7));
        int i7 = onPause + 67;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        return format;
    }

    private static String valueOf(String str) {
        int indexOf = str.indexOf(63);
        if (indexOf == -1) {
            int i7 = onPause + 111;
            getSdkVersion = i7 % 128;
            if (i7 % 2 != 0) {
                return HttpUrl.FRAGMENT_ENCODE_SET;
            }
            throw null;
        }
        String substring = str.substring(indexOf);
        int i8 = getSdkVersion + 83;
        onPause = i8 % 128;
        if (i8 % 2 == 0) {
            return substring;
        }
        throw null;
    }

    private void values(Context context, String str) {
        AFe1gSDK aFe1gSDK = new AFe1gSDK();
        if (context != null) {
            int i7 = onPause + 51;
            getSdkVersion = i7 % 128;
            int i8 = i7 % 2;
            aFe1gSDK.AFKeystoreWrapper = (Application) context.getApplicationContext();
        }
        byte b7 = 0;
        AFa1sSDK AFInAppEventParameterName2 = aFe1gSDK.AFInAppEventParameterName(this.onResponseError.values().values.AFInAppEventType("appsFlyerCount", 0));
        AFInAppEventParameterName2.afInfoLog = str;
        if (str != null && str.length() > 5) {
            int i9 = getSdkVersion + 81;
            onPause = i9 % 128;
            int i10 = i9 % 2;
            if (AFKeystoreWrapper(AFInAppEventParameterName2, AFInAppEventType(context))) {
                AFInAppEventParameterName(this.onResponseError.AFInAppEventType(), new AFa1xSDK(this, AFInAppEventParameterName2, b7), 5L, TimeUnit.MILLISECONDS);
            }
        }
        int i11 = getSdkVersion + 21;
        onPause = i11 % 128;
        int i12 = i11 % 2;
    }

    public final AFc1xSDK AFInAppEventParameterName() {
        int i7 = onPause + 57;
        int i8 = i7 % 128;
        getSdkVersion = i8;
        int i9 = i7 % 2;
        AFb1bSDK aFb1bSDK = this.onResponseError;
        int i10 = i8 + 73;
        onPause = i10 % 128;
        int i11 = i10 % 2;
        return aFb1bSDK;
    }

    private static String AFInAppEventParameterName(String str) {
        int i7 = getSdkVersion + 15;
        onPause = i7 % 128;
        if (i7 % 2 == 0) {
            return AppsFlyerProperties.getInstance().getString(str);
        }
        int i8 = 83 / 0;
        return AppsFlyerProperties.getInstance().getString(str);
    }

    public static Map<String, Object> AFKeystoreWrapper(Map<String, Object> map) {
        Map<String, Object> map2;
        int i7 = onPause + 47;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        if (!(!map.containsKey("meta"))) {
            int i9 = onPause + 53;
            getSdkVersion = i9 % 128;
            int i10 = i9 % 2;
            map2 = (Map) map.get("meta");
        } else {
            HashMap hashMap = new HashMap();
            map.put("meta", hashMap);
            map2 = hashMap;
        }
        int i11 = getSdkVersion + 27;
        onPause = i11 % 128;
        int i12 = i11 % 2;
        return map2;
    }

    public static void valueOf() {
        AppsFlyerConversionListener = new char[]{'a', 23681, 47505, 5825, 29685, 53486, 11535, 35362, 59212, 17534, 41323, 64925, '1', 'b', 23701, 47535, 5851, 29688, 3581, 20757, 46119, 7005, 32371, 56660, 8336, 34751, 60109, 18919, 44277, 61490, 22318, 47700, 6492, 36862};
        onValidateInAppFailure = 1358861828806499559L;
    }

    private void values(Context context, String str, Map<String, Object> map) {
        Activity activity;
        AFe1iSDK aFe1iSDK = new AFe1iSDK();
        if (context != null) {
            aFe1iSDK.AFKeystoreWrapper = (Application) context.getApplicationContext();
            int i7 = onPause + 45;
            getSdkVersion = i7 % 128;
            int i8 = i7 % 2;
        }
        aFe1iSDK.afRDLog = str;
        aFe1iSDK.values = map;
        if (context instanceof Activity) {
            int i9 = onPause;
            int i10 = i9 + 59;
            getSdkVersion = i10 % 128;
            int i11 = i10 % 2;
            activity = (Activity) context;
            int i12 = i9 + 111;
            getSdkVersion = i12 % 128;
            int i13 = i12 % 2;
        } else {
            activity = null;
        }
        values(aFe1iSDK, activity);
    }

    public final java.util.Map<java.lang.String, java.lang.Object> AFInAppEventType(com.appsflyer.internal.AFa1sSDK r38) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.AFInAppEventType(com.appsflyer.internal.AFa1sSDK):java.util.Map");
    }

    @Deprecated
    public static String AFInAppEventParameterName(HttpURLConnection httpURLConnection) {
        InputStreamReader inputStreamReader;
        String obj;
        Object obj2;
        StringBuilder sb = new StringBuilder();
        BufferedReader bufferedReader = null;
        try {
            try {
                InputStream errorStream = httpURLConnection.getErrorStream();
                if (errorStream == null) {
                    errorStream = httpURLConnection.getInputStream();
                }
                inputStreamReader = new InputStreamReader(errorStream);
                try {
                    BufferedReader bufferedReader2 = new BufferedReader(inputStreamReader);
                    boolean z6 = false;
                    while (true) {
                        try {
                            String readLine = bufferedReader2.readLine();
                            if (readLine == null) {
                                break;
                            }
                            if (z6) {
                                obj2 = '\n';
                                int i7 = onPause + 123;
                                getSdkVersion = i7 % 128;
                                int i8 = i7 % 2;
                            } else {
                                obj2 = HttpUrl.FRAGMENT_ENCODE_SET;
                            }
                            sb.append(obj2);
                            sb.append(readLine);
                            z6 = 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) {
                                    int i9 = getSdkVersion + 101;
                                    onPause = i9 % 128;
                                    if (i9 % 2 != 0) {
                                        inputStreamReader.close();
                                        int i10 = 7 / 0;
                                    } else {
                                        inputStreamReader.close();
                                    }
                                }
                                obj = sb.toString();
                                new JSONObject(obj);
                                return obj;
                            } catch (Throwable th2) {
                                if (bufferedReader != null) {
                                    try {
                                        bufferedReader.close();
                                    } catch (Throwable th3) {
                                        AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th3);
                                        throw th2;
                                    }
                                }
                                if (inputStreamReader != null) {
                                    inputStreamReader.close();
                                    int i11 = getSdkVersion + 53;
                                    onPause = i11 % 128;
                                    int i12 = i11 % 2;
                                }
                                throw th2;
                            }
                        }
                    }
                    bufferedReader2.close();
                    inputStreamReader.close();
                } catch (Throwable th4) {
                    th = th4;
                }
            } catch (Throwable th5) {
                AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th5);
            }
        } catch (Throwable th6) {
            th = th6;
            inputStreamReader = null;
        }
        obj = sb.toString();
        try {
            new JSONObject(obj);
            return obj;
        } catch (JSONException e7) {
            AFLogger.afErrorLogForExcManagerOnly("error while parsing readServerResponse", e7);
            JSONObject jSONObject = new JSONObject();
            try {
                jSONObject.put("string_response", obj);
                return jSONObject.toString();
            } catch (JSONException e8) {
                AFLogger.afErrorLogForExcManagerOnly("RESPONSE_NOT_JSON error", e8);
                return new JSONObject().toString();
            }
        }
    }

    private static void AFInAppEventType(Context context, Map<String, Object> map, String str) {
        int i7 = onPause + 65;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        SharedPreferences AFInAppEventType2 = AFInAppEventType(context);
        try {
            if (i8 == 0) {
                AFInAppEventType2.edit();
                AFInAppEventType2.getString("prev_event_name", null);
                throw null;
            }
            SharedPreferences.Editor edit = AFInAppEventType2.edit();
            String string = AFInAppEventType2.getString("prev_event_name", null);
            if (string != null) {
                JSONObject jSONObject = new JSONObject();
                jSONObject.put("prev_event_timestamp", AFInAppEventType2.getLong("prev_event_timestamp", -1L));
                jSONObject.put("prev_event_name", string);
                map.put("prev_event", jSONObject);
            }
            edit.putString("prev_event_name", str).putLong("prev_event_timestamp", System.currentTimeMillis()).apply();
            int i9 = getSdkVersion + 99;
            onPause = i9 % 128;
            if (i9 % 2 != 0) {
                int i10 = 21 / 0;
            }
        } catch (Exception e7) {
            AFLogger.afErrorLog("Error while processing previous event.", e7);
        }
    }

    public void valueOf(Context context, Intent intent) {
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            aFb1bSDK.valueOf.values = context.getApplicationContext();
        }
        AFa1qSDK.AFInAppEventParameterName();
        Context context2 = this.onResponseError.valueOf.values;
        if (context2 == null) {
            throw new IllegalStateException("Context must be set via setContext method before calling this dependency.");
        }
        AFb1eSDK aFb1eSDK = new AFb1eSDK(AFInAppEventType(context2));
        Uri valueOf2 = AFa1qSDK.valueOf(intent);
        boolean z6 = (valueOf2 == null || valueOf2.toString().isEmpty()) ? false : true;
        if (!aFb1eSDK.valueOf("ddl_sent") || z6) {
            AFa1qSDK.AFInAppEventParameterName().AFInAppEventType(new HashMap(), intent, context);
        } else {
            AFb1oSDK.AFInAppEventType("No direct deep link", null);
        }
    }

    private void values(Context context, Map<String, Object> map) {
        AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
        if (appsFlyerProperties.getBoolean(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, false)) {
            map.put(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, "true");
            return;
        }
        Context context2 = this.onResponseError.valueOf.values;
        if (context2 == null) {
            throw new IllegalStateException("Context must be set via setContext method before calling this dependency.");
        }
        AFb1eSDK aFb1eSDK = new AFb1eSDK(AFInAppEventType(context2));
        String AFInAppEventType2 = this.onResponseError.AFVersionDeclaration().AFInAppEventType(aFb1eSDK);
        if (!AFb1nSDK.AFInAppEventParameterName(AFInAppEventType2)) {
            map.put("imei", AFInAppEventType2);
        }
        boolean z6 = appsFlyerProperties.getBoolean(AppsFlyerProperties.COLLECT_ANDROID_ID, false);
        String str = null;
        String valueOf2 = aFb1eSDK.valueOf("androidIdCached", (String) null);
        if (!z6 || !AFb1nSDK.AFInAppEventParameterName(this.afDebugLog)) {
            String str2 = this.afDebugLog;
            if (str2 != null) {
                str = str2;
            }
        } else if (afInfoLog(context)) {
            try {
                String string = Settings.Secure.getString(context.getContentResolver(), "android_id");
                if (string != null) {
                    str = string;
                } else if (valueOf2 != null) {
                    AFLogger.afDebugLog("use cached AndroidId: ".concat(valueOf2));
                    str = valueOf2;
                }
            } catch (Exception e7) {
                if (valueOf2 != null) {
                    AFLogger.afDebugLog("use cached AndroidId: ".concat(valueOf2));
                    str = valueOf2;
                }
                AFLogger.afErrorLog(e7.getMessage(), e7);
            }
        }
        if (str != null) {
            aFb1eSDK.AFInAppEventParameterName("androidIdCached", str);
            map.put("android_id", str);
        } else {
            AFLogger.afInfoLog("Android ID was not collected.");
        }
        AFc1vSDK.AFa1wSDK values2 = AFa1bSDK.values(context);
        if (values2 != null) {
            HashMap hashMap = new HashMap();
            hashMap.put("isManual", values2.values);
            hashMap.put("val", values2.AFInAppEventType);
            Boolean bool = values2.valueOf;
            if (bool != null) {
                hashMap.put("isLat", bool);
            }
            map.put("oaid", hashMap);
        }
    }

    public final void AFKeystoreWrapper(Context context) {
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            int i7 = onPause + 85;
            int i8 = i7 % 128;
            getSdkVersion = i8;
            if (i7 % 2 == 0) {
                AFc1ySDK aFc1ySDK = aFb1bSDK.valueOf;
                throw null;
            }
            AFc1ySDK aFc1ySDK2 = aFb1bSDK.valueOf;
            if (context != null) {
                int i9 = i8 + 61;
                onPause = i9 % 128;
                int i10 = i9 % 2;
                aFc1ySDK2.values = context.getApplicationContext();
                if (i10 != 0) {
                    throw null;
                }
            }
        }
        int i11 = onPause + 21;
        getSdkVersion = i11 % 128;
        int i12 = i11 % 2;
    }

    public static Map AFInAppEventParameterName(AFb1zSDK aFb1zSDK) {
        int i7 = onPause + 7;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        Map<String, Object> map = aFb1zSDK.onAttributionFailure;
        if (i8 != 0) {
            return map;
        }
        throw null;
    }

    private static void AFInAppEventType(AppsFlyerConversionListener appsFlyerConversionListener) {
        int i7 = onPause + 107;
        int i8 = i7 % 128;
        getSdkVersion = i8;
        int i9 = i7 % 2;
        if (appsFlyerConversionListener != null) {
            valueOf = appsFlyerConversionListener;
            return;
        }
        int i10 = i8 + 15;
        onPause = i10 % 128;
        if (i10 % 2 != 0) {
            throw null;
        }
    }

    private void AFKeystoreWrapper(Context context, AFe1lSDK aFe1lSDK) {
        int i7 = onPause + 9;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            aFb1bSDK.valueOf.values = context.getApplicationContext();
        }
        AFe1nSDK afRDLog = AFInAppEventParameterName().afRDLog();
        AFe1oSDK AFInAppEventParameterName2 = AFa1lSDK.AFInAppEventParameterName(context);
        if (afRDLog.AFInAppEventParameterName()) {
            int i9 = onPause + 7;
            getSdkVersion = i9 % 128;
            if (i9 % 2 == 0) {
                afRDLog.values.put("api_name", aFe1lSDK.toString());
                afRDLog.AFInAppEventParameterName(AFInAppEventParameterName2);
                throw null;
            }
            afRDLog.values.put("api_name", aFe1lSDK.toString());
            afRDLog.AFInAppEventParameterName(AFInAppEventParameterName2);
            int i10 = onPause + 73;
            getSdkVersion = i10 % 128;
            int i11 = i10 % 2;
        }
        afRDLog.AFKeystoreWrapper();
    }

    private static void valueOf(android.content.Context r5, java.util.Map<java.lang.String, java.lang.Object> r6) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.valueOf(android.content.Context, java.util.Map):void");
    }

    public final void values(com.appsflyer.internal.AFa1sSDK r5, android.app.Activity r6) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.values(com.appsflyer.internal.AFa1sSDK, android.app.Activity):void");
    }

    private static void AFInAppEventParameterName(char c7, int i7, int i8, Object[] objArr) {
        String str;
        synchronized (AFg1wSDK.AFInAppEventParameterName) {
            try {
                char[] cArr = new char[i7];
                AFg1wSDK.AFKeystoreWrapper = 0;
                while (true) {
                    int i9 = AFg1wSDK.AFKeystoreWrapper;
                    if (i9 < i7) {
                        cArr[i9] = (char) ((AppsFlyerConversionListener[i8 + i9] ^ (i9 * onValidateInAppFailure)) ^ c7);
                        AFg1wSDK.AFKeystoreWrapper = i9 + 1;
                    } else {
                        str = new String(cArr);
                    }
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        objArr[0] = str;
    }

    public static void AFInAppEventType(AFb1zSDK aFb1zSDK, AFa1sSDK aFa1sSDK) {
        int i7 = onPause + 47;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        aFb1zSDK.AFInAppEventParameterName(aFa1sSDK);
        int i9 = getSdkVersion + 105;
        onPause = i9 % 128;
        if (i9 % 2 != 0) {
            int i10 = 28 / 0;
        }
    }

    private void AFKeystoreWrapper(android.content.Context r4, java.lang.String r5, java.util.Map<java.lang.String, java.lang.Object> r6, java.lang.String r7, java.lang.String r8) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.AFKeystoreWrapper(android.content.Context, java.lang.String, java.util.Map, java.lang.String, java.lang.String):void");
    }

    private static void values(Map<String, Object> map) {
        String string = AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.ONELINK_ID);
        String string2 = AppsFlyerProperties.getInstance().getString("onelinkVersion");
        if (string != null) {
            int i7 = onPause + 113;
            getSdkVersion = i7 % 128;
            int i8 = i7 % 2;
            map.put("onelink_id", string);
            if (i8 == 0) {
                int i9 = 13 / 0;
            }
            int i10 = onPause + 81;
            getSdkVersion = i10 % 128;
            int i11 = i10 % 2;
        }
        if (string2 != null) {
            map.put("onelink_ver", string2);
            int i12 = onPause + 7;
            getSdkVersion = i12 % 128;
            int i13 = i12 % 2;
        }
    }

    public final void valueOf(Context context, Map<String, Object> map, Uri uri) {
        AFb1bSDK aFb1bSDK = this.onResponseError;
        if (context != null) {
            AFc1ySDK aFc1ySDK = aFb1bSDK.valueOf;
            if (context != null) {
                int i7 = onPause + 81;
                getSdkVersion = i7 % 128;
                if (i7 % 2 == 0) {
                    aFc1ySDK.values = context.getApplicationContext();
                    int i8 = 87 / 0;
                } else {
                    aFc1ySDK.values = context.getApplicationContext();
                }
            }
        }
        if (!map.containsKey("af_deeplink")) {
            int i9 = onPause + 75;
            getSdkVersion = i9 % 128;
            int i10 = i9 % 2;
            String values2 = values(uri.toString());
            AFa1qSDK AFInAppEventParameterName2 = AFa1qSDK.AFInAppEventParameterName();
            if (AFInAppEventParameterName2.valueOf != null && AFInAppEventParameterName2.afErrorLog != null && !(!values2.contains(r3))) {
                Uri.Builder buildUpon = Uri.parse(values2).buildUpon();
                Uri.Builder buildUpon2 = Uri.EMPTY.buildUpon();
                Iterator<Map.Entry<String, String>> it = AFInAppEventParameterName2.afErrorLog.entrySet().iterator();
                while (!(!it.hasNext())) {
                    int i11 = getSdkVersion + 97;
                    onPause = i11 % 128;
                    int i12 = i11 % 2;
                    Map.Entry<String, String> next = it.next();
                    buildUpon.appendQueryParameter(next.getKey(), next.getValue());
                    buildUpon2.appendQueryParameter(next.getKey(), next.getValue());
                }
                values2 = buildUpon.build().toString();
                map.put("appended_query_params", buildUpon2.build().getEncodedQuery());
            }
            map.put("af_deeplink", values2);
            int i13 = onPause + 81;
            getSdkVersion = i13 % 128;
            int i14 = i13 % 2;
        }
        HashMap hashMap = new HashMap();
        hashMap.put("link", uri.toString());
        AFd1hSDK aFd1hSDK = new AFd1hSDK(AFInAppEventParameterName(), UUID.randomUUID(), uri);
        if (aFd1hSDK.AFLogger$LogLevel()) {
            map.put("isBrandedDomain", Boolean.TRUE);
        }
        AFa1dSDK.AFKeystoreWrapper(context, hashMap, uri);
        if (!aFd1hSDK.afWarnLog()) {
            AFb1oSDK.AFInAppEventParameterName(hashMap);
            return;
        }
        aFd1hSDK.AFLogger = valueOf(hashMap);
        AFd1xSDK afDebugLog = this.onResponseError.afDebugLog();
        afDebugLog.AFKeystoreWrapper.execute(afDebugLog.new AnonymousClass2(aFd1hSDK));
    }

    public void AFInAppEventType(AFd1aSDK aFd1aSDK) {
        int i7 = onPause + 13;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        if (aFd1aSDK == AFd1aSDK.SUCCESS) {
            int i9 = getSdkVersion + 1;
            onPause = i9 % 128;
            int i10 = i9 % 2;
            AFInAppEventParameterName().onInstallConversionDataLoadedNative().AFInAppEventParameterName();
        }
        int i11 = getSdkVersion + 51;
        onPause = i11 % 128;
        if (i11 % 2 != 0) {
            int i12 = 51 / 0;
        }
    }

    public static void AFKeystoreWrapper(Context context, Map<String, ? super String> map) {
        String str;
        int i7 = getSdkVersion + 121;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        boolean AFInAppEventParameterName2 = AFInAppEventParameterName(AppsFlyerProperties.DISABLE_NETWORK_DATA, false);
        AFa1gSDK aFa1gSDK = AFa1gSDK.AFa1vSDK.AFInAppEventType;
        AFa1gSDK.AFa1xSDK AFInAppEventType2 = AFa1gSDK.AFInAppEventType(context);
        map.put("network", AFInAppEventType2.AFKeystoreWrapper);
        if (!AFInAppEventParameterName2) {
            int i9 = onPause + 27;
            getSdkVersion = i9 % 128;
            if (i9 % 2 == 0) {
                throw null;
            }
            String str2 = AFInAppEventType2.AFInAppEventType;
            if (str2 != null) {
                map.put("operator", str2);
            }
        }
        if (!AFInAppEventParameterName2 && (str = AFInAppEventType2.values) != null) {
            map.put("carrier", str);
        }
        int i10 = getSdkVersion + 83;
        onPause = i10 % 128;
        int i11 = i10 % 2;
    }

    private static void valueOf(Context context, boolean z6, Map<String, Object> map, int i7) {
        HashMap hashMap = new HashMap();
        hashMap.put("cpu_abi", AFKeystoreWrapper("ro.product.cpu.abi"));
        hashMap.put("cpu_abi2", AFKeystoreWrapper("ro.product.cpu.abi2"));
        hashMap.put("arch", AFKeystoreWrapper("os.arch"));
        hashMap.put("build_display_id", AFKeystoreWrapper("ro.build.display.id"));
        if (z6) {
            int i8 = onPause + 93;
            getSdkVersion = i8 % 128;
            int i9 = i8 % 2;
            AFInAppEventParameterName(context, hashMap);
            if (i7 <= 2) {
                hashMap.putAll(AFa1eSDK.valueOf(context).AFInAppEventParameterName());
                int i10 = onPause + 85;
                getSdkVersion = i10 % 128;
                int i11 = i10 % 2;
            }
        }
        hashMap.put("dim", AFc1rSDK.values(context));
        map.put("deviceData", hashMap);
    }

    private static void values(Map<String, Object> map, AFe1nSDK aFe1nSDK) {
        HashMap hashMap = new HashMap(aFe1nSDK.valueOf);
        aFe1nSDK.valueOf.clear();
        aFe1nSDK.AFInAppEventParameterName.AFKeystoreWrapper("gcd");
        if (!hashMap.isEmpty()) {
            int i7 = getSdkVersion + 95;
            onPause = i7 % 128;
            int i8 = i7 % 2;
            AFKeystoreWrapper(map).put("gcd", hashMap);
        }
        int i9 = onPause + 91;
        getSdkVersion = i9 % 128;
        if (i9 % 2 == 0) {
            throw null;
        }
    }

    public final void AFInAppEventParameterName(android.content.Context r12, java.lang.String r13) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.AFInAppEventParameterName(android.content.Context, java.lang.String):void");
    }

    private static void AFInAppEventParameterName(Context context, Map<String, Object> map) {
        AFa1zSDK.AFa1wSDK values2 = AFa1zSDK.AFa1vSDK.AFKeystoreWrapper.values(context);
        map.put("btl", Float.toString(values2.AFInAppEventParameterName));
        String str = values2.AFInAppEventType;
        if (str != null) {
            int i7 = onPause + 19;
            getSdkVersion = i7 % 128;
            int i8 = i7 % 2;
            map.put("btch", str);
            if (i8 == 0) {
                throw null;
            }
        }
        int i9 = onPause + 73;
        getSdkVersion = i9 % 128;
        int i10 = i9 % 2;
    }

    private static void AFInAppEventType(String str) {
        try {
            if (!new JSONObject(str).has("pid")) {
                AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
                return;
            }
            int i7 = getSdkVersion + 81;
            onPause = i7 % 128;
            int i8 = i7 % 2;
            AFKeystoreWrapper("preInstallName", str);
            int i9 = onPause + 99;
            getSdkVersion = i9 % 128;
            int i10 = i9 % 2;
        } catch (JSONException e7) {
            AFLogger.afErrorLog("Error parsing JSON for preinstall", e7);
        }
    }

    public static void AFKeystoreWrapper(AFb1zSDK aFb1zSDK) {
        int i7 = onPause + 45;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        aFb1zSDK.afInfoLog();
        if (i8 == 0) {
            int i9 = 39 / 0;
        }
    }

    private void valueOf(AFa1sSDK aFa1sSDK) {
        boolean z6;
        byte b7 = 0;
        if (aFa1sSDK.afRDLog == null) {
            int i7 = onPause + 85;
            int i8 = i7 % 128;
            getSdkVersion = i8;
            int i9 = i7 % 2;
            int i10 = i8 + 37;
            onPause = i10 % 128;
            int i11 = i10 % 2;
            z6 = true;
        } else {
            z6 = false;
        }
        if (values()) {
            int i12 = onPause + 35;
            getSdkVersion = i12 % 128;
            int i13 = i12 % 2;
            AFLogger.afInfoLog("CustomerUserId not set, reporting is disabled", true);
            return;
        }
        if (z6) {
            if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.LAUNCH_PROTECT_ENABLED, true)) {
                int i14 = onPause + 15;
                getSdkVersion = i14 % 128;
                int i15 = i14 % 2;
                if (afDebugLog()) {
                    int i16 = onPause + 71;
                    getSdkVersion = i16 % 128;
                    if (i16 % 2 == 0) {
                        throw null;
                    }
                    AppsFlyerRequestListener appsFlyerRequestListener = aFa1sSDK.AFInAppEventType;
                    if (appsFlyerRequestListener != null) {
                        appsFlyerRequestListener.onError(RequestError.EVENT_TIMEOUT, AFb1dSDK.valueOf);
                        return;
                    }
                    return;
                }
            } else {
                AFLogger.afInfoLog("Allowing multiple launches within a 5 second time window.");
            }
            this.onInstallConversionFailureNative = System.currentTimeMillis();
        }
        AFInAppEventParameterName(this.onResponseError.AFInAppEventType(), new AFa1xSDK(this, aFa1sSDK, b7), 0L, TimeUnit.MILLISECONDS);
    }

    public final boolean values() {
        int i7 = onPause + 65;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        if (!AFInAppEventParameterName(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false) || AFKeystoreWrapper() != null) {
            return false;
        }
        int i9 = onPause + 5;
        getSdkVersion = i9 % 128;
        int i10 = i9 % 2;
        return true;
    }

    private void AFInAppEventParameterName(com.appsflyer.internal.AFa1sSDK r12) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1zSDK.AFInAppEventParameterName(com.appsflyer.internal.AFa1sSDK):void");
    }

    public static void AFInAppEventType(ScheduledExecutorService scheduledExecutorService, Runnable runnable, TimeUnit timeUnit) {
        int i7 = onPause + 53;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        AFInAppEventParameterName(scheduledExecutorService, runnable, 0L, timeUnit);
        int i9 = onPause + 57;
        getSdkVersion = i9 % 128;
        if (i9 % 2 == 0) {
            int i10 = 39 / 0;
        }
    }

    private static void AFKeystoreWrapper(String str, String str2) {
        int i7 = onPause + 13;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        AppsFlyerProperties.getInstance().set(str, str2);
        int i9 = getSdkVersion + 57;
        onPause = i9 % 128;
        if (i9 % 2 != 0) {
            throw null;
        }
    }

    public static boolean values(Context context) {
        try {
        } catch (Throwable th) {
            AFLogger.afErrorLog("WARNING:  Google play services is unavailable. ", th);
        }
        if (GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) == 0) {
            int i7 = onPause + 77;
            getSdkVersion = i7 % 128;
            int i8 = i7 % 2;
            return true;
        }
        int i9 = getSdkVersion + 47;
        onPause = i9 % 128;
        int i10 = i9 % 2;
        try {
            context.getPackageManager().getPackageInfo("com.google.android.gms", 0);
            return true;
        } catch (PackageManager.NameNotFoundException e7) {
            AFLogger.afErrorLog("WARNING:  Google Play Services is unavailable. ", e7);
            return false;
        }
    }

    public final void valueOf(WeakReference<Context> weakReference) {
        int i7 = onPause + 91;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        if (weakReference.get() == null) {
            return;
        }
        AFLogger.afInfoLog("app went to background");
        SharedPreferences AFInAppEventType2 = AFInAppEventType(weakReference.get());
        AppsFlyerProperties.getInstance().saveProperties(AFInAppEventType2);
        long j7 = AFInAppEventParameterName().afRDLog().AFLogger$LogLevel;
        HashMap hashMap = new HashMap();
        String str = this.onResponseError.AFVersionDeclaration().AFInAppEventType;
        if (str == null) {
            int i9 = getSdkVersion + 35;
            onPause = i9 % 128;
            int i10 = i9 % 2;
            AFLogger.afWarnLog("[callStats] AppsFlyer's SDK cannot send any event without providing DevKey.");
            if (i10 != 0) {
                throw null;
            }
            return;
        }
        String AFInAppEventParameterName2 = AFInAppEventParameterName("KSAppsFlyerId");
        if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, false)) {
            hashMap.put(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, "true");
        }
        AFc1vSDK.AFa1wSDK values2 = AFa1bSDK.values(weakReference.get().getContentResolver());
        if (values2 != null) {
            int i11 = onPause + 89;
            getSdkVersion = i11 % 128;
            int i12 = i11 % 2;
            hashMap.put("amazon_aid", values2.AFInAppEventType);
            hashMap.put("amazon_aid_limit", String.valueOf(values2.valueOf));
        }
        String string = AppsFlyerProperties.getInstance().getString("advertiserId");
        if (string != null) {
            hashMap.put("advertiserId", string);
        }
        hashMap.put("app_id", weakReference.get().getPackageName());
        hashMap.put("devkey", str);
        hashMap.put("uid", AFb1xSDK.AFInAppEventParameterName(weakReference));
        hashMap.put("time_in_app", String.valueOf(j7));
        hashMap.put("statType", "user_closed_app");
        hashMap.put("platform", "Android");
        hashMap.put("launch_counter", Integer.toString(AFInAppEventParameterName(AFInAppEventType2, false)));
        hashMap.put(AppsFlyerProperties.CHANNEL, valueOf(weakReference.get()));
        if (AFInAppEventParameterName2 == null) {
            AFInAppEventParameterName2 = HttpUrl.FRAGMENT_ENCODE_SET;
        }
        hashMap.put("originalAppsflyerId", AFInAppEventParameterName2);
        if (!this.onConversionDataSuccess) {
            AFLogger.afDebugLog("Stats call is disabled, ignore ...");
            return;
        }
        AFe1eSDK aFe1eSDK = new AFe1eSDK();
        aFe1eSDK.AFVersionDeclaration = isStopped();
        AFd1eSDK aFd1eSDK = new AFd1eSDK((AFe1eSDK) aFe1eSDK.AFInAppEventParameterName(this.onResponseError.values().values.AFInAppEventType("appsFlyerCount", 0)).AFInAppEventType(hashMap).AFInAppEventType(String.format(AFLogger, AppsFlyerLib.getInstance().getHostPrefix(), AFInAppEventType().getHostName())), this.onResponseError);
        AFd1xSDK afDebugLog = this.onResponseError.afDebugLog();
        afDebugLog.AFKeystoreWrapper.execute(afDebugLog.new AnonymousClass2(aFd1eSDK));
    }

    private void AFInAppEventParameterName(Map<String, Object> map) {
        if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, false) || AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, false)) {
            return;
        }
        int i7 = getSdkVersion + 115;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        if (map.get("advertiserId") != null) {
            try {
                if (AFb1nSDK.AFInAppEventParameterName(this.afDebugLog) && map.remove("android_id") != null) {
                    AFLogger.afInfoLog("validateGaidAndIMEI :: removing: android_id");
                }
                if (AFb1nSDK.AFInAppEventParameterName(this.onResponseError.AFVersionDeclaration().valueOf)) {
                    int i9 = getSdkVersion + 99;
                    onPause = i9 % 128;
                    if (i9 % 2 != 0) {
                        int i10 = 55 / 0;
                        if (map.remove("imei") == null) {
                            return;
                        }
                    } else if (map.remove("imei") == null) {
                        return;
                    }
                    int i11 = onPause + 119;
                    getSdkVersion = i11 % 128;
                    if (i11 % 2 != 0) {
                        AFLogger.afInfoLog("validateGaidAndIMEI :: removing: imei");
                    } else {
                        AFLogger.afInfoLog("validateGaidAndIMEI :: removing: imei");
                        throw null;
                    }
                }
            } catch (Exception e7) {
                AFLogger.afErrorLog("failed to remove IMEI or AndroidID key from params; ", e7);
            }
        }
    }

    private static boolean AFInAppEventType(SharedPreferences sharedPreferences) {
        int i7 = getSdkVersion + 53;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        String string = sharedPreferences.getString("sentSuccessfully", null);
        if (i8 != 0) {
            Boolean.parseBoolean(string);
            throw null;
        }
        boolean parseBoolean = Boolean.parseBoolean(string);
        int i9 = getSdkVersion + 117;
        onPause = i9 % 128;
        int i10 = i9 % 2;
        return parseBoolean;
    }

    private static void AFKeystoreWrapper(String str, boolean z6) {
        int i7 = getSdkVersion + 17;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        AppsFlyerProperties.getInstance().set(str, z6);
        int i9 = onPause + 115;
        getSdkVersion = i9 % 128;
        int i10 = i9 % 2;
    }

    public static boolean valueOf(AFb1zSDK aFb1zSDK, boolean z6) {
        int i7 = getSdkVersion + 97;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        aFb1zSDK.onConversionDataSuccess = z6;
        if (i8 != 0) {
            int i9 = 77 / 0;
        }
        return z6;
    }

    private static void AFInAppEventParameterName(ScheduledExecutorService scheduledExecutorService, Runnable runnable, long j7, TimeUnit timeUnit) {
        String str;
        int i7 = onPause + 69;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        try {
            scheduledExecutorService.schedule(runnable, j7, timeUnit);
            int i9 = getSdkVersion + 123;
            onPause = i9 % 128;
            int i10 = i9 % 2;
        } catch (RejectedExecutionException e7) {
            e = e7;
            str = "scheduleJob failed with RejectedExecutionException Exception";
            AFLogger.afErrorLog(str, e);
        } catch (Throwable th) {
            e = th;
            str = "scheduleJob failed with Exception";
            AFLogger.afErrorLog(str, e);
        }
    }

    private static void AFKeystoreWrapper(JSONObject jSONObject) {
        String str;
        ArrayList arrayList = new ArrayList();
        Iterator<String> keys = jSONObject.keys();
        while (true) {
            if (!keys.hasNext()) {
                break;
            }
            try {
                JSONArray jSONArray = new JSONArray((String) jSONObject.get(keys.next()));
                for (int i7 = 0; i7 < jSONArray.length(); i7++) {
                    arrayList.add(Long.valueOf(jSONArray.getLong(i7)));
                }
            } catch (JSONException e7) {
                AFLogger.afErrorLogForExcManagerOnly("error at timeStampArr", e7);
            }
        }
        Collections.sort(arrayList);
        Iterator<String> keys2 = jSONObject.keys();
        loop2: while (true) {
            str = null;
            while (!(!keys2.hasNext()) && str == null) {
                String next = keys2.next();
                try {
                    JSONArray jSONArray2 = new JSONArray((String) jSONObject.get(next));
                    int i8 = 0;
                    while (i8 < jSONArray2.length()) {
                        int i9 = onPause + 99;
                        getSdkVersion = i9 % 128;
                        if (i9 % 2 != 0) {
                            if (jSONArray2.getLong(i8) == ((Long) arrayList.get(0)).longValue()) {
                                break;
                            }
                            int i10 = onPause + 115;
                            getSdkVersion = i10 % 128;
                            int i11 = i10 % 2;
                            if (jSONArray2.getLong(i8) == ((Long) arrayList.get(1)).longValue()) {
                                break;
                            }
                            i8++;
                            int i12 = onPause + 77;
                            getSdkVersion = i12 % 128;
                            int i13 = i12 % 2;
                            str = next;
                        } else if (jSONArray2.getLong(i8) != ((Long) arrayList.get(1)).longValue()) {
                            int i102 = onPause + 115;
                            getSdkVersion = i102 % 128;
                            int i112 = i102 % 2;
                            if (jSONArray2.getLong(i8) == ((Long) arrayList.get(1)).longValue() && jSONArray2.getLong(i8) != ((Long) arrayList.get(arrayList.size() - 1)).longValue()) {
                                i8++;
                                int i122 = onPause + 77;
                                getSdkVersion = i122 % 128;
                                int i132 = i122 % 2;
                                str = next;
                            }
                        }
                    }
                } catch (JSONException e8) {
                    AFLogger.afErrorLogForExcManagerOnly("error at manageExtraReferrers", e8);
                }
            }
        }
        if (str != null) {
            int i14 = onPause + 65;
            getSdkVersion = i14 % 128;
            int i15 = i14 % 2;
            jSONObject.remove(str);
            if (i15 == 0) {
                int i16 = 10 / 0;
            }
        }
    }

    public static boolean AFInAppEventParameterName(AFb1zSDK aFb1zSDK, AFa1sSDK aFa1sSDK, SharedPreferences sharedPreferences) {
        int i7 = onPause + 77;
        getSdkVersion = i7 % 128;
        int i8 = i7 % 2;
        boolean AFKeystoreWrapper2 = aFb1zSDK.AFKeystoreWrapper(aFa1sSDK, sharedPreferences);
        int i9 = getSdkVersion + 9;
        onPause = i9 % 128;
        int i10 = i9 % 2;
        return AFKeystoreWrapper2;
    }

    private boolean AFKeystoreWrapper(AFa1sSDK aFa1sSDK, SharedPreferences sharedPreferences) {
        boolean z6;
        int i7 = getSdkVersion + 15;
        onPause = i7 % 128;
        int i8 = i7 % 2;
        int AFInAppEventParameterName2 = AFInAppEventParameterName(sharedPreferences, false);
        if (AFInAppEventParameterName2 != 1 || (aFa1sSDK instanceof AFe1hSDK)) {
            z6 = false;
        } else {
            int i9 = onPause + 111;
            getSdkVersion = i9 % 128;
            int i10 = i9 % 2;
            z6 = true;
        }
        if (!sharedPreferences.getBoolean(AppsFlyerProperties.NEW_REFERRER_SENT, false)) {
            int i11 = onPause + 47;
            getSdkVersion = i11 % 128;
            if (i11 % 2 != 0) {
            }
        }
        return z6;
    }

    private static boolean AFInAppEventParameterName(File file) {
        int i7 = getSdkVersion + 15;
        onPause = i7 % 128;
        if (i7 % 2 != 0) {
            throw null;
        }
        if (file != null && file.exists()) {
            return false;
        }
        int i8 = onPause + 23;
        getSdkVersion = i8 % 128;
        int i9 = i8 % 2;
        return true;
    }

    private static boolean AFInAppEventParameterName(String str, boolean z6) {
        int i7 = getSdkVersion + 21;
        onPause = i7 % 128;
        if (i7 % 2 == 0) {
            return AppsFlyerProperties.getInstance().getBoolean(str, z6);
        }
        AppsFlyerProperties.getInstance().getBoolean(str, z6);
        throw null;
    }
}