导航菜单

页面标题

页面副标题

Chaupal v3.2 - AFa1eSDK.java 源代码

正在查看: Chaupal v3.2 应用的 AFa1eSDK.java JAVA 源代码文件

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


package com.appsflyer.internal;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.StrictMode;
import android.text.TextUtils;
import android.view.MotionEvent;
import androidx.annotation.NonNull;
import c5.a;
import com.appsflyer.AFInAppEventParameterName;
import com.appsflyer.AFInAppEventType;
import com.appsflyer.AFKeystoreWrapper;
import com.appsflyer.AFLogger;
import com.appsflyer.AFVersionDeclaration;
import com.appsflyer.AppsFlyerConversionListener;
import com.appsflyer.AppsFlyerInAppPurchaseValidatorListener;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.PurchaseHandler;
import com.appsflyer.attribution.AppsFlyerRequestListener;
import com.appsflyer.deeplink.DeepLinkListener;
import com.appsflyer.deeplink.DeepLinkResult;
import com.appsflyer.internal.AFa1uSDK;
import com.appsflyer.internal.AFb1iSDK;
import com.appsflyer.internal.AFc1bSDK.AnonymousClass4;
import com.appsflyer.internal.AFc1uSDK;
import com.appsflyer.internal.AFd1nSDK;
import com.appsflyer.internal.components.network.http.ResponseNetwork;
import com.appsflyer.internal.platform_extension.PluginInfo;
import com.connectsdk.service.airplay.PListParser;
import com.google.ads.interactivemedia.v3.internal.bpr;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.net.HttpURLConnection;
import java.nio.charset.Charset;
import java.security.KeyStoreException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.TimeZone;
import java.util.UUID;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import q4.t;

public final class AFa1eSDK extends AppsFlyerLib {
    public static final String AFInAppEventType;
    public static final String AFKeystoreWrapper;
    private static String afErrorLog = null;
    private static AFa1eSDK afRDLog = null;
    private static int onAttributionFailure = 0;
    private static int onDeepLinking = 1;
    private static int onResponse;
    static AppsFlyerInAppPurchaseValidatorListener valueOf;
    static final String values;
    String AFLogger;
    private Map<Long, String> AFLogger$LogLevel;
    public AFa1cSDK afInfoLog;
    private String getLevel;
    private Application init;
    private boolean onAppOpenAttributionNative;
    private String onAttributionFailureNative;

    @NonNull
    private final AFc1ySDK onConversionDataFail;
    private SharedPreferences onConversionDataSuccess;
    private boolean onInstallConversionFailureNative;
    private Map<String, Object> onResponseErrorNative;
    private AFb1lSDK onResponseNative;
    public volatile AppsFlyerConversionListener AFInAppEventParameterName = null;
    private long afDebugLog = -1;
    private long afWarnLog = -1;
    private long AFVersionDeclaration = TimeUnit.SECONDS.toMillis(5);
    private boolean afErrorLogForExcManagerOnly = false;
    private final AFb1xSDK onInstallConversionDataLoadedNative = new AFb1xSDK();
    private boolean AppsFlyer2dXConversionCallback = false;
    private boolean onDeepLinkingNative = false;
    private final Executor onAppOpenAttribution = Executors.newSingleThreadExecutor();

    static class AnonymousClass5 {
        static final int[] valueOf;

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

    class AFa1vSDK implements Runnable {
        private final AFa1qSDK AFInAppEventParameterName;

        AFa1vSDK(AFa1eSDK aFa1eSDK, AFa1qSDK aFa1qSDK, byte b7) {
            this(aFa1qSDK);
        }

        @Override
        public final void run() {
            AFa1eSDK.valueOf(AFa1eSDK.this, this.AFInAppEventParameterName);
        }

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

    class AFa1wSDK implements AFc1cSDK {
        private AFa1wSDK() {
        }

        @Override
        public final void AFInAppEventParameterName(AFd1zSDK<?> aFd1zSDK) {
        }

        @Override
        public final void AFInAppEventType(AFd1zSDK<?> aFd1zSDK, AFd1ySDK aFd1ySDK) {
            JSONObject AFKeystoreWrapper;
            AFb1uSDK AFInAppEventParameterName;
            if (!(aFd1zSDK instanceof AFd1hSDK)) {
                if (!(aFd1zSDK instanceof AFe1pSDK) || aFd1ySDK == AFd1ySDK.SUCCESS) {
                    return;
                }
                AFe1rSDK aFe1rSDK = new AFe1rSDK(AFa1eSDK.this.AFInAppEventType());
                AFc1bSDK AFVersionDeclaration = AFa1eSDK.this.AFInAppEventType().AFVersionDeclaration();
                AFVersionDeclaration.AFKeystoreWrapper.execute(AFVersionDeclaration.new AnonymousClass4(aFe1rSDK));
                return;
            }
            AFd1hSDK aFd1hSDK = (AFd1hSDK) aFd1zSDK;
            boolean z6 = aFd1zSDK instanceof AFd1fSDK;
            if (z6 && values()) {
                AFd1fSDK aFd1fSDK = (AFd1fSDK) aFd1zSDK;
                boolean z7 = true;
                if (aFd1fSDK.valueOf != AFd1ySDK.SUCCESS && aFd1fSDK.AFInAppEventType != 1) {
                    z7 = false;
                }
                if (z7) {
                    AFe1pSDK aFe1pSDK = new AFe1pSDK(aFd1fSDK, AFa1eSDK.this.AFInAppEventType().values());
                    AFc1bSDK AFVersionDeclaration2 = AFa1eSDK.this.AFInAppEventType().AFVersionDeclaration();
                    AFVersionDeclaration2.AFKeystoreWrapper.execute(AFVersionDeclaration2.new AnonymousClass4(aFe1pSDK));
                }
            }
            if (aFd1ySDK == AFd1ySDK.SUCCESS) {
                AFa1eSDK aFa1eSDK = AFa1eSDK.this;
                aFa1eSDK.values(AFa1eSDK.AFInAppEventType(aFa1eSDK)).AFInAppEventParameterName("sentSuccessfully", PListParser.TAG_TRUE);
                if (!(aFd1zSDK instanceof AFd1eSDK) && (AFInAppEventParameterName = new AFe1ySDK(AFa1eSDK.AFInAppEventType(AFa1eSDK.this)).AFInAppEventParameterName()) != null && AFInAppEventParameterName.AFKeystoreWrapper()) {
                    String str = AFInAppEventParameterName.valueOf;
                    AFLogger.afDebugLog("Resending Uninstall token to AF servers: ".concat(String.valueOf(str)));
                    AFe1ySDK.valueOf(str);
                }
                ResponseNetwork responseNetwork = ((AFd1oSDK) aFd1hSDK).afErrorLog;
                if (responseNetwork != null && (AFKeystoreWrapper = AFb1vSDK.AFKeystoreWrapper((String) responseNetwork.getBody())) != null) {
                    AFa1eSDK.valueOf(AFa1eSDK.this, AFKeystoreWrapper.optBoolean("send_background", false));
                }
                if (z6) {
                    AFa1eSDK.AFKeystoreWrapper(AFa1eSDK.this, System.currentTimeMillis());
                }
            }
        }

        @Override
        public final void values(AFd1zSDK<?> aFd1zSDK) {
            if (aFd1zSDK instanceof AFd1fSDK) {
                AFa1eSDK.this.AFInAppEventType().afDebugLog().AFKeystoreWrapper(((AFd1hSDK) aFd1zSDK).afInfoLog.AFLogger);
            }
        }

        AFa1wSDK(AFa1eSDK aFa1eSDK, byte b7) {
            this();
        }

        private boolean values() {
            return AFa1eSDK.this.AFInAppEventParameterName != null;
        }
    }

    class AFa1ySDK implements Runnable {
        private final AFa1qSDK values;

        AFa1ySDK(AFa1eSDK aFa1eSDK, AFa1qSDK aFa1qSDK, byte b7) {
            this(aFa1qSDK);
        }

        @Override
        public final void run() {
            AFd1hSDK aFd1hSDK;
            if (this.values.AFInAppEventParameterName()) {
                AFd1fSDK aFd1fSDK = new AFd1fSDK(this.values, AFa1eSDK.this.AFInAppEventType());
                aFd1fSDK.AFVersionDeclaration = AFa1eSDK.values(AFa1eSDK.this);
                aFd1hSDK = aFd1fSDK;
            } else {
                aFd1hSDK = new AFd1hSDK(this.values, AFa1eSDK.this.AFInAppEventType());
            }
            AFc1bSDK AFVersionDeclaration = AFa1eSDK.this.AFInAppEventType().AFVersionDeclaration();
            AFVersionDeclaration.AFKeystoreWrapper.execute(AFVersionDeclaration.new AnonymousClass4(aFd1hSDK));
        }

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

    static {
        values();
        values = "262";
        AFKeystoreWrapper = "6.12";
        afErrorLog = "https://%sstats.%s/stats";
        StringBuilder sb = new StringBuilder();
        sb.append("6.12");
        sb.append("/androidevent?buildnumber=6.12.2&app_id=");
        AFInAppEventType = sb.toString();
        valueOf = null;
        afRDLog = new AFa1eSDK();
        int i7 = onDeepLinking + 93;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
    }

    public AFa1eSDK() {
        AFVersionDeclaration.init();
        this.onConversionDataFail = new AFc1ySDK();
        AFc1bSDK AFVersionDeclaration = AFInAppEventType().AFVersionDeclaration();
        AFVersionDeclaration.values.add(new AFa1wSDK(this, (byte) 0));
    }

    static void AFInAppEventParameterName(AFa1eSDK aFa1eSDK) {
        int i7 = onDeepLinking + 75;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        aFa1eSDK.afWarnLog();
        int i9 = onDeepLinking + 21;
        onAttributionFailure = i9 % 128;
        if (i9 % 2 == 0) {
            return;
        }
        int i10 = 65 / 0;
    }

    static Application AFInAppEventType(AFa1eSDK aFa1eSDK) {
        int i7 = onAttributionFailure + 33;
        int i8 = i7 % 128;
        onDeepLinking = i8;
        char c7 = i7 % 2 == 0 ? 'O' : '&';
        Application application = aFa1eSDK.init;
        if (c7 == 'O') {
            int i9 = 57 / 0;
        }
        int i10 = i8 + 35;
        onAttributionFailure = i10 % 128;
        if (i10 % 2 == 0) {
            return application;
        }
        throw null;
    }

    static long AFKeystoreWrapper(AFa1eSDK aFa1eSDK, long j7) {
        int i7 = onDeepLinking;
        int i8 = i7 + 95;
        onAttributionFailure = i8 % 128;
        boolean z6 = i8 % 2 == 0;
        aFa1eSDK.afWarnLog = j7;
        if (!z6) {
            throw null;
        }
        int i9 = i7 + 77;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
        return j7;
    }

    private boolean AFLogger() {
        boolean AFKeystoreWrapper2;
        int i7 = onAttributionFailure + 119;
        onDeepLinking = i7 % 128;
        if (!(i7 % 2 != 0)) {
            AFKeystoreWrapper2 = AFInAppEventType().AFInAppEventParameterName().AFKeystoreWrapper("AF_PREINSTALL_DISABLED");
            int i8 = 93 / 0;
        } else {
            AFKeystoreWrapper2 = AFInAppEventType().AFInAppEventParameterName().AFKeystoreWrapper("AF_PREINSTALL_DISABLED");
        }
        int i9 = onAttributionFailure + 79;
        onDeepLinking = i9 % 128;
        if ((i9 % 2 == 0 ? (char) 1 : ']') != 1) {
            return AFKeystoreWrapper2;
        }
        throw null;
    }

    private boolean AFLogger$LogLevel() {
        Map<String, Object> map = this.onResponseErrorNative;
        if ((map != null ? '#' : ')') != '#') {
            return false;
        }
        int i7 = onAttributionFailure + 75;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        if ((!map.isEmpty() ? (char) 2 : (char) 3) == 3) {
            return false;
        }
        int i9 = onDeepLinking + 5;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
        return true;
    }

    @NonNull
    private AFf1pSDK[] AFVersionDeclaration() {
        int i7 = onAttributionFailure + 73;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        AFf1pSDK[] valueOf2 = AFInAppEventType().AFLogger$LogLevel().valueOf();
        int i9 = onAttributionFailure + 43;
        onDeepLinking = i9 % 128;
        int i10 = i9 % 2;
        return valueOf2;
    }

    private void afDebugLog() {
        AFf1oSDK AFLogger$LogLevel = AFInAppEventType().AFLogger$LogLevel();
        AFf1qSDK afErrorLog2 = afErrorLog();
        Runnable AFKeystoreWrapper2 = AFKeystoreWrapper(afErrorLog2);
        AFLogger$LogLevel.AFKeystoreWrapper(afErrorLog2);
        AFLogger$LogLevel.AFKeystoreWrapper(new AFf1jSDK(AFKeystoreWrapper2));
        AFLogger$LogLevel.AFKeystoreWrapper(new AFf1nSDK(AFKeystoreWrapper2, AFInAppEventType()));
        AFLogger$LogLevel.AFKeystoreWrapper(new AFf1mSDK(AFKeystoreWrapper2, AFInAppEventType()));
        if ((!AFLogger() ? 'R' : (char) 7) == 'R') {
            int i7 = onAttributionFailure + 21;
            onDeepLinking = i7 % 128;
            if (i7 % 2 == 0) {
                AFLogger$LogLevel.values(this.init, AFKeystoreWrapper2, AFInAppEventType());
                throw null;
            }
            AFLogger$LogLevel.values(this.init, AFKeystoreWrapper2, AFInAppEventType());
            int i8 = onDeepLinking + 29;
            onAttributionFailure = i8 % 128;
            int i9 = i8 % 2;
        }
        AFf1pSDK[] valueOf2 = AFLogger$LogLevel.valueOf();
        int length = valueOf2.length;
        int i10 = 0;
        while (true) {
            if ((i10 < length ? (char) 28 : '^') != 28) {
                return;
            }
            int i11 = onDeepLinking + 1;
            onAttributionFailure = i11 % 128;
            if (i11 % 2 != 0) {
                valueOf2[i10].valueOf(this.init);
                i10 += 12;
            } else {
                valueOf2[i10].valueOf(this.init);
                i10++;
            }
            int i12 = onDeepLinking + 51;
            onAttributionFailure = i12 % 128;
            int i13 = i12 % 2;
        }
    }

    private AFf1qSDK afErrorLog() {
        AFf1qSDK aFf1qSDK = new AFf1qSDK(new Runnable() {
            @Override
            public final void run() {
                AFa1eSDK.this.afErrorLogForExcManagerOnly();
            }
        }, AFInAppEventType().AFInAppEventType());
        int i7 = onDeepLinking + 45;
        onAttributionFailure = i7 % 128;
        if ((i7 % 2 != 0 ? (char) 18 : ')') == ')') {
            return aFf1qSDK;
        }
        throw null;
    }

    public void afErrorLogForExcManagerOnly() {
        ScheduledExecutorService valueOf2;
        Runnable runnable;
        long j7;
        int i7 = onAttributionFailure + 25;
        onDeepLinking = i7 % 128;
        if ((i7 % 2 == 0 ? '*' : 'D') != '*') {
            valueOf2 = AFInAppEventType().valueOf();
            runnable = new Runnable() {
                @Override
                public final void run() {
                    AFa1eSDK.this.getLevel();
                }
            };
            j7 = 0;
        } else {
            valueOf2 = AFInAppEventType().valueOf();
            runnable = new Runnable() {
                @Override
                public final void run() {
                    AFa1eSDK.this.getLevel();
                }
            };
            j7 = 1;
        }
        AFInAppEventParameterName(valueOf2, runnable, j7, TimeUnit.MILLISECONDS);
    }

    private static void afInfoLog(android.content.Context r5) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.afInfoLog(android.content.Context):void");
    }

    private static String afRDLog() {
        int i7 = onAttributionFailure + 121;
        onDeepLinking = i7 % 128;
        if (i7 % 2 != 0) {
            return values(AppsFlyerProperties.APP_ID);
        }
        values(AppsFlyerProperties.APP_ID);
        throw null;
    }

    private void afWarnLog() {
        int i7 = onDeepLinking + 21;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        if (!AFd1lSDK.afInfoLog()) {
            AFc1xSDK AFInAppEventType2 = AFInAppEventType();
            AFc1bSDK AFVersionDeclaration = AFInAppEventType2.AFVersionDeclaration();
            AFVersionDeclaration.AFKeystoreWrapper.execute(AFVersionDeclaration.new AnonymousClass4(new AFd1lSDK(AFInAppEventType2)));
        } else {
            int i9 = onAttributionFailure + 83;
            onDeepLinking = i9 % 128;
            if (i9 % 2 != 0) {
            } else {
                throw null;
            }
        }
    }

    public void getLevel() {
        try {
            AFe1lSDK aFe1lSDK = new AFe1lSDK();
            if ((AFInAppEventParameterName(aFe1lSDK, values(this.init)) ? (char) 22 : 'W') != 'W') {
                int i7 = onAttributionFailure + 91;
                onDeepLinking = i7 % 128;
                int i8 = i7 % 2;
                valueOf(aFe1lSDK);
                int i9 = onAttributionFailure + 1;
                onDeepLinking = i9 % 128;
                int i10 = i9 % 2;
            }
            int i11 = onDeepLinking + 53;
            onAttributionFailure = i11 % 128;
            int i12 = i11 % 2;
        } catch (Throwable th) {
            AFLogger.afErrorLog(th.getMessage(), th);
        }
    }

    static void valueOf(AFa1eSDK aFa1eSDK, AFa1qSDK aFa1qSDK) {
        int i7 = onDeepLinking + 55;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        aFa1eSDK.valueOf(aFa1qSDK);
        int i9 = onDeepLinking + 83;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
    }

    static Map values(AFa1eSDK aFa1eSDK) {
        int i7 = onAttributionFailure + 125;
        int i8 = i7 % 128;
        onDeepLinking = i8;
        int i9 = i7 % 2;
        Map<String, Object> map = aFa1eSDK.onResponseErrorNative;
        int i10 = i8 + 47;
        onAttributionFailure = i10 % 128;
        int i11 = i10 % 2;
        return map;
    }

    static void values() {
        onResponse = bpr.aH;
    }

    @Override
    public final void addPushNotificationDeepLinkPath(String... strArr) {
        int i7 = onDeepLinking + 95;
        onAttributionFailure = i7 % 128;
        if (!(i7 % 2 == 0)) {
            AFInAppEventType().AppsFlyer2dXConversionCallback().AFInAppEventType.contains(Arrays.asList(strArr));
            throw null;
        }
        List<String> asList = Arrays.asList(strArr);
        List<List<String>> list = AFInAppEventType().AppsFlyer2dXConversionCallback().AFInAppEventType;
        if (list.contains(asList)) {
            return;
        }
        list.add(asList);
        int i8 = onDeepLinking + 23;
        onAttributionFailure = i8 % 128;
        int i9 = i8 % 2;
    }

    @Override
    public final void anonymizeUser(boolean z6) {
        int i7 = onDeepLinking + 99;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("anonymizeUser", String.valueOf(z6));
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, z6);
        int i9 = onDeepLinking + 5;
        onAttributionFailure = i9 % 128;
        if ((i9 % 2 != 0 ? '7' : (char) 30) != 30) {
            int i10 = 34 / 0;
        }
    }

    @Override
    public final void appendParametersToDeepLinkingURL(String str, Map<String, String> map) {
        int i7 = onDeepLinking + 1;
        onAttributionFailure = i7 % 128;
        if (i7 % 2 == 0) {
            AFb1sSDK AppsFlyer2dXConversionCallback = AFInAppEventType().AppsFlyer2dXConversionCallback();
            AppsFlyer2dXConversionCallback.AFKeystoreWrapper = str;
            AppsFlyer2dXConversionCallback.values = map;
        } else {
            AFb1sSDK AppsFlyer2dXConversionCallback2 = AFInAppEventType().AppsFlyer2dXConversionCallback();
            AppsFlyer2dXConversionCallback2.AFKeystoreWrapper = str;
            AppsFlyer2dXConversionCallback2.values = map;
            int i8 = 14 / 0;
        }
    }

    @Override
    public final void enableFacebookDeferredApplinks(boolean z6) {
        int i7 = onAttributionFailure;
        int i8 = i7 + 49;
        onDeepLinking = i8 % 128;
        int i9 = i8 % 2;
        this.onDeepLinkingNative = z6;
        int i10 = i7 + 33;
        onDeepLinking = i10 % 128;
        int i11 = i10 % 2;
    }

    @Override
    public final java.lang.String getAppsFlyerUID(@androidx.annotation.NonNull android.content.Context r6) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.getAppsFlyerUID(android.content.Context):java.lang.String");
    }

    @Override
    public final String getAttributionId(Context context) {
        try {
            String AFInAppEventType2 = new AFa1dSDK(context, AFInAppEventType()).AFInAppEventType();
            int i7 = onAttributionFailure + 19;
            onDeepLinking = i7 % 128;
            int i8 = i7 % 2;
            return AFInAppEventType2;
        } catch (Throwable th) {
            AFLogger.afErrorLog("Could not collect facebook attribution id. ", th);
            return null;
        }
    }

    @Override
    public final String getHostName() {
        int i7 = onDeepLinking + 63;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        String AFInAppEventParameterName = AFInAppEventType().onInstallConversionFailureNative().AFInAppEventParameterName();
        int i9 = onAttributionFailure + 83;
        onDeepLinking = i9 % 128;
        if (!(i9 % 2 == 0)) {
            return AFInAppEventParameterName;
        }
        throw null;
    }

    @Override
    public final String getHostPrefix() {
        String valueOf2;
        int i7 = onDeepLinking + 51;
        onAttributionFailure = i7 % 128;
        if (i7 % 2 == 0) {
            valueOf2 = AFInAppEventType().onInstallConversionFailureNative().valueOf();
        } else {
            valueOf2 = AFInAppEventType().onInstallConversionFailureNative().valueOf();
            int i8 = 58 / 0;
        }
        int i9 = onAttributionFailure + 119;
        onDeepLinking = i9 % 128;
        if ((i9 % 2 == 0 ? (char) 7 : '>') == '>') {
            return valueOf2;
        }
        throw null;
    }

    @Override
    public final java.lang.String getOutOfStore(android.content.Context r5) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.getOutOfStore(android.content.Context):java.lang.String");
    }

    @Override
    public final String getSdkVersion() {
        int i7 = onDeepLinking + 91;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        AFc1xSDK AFInAppEventType2 = AFInAppEventType();
        AFInAppEventType2.afErrorLogForExcManagerOnly().AFInAppEventParameterName("getSdkVersion", new String[0]);
        AFInAppEventType2.AFInAppEventParameterName();
        String valueOf2 = AFb1gSDK.valueOf();
        int i9 = onAttributionFailure + 1;
        onDeepLinking = i9 % 128;
        if ((i9 % 2 == 0 ? '<' : (char) 7) == 7) {
            return valueOf2;
        }
        int i10 = 93 / 0;
        return valueOf2;
    }

    @Override
    public final AppsFlyerLib init(@NonNull String str, AppsFlyerConversionListener appsFlyerConversionListener, @NonNull Context context) {
        String str2;
        if ((this.onAppOpenAttributionNative ? '\b' : (char) 26) != 26) {
            return this;
        }
        this.onAppOpenAttributionNative = true;
        AFInAppEventType().afWarnLog().AFInAppEventParameterName = str;
        AFa1aSDK.AFInAppEventType(str);
        if ((context != null ? 'T' : 'D') != 'T') {
            AFLogger.afWarnLog("context is null, Google Install Referrer will be not initialized");
        } else {
            this.init = (Application) context.getApplicationContext();
            AFKeystoreWrapper(context);
            AFInAppEventType().afDebugLog().values = System.currentTimeMillis();
            AFInAppEventType().onConversionDataSuccess().values();
            AFInAppEventType().afRDLog().AFInAppEventParameterName(new AFd1bSDK() {
                @Override
                public final void onRemoteConfigUpdateFinished(AFd1dSDK aFd1dSDK) {
                    AFa1eSDK.this.AFInAppEventParameterName(aFd1dSDK);
                }
            });
            afDebugLog();
            this.onConversionDataFail.afWarnLog().AFInAppEventParameterName();
            int i7 = onAttributionFailure + 85;
            onDeepLinking = i7 % 128;
            int i8 = i7 % 2;
        }
        AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
        String[] strArr = new String[2];
        strArr[0] = str;
        if (appsFlyerConversionListener == null) {
            int i9 = onDeepLinking + 47;
            onAttributionFailure = i9 % 128;
            if (i9 % 2 != 0) {
                throw null;
            }
            str2 = "null";
        } else {
            int i10 = onAttributionFailure + 69;
            onDeepLinking = i10 % 128;
            int i11 = i10 % 2;
            str2 = "conversionDataListener";
        }
        strArr[1] = str2;
        afErrorLogForExcManagerOnly.AFInAppEventParameterName("init", strArr);
        AFLogger.AFInAppEventType(String.format("Initializing AppsFlyer SDK: (v%s.%s)", "6.12.2", values));
        this.AFInAppEventParameterName = appsFlyerConversionListener;
        int i12 = onAttributionFailure + 125;
        onDeepLinking = i12 % 128;
        if (i12 % 2 != 0) {
            return this;
        }
        int i13 = 27 / 0;
        return this;
    }

    @Override
    public final boolean isPreInstalledApp(Context context) {
        int i7 = onDeepLinking + 79;
        onAttributionFailure = 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)) {
            int i9 = onDeepLinking + 113;
            onAttributionFailure = i9 % 128;
            int i10 = i9 % 2;
            return false;
        }
        int i11 = onDeepLinking + 1;
        onAttributionFailure = i11 % 128;
        int i12 = i11 % 2;
        return true;
    }

    @Override
    @Deprecated
    public final boolean isStopped() {
        int i7 = onDeepLinking + 49;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        boolean AFKeystoreWrapper2 = AFInAppEventType().afWarnLog().AFKeystoreWrapper();
        int i9 = onDeepLinking + 103;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
        return AFKeystoreWrapper2;
    }

    @Override
    public final void logEvent(Context context, String str, Map<String, Object> map) {
        int i7 = onDeepLinking + 15;
        onAttributionFailure = i7 % 128;
        char c7 = i7 % 2 != 0 ? 'X' : '2';
        logEvent(context, str, map, null);
        if (c7 != '2') {
            int i8 = 68 / 0;
        }
        int i9 = onDeepLinking + 103;
        onAttributionFailure = i9 % 128;
        if (i9 % 2 == 0) {
            return;
        }
        int i10 = 62 / 0;
    }

    @Override
    public final void logLocation(Context context, double d7, double d8) {
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("logLocation", String.valueOf(d7), String.valueOf(d8));
        HashMap hashMap = new HashMap();
        hashMap.put(AFInAppEventParameterName.LONGITUDE, Double.toString(d8));
        hashMap.put(AFInAppEventParameterName.LATITUDE, Double.toString(d7));
        AFInAppEventType(context, AFInAppEventType.LOCATION_COORDINATES, hashMap);
        int i7 = onDeepLinking + 115;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
    }

    @Override
    public final void logSession(Context context) {
        int i7 = onAttributionFailure + 41;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("logSession", new String[0]);
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName();
        AFInAppEventType(context, AFe1nSDK.logSession);
        AFInAppEventType(context, null, null);
        int i9 = onDeepLinking + 47;
        onAttributionFailure = i9 % 128;
        if ((i9 % 2 != 0 ? '>' : 'C') == 'C') {
        } else {
            throw null;
        }
    }

    @Override
    public final void onPause(Context context) {
        int i7 = onAttributionFailure + 5;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        AFInAppEventType().onResponseNative().AFInAppEventType(context);
        int i9 = onDeepLinking + 43;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    @java.lang.Deprecated
    public final void performOnAppAttribution(@androidx.annotation.NonNull android.content.Context r5, @androidx.annotation.NonNull java.net.URI r6) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.performOnAppAttribution(android.content.Context, java.net.URI):void");
    }

    @Override
    public final void performOnDeepLinking(@NonNull final Intent intent, @NonNull Context context) {
        if (intent == null) {
            AFInAppEventType().AppsFlyer2dXConversionCallback().AFKeystoreWrapper("performOnDeepLinking was called with null intent", DeepLinkResult.Error.DEVELOPER_ERROR);
            return;
        }
        if (!(context == null)) {
            final Context applicationContext = context.getApplicationContext();
            AFKeystoreWrapper(applicationContext);
            AFInAppEventType().AFInAppEventType().execute(new Runnable() {
                @Override
                public final void run() {
                    AFa1eSDK.this.values(applicationContext, intent);
                }
            });
            return;
        }
        int i7 = onAttributionFailure + 125;
        onDeepLinking = i7 % 128;
        if ((i7 % 2 == 0 ? '\t' : (char) 30) == '\t') {
            AFInAppEventType().AppsFlyer2dXConversionCallback().AFKeystoreWrapper("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
            throw null;
        }
        AFInAppEventType().AppsFlyer2dXConversionCallback().AFKeystoreWrapper("performOnDeepLinking was called with null context", DeepLinkResult.Error.DEVELOPER_ERROR);
        int i8 = onAttributionFailure + 113;
        onDeepLinking = i8 % 128;
        int i9 = i8 % 2;
    }

    @Override
    public final void registerConversionListener(Context context, AppsFlyerConversionListener appsFlyerConversionListener) {
        int i7 = onAttributionFailure + 59;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("registerConversionListener", new String[0]);
        AFKeystoreWrapper(appsFlyerConversionListener);
        int i9 = onAttributionFailure + 93;
        onDeepLinking = i9 % 128;
        if ((i9 % 2 == 0 ? 'D' : 'G') != 'D') {
        } else {
            throw null;
        }
    }

    @Override
    public final void registerValidatorListener(Context context, AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener) {
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("registerValidatorListener", new String[0]);
        AFLogger.afDebugLog("registerValidatorListener called");
        if ((appsFlyerInAppPurchaseValidatorListener == null ? (char) 24 : (char) 30) == 30) {
            valueOf = appsFlyerInAppPurchaseValidatorListener;
            return;
        }
        int i7 = onAttributionFailure + 113;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        AFLogger.afDebugLog("registerValidatorListener null listener");
        int i9 = onDeepLinking + 3;
        onAttributionFailure = i9 % 128;
        if ((i9 % 2 != 0 ? (char) 16 : (char) 3) == 3) {
        } else {
            throw null;
        }
    }

    @Override
    public final void sendAdImpression(Context context, Map<String, Object> map) {
        int AFInAppEventType2 = AFInAppEventType(values(context));
        HashMap hashMap = new HashMap();
        hashMap.put("ad_network", map);
        hashMap.put("adimpression_counter", Integer.valueOf(AFInAppEventType2));
        AFKeystoreWrapper(context, hashMap, new AFe1kSDK());
        int i7 = onDeepLinking + 17;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
    }

    @Override
    public final void sendAdRevenue(Context context, Map<String, Object> map) {
        int AFInAppEventParameterName = AFInAppEventParameterName(values(context));
        HashMap hashMap = new HashMap();
        hashMap.put("ad_network", map);
        hashMap.put("adrevenue_counter", Integer.valueOf(AFInAppEventParameterName));
        AFKeystoreWrapper(context, hashMap, new AFe1oSDK());
        int i7 = onDeepLinking + 59;
        onAttributionFailure = i7 % 128;
        if ((i7 % 2 != 0 ? (char) 15 : (char) 28) == 28) {
        } else {
            throw null;
        }
    }

    @Override
    public final void sendInAppPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
        int i7 = onAttributionFailure + 59;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        AFKeystoreWrapper(context);
        PurchaseHandler afErrorLog2 = AFInAppEventType().afErrorLog();
        if (afErrorLog2.AFInAppEventParameterName(map, purchaseValidationCallback, "purchases")) {
            AFd1qSDK aFd1qSDK = new AFd1qSDK(map, purchaseValidationCallback, afErrorLog2.values);
            AFc1bSDK aFc1bSDK = afErrorLog2.valueOf;
            aFc1bSDK.AFKeystoreWrapper.execute(aFc1bSDK.new AnonymousClass4(aFd1qSDK));
        }
        int i9 = onDeepLinking + 25;
        onAttributionFailure = i9 % 128;
        if (!(i9 % 2 != 0)) {
        } else {
            throw null;
        }
    }

    @Override
    public final void sendPurchaseData(Context context, Map<String, Object> map, PurchaseHandler.PurchaseValidationCallback purchaseValidationCallback) {
        int i7 = onDeepLinking + 63;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        AFKeystoreWrapper(context);
        PurchaseHandler afErrorLog2 = AFInAppEventType().afErrorLog();
        if (afErrorLog2.AFInAppEventParameterName(map, purchaseValidationCallback, "subscriptions")) {
            AFd1wSDK aFd1wSDK = new AFd1wSDK(map, purchaseValidationCallback, afErrorLog2.values);
            AFc1bSDK aFc1bSDK = afErrorLog2.valueOf;
            aFc1bSDK.AFKeystoreWrapper.execute(aFc1bSDK.new AnonymousClass4(aFd1wSDK));
        }
        int i9 = onDeepLinking + 35;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
    }

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

    @Override
    public final void setAdditionalData(Map<String, Object> map) {
        int i7 = onAttributionFailure + 29;
        onDeepLinking = i7 % 128;
        if (!(i7 % 2 != 0)) {
            throw null;
        }
        if (map != null) {
            AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setAdditionalData", map.toString());
            AppsFlyerProperties.getInstance().setCustomData(new JSONObject(map).toString());
        }
        int i8 = onAttributionFailure + 99;
        onDeepLinking = i8 % 128;
        int i9 = i8 % 2;
    }

    @Override
    public final void setAndroidIdData(String str) {
        int i7 = onAttributionFailure + 23;
        onDeepLinking = i7 % 128;
        if ((i7 % 2 == 0 ? '6' : (char) 23) != '6') {
            AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setAndroidIdData", str);
        } else {
            AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
            String[] strArr = new String[0];
            strArr[0] = str;
            afErrorLogForExcManagerOnly.AFInAppEventParameterName("setAndroidIdData", strArr);
        }
        this.AFLogger = str;
    }

    @Override
    public final void setAppId(String str) {
        int i7 = onAttributionFailure + 83;
        onDeepLinking = i7 % 128;
        if (!(i7 % 2 == 0)) {
            AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setAppId", str);
        } else {
            AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
            String[] strArr = new String[0];
            strArr[1] = str;
            afErrorLogForExcManagerOnly.AFInAppEventParameterName("setAppId", strArr);
        }
        AFInAppEventType(AppsFlyerProperties.APP_ID, str);
        int i8 = onDeepLinking + 53;
        onAttributionFailure = i8 % 128;
        int i9 = i8 % 2;
    }

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

    @Override
    public final void setCollectAndroidID(boolean z6) {
        int i7 = onAttributionFailure + 107;
        onDeepLinking = i7 % 128;
        if (i7 % 2 == 0) {
            AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setCollectAndroidID", String.valueOf(z6));
        } else {
            AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setCollectAndroidID", String.valueOf(z6));
        }
        AFInAppEventType(AppsFlyerProperties.COLLECT_ANDROID_ID, Boolean.toString(z6));
        AFInAppEventType(AppsFlyerProperties.COLLECT_ANDROID_ID_FORCE_BY_USER, Boolean.toString(z6));
    }

    @Override
    public final void setCollectIMEI(boolean z6) {
        int i7 = onAttributionFailure + 79;
        onDeepLinking = i7 % 128;
        if ((i7 % 2 == 0 ? (char) 19 : '_') != '_') {
            AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
            String[] strArr = new String[0];
            strArr[0] = String.valueOf(z6);
            afErrorLogForExcManagerOnly.AFInAppEventParameterName("setCollectIMEI", strArr);
        } else {
            AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setCollectIMEI", String.valueOf(z6));
        }
        AFInAppEventType(AppsFlyerProperties.COLLECT_IMEI, Boolean.toString(z6));
        AFInAppEventType(AppsFlyerProperties.COLLECT_IMEI_FORCE_BY_USER, Boolean.toString(z6));
        int i8 = onDeepLinking + 59;
        onAttributionFailure = i8 % 128;
        int i9 = i8 % 2;
    }

    @Override
    @Deprecated
    public final void setCollectOaid(boolean z6) {
        int i7 = onDeepLinking + 29;
        onAttributionFailure = i7 % 128;
        if (!(i7 % 2 != 0)) {
            AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setCollectOaid", String.valueOf(z6));
        } else {
            AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
            String[] strArr = new String[0];
            strArr[1] = String.valueOf(z6);
            afErrorLogForExcManagerOnly.AFInAppEventParameterName("setCollectOaid", strArr);
        }
        AFInAppEventType(AppsFlyerProperties.COLLECT_OAID, Boolean.toString(z6));
    }

    @Override
    public final void setCurrencyCode(String str) {
        int i7 = onAttributionFailure + 125;
        onDeepLinking = i7 % 128;
        if ((i7 % 2 == 0 ? (char) 20 : '7') != 20) {
            AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setCurrencyCode", str);
        } else {
            AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
            String[] strArr = new String[0];
            strArr[1] = str;
            afErrorLogForExcManagerOnly.AFInAppEventParameterName("setCurrencyCode", strArr);
        }
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.CURRENCY_CODE, str);
        int i8 = onDeepLinking + 69;
        onAttributionFailure = i8 % 128;
        int i9 = i8 % 2;
    }

    @Override
    public final void setCustomerIdAndLogSession(String str, @NonNull Context context) {
        if (!(context == null)) {
            int i7 = onDeepLinking + 63;
            onAttributionFailure = i7 % 128;
            int i8 = i7 % 2;
            if (!AFKeystoreWrapper()) {
                setCustomerUserId(str);
                AFLogger.afInfoLog("waitForCustomerUserId is false; setting CustomerUserID: ".concat(String.valueOf(str)), true);
                return;
            }
            setCustomerUserId(str);
            StringBuilder sb = new StringBuilder("CustomerUserId set: ");
            sb.append(str);
            sb.append(" - Initializing AppsFlyer Tacking");
            AFLogger.afInfoLog(sb.toString(), true);
            String referrer = AppsFlyerProperties.getInstance().getReferrer(AFInAppEventType().values());
            AFInAppEventType(context, AFe1nSDK.setCustomerIdAndLogSession);
            String str2 = AFInAppEventType().afWarnLog().AFInAppEventParameterName;
            if (!(referrer != null)) {
                referrer = "";
            }
            String str3 = referrer;
            if (context instanceof Activity) {
                int i9 = onAttributionFailure + 29;
                onDeepLinking = i9 % 128;
                boolean z6 = i9 % 2 != 0;
                ((Activity) context).getIntent();
                if (!z6) {
                    int i10 = 72 / 0;
                }
            }
            AFKeystoreWrapper(context, null, null, str3, null);
        }
    }

    @Override
    public final void setCustomerUserId(String str) {
        int i7 = onDeepLinking + 83;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setCustomerUserId", str);
        AFLogger.afInfoLog("setCustomerUserId = ".concat(String.valueOf(str)));
        AFInAppEventType(AppsFlyerProperties.APP_USER_ID, str);
        AFInAppEventType(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, false);
        int i9 = onDeepLinking + 119;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    public final void setDebugLog(boolean r4) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.setDebugLog(boolean):void");
    }

    @Override
    public final void setDisableAdvertisingIdentifiers(boolean z6) {
        boolean z7;
        int i7 = onAttributionFailure + 15;
        onDeepLinking = i7 % 128;
        if (i7 % 2 == 0) {
            AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z6)));
            throw null;
        }
        AFLogger.afDebugLog("setDisableAdvertisingIdentifiers: ".concat(String.valueOf(z6)));
        if ((!z6 ? '@' : '#') != '@') {
            z7 = false;
            int i8 = onDeepLinking + 35;
            onAttributionFailure = i8 % 128;
            int i9 = i8 % 2;
        } else {
            int i10 = onDeepLinking + 29;
            onAttributionFailure = i10 % 128;
            int i11 = i10 % 2;
            z7 = true;
        }
        AFa1cSDK.valueOf = Boolean.valueOf(z7);
        AppsFlyerProperties.getInstance().remove("advertiserIdEnabled");
        AppsFlyerProperties.getInstance().remove("advertiserId");
    }

    @Override
    public final void setDisableNetworkData(boolean z6) {
        int i7 = onAttributionFailure + 15;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        AFLogger.afDebugLog("setDisableNetworkData: ".concat(String.valueOf(z6)));
        AFInAppEventType(AppsFlyerProperties.DISABLE_NETWORK_DATA, z6);
        int i9 = onDeepLinking + 93;
        onAttributionFailure = i9 % 128;
        if ((i9 % 2 != 0 ? '#' : (char) 27) != 27) {
            int i10 = 97 / 0;
        }
    }

    @Override
    public final void setExtension(String str) {
        int i7 = onDeepLinking + 81;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setExtension", str);
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EXTENSION, str);
        int i9 = onAttributionFailure + 65;
        onDeepLinking = i9 % 128;
        if ((i9 % 2 == 0 ? (char) 17 : (char) 2) == 2) {
        } else {
            throw null;
        }
    }

    @Override
    public final void setHost(String str, @NonNull String str2) {
        String trim;
        if (!(!AFb1uSDK.AFInAppEventType(str2))) {
            AFLogger.afWarnLog("hostname was empty or null - call for setHost is skipped");
            return;
        }
        int i7 = onAttributionFailure + 29;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        if ((str != null ? (char) 15 : (char) 7) != 15) {
            trim = "";
        } else {
            trim = str.trim();
            int i9 = onDeepLinking + 95;
            onAttributionFailure = i9 % 128;
            int i10 = i9 % 2;
        }
        AFc1dSDK.valueOf(new AFc1fSDK(trim, str2.trim()));
    }

    @Override
    public final void setImeiData(String str) {
        int i7 = onDeepLinking + 27;
        onAttributionFailure = i7 % 128;
        if ((i7 % 2 != 0 ? 'D' : 'A') != 'D') {
            AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setImeiData", str);
        } else {
            AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
            String[] strArr = new String[0];
            strArr[1] = str;
            afErrorLogForExcManagerOnly.AFInAppEventParameterName("setImeiData", strArr);
        }
        AFInAppEventType().afWarnLog().values = str;
    }

    @Override
    public final void setIsUpdate(boolean z6) {
        int i7 = onAttributionFailure + 119;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setIsUpdate", String.valueOf(z6));
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.IS_UPDATE, z6);
        int i9 = onAttributionFailure + 43;
        onDeepLinking = i9 % 128;
        if ((i9 % 2 == 0 ? (char) 6 : '?') != 6) {
        } else {
            throw null;
        }
    }

    @Override
    public final void setLogLevel(@NonNull AFLogger.LogLevel logLevel) {
        boolean z6;
        if ((logLevel.getLevel() > AFLogger.LogLevel.NONE.getLevel() ? '5' : 'E') != 'E') {
            int i7 = onDeepLinking + 85;
            onAttributionFailure = i7 % 128;
            if (!(i7 % 2 != 0)) {
                z6 = true;
                AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("log", String.valueOf(z6));
                AppsFlyerProperties.getInstance().set("logLevel", logLevel.getLevel());
                int i8 = onDeepLinking + 95;
                onAttributionFailure = i8 % 128;
                int i9 = i8 % 2;
            }
        }
        z6 = false;
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("log", String.valueOf(z6));
        AppsFlyerProperties.getInstance().set("logLevel", logLevel.getLevel());
        int i82 = onDeepLinking + 95;
        onAttributionFailure = i82 % 128;
        int i92 = i82 % 2;
    }

    @Override
    public final void setMinTimeBetweenSessions(int i7) {
        int i8 = onAttributionFailure + 77;
        onDeepLinking = i8 % 128;
        if (!(i8 % 2 == 0)) {
            this.AFVersionDeclaration = TimeUnit.SECONDS.toMillis(i7);
        } else {
            this.AFVersionDeclaration = TimeUnit.SECONDS.toMillis(i7);
            int i9 = 39 / 0;
        }
    }

    @Override
    public final void setOaidData(String str) {
        int i7 = onDeepLinking + 123;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setOaidData", str);
        AFa1cSDK.values = str;
        int i9 = onAttributionFailure + 95;
        onDeepLinking = i9 % 128;
        if (i9 % 2 != 0) {
        } else {
            throw null;
        }
    }

    @Override
    public final void setOneLinkCustomDomain(String... strArr) {
        String format;
        int i7 = onAttributionFailure + 77;
        onDeepLinking = i7 % 128;
        if ((i7 % 2 == 0 ? '#' : '>') != '#') {
            format = String.format("setOneLinkCustomDomain %s", Arrays.toString(strArr));
        } else {
            Object[] objArr = new Object[0];
            objArr[1] = Arrays.toString(strArr);
            format = String.format("setOneLinkCustomDomain %s", objArr);
        }
        AFLogger.afDebugLog(format);
        AFInAppEventType().AppsFlyer2dXConversionCallback().afDebugLog = strArr;
    }

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

    @Override
    public final void setPartnerData(@androidx.annotation.NonNull java.lang.String r6, java.util.Map<java.lang.String, java.lang.Object> r7) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.setPartnerData(java.lang.String, java.util.Map):void");
    }

    @Override
    public final void setPhoneNumber(String str) {
        int i7 = onAttributionFailure + 35;
        onDeepLinking = i7 % 128;
        boolean z6 = i7 % 2 == 0;
        this.onAttributionFailureNative = AFc1nSDK.AFInAppEventType(str);
        if (z6) {
            throw null;
        }
        int i8 = onDeepLinking + 77;
        onAttributionFailure = i8 % 128;
        int i9 = i8 % 2;
    }

    @Override
    public final void setPluginInfo(@NonNull PluginInfo pluginInfo) {
        int i7 = onAttributionFailure + 93;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        Objects.requireNonNull(pluginInfo);
        AFInAppEventType().onInstallConversionDataLoadedNative().AFInAppEventParameterName(pluginInfo);
        int i9 = onAttributionFailure + 25;
        onDeepLinking = i9 % 128;
        int i10 = i9 % 2;
    }

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

    @Override
    public final void setResolveDeepLinkURLs(String... strArr) {
        int i7 = onAttributionFailure + 87;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        AFLogger.afDebugLog(String.format("setResolveDeepLinkURLs %s", Arrays.toString(strArr)));
        AFb1sSDK AppsFlyer2dXConversionCallback = AFInAppEventType().AppsFlyer2dXConversionCallback();
        AppsFlyer2dXConversionCallback.AFLogger.clear();
        AppsFlyer2dXConversionCallback.AFLogger.addAll(Arrays.asList(strArr));
        int i9 = onDeepLinking + 65;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    @Deprecated
    public final void setSharingFilter(@NonNull String... strArr) {
        int i7 = onDeepLinking + 69;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        setSharingFilterForPartners(strArr);
        int i9 = onDeepLinking + 63;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    @Deprecated
    public final void setSharingFilterForAllPartners() {
        int i7 = onDeepLinking + 47;
        onAttributionFailure = i7 % 128;
        if (!(i7 % 2 != 0)) {
            setSharingFilterForPartners("all");
            return;
        }
        String[] strArr = new String[0];
        strArr[1] = "all";
        setSharingFilterForPartners(strArr);
    }

    @Override
    public final void setSharingFilterForPartners(String... strArr) {
        this.afInfoLog = new AFa1cSDK(strArr);
        int i7 = onAttributionFailure + 95;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
    }

    @Override
    public final void setUserEmails(String... strArr) {
        int i7 = onAttributionFailure + 43;
        onDeepLinking = i7 % 128;
        if (i7 % 2 != 0) {
            AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setUserEmails", strArr);
            setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
        } else {
            AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setUserEmails", strArr);
            setUserEmails(AppsFlyerProperties.EmailsCryptType.NONE, strArr);
            int i8 = 7 / 0;
        }
    }

    @Override
    public final void start(@NonNull Context context) {
        int i7 = onDeepLinking + 61;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        start(context, null);
        int i9 = onAttributionFailure + 49;
        onDeepLinking = i9 % 128;
        if (i9 % 2 != 0) {
        } else {
            throw null;
        }
    }

    @Override
    public final void stop(boolean z6, Context context) {
        int i7 = onAttributionFailure + 121;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        AFKeystoreWrapper(context);
        final AFc1xSDK AFInAppEventType2 = AFInAppEventType();
        AFInAppEventType2.afWarnLog().AFInAppEventType = z6;
        AFInAppEventType2.AFInAppEventType().submit(new Runnable() {
            @Override
            public final void run() {
                AFa1eSDK.valueOf(AFc1xSDK.this);
            }
        });
        if ((z6 ? 'C' : 'E') != 'E') {
            int i9 = onDeepLinking + 69;
            onAttributionFailure = i9 % 128;
            int i10 = i9 % 2;
            AFInAppEventType2.values().values("is_stop_tracking_used", true);
        }
        int i11 = onAttributionFailure + 37;
        onDeepLinking = i11 % 128;
        if ((i11 % 2 == 0 ? (char) 29 : ',') != 29) {
            return;
        }
        int i12 = 93 / 0;
    }

    @Override
    public final void subscribeForDeepLink(@NonNull DeepLinkListener deepLinkListener) {
        int i7 = onDeepLinking + 99;
        onAttributionFailure = i7 % 128;
        if ((i7 % 2 != 0 ? '=' : 'W') != '=') {
            subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
        } else {
            subscribeForDeepLink(deepLinkListener, TimeUnit.SECONDS.toMillis(3L));
            int i8 = 39 / 0;
        }
    }

    @Override
    public final void unregisterConversionListener() {
        int i7 = onAttributionFailure + 55;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("unregisterConversionListener", new String[0]);
        this.AFInAppEventParameterName = null;
        int i9 = onDeepLinking + 123;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    public final void updateServerUninstallToken(Context context, String str) {
        AFKeystoreWrapper(context);
        AFe1ySDK aFe1ySDK = new AFe1ySDK(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));
        AFb1uSDK AFInAppEventParameterName = aFe1ySDK.AFInAppEventParameterName();
        if (AFInAppEventParameterName == null || !str.equals(AFInAppEventParameterName.valueOf)) {
            long currentTimeMillis = System.currentTimeMillis();
            boolean z6 = AFInAppEventParameterName == null || currentTimeMillis - AFInAppEventParameterName.AFKeystoreWrapper > TimeUnit.SECONDS.toMillis(2L);
            AFb1uSDK aFb1uSDK = new AFb1uSDK(str, currentTimeMillis, !z6);
            aFe1ySDK.values.AFInAppEventParameterName("afUninstallToken", aFb1uSDK.valueOf);
            aFe1ySDK.values.AFInAppEventParameterName("afUninstallToken_received_time", aFb1uSDK.AFKeystoreWrapper);
            aFe1ySDK.values.values("afUninstallToken_queued", aFb1uSDK.AFKeystoreWrapper());
            if (z6) {
                AFe1ySDK.valueOf(str);
            }
        }
    }

    @Override
    public final void validateAndLogInAppPurchase(Context context, String str, String str2, String str3, String str4, String str5, Map<String, String> map) {
        AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
        String[] strArr = new String[6];
        strArr[0] = str;
        strArr[1] = str2;
        strArr[2] = str3;
        strArr[3] = str4;
        strArr[4] = str5;
        strArr[5] = map == null ? "" : map.toString();
        afErrorLogForExcManagerOnly.AFInAppEventParameterName("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 AFa1gSDK(context.getApplicationContext(), AFInAppEventType().afWarnLog().AFInAppEventParameterName, str, str2, str3, str4, str5, map, context instanceof Activity ? ((Activity) context).getIntent() : null)).start();
            return;
        }
        AppsFlyerInAppPurchaseValidatorListener appsFlyerInAppPurchaseValidatorListener = valueOf;
        if (appsFlyerInAppPurchaseValidatorListener != null) {
            appsFlyerInAppPurchaseValidatorListener.onValidateInAppFailure("Please provide purchase parameters");
        }
    }

    @Override
    public final void waitForCustomerUserId(boolean z6) {
        int i7 = onDeepLinking + 77;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        AFLogger.afInfoLog("initAfterCustomerUserID: ".concat(String.valueOf(z6)), true);
        AFInAppEventType(AppsFlyerProperties.AF_WAITFOR_CUSTOMERID, z6);
        int i9 = onDeepLinking + 45;
        onAttributionFailure = i9 % 128;
        if ((i9 % 2 != 0 ? 'Z' : (char) 2) != 'Z') {
        } else {
            throw null;
        }
    }

    public void AFInAppEventParameterName(AFd1dSDK aFd1dSDK) {
        int i7 = onAttributionFailure + 111;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        if ((aFd1dSDK == AFd1dSDK.SUCCESS ? 'F' : '&') == 'F') {
            int i9 = onDeepLinking + 75;
            onAttributionFailure = i9 % 128;
            if (i9 % 2 != 0) {
                AFInAppEventType().onConversionDataSuccess().AFInAppEventType();
                throw null;
            }
            AFInAppEventType().onConversionDataSuccess().AFInAppEventType();
        }
        int i10 = onDeepLinking + 81;
        onAttributionFailure = i10 % 128;
        if ((i10 % 2 != 0 ? (char) 2 : '(') != 2) {
        } else {
            throw null;
        }
    }

    private long AFLogger(Context context) {
        int i7 = onAttributionFailure + 115;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        AFb1dSDK values2 = values(context);
        long valueOf2 = values2.valueOf("AppsFlyerTimePassedSincePrevLaunch", 0L);
        long currentTimeMillis = System.currentTimeMillis();
        values2.AFInAppEventParameterName("AppsFlyerTimePassedSincePrevLaunch", currentTimeMillis);
        if (valueOf2 <= 0) {
            int i9 = onDeepLinking + 65;
            onAttributionFailure = i9 % 128;
            if (i9 % 2 == 0) {
                return -1L;
            }
            throw null;
        }
        int i10 = onAttributionFailure;
        int i11 = i10 + 83;
        onDeepLinking = i11 % 128;
        long j7 = (!(i11 % 2 != 0) ? currentTimeMillis / valueOf2 : currentTimeMillis - valueOf2) / 1000;
        int i12 = i10 + 15;
        onDeepLinking = i12 % 128;
        if (i12 % 2 != 0) {
            return j7;
        }
        throw null;
    }

    static boolean valueOf(AFa1eSDK aFa1eSDK, boolean z6) {
        int i7 = onDeepLinking;
        int i8 = i7 + 119;
        onAttributionFailure = i8 % 128;
        int i9 = i8 % 2;
        aFa1eSDK.AppsFlyer2dXConversionCallback = z6;
        int i10 = i7 + 21;
        onAttributionFailure = i10 % 128;
        if (i10 % 2 == 0) {
            return z6;
        }
        throw null;
    }

    private static String values(String str) {
        int i7 = onDeepLinking + 117;
        onAttributionFailure = i7 % 128;
        if (!(i7 % 2 != 0)) {
            return AppsFlyerProperties.getInstance().getString(str);
        }
        AppsFlyerProperties.getInstance().getString(str);
        throw null;
    }

    public final AFc1xSDK AFInAppEventType() {
        int i7 = onDeepLinking;
        int i8 = i7 + 19;
        onAttributionFailure = i8 % 128;
        int i9 = i8 % 2;
        AFc1ySDK aFc1ySDK = this.onConversionDataFail;
        int i10 = i7 + 5;
        onAttributionFailure = i10 % 128;
        if (!(i10 % 2 != 0)) {
            return aFc1ySDK;
        }
        int i11 = 48 / 0;
        return aFc1ySDK;
    }

    public final boolean AFKeystoreWrapper() {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.AFKeystoreWrapper():boolean");
    }

    @Override
    public final void logEvent(@NonNull Context context, String str, Map<String, Object> map, AppsFlyerRequestListener appsFlyerRequestListener) {
        HashMap hashMap = map == null ? null : new HashMap(map);
        AFKeystoreWrapper(context);
        AFe1iSDK aFe1iSDK = new AFe1iSDK();
        aFe1iSDK.afDebugLog = str;
        aFe1iSDK.AFInAppEventParameterName = 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.AFKeystoreWrapper("Parsing failed due to invalid input in 'af_touch_obj'.");
            }
            Map<String, ?> singletonMap = Collections.singletonMap("tch_data", hashMap2);
            hashMap.remove(AFInAppEventParameterName.TOUCH_OBJ);
            aFe1iSDK.values(singletonMap);
        }
        aFe1iSDK.values = hashMap;
        AFb1tSDK afErrorLogForExcManagerOnly = AFInAppEventType().afErrorLogForExcManagerOnly();
        String[] strArr = new String[2];
        strArr[0] = str;
        Map map2 = aFe1iSDK.values;
        if (map2 == null) {
            map2 = new HashMap();
        }
        strArr[1] = new JSONObject(map2).toString();
        afErrorLogForExcManagerOnly.AFInAppEventParameterName("logEvent", strArr);
        if (str == null) {
            AFInAppEventType(context, AFe1nSDK.logEvent);
        }
        values(aFe1iSDK, context instanceof Activity ? (Activity) context : null);
    }

    @Override
    public final void start(@NonNull Context context, String str) {
        int i7 = onAttributionFailure + 39;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        start(context, str, null);
        int i9 = onDeepLinking + 37;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
    }

    @Override
    public final void subscribeForDeepLink(@NonNull DeepLinkListener deepLinkListener, long j7) {
        int i7 = onDeepLinking + 83;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        AFInAppEventType().AppsFlyer2dXConversionCallback().AFInAppEventParameterName = deepLinkListener;
        AFInAppEventType().AppsFlyer2dXConversionCallback().afInfoLog = j7;
        int i9 = onAttributionFailure + 45;
        onDeepLinking = i9 % 128;
        if (i9 % 2 == 0) {
            int i10 = 87 / 0;
        }
    }

    private Runnable AFKeystoreWrapper(final AFf1qSDK aFf1qSDK) {
        int i7 = onAttributionFailure + 81;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        Runnable runnable = new Runnable() {
            @Override
            public final void run() {
                AFa1eSDK.this.AFInAppEventType(aFf1qSDK);
            }
        };
        int i9 = onAttributionFailure + 13;
        onDeepLinking = i9 % 128;
        if (i9 % 2 == 0) {
            throw null;
        }
        return runnable;
    }

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

    public static AFa1eSDK valueOf() {
        AFa1eSDK aFa1eSDK;
        int i7 = onDeepLinking + 33;
        int i8 = i7 % 128;
        onAttributionFailure = i8;
        if (!(i7 % 2 != 0)) {
            aFa1eSDK = afRDLog;
        } else {
            aFa1eSDK = afRDLog;
            int i9 = 80 / 0;
        }
        int i10 = i8 + 51;
        onDeepLinking = i10 % 128;
        int i11 = i10 % 2;
        return aFa1eSDK;
    }

    public final void AFInAppEventType(Context context, Intent intent) {
        int i7 = onDeepLinking + 71;
        onAttributionFailure = i7 % 128;
        if (i7 % 2 == 0) {
            if (intent.getStringExtra("appsflyer_preinstall") != null) {
                int i8 = onAttributionFailure + 23;
                onDeepLinking = i8 % 128;
                int i9 = i8 % 2;
                AFKeystoreWrapper(intent.getStringExtra("appsflyer_preinstall"));
                int i10 = onDeepLinking + 59;
                onAttributionFailure = i10 % 128;
                int i11 = i10 % 2;
            }
            AFLogger.afInfoLog("****** onReceive called *******");
            AppsFlyerProperties.getInstance();
            String stringExtra = intent.getStringExtra("referrer");
            AFLogger.afInfoLog("Play store referrer: ".concat(String.valueOf(stringExtra)));
            if (stringExtra != null) {
                values(context).AFInAppEventParameterName("referrer", stringExtra);
                AppsFlyerProperties appsFlyerProperties = AppsFlyerProperties.getInstance();
                appsFlyerProperties.set("AF_REFERRER", stringExtra);
                appsFlyerProperties.AFKeystoreWrapper = stringExtra;
                if (AppsFlyerProperties.getInstance().AFInAppEventType()) {
                    AFLogger.afInfoLog("onReceive: isLaunchCalled");
                    AFInAppEventType(context, AFe1nSDK.onReceive);
                    AFKeystoreWrapper(context, stringExtra);
                }
            }
            int i12 = onDeepLinking + 29;
            onAttributionFailure = i12 % 128;
            int i13 = i12 % 2;
            return;
        }
        intent.getStringExtra("appsflyer_preinstall");
        throw null;
    }

    @Override
    public final void start(@NonNull Context context, String str, final AppsFlyerRequestListener appsFlyerRequestListener) {
        int i7 = onDeepLinking + 57;
        onAttributionFailure = i7 % 128;
        if (i7 % 2 != 0) {
            AFInAppEventType().onResponseNative().AFInAppEventType();
            throw null;
        }
        if (AFInAppEventType().onResponseNative().AFInAppEventType()) {
            return;
        }
        if ((!this.onAppOpenAttributionNative ? '\'' : '\b') == '\'') {
            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) {
                    int i8 = onAttributionFailure + 75;
                    onDeepLinking = i8 % 128;
                    if ((i8 % 2 == 0 ? ')' : '&') != ')') {
                        appsFlyerRequestListener.onError(41, "No dev key");
                        return;
                    } else {
                        appsFlyerRequestListener.onError(7, "No dev key");
                        return;
                    }
                }
                return;
            }
        }
        AFKeystoreWrapper(context);
        final AFe1mSDK afDebugLog = AFInAppEventType().afDebugLog();
        afDebugLog.AFKeystoreWrapper(AFa1rSDK.AFInAppEventParameterName(context));
        this.init = (Application) context.getApplicationContext();
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("start", str);
        String str2 = values;
        AFLogger.afInfoLog(String.format("Starting AppsFlyer: (v%s.%s)", "6.12.2", str2));
        StringBuilder sb = new StringBuilder("Build Number: ");
        sb.append(str2);
        AFLogger.afInfoLog(sb.toString());
        AppsFlyerProperties.getInstance().loadProperties(AFInAppEventType().values());
        if (!TextUtils.isEmpty(str)) {
            int i9 = onAttributionFailure + 17;
            onDeepLinking = i9 % 128;
            int i10 = i9 % 2;
            AFInAppEventType().afWarnLog().AFInAppEventParameterName = str;
            AFa1aSDK.AFInAppEventType(str);
        } else {
            if (TextUtils.isEmpty(AFInAppEventType().afWarnLog().AFInAppEventParameterName)) {
                int i11 = onAttributionFailure + 111;
                onDeepLinking = i11 % 128;
                if (i11 % 2 != 0) {
                    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 ? 'O' : 'a') == 'O') {
                        appsFlyerRequestListener.onError(41, "No dev key");
                    }
                    int i12 = onAttributionFailure + 31;
                    onDeepLinking = i12 % 128;
                    int i13 = i12 % 2;
                    return;
                }
                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).");
                throw null;
            }
        }
        AFInAppEventType().afRDLog().AFInAppEventParameterName((AFd1bSDK) null);
        afWarnLog();
        afInfoLog(this.init.getBaseContext());
        if (this.onDeepLinkingNative) {
            AFInAppEventType(this.init.getApplicationContext());
        }
        this.onConversionDataFail.onResponseNative().AFKeystoreWrapper(context, new AFb1iSDK.AFa1wSDK() {
            @Override
            public final void AFInAppEventType(@NonNull Context context2) {
                AFLogger.afInfoLog("onBecameBackground");
                AFe1mSDK aFe1mSDK = afDebugLog;
                long currentTimeMillis = System.currentTimeMillis();
                long j7 = aFe1mSDK.afErrorLog;
                if (j7 != 0) {
                    long j8 = currentTimeMillis - j7;
                    if (j8 > 0 && j8 < 1000) {
                        j8 = 1000;
                    }
                    long seconds = TimeUnit.MILLISECONDS.toSeconds(j8);
                    aFe1mSDK.afWarnLog = seconds;
                    aFe1mSDK.valueOf.AFInAppEventParameterName("prev_session_dur", seconds);
                } else {
                    AFLogger.afInfoLog("Metrics: fg ts is missing");
                }
                AFLogger.afInfoLog("callStatsBackground background call");
                AFa1eSDK.this.AFKeystoreWrapper(new WeakReference<>(context2));
                AFa1eSDK.this.AFInAppEventType().onConversionDataSuccess().valueOf();
                AFb1tSDK afErrorLogForExcManagerOnly = AFa1eSDK.this.AFInAppEventType().afErrorLogForExcManagerOnly();
                if (afErrorLogForExcManagerOnly.afInfoLog()) {
                    afErrorLogForExcManagerOnly.values();
                    if (context2 != null && !AppsFlyerLib.getInstance().isStopped()) {
                        afErrorLogForExcManagerOnly.valueOf(context2.getPackageName(), context2.getPackageManager(), AFa1eSDK.this.AFInAppEventType());
                    }
                    afErrorLogForExcManagerOnly.valueOf();
                } else {
                    AFLogger.afDebugLog("RD status is OFF");
                }
                AFa1eSDK.this.AFInAppEventType().getLevel().AFInAppEventType();
            }

            @Override
            public final void values(@NonNull Activity activity) {
                afDebugLog.values();
                AFa1eSDK.this.AFInAppEventType().afRDLog().AFInAppEventParameterName((AFd1bSDK) null);
                AFa1eSDK.AFInAppEventParameterName(AFa1eSDK.this);
                AFa1eSDK aFa1eSDK = AFa1eSDK.this;
                int valueOf2 = aFa1eSDK.valueOf(aFa1eSDK.values(activity), false);
                AFLogger.afInfoLog("onBecameForeground");
                if (valueOf2 < 2) {
                    AFa1eSDK.this.AFInAppEventType().getLevel().AFInAppEventParameterName();
                }
                AFe1hSDK aFe1hSDK = new AFe1hSDK();
                if (activity != null) {
                    AFa1eSDK.this.AFInAppEventType().AppsFlyer2dXConversionCallback().valueOf(aFe1hSDK.valueOf(), activity.getIntent(), activity.getApplication());
                }
                AFa1eSDK aFa1eSDK2 = AFa1eSDK.this;
                aFe1hSDK.AFInAppEventParameterName = appsFlyerRequestListener;
                aFa1eSDK2.values(aFe1hSDK, activity);
            }
        });
    }

    final void values(@NonNull AFa1qSDK aFa1qSDK, Activity activity) {
        AFInAppEventType(aFa1qSDK, activity);
        if (AFInAppEventType().afWarnLog().AFInAppEventParameterName == null) {
            int i7 = onDeepLinking + 65;
            onAttributionFailure = i7 % 128;
            if (i7 % 2 == 0) {
                AFLogger.afWarnLog("[LogEvent/Launch] AppsFlyer's SDK cannot send any event without providing DevKey.");
                AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.AFInAppEventParameterName;
                if (appsFlyerRequestListener != null) {
                    appsFlyerRequestListener.onError(41, "No dev key");
                    return;
                }
                return;
            }
            AFLogger.afWarnLog("[LogEvent/Launch] AppsFlyer's SDK cannot send any event without providing DevKey.");
            AppsFlyerRequestListener appsFlyerRequestListener2 = aFa1qSDK.AFInAppEventParameterName;
            throw null;
        }
        String referrer = AppsFlyerProperties.getInstance().getReferrer(AFInAppEventType().values());
        if ((referrer == null ? (char) 15 : (char) 25) != 15) {
            int i8 = onDeepLinking + 99;
            onAttributionFailure = i8 % 128;
            int i9 = i8 % 2;
        } else {
            referrer = "";
        }
        aFa1qSDK.afErrorLog = referrer;
        AFInAppEventType(aFa1qSDK);
        int i10 = onDeepLinking + 95;
        onAttributionFailure = i10 % 128;
        int i11 = i10 % 2;
    }

    private static void valueOf(org.json.JSONObject r14) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.valueOf(org.json.JSONObject):void");
    }

    final void AFKeystoreWrapper(WeakReference<Context> weakReference) {
        int i7 = onDeepLinking + 3;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        if (weakReference.get() == null) {
            return;
        }
        AFLogger.afInfoLog("app went to background");
        AFb1dSDK values2 = values(weakReference.get());
        AppsFlyerProperties.getInstance().saveProperties(values2);
        long j7 = AFInAppEventType().afDebugLog().afWarnLog;
        HashMap hashMap = new HashMap();
        String str = AFInAppEventType().afWarnLog().AFInAppEventParameterName;
        if ((str == null ? 'W' : (char) 0) != 'W') {
            String values3 = values("KSAppsFlyerId");
            if (AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, false)) {
                hashMap.put(AppsFlyerProperties.DEVICE_TRACKING_DISABLED, PListParser.TAG_TRUE);
                int i9 = onDeepLinking + 57;
                onAttributionFailure = i9 % 128;
                int i10 = i9 % 2;
            }
            AFc1uSDK.AFa1wSDK AFInAppEventParameterName = AFa1cSDK.AFInAppEventParameterName(weakReference.get().getContentResolver());
            if (AFInAppEventParameterName != null) {
                hashMap.put("amazon_aid", AFInAppEventParameterName.valueOf);
                hashMap.put("amazon_aid_limit", String.valueOf(AFInAppEventParameterName.AFInAppEventType));
            }
            String string = AppsFlyerProperties.getInstance().getString("advertiserId");
            if (string != null) {
                hashMap.put("advertiserId", string);
                int i11 = onAttributionFailure + 105;
                onDeepLinking = i11 % 128;
                int i12 = i11 % 2;
            }
            hashMap.put("app_id", weakReference.get().getPackageName());
            hashMap.put("devkey", str);
            hashMap.put("uid", AFb1zSDK.valueOf(AFInAppEventType().init(), AFInAppEventType().values()));
            hashMap.put("time_in_app", String.valueOf(j7));
            hashMap.put("statType", "user_closed_app");
            hashMap.put("platform", "Android");
            hashMap.put("launch_counter", Integer.toString(valueOf(values2, false)));
            hashMap.put(AppsFlyerProperties.CHANNEL, AFInAppEventType().AFInAppEventParameterName().values());
            if (values3 == null) {
                values3 = "";
            }
            hashMap.put("originalAppsflyerId", values3);
            if (this.AppsFlyer2dXConversionCallback) {
                AFe1bSDK aFe1bSDK = new AFe1bSDK();
                aFe1bSDK.afErrorLogForExcManagerOnly = isStopped();
                AFd1hSDK aFd1hSDK = new AFd1hSDK((AFe1bSDK) aFe1bSDK.AFInAppEventParameterName(AFInAppEventType().AFInAppEventParameterName().AFInAppEventType.values("appsFlyerCount", 0)).values(hashMap).AFKeystoreWrapper(String.format(afErrorLog, AppsFlyerLib.getInstance().getHostPrefix(), valueOf().getHostName())), AFInAppEventType());
                AFc1bSDK AFVersionDeclaration = AFInAppEventType().AFVersionDeclaration();
                AFVersionDeclaration.AFKeystoreWrapper.execute(AFVersionDeclaration.new AnonymousClass4(aFd1hSDK));
                return;
            }
            AFLogger.afDebugLog("Stats call is disabled, ignore ...");
            int i13 = onDeepLinking + 99;
            onAttributionFailure = i13 % 128;
            if ((i13 % 2 != 0 ? 'V' : 'J') != 'J') {
                int i14 = 16 / 0;
                return;
            }
            return;
        }
        AFLogger.afWarnLog("[callStats] AppsFlyer's SDK cannot send any event without providing DevKey.");
    }

    public static String AFInAppEventParameterName() {
        int i7 = onDeepLinking + 3;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        String values2 = values(AppsFlyerProperties.APP_USER_ID);
        int i9 = onAttributionFailure + 99;
        onDeepLinking = i9 % 128;
        int i10 = i9 % 2;
        return values2;
    }

    private boolean AFInAppEventParameterName(com.appsflyer.internal.AFa1qSDK r6, com.appsflyer.internal.AFb1dSDK r7) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.AFInAppEventParameterName(com.appsflyer.internal.AFa1qSDK, com.appsflyer.internal.AFb1dSDK):boolean");
    }

    @Override
    public final void setUserEmails(AppsFlyerProperties.EmailsCryptType emailsCryptType, String... strArr) {
        ArrayList arrayList = new ArrayList(strArr.length + 1);
        arrayList.add(emailsCryptType.toString());
        arrayList.addAll(Arrays.asList(strArr));
        AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName("setUserEmails", (String[]) arrayList.toArray(new String[strArr.length + 1]));
        AppsFlyerProperties.getInstance().set(AppsFlyerProperties.EMAIL_CRYPT_TYPE, emailsCryptType.getValue());
        HashMap hashMap = new HashMap();
        String str = null;
        ArrayList arrayList2 = new ArrayList();
        int length = strArr.length;
        int i7 = 0;
        int i8 = onAttributionFailure + 93;
        onDeepLinking = i8 % 128;
        int i9 = i8 % 2;
        while (true) {
            if ((i7 < length ? (char) 30 : '@') != '@') {
                int i10 = onDeepLinking + 33;
                onAttributionFailure = i10 % 128;
                int i11 = i10 % 2;
                String str2 = strArr[i7];
                if (AnonymousClass5.valueOf[emailsCryptType.ordinal()] != 2) {
                    arrayList2.add(AFc1nSDK.AFInAppEventType(str2));
                    str = "sha256_el_arr";
                } else {
                    arrayList2.add(str2);
                    str = "plain_el_arr";
                }
                i7++;
            } else {
                hashMap.put(str, arrayList2);
                AppsFlyerProperties.getInstance().setUserEmails(new JSONObject(hashMap).toString());
                return;
            }
        }
    }

    private void AFInAppEventParameterName(java.util.Map<java.lang.String, java.lang.Object> r5) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.AFInAppEventParameterName(java.util.Map):void");
    }

    private boolean afInfoLog() {
        int i7 = onDeepLinking + 93;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        if (this.afDebugLog > 0) {
            long currentTimeMillis = System.currentTimeMillis() - this.afDebugLog;
            Locale locale = Locale.US;
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss.SSS Z", locale);
            String AFInAppEventType2 = AFInAppEventType(simpleDateFormat, this.afDebugLog);
            String AFInAppEventType3 = AFInAppEventType(simpleDateFormat, this.afWarnLog);
            if (currentTimeMillis < this.AFVersionDeclaration) {
                int i9 = onAttributionFailure + 35;
                onDeepLinking = i9 % 128;
                int i10 = i9 % 2;
                if (!(isStopped())) {
                    int i11 = onAttributionFailure + 121;
                    onDeepLinking = i11 % 128;
                    int i12 = i11 % 2;
                    AFLogger.afInfoLog(String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nThis launch is blocked: %s ms < %s ms", AFInAppEventType2, AFInAppEventType3, Long.valueOf(currentTimeMillis), Long.valueOf(this.AFVersionDeclaration)));
                    return true;
                }
            }
            if (!isStopped()) {
                AFLogger.afInfoLog(String.format(locale, "Last Launch attempt: %s;\nLast successful Launch event: %s;\nSending launch (+%s ms)", AFInAppEventType2, AFInAppEventType3, Long.valueOf(currentTimeMillis)));
            }
        } else {
            if ((!isStopped() ? '\n' : '`') != '`') {
                int i13 = onAttributionFailure + 11;
                onDeepLinking = i13 % 128;
                boolean z6 = i13 % 2 != 0;
                AFLogger.afInfoLog("Sending first launch for this session!");
                if (!z6) {
                    throw null;
                }
            }
        }
        int i14 = onDeepLinking + 59;
        onAttributionFailure = i14 % 128;
        if (i14 % 2 == 0) {
            return false;
        }
        throw null;
    }

    public static Map<String, Object> values(Map<String, Object> map) {
        int i7 = onDeepLinking + 73;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        if (map.containsKey("meta")) {
            int i9 = onDeepLinking + 13;
            onAttributionFailure = i9 % 128;
            boolean z6 = i9 % 2 != 0;
            Map<String, Object> map2 = (Map) map.get("meta");
            if (!z6) {
                return map2;
            }
            throw null;
        }
        HashMap hashMap = new HashMap();
        map.put("meta", hashMap);
        return hashMap;
    }

    public final void AFInAppEventType(Context context, String str) {
        JSONArray jSONArray;
        JSONArray jSONArray2;
        JSONObject jSONObject;
        AFLogger.afDebugLog("received a new (extra) referrer: ".concat(String.valueOf(str)));
        try {
            long currentTimeMillis = System.currentTimeMillis();
            String values2 = values(context).values("extraReferrers", (String) null);
            if (values2 == null) {
                jSONObject = new JSONObject();
                jSONArray2 = new JSONArray();
            } else {
                JSONObject jSONObject2 = new JSONObject(values2);
                if (jSONObject2.has(str)) {
                    jSONArray = new JSONArray((String) jSONObject2.get(str));
                } else {
                    jSONArray = new JSONArray();
                    int i7 = onDeepLinking + 49;
                    onAttributionFailure = i7 % 128;
                    int i8 = i7 % 2;
                }
                jSONArray2 = jSONArray;
                jSONObject = jSONObject2;
            }
            if ((((long) jSONArray2.length()) < 5 ? 'R' : '\'') != '\'') {
                jSONArray2.put(currentTimeMillis);
            }
            if ((((long) jSONObject.length()) >= 4 ? '9' : '.') != '.') {
                int i9 = onAttributionFailure + 53;
                onDeepLinking = i9 % 128;
                int i10 = i9 % 2;
                valueOf(jSONObject);
                int i11 = onDeepLinking + 1;
                onAttributionFailure = i11 % 128;
                int i12 = i11 % 2;
            }
            jSONObject.put(str, jSONArray2.toString());
            values(context).AFInAppEventParameterName("extraReferrers", jSONObject.toString());
        } catch (JSONException e7) {
            AFLogger.afErrorLogForExcManagerOnly("error at addReferrer", e7);
        } catch (Throwable th) {
            StringBuilder sb = new StringBuilder("Couldn't save referrer - ");
            sb.append(str);
            sb.append(": ");
            AFLogger.afErrorLog(sb.toString(), th);
        }
    }

    private String values(Context context, String str) {
        if ((context == null ? '1' : ']') == '1') {
            int i7 = onDeepLinking + 7;
            onAttributionFailure = i7 % 128;
            if ((i7 % 2 != 0 ? '=' : 'A') != '=') {
                return null;
            }
            throw null;
        }
        AFKeystoreWrapper(context);
        String AFInAppEventType2 = AFInAppEventType().AFInAppEventParameterName().AFInAppEventType(str);
        int i8 = onDeepLinking + 63;
        onAttributionFailure = i8 % 128;
        int i9 = i8 % 2;
        return AFInAppEventType2;
    }

    public static void valueOf(AFc1xSDK aFc1xSDK) {
        int i7 = onDeepLinking + 87;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        aFc1xSDK.onAppOpenAttributionNative().AFInAppEventType();
        int i9 = onDeepLinking + 53;
        onAttributionFailure = i9 % 128;
        if (i9 % 2 != 0) {
            throw null;
        }
    }

    final java.util.Map<java.lang.String, java.lang.Object> AFInAppEventParameterName(com.appsflyer.internal.AFa1qSDK r37) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.AFInAppEventParameterName(com.appsflyer.internal.AFa1qSDK):java.util.Map");
    }

    private static boolean valueOf(String str, boolean z6) {
        int i7 = onDeepLinking + 21;
        onAttributionFailure = i7 % 128;
        if ((i7 % 2 != 0 ? '!' : '\t') == '!') {
            AppsFlyerProperties.getInstance().getBoolean(str, z6);
            throw null;
        }
        boolean z7 = AppsFlyerProperties.getInstance().getBoolean(str, z6);
        int i8 = onAttributionFailure + 117;
        onDeepLinking = i8 % 128;
        if (!(i8 % 2 == 0)) {
            return z7;
        }
        int i9 = 36 / 0;
        return z7;
    }

    private void valueOf(com.appsflyer.internal.AFa1qSDK r14) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.valueOf(com.appsflyer.internal.AFa1qSDK):void");
    }

    public final AFb1dSDK values(Context context) {
        int i7 = onDeepLinking + 19;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        AFKeystoreWrapper(context);
        AFb1dSDK values2 = AFInAppEventType().values();
        int i9 = onDeepLinking + 33;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
        return values2;
    }

    private int values(AFb1dSDK aFb1dSDK, boolean z6) {
        int i7 = onDeepLinking + 119;
        onAttributionFailure = i7 % 128;
        if ((i7 % 2 != 0 ? (char) 16 : '\t') == '\t') {
            return AFKeystoreWrapper(aFb1dSDK, "appsFlyerInAppEventCount", z6);
        }
        AFKeystoreWrapper(aFb1dSDK, "appsFlyerInAppEventCount", z6);
        throw null;
    }

    @NonNull
    @Deprecated
    public static String values(HttpURLConnection httpURLConnection) {
        String obj;
        InputStreamReader inputStreamReader;
        Throwable th;
        BufferedReader bufferedReader;
        StringBuilder sb = new StringBuilder();
        try {
            try {
                InputStream errorStream = httpURLConnection.getErrorStream();
                if (!(errorStream != null)) {
                    errorStream = httpURLConnection.getInputStream();
                }
                inputStreamReader = new InputStreamReader(errorStream, Charset.defaultCharset());
                try {
                    bufferedReader = new BufferedReader(inputStreamReader);
                    int i7 = onAttributionFailure + 99;
                    onDeepLinking = i7 % 128;
                    int i8 = i7 % 2;
                    boolean z6 = false;
                    while (true) {
                        try {
                            String readLine = bufferedReader.readLine();
                            if (readLine != null) {
                                int i9 = onAttributionFailure + 111;
                                onDeepLinking = i9 % 128;
                                if (i9 % 2 == 0) {
                                    throw null;
                                }
                                sb.append(z6 ? '\n' : "");
                                sb.append(readLine);
                                z6 = true;
                            } else {
                                bufferedReader.close();
                                inputStreamReader.close();
                                int i10 = onDeepLinking + 97;
                                onAttributionFailure = i10 % 128;
                                int i11 = i10 % 2;
                                break;
                            }
                        } catch (Throwable th2) {
                            th = th2;
                            try {
                                StringBuilder sb2 = new StringBuilder("Could not read connection response from: ");
                                sb2.append(httpURLConnection.getURL().toString());
                                AFLogger.afErrorLog(sb2.toString(), th);
                                if (bufferedReader != null) {
                                    bufferedReader.close();
                                }
                                if (inputStreamReader != null) {
                                    inputStreamReader.close();
                                }
                                obj = sb.toString();
                                new JSONObject(obj);
                                return obj;
                            } catch (Throwable th3) {
                                if (bufferedReader != null) {
                                    try {
                                        bufferedReader.close();
                                    } catch (Throwable th4) {
                                        AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th4);
                                        throw th3;
                                    }
                                }
                                if (inputStreamReader != null) {
                                    inputStreamReader.close();
                                }
                                throw th3;
                            }
                        }
                    }
                } catch (Throwable th5) {
                    bufferedReader = null;
                    th = th5;
                }
            } catch (Throwable th6) {
                inputStreamReader = null;
                th = th6;
                bufferedReader = null;
            }
        } catch (Throwable th7) {
            AFLogger.afErrorLogForExcManagerOnly("readServerResponse error", th7);
        }
        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(String str, String str2) {
        int i7 = onDeepLinking + 43;
        onAttributionFailure = i7 % 128;
        if ((i7 % 2 != 0 ? '$' : 'W') != '$') {
            AppsFlyerProperties.getInstance().set(str, str2);
        } else {
            AppsFlyerProperties.getInstance().set(str, str2);
            throw null;
        }
    }

    private static void AFInAppEventType(String str, boolean z6) {
        int i7 = onDeepLinking + 39;
        onAttributionFailure = i7 % 128;
        if (!(i7 % 2 != 0)) {
            AppsFlyerProperties.getInstance().set(str, z6);
        } else {
            AppsFlyerProperties.getInstance().set(str, z6);
            int i8 = 70 / 0;
        }
    }

    public void AFInAppEventType(com.appsflyer.internal.AFf1qSDK r7) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.AFInAppEventType(com.appsflyer.internal.AFf1qSDK):void");
    }

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

    private void AFInAppEventType(Context context) {
        this.onResponseErrorNative = new HashMap();
        final long currentTimeMillis = System.currentTimeMillis();
        final AFa1uSDK.AFa1zSDK aFa1zSDK = new AFa1uSDK.AFa1zSDK() {
            @Override
            public final void AFKeystoreWrapper(String str) {
                AFa1eSDK.values(AFa1eSDK.this).put("error", str);
            }

            @Override
            public final void valueOf(String str, String str2, String str3) {
                if (str != null) {
                    AFLogger.afInfoLog("Facebook Deferred AppLink data received: ".concat(str));
                    AFa1eSDK.values(AFa1eSDK.this).put("link", str);
                    if (str2 != null) {
                        AFa1eSDK.values(AFa1eSDK.this).put("target_url", str2);
                    }
                    if (str3 != null) {
                        HashMap hashMap = new HashMap();
                        HashMap hashMap2 = new HashMap();
                        hashMap2.put("promo_code", str3);
                        hashMap.put("deeplink_context", hashMap2);
                        AFa1eSDK.values(AFa1eSDK.this).put("extras", hashMap);
                    }
                } else {
                    AFa1eSDK.values(AFa1eSDK.this).put("link", "");
                }
                AFa1eSDK.values(AFa1eSDK.this).put("ttr", String.valueOf(System.currentTimeMillis() - currentTimeMillis));
            }
        };
        try {
            t tVar = t.f18071a;
            t.class.getMethod("sdkInitialize", Context.class).invoke(null, context);
            final Class<c5.a> cls = c5.a.class;
            int i7 = c5.a.f6254a;
            Method method = c5.a.class.getMethod("fetchDeferredAppLinkData", Context.class, String.class, a.InterfaceC0093a.class);
            Object newProxyInstance = Proxy.newProxyInstance(a.InterfaceC0093a.class.getClassLoader(), new Class[]{a.InterfaceC0093a.class}, new InvocationHandler() {
                @Override
                public final Object invoke(Object obj, Method method2, Object[] objArr) throws Throwable {
                    String str;
                    String str2;
                    String str3;
                    Bundle bundle;
                    if (!method2.getName().equals("onDeferredAppLinkDataFetched")) {
                        AFa1zSDK aFa1zSDK2 = aFa1zSDK;
                        if (aFa1zSDK2 != null) {
                            aFa1zSDK2.AFKeystoreWrapper("onDeferredAppLinkDataFetched invocation failed");
                        }
                        return null;
                    }
                    if (objArr[0] != null) {
                        Bundle bundle2 = (Bundle) Bundle.class.cast(cls.getMethod("getArgumentBundle", new Class[0]).invoke(cls.cast(objArr[0]), new Object[0]));
                        if (bundle2 != null) {
                            str2 = bundle2.getString("com.facebook.platform.APPLINK_NATIVE_URL");
                            str3 = bundle2.getString("target_url");
                            Bundle bundle3 = bundle2.getBundle("extras");
                            str = (bundle3 == null || (bundle = bundle3.getBundle("deeplink_context")) == null) ? null : bundle.getString("promo_code");
                        } else {
                            str = null;
                            str2 = null;
                            str3 = null;
                        }
                        AFa1zSDK aFa1zSDK3 = aFa1zSDK;
                        if (aFa1zSDK3 != null) {
                            aFa1zSDK3.valueOf(str2, str3, str);
                        }
                    } else {
                        AFa1zSDK aFa1zSDK4 = aFa1zSDK;
                        if (aFa1zSDK4 != null) {
                            aFa1zSDK4.valueOf(null, null, null);
                        }
                    }
                    return null;
                }
            });
            String string = context.getString(context.getResources().getIdentifier("facebook_app_id", PListParser.TAG_STRING, context.getPackageName()));
            if (!TextUtils.isEmpty(string)) {
                method.invoke(null, context, string, newProxyInstance);
                int i8 = onAttributionFailure + 3;
                onDeepLinking = i8 % 128;
                int i9 = i8 % 2;
                return;
            }
            int i10 = onAttributionFailure + 93;
            onDeepLinking = i10 % 128;
            int i11 = i10 % 2;
            aFa1zSDK.AFKeystoreWrapper("Facebook app id not defined in resources");
        } catch (ClassNotFoundException e7) {
            AFLogger.afErrorLogForExcManagerOnly("FB class missing error", e7);
            aFa1zSDK.AFKeystoreWrapper(e7.toString());
        } catch (IllegalAccessException e8) {
            AFLogger.afErrorLogForExcManagerOnly("FB illegal access", e8);
            aFa1zSDK.AFKeystoreWrapper(e8.toString());
        } catch (NoSuchMethodException e9) {
            AFLogger.afErrorLogForExcManagerOnly("FB method missing error", e9);
            aFa1zSDK.AFKeystoreWrapper(e9.toString());
        } catch (InvocationTargetException e10) {
            AFLogger.afErrorLogForExcManagerOnly("FB invocation error", e10);
            aFa1zSDK.AFKeystoreWrapper(e10.toString());
        }
    }

    private void AFKeystoreWrapper(AppsFlyerConversionListener appsFlyerConversionListener) {
        int i7 = onDeepLinking + 99;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        if (appsFlyerConversionListener == null) {
            return;
        }
        this.AFInAppEventParameterName = appsFlyerConversionListener;
        int i9 = onDeepLinking + 103;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
    }

    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.AFa1eSDK.AFKeystoreWrapper(android.content.Context, java.lang.String, java.util.Map, java.lang.String, java.lang.String):void");
    }

    public void values(android.content.Context r8, android.content.Intent r9) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.values(android.content.Context, android.content.Intent):void");
    }

    private void AFKeystoreWrapper(Context context, String str) {
        byte b7 = 0;
        AFa1qSDK AFInAppEventParameterName = new AFe1gSDK().AFInAppEventParameterName(AFInAppEventType().AFInAppEventParameterName().AFInAppEventType.values("appsFlyerCount", 0));
        AFInAppEventParameterName.afErrorLog = str;
        if (str != null) {
            if ((str.length() > 5 ? '_' : '\t') == '_' && AFInAppEventParameterName(AFInAppEventParameterName, values(context))) {
                AFInAppEventParameterName(AFInAppEventType().valueOf(), new AFa1vSDK(this, AFInAppEventParameterName, b7), 5L, TimeUnit.MILLISECONDS);
                int i7 = onAttributionFailure + 63;
                onDeepLinking = i7 % 128;
                int i8 = i7 % 2;
            }
        }
        int i9 = onAttributionFailure + 61;
        onDeepLinking = i9 % 128;
        if (i9 % 2 == 0) {
            int i10 = 80 / 0;
        }
    }

    private static void values(int i7, String str, int i8, int i9, boolean z6, Object[] objArr) {
        String str2;
        char[] cArr = str;
        if (str != null) {
            cArr = str.toCharArray();
        }
        char[] cArr2 = cArr;
        synchronized (AFg1mSDK.AFKeystoreWrapper) {
            char[] cArr3 = new char[i9];
            AFg1mSDK.AFInAppEventParameterName = 0;
            while (true) {
                int i10 = AFg1mSDK.AFInAppEventParameterName;
                if (i10 >= i9) {
                    break;
                }
                AFg1mSDK.values = cArr2[i10];
                cArr3[AFg1mSDK.AFInAppEventParameterName] = (char) (AFg1mSDK.values + i8);
                int i11 = AFg1mSDK.AFInAppEventParameterName;
                cArr3[i11] = (char) (cArr3[i11] - onResponse);
                AFg1mSDK.AFInAppEventParameterName = i11 + 1;
            }
            if (i7 > 0) {
                AFg1mSDK.valueOf = i7;
                char[] cArr4 = new char[i9];
                System.arraycopy(cArr3, 0, cArr4, 0, i9);
                int i12 = AFg1mSDK.valueOf;
                System.arraycopy(cArr4, 0, cArr3, i9 - i12, i12);
                int i13 = AFg1mSDK.valueOf;
                System.arraycopy(cArr4, i13, cArr3, 0, i9 - i13);
            }
            if (z6) {
                char[] cArr5 = new char[i9];
                AFg1mSDK.AFInAppEventParameterName = 0;
                while (true) {
                    int i14 = AFg1mSDK.AFInAppEventParameterName;
                    if (i14 >= i9) {
                        break;
                    }
                    cArr5[i14] = cArr3[(i9 - i14) - 1];
                    AFg1mSDK.AFInAppEventParameterName = i14 + 1;
                }
                cArr3 = cArr5;
            }
            str2 = new String(cArr3);
        }
        objArr[0] = str2;
    }

    private AFd1nSDK.AFa1xSDK AFKeystoreWrapper(final Map<String, String> map) {
        AFd1nSDK.AFa1xSDK aFa1xSDK = new AFd1nSDK.AFa1xSDK() {
            @Override
            public final void AFKeystoreWrapper(String str) {
                AFa1eSDK.this.AFInAppEventType().AppsFlyer2dXConversionCallback().AFKeystoreWrapper(str, DeepLinkResult.Error.NETWORK);
            }

            @Override
            public final void values(Map<String, String> map2) {
                for (String str : map2.keySet()) {
                    map.put(str, map2.get(str));
                }
                AFa1eSDK.this.AFInAppEventType().AppsFlyer2dXConversionCallback().AFInAppEventType(map);
            }
        };
        int i7 = onDeepLinking + 25;
        onAttributionFailure = i7 % 128;
        if ((i7 % 2 != 0 ? ',' : '\t') != ',') {
            return aFa1xSDK;
        }
        throw null;
    }

    private static void AFKeystoreWrapper(String str) {
        try {
            if ((new JSONObject(str).has("pid") ? 'a' : 'H') != 'H') {
                int i7 = onAttributionFailure + 21;
                onDeepLinking = i7 % 128;
                if ((i7 % 2 == 0 ? '^' : '&') != '&') {
                    AFInAppEventType("preInstallName", str);
                    int i8 = 83 / 0;
                    return;
                } else {
                    AFInAppEventType("preInstallName", str);
                    return;
                }
            }
            AFLogger.afWarnLog("Cannot set preinstall attribution data without a media source");
        } catch (JSONException e7) {
            AFLogger.afErrorLog("Error parsing JSON for preinstall", e7);
        }
    }

    private void AFInAppEventType(Context context, AFe1nSDK aFe1nSDK) {
        AFKeystoreWrapper(context);
        AFe1mSDK afDebugLog = AFInAppEventType().afDebugLog();
        AFe1tSDK AFInAppEventParameterName = AFa1rSDK.AFInAppEventParameterName(context);
        if (afDebugLog.valueOf()) {
            int i7 = onAttributionFailure + 27;
            onDeepLinking = i7 % 128;
            int i8 = i7 % 2;
            afDebugLog.AFInAppEventParameterName.put("api_name", aFe1nSDK.toString());
            afDebugLog.AFKeystoreWrapper(AFInAppEventParameterName);
            int i9 = onAttributionFailure + 23;
            onDeepLinking = i9 % 128;
            int i10 = i9 % 2;
        }
        afDebugLog.values();
    }

    private int AFKeystoreWrapper(AFb1dSDK aFb1dSDK, String str, boolean z6) {
        int values2 = aFb1dSDK.values(str, 0);
        if (z6) {
            int i7 = onAttributionFailure + 15;
            onDeepLinking = i7 % 128;
            values2 = (i7 % 2 == 0 ? (char) 21 : 'J') != 21 ? values2 + 1 : values2 + 59;
            aFb1dSDK.AFInAppEventType(str, values2);
        }
        if (!(AFInAppEventType().afErrorLogForExcManagerOnly().afInfoLog() ? false : true)) {
            int i8 = onDeepLinking + 5;
            onAttributionFailure = i8 % 128;
            if (i8 % 2 != 0) {
                AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName(String.valueOf(values2));
                throw null;
            }
            AFInAppEventType().afErrorLogForExcManagerOnly().AFInAppEventParameterName(String.valueOf(values2));
        }
        return values2;
    }

    private void AFInAppEventType(Context context, String str, Map<String, Object> map) {
        Activity activity;
        AFe1iSDK aFe1iSDK = new AFe1iSDK();
        aFe1iSDK.afDebugLog = str;
        aFe1iSDK.values = map;
        if ((context instanceof Activity ? (char) 24 : '\'') != '\'') {
            int i7 = onAttributionFailure + 103;
            onDeepLinking = i7 % 128;
            int i8 = i7 % 2;
            activity = (Activity) context;
        } else {
            activity = null;
            int i9 = onDeepLinking + 125;
            onAttributionFailure = i9 % 128;
            int i10 = i9 % 2;
        }
        values(aFe1iSDK, activity);
        int i11 = onDeepLinking + 9;
        onAttributionFailure = i11 % 128;
        int i12 = i11 % 2;
    }

    public final void AFKeystoreWrapper(@NonNull Context context) {
        int i7 = onAttributionFailure + 39;
        onDeepLinking = i7 % 128;
        if (!(i7 % 2 == 0)) {
            AFc1ySDK aFc1ySDK = this.onConversionDataFail;
            if (!(context != null)) {
                return;
            }
            AFb1bSDK aFb1bSDK = aFc1ySDK.valueOf;
            if (context != null) {
                aFb1bSDK.AFInAppEventType = context.getApplicationContext();
                int i8 = onDeepLinking + 91;
                onAttributionFailure = i8 % 128;
                int i9 = i8 % 2;
                return;
            }
            return;
        }
        throw null;
    }

    public final void valueOf(Context context, Map<String, Object> map, Uri uri) {
        AFKeystoreWrapper(context);
        if (!map.containsKey("af_deeplink")) {
            int i7 = onAttributionFailure + 29;
            onDeepLinking = i7 % 128;
            if ((i7 % 2 == 0 ? (char) 1 : (char) 3) == 3) {
                String AFInAppEventType2 = AFInAppEventType(uri.toString());
                AFb1sSDK AppsFlyer2dXConversionCallback = AFInAppEventType().AppsFlyer2dXConversionCallback();
                String str = AppsFlyer2dXConversionCallback.AFKeystoreWrapper;
                if ((str != null) && AppsFlyer2dXConversionCallback.values != null && AFInAppEventType2.contains(str)) {
                    Uri.Builder buildUpon = Uri.parse(AFInAppEventType2).buildUpon();
                    Uri.Builder buildUpon2 = Uri.EMPTY.buildUpon();
                    Iterator<Map.Entry<String, String>> it = AppsFlyer2dXConversionCallback.values.entrySet().iterator();
                    int i8 = onDeepLinking + 115;
                    while (true) {
                        onAttributionFailure = i8 % 128;
                        int i9 = i8 % 2;
                        if (!it.hasNext()) {
                            break;
                        }
                        int i10 = onDeepLinking + 23;
                        onAttributionFailure = i10 % 128;
                        int i11 = i10 % 2;
                        Map.Entry<String, String> next = it.next();
                        buildUpon.appendQueryParameter(next.getKey(), next.getValue());
                        buildUpon2.appendQueryParameter(next.getKey(), next.getValue());
                        i8 = onDeepLinking + 93;
                    }
                    AFInAppEventType2 = buildUpon.build().toString();
                    map.put("appended_query_params", buildUpon2.build().getEncodedQuery());
                }
                map.put("af_deeplink", AFInAppEventType2);
            } else {
                AFInAppEventType(uri.toString());
                String str2 = AFInAppEventType().AppsFlyer2dXConversionCallback().AFKeystoreWrapper;
                throw null;
            }
        }
        HashMap hashMap = new HashMap();
        hashMap.put("link", uri.toString());
        AFd1nSDK aFd1nSDK = new AFd1nSDK(AFInAppEventType(), UUID.randomUUID(), uri);
        if ((aFd1nSDK.afWarnLog() ? '\t' : '\\') != '\\') {
            map.put("isBrandedDomain", Boolean.TRUE);
        }
        AFa1fSDK.AFInAppEventType(context, hashMap, uri);
        if (aFd1nSDK.AFVersionDeclaration()) {
            aFd1nSDK.afInfoLog = AFKeystoreWrapper(hashMap);
            AFc1bSDK AFVersionDeclaration = AFInAppEventType().AFVersionDeclaration();
            AFVersionDeclaration.AFKeystoreWrapper.execute(AFVersionDeclaration.new AnonymousClass4(aFd1nSDK));
            return;
        }
        AFInAppEventType().AppsFlyer2dXConversionCallback().AFInAppEventType(hashMap);
    }

    public static String AFInAppEventType(SimpleDateFormat simpleDateFormat, long j7) {
        simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
        String format = simpleDateFormat.format(new Date(j7));
        int i7 = onAttributionFailure + 43;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        return format;
    }

    private void AFInAppEventType(AFa1qSDK aFa1qSDK) {
        int i7 = onAttributionFailure + 95;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        byte b7 = 0;
        boolean z6 = aFa1qSDK.afDebugLog == null;
        if (AFKeystoreWrapper()) {
            AFLogger.afInfoLog("CustomerUserId not set, reporting is disabled", true);
            return;
        }
        if (z6) {
            int i9 = onAttributionFailure + 23;
            onDeepLinking = i9 % 128;
            int i10 = i9 % 2;
            if (!(!AppsFlyerProperties.getInstance().getBoolean(AppsFlyerProperties.LAUNCH_PROTECT_ENABLED, true))) {
                if ((afInfoLog() ? 'C' : (char) 26) != 26) {
                    int i11 = onDeepLinking + 109;
                    onAttributionFailure = i11 % 128;
                    if (i11 % 2 == 0) {
                        AppsFlyerRequestListener appsFlyerRequestListener = aFa1qSDK.AFInAppEventParameterName;
                        if (appsFlyerRequestListener != null) {
                            appsFlyerRequestListener.onError(10, "Event timeout. Check 'minTimeBetweenSessions' param");
                            return;
                        }
                        return;
                    }
                    throw null;
                }
            } else {
                AFLogger.afInfoLog("Allowing multiple launches within a 5 second time window.");
            }
            this.afDebugLog = System.currentTimeMillis();
        }
        AFInAppEventParameterName(AFInAppEventType().valueOf(), new AFa1vSDK(this, aFa1qSDK, b7), 0L, TimeUnit.MILLISECONDS);
        int i12 = onAttributionFailure + 59;
        onDeepLinking = i12 % 128;
        int i13 = i12 % 2;
    }

    private int AFInAppEventType(AFb1dSDK aFb1dSDK) {
        int i7 = onAttributionFailure + 115;
        onDeepLinking = i7 % 128;
        if (i7 % 2 == 0) {
        }
        int AFKeystoreWrapper2 = AFKeystoreWrapper(aFb1dSDK, "appsFlyerAdImpressionCount", true);
        int i8 = onAttributionFailure + 83;
        onDeepLinking = i8 % 128;
        int i9 = i8 % 2;
        return AFKeystoreWrapper2;
    }

    private static java.lang.String AFInAppEventType(java.lang.String r12) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.AFInAppEventType(java.lang.String):java.lang.String");
    }

    private static String valueOf(String str) {
        int i7 = onAttributionFailure + 117;
        onDeepLinking = i7 % 128;
        int i8 = i7 % 2;
        int indexOf = str.indexOf(63);
        if (!(indexOf != -1)) {
            int i9 = onAttributionFailure + 45;
            onDeepLinking = i9 % 128;
            if ((i9 % 2 == 0 ? '\t' : ']') != '\t') {
                return "";
            }
            throw null;
        }
        String substring = str.substring(indexOf);
        int i10 = onAttributionFailure + 93;
        onDeepLinking = i10 % 128;
        int i11 = i10 % 2;
        return substring;
    }

    public static synchronized SharedPreferences valueOf(Context context) {
        SharedPreferences sharedPreferences;
        synchronized (AFa1eSDK.class) {
            int i7 = onDeepLinking + 119;
            onAttributionFailure = i7 % 128;
            int i8 = i7 % 2;
            if ((valueOf().onConversionDataSuccess == null ? '\r' : (char) 23) != 23) {
                int i9 = onAttributionFailure + 7;
                onDeepLinking = i9 % 128;
                int i10 = i9 % 2;
                StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads();
                try {
                    valueOf().onConversionDataSuccess = context.getApplicationContext().getSharedPreferences("appsflyer-data", 0);
                    StrictMode.setThreadPolicy(allowThreadDiskReads);
                } catch (Throwable th) {
                    StrictMode.setThreadPolicy(allowThreadDiskReads);
                    throw th;
                }
            }
            sharedPreferences = valueOf().onConversionDataSuccess;
        }
        return sharedPreferences;
    }

    public final int valueOf(AFb1dSDK aFb1dSDK, boolean z6) {
        int i7 = onDeepLinking + 9;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        int AFKeystoreWrapper2 = AFKeystoreWrapper(aFb1dSDK, "appsFlyerCount", z6);
        int i9 = onDeepLinking + 13;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
        return AFKeystoreWrapper2;
    }

    public static String AFInAppEventType(AFb1dSDK aFb1dSDK, String str) {
        String values2 = aFb1dSDK.values("CACHED_CHANNEL", (String) null);
        if ((values2 != null ? '_' : '4') != '_') {
            aFb1dSDK.AFInAppEventParameterName("CACHED_CHANNEL", str);
            return str;
        }
        int i7 = onAttributionFailure + 97;
        int i8 = i7 % 128;
        onDeepLinking = i8;
        int i9 = i7 % 2;
        int i10 = i8 + 115;
        onAttributionFailure = i10 % 128;
        int i11 = i10 % 2;
        return values2;
    }

    private void AFInAppEventType(@NonNull AFa1qSDK aFa1qSDK, Activity activity) {
        int i7 = onDeepLinking + 117;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        AFf1vSDK onResponseErrorNative = AFInAppEventType().onResponseErrorNative();
        aFa1qSDK.valueOf = onResponseErrorNative.values(activity);
        aFa1qSDK.afInfoLog = onResponseErrorNative.valueOf(activity);
        int i9 = onDeepLinking + 13;
        onAttributionFailure = i9 % 128;
        if ((i9 % 2 != 0 ? '2' : 'c') == 'c') {
        } else {
            throw null;
        }
    }

    private static String AFInAppEventParameterName(Activity activity) {
        Bundle bundle;
        String str = null;
        if (!(activity == null)) {
            Intent intent = activity.getIntent();
            if ((intent != null ? 'R' : (char) 3) != 3) {
                int i7 = onAttributionFailure + 43;
                onDeepLinking = i7 % 128;
                try {
                    if (i7 % 2 == 0) {
                        bundle = intent.getExtras();
                        int i8 = 96 / 0;
                        if (bundle != null) {
                        }
                    } else {
                        Bundle extras = intent.getExtras();
                        if (extras != null) {
                            bundle = extras;
                        }
                    }
                    str = bundle.getString("af");
                    if ((str != null ? '%' : '0') != '0') {
                        AFLogger.afInfoLog("Push Notification received af payload = ".concat(String.valueOf(str)));
                        bundle.remove("af");
                        activity.setIntent(intent.putExtras(bundle));
                        int i9 = onDeepLinking + 41;
                        onAttributionFailure = i9 % 128;
                        int i10 = i9 % 2;
                    }
                } catch (Throwable th) {
                    AFLogger.afErrorLog(th.getMessage(), th);
                }
            }
        }
        return str;
    }

    private int AFInAppEventParameterName(AFb1dSDK aFb1dSDK) {
        int i7 = onDeepLinking + 119;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        int AFKeystoreWrapper2 = AFKeystoreWrapper(aFb1dSDK, "appsFlyerAdRevenueCount", true);
        int i9 = onDeepLinking + 59;
        onAttributionFailure = i9 % 128;
        int i10 = i9 % 2;
        return AFKeystoreWrapper2;
    }

    public static boolean AFInAppEventParameterName(android.content.Context r4) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFa1eSDK.AFInAppEventParameterName(android.content.Context):boolean");
    }

    private static void AFInAppEventParameterName(@NonNull ScheduledExecutorService scheduledExecutorService, Runnable runnable, long j7, TimeUnit timeUnit) {
        int i7 = onDeepLinking + 111;
        onAttributionFailure = i7 % 128;
        int i8 = i7 % 2;
        try {
            scheduledExecutorService.schedule(runnable, j7, timeUnit);
            int i9 = onDeepLinking + 125;
            onAttributionFailure = i9 % 128;
            int i10 = i9 % 2;
        } catch (RejectedExecutionException e7) {
            AFLogger.afErrorLog("scheduleJob failed with RejectedExecutionException Exception", e7);
        } catch (Throwable th) {
            AFLogger.afErrorLog("scheduleJob failed with Exception", th);
        }
    }
}