导航菜单

页面标题

页面副标题

Empower MX v1.29.4.340 - AFe1sSDK.java 源代码

正在查看: Empower MX v1.29.4.340 应用的 AFe1sSDK.java JAVA 源代码文件

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


package com.appsflyer.internal;

import Gf.Q;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Process;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import java.lang.reflect.Method;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Regex;
import kotlinx.serialization.descriptors.cPwK.HFvDuJ;

public final class AFe1sSDK {
    private static int $10 = 0;
    private static int $11 = 1;
    private static char[] areAllFieldsValid = null;
    private static int component2 = 0;
    private static char component3 = 0;
    private static int component4 = 1;
    public static String getCurrencyIso4217Code;
    private static String getRevenue;
    private final AppsFlyerProperties AFAdRevenueData;
    private final AFe1eSDK component1;
    private final AFe1tSDK getMediationNetwork;
    private final AFd1nSDK getMonetizationNetwork;

    static {
        getMonetizationNetwork();
        getCurrencyIso4217Code = "https://%sgcdsdk.%s/install_data/v5.0/";
        getRevenue = "https://%sonelink.%s/shortlink-sdk/v2";
        component2 = (component4 + 91) % 128;
    }

    public AFe1sSDK(AFe1tSDK aFe1tSDK, AFd1nSDK aFd1nSDK, AppsFlyerProperties appsFlyerProperties, AFe1eSDK aFe1eSDK) {
        this.getMediationNetwork = aFe1tSDK;
        this.getMonetizationNetwork = aFd1nSDK;
        this.AFAdRevenueData = appsFlyerProperties;
        this.component1 = aFe1eSDK;
    }

    public static Object AFAdRevenueData(Object[] objArr, int i, int i2, int i4) {
        int i5 = ~i;
        int i6 = ~i2;
        int i7 = i5 | i6;
        int i8 = (i * (-496)) + (i2 * (-496)) + ((~i7) * 497);
        int i9 = ~(i7 | i4);
        int i10 = ~i4;
        int i11 = i8 + ((i9 | (~(i6 | i10 | i))) * 497) + (((~(i | i6 | i4)) | (~(i2 | i5)) | (~(i5 | i10))) * 497);
        if (i11 == 1) {
            return AFAdRevenueData(objArr);
        }
        if (i11 != 2) {
            return getMonetizationNetwork(objArr);
        }
        if (((AFe1sSDK) objArr[0]).AFAdRevenueData.getBoolean("http_cache", true)) {
            component2 = (component4 + 117) % 128;
            return Boolean.FALSE;
        }
        component2 = (component4 + 35) % 128;
        return Boolean.TRUE;
    }

    private static void a(byte b3, String str, int i, Object[] objArr) {
        int i2;
        int length;
        char[] cArr;
        char[] charArray = str != null ? str.toCharArray() : str;
        AFk1iSDK aFk1iSDK = new AFk1iSDK();
        char[] cArr2 = areAllFieldsValid;
        if (cArr2 != null) {
            int i4 = $11 + 37;
            $10 = i4 % 128;
            if (i4 % 2 != 0) {
                length = cArr2.length;
                cArr = new char[length];
            } else {
                length = cArr2.length;
                cArr = new char[length];
            }
            int i5 = 0;
            while (i5 < length) {
                int i6 = $11 + 3;
                $10 = i6 % 128;
                if (i6 % 2 != 0) {
                    cArr[i5] = (char) (cArr2[i5] % 4738745460995343240L);
                    i5 <<= 1;
                } else {
                    cArr[i5] = (char) (cArr2[i5] ^ 4738745460995343240L);
                    i5++;
                }
            }
            cArr2 = cArr;
        }
        char c = (char) (4738745460995343240L ^ component3);
        char[] cArr3 = new char[i];
        if (i % 2 != 0) {
            int i7 = $10 + 13;
            $11 = i7 % 128;
            if (i7 % 2 == 0) {
                i2 = i + 23;
                cArr3[i2] = (char) (charArray[i2] - b3);
            } else {
                i2 = i - 1;
                cArr3[i2] = (char) (charArray[i2] - b3);
            }
        } else {
            i2 = i;
        }
        if (i2 > 1) {
            $11 = ($10 + 19) % 128;
            aFk1iSDK.getMonetizationNetwork = 0;
            while (true) {
                int i8 = aFk1iSDK.getMonetizationNetwork;
                if (i8 >= i2) {
                    break;
                }
                char c2 = charArray[i8];
                aFk1iSDK.getMediationNetwork = c2;
                char c3 = charArray[i8 + 1];
                aFk1iSDK.getRevenue = c3;
                if (c2 == c3) {
                    cArr3[i8] = (char) (c2 - b3);
                    cArr3[i8 + 1] = (char) (c3 - b3);
                } else {
                    int i9 = c2 / c;
                    aFk1iSDK.getCurrencyIso4217Code = i9;
                    int i10 = c2 % c;
                    aFk1iSDK.component1 = i10;
                    int i11 = c3 / c;
                    aFk1iSDK.AFAdRevenueData = i11;
                    int i12 = c3 % c;
                    aFk1iSDK.component3 = i12;
                    if (i10 == i12) {
                        $10 = ($11 + 65) % 128;
                        int i13 = ((i9 + c) - 1) % c;
                        aFk1iSDK.getCurrencyIso4217Code = i13;
                        int i14 = ((i11 + c) - 1) % c;
                        aFk1iSDK.AFAdRevenueData = i14;
                        cArr3[i8] = cArr2[(i13 * c) + i10];
                        cArr3[i8 + 1] = cArr2[(i14 * c) + i12];
                    } else if (i9 == i11) {
                        int i15 = ((i10 + c) - 1) % c;
                        aFk1iSDK.component1 = i15;
                        int i16 = ((i12 + c) - 1) % c;
                        aFk1iSDK.component3 = i16;
                        cArr3[i8] = cArr2[(i9 * c) + i15];
                        cArr3[i8 + 1] = cArr2[(i11 * c) + i16];
                    } else {
                        cArr3[i8] = cArr2[(i9 * c) + i12];
                        cArr3[i8 + 1] = cArr2[(i11 * c) + i10];
                    }
                }
                aFk1iSDK.getMonetizationNetwork = i8 + 2;
            }
        }
        for (int i17 = 0; i17 < i; i17++) {
            cArr3[i17] = (char) (cArr3[i17] ^ 13722);
        }
        objArr[0] = new String(cArr3);
    }

    private static Object getMonetizationNetwork(Object[] objArr) {
        String monetizationNetwork;
        AFe1sSDK aFe1sSDK = (AFe1sSDK) objArr[0];
        Map map = (Map) objArr[1];
        String str = (String) objArr[2];
        String str2 = (String) objArr[3];
        component4 = (component2 + 119) % 128;
        try {
            Object[] objArr2 = {map, str};
            Map map2 = AFa1zSDK.unregisterClient;
            Object obj = map2.get(-695765603);
            if (obj == null) {
                obj = ((Class) AFa1zSDK.getMediationNetwork(TextUtils.getOffsetBefore("", 0) + 37, ((Process.getThreadPriority(0) + 20) >> 6) + 37, (char) (53535 - (ViewConfiguration.getDoubleTapTimeout() >> 16)))).getMethod("getRevenue", Map.class, String.class);
                map2.put(-695765603, obj);
            }
            byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr2);
            AFj1bSDK aFj1bSDK = new AFj1bSDK(aFe1sSDK.getMonetizationNetwork);
            if (str2 != null && str2.length() != 0) {
                component2 = (component4 + 55) % 128;
                if (!new Regex(HFvDuJ.eXAwcdyNZ).i(str2) && !new Regex("3.?(\\d+)?.?(\\d+)").i(str2)) {
                    monetizationNetwork = aFj1bSDK.getCurrencyIso4217Code.getMonetizationNetwork("https://%sars.%s/api/v2/android/validate_subscription_v2?app_id=");
                    return (AFe1rSDK) AFAdRevenueData(new Object[]{aFe1sSDK, new AFe1kSDK(aFj1bSDK.getCurrencyIso4217Code(aFj1bSDK.getMediationNetwork(monetizationNetwork)), bArr, "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(aFe1sSDK));
                }
            }
            monetizationNetwork = aFj1bSDK.getCurrencyIso4217Code.getMonetizationNetwork("https://%sars.%s/api/v2/android/validate_subscription?app_id=");
            return (AFe1rSDK) AFAdRevenueData(new Object[]{aFe1sSDK, new AFe1kSDK(aFj1bSDK.getCurrencyIso4217Code(aFj1bSDK.getMediationNetwork(monetizationNetwork)), bArr, "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(aFe1sSDK));
        } catch (Throwable th) {
            try {
                Throwable cause = th.getCause();
                if (cause != null) {
                    throw cause;
                }
                throw th;
            } catch (Exception e) {
                AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e);
                return null;
            }
        }
    }

    public final AFe1rSDK<AFi1qSDK> getCurrencyIso4217Code(boolean z, boolean z2, String str, int i) {
        String str2;
        String str3;
        AFe1eSDK aFe1eSDK = this.component1;
        Intrinsics.checkNotNullParameter(str, "");
        if (z) {
            component4 = (component2 + 55) % 128;
            str2 = AFe1eSDK.getMediationNetwork;
        } else {
            str2 = AFe1eSDK.AFAdRevenueData;
        }
        if (z2) {
            int i2 = component4 + 91;
            component2 = i2 % 128;
            if (i2 % 2 != 0) {
                throw null;
            }
            str3 = "stg";
        } else {
            component4 = (component2 + 107) % 128;
            str3 = "";
        }
        Q q3 = Q.a;
        String format = String.format(str2, Arrays.copyOf(new Object[]{!AFe1eSDK.AFAdRevenueData() ? "" : (String) aFe1eSDK.getCurrencyIso4217Code.getValue(), str3, aFe1eSDK.getMonetizationNetwork(), str}, 4));
        Intrinsics.checkNotNullExpressionValue(format, "");
        AFe1kSDK aFe1kSDK = new AFe1kSDK(format, "GET");
        aFe1kSDK.component1 = 1500;
        return (AFe1rSDK) AFAdRevenueData(new Object[]{this, aFe1kSDK, new AFe1gSDK()}, 725080723, -725080722, System.identityHashCode(this));
    }

    public final AFe1rSDK<String> getMediationNetwork(Map<String, Object> map, String str) {
        byte[] bArr;
        int i = component4 + 31;
        component2 = i % 128;
        try {
            if (i % 2 == 0) {
                try {
                    Object[] objArr = {map, str};
                    Map map2 = AFa1zSDK.unregisterClient;
                    Object obj = map2.get(-695765603);
                    if (obj == null) {
                        obj = ((Class) AFa1zSDK.getMediationNetwork(38 - (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)), (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 37, (char) (TextUtils.indexOf((CharSequence) "", '0', 0) + 53536))).getMethod("getRevenue", Map.class, String.class);
                        map2.put(-695765603, obj);
                    }
                    bArr = (byte[]) ((Method) obj).invoke(null, objArr);
                    byte[] bArr2 = bArr;
                    AFj1bSDK aFj1bSDK = new AFj1bSDK(this.getMonetizationNetwork);
                    AFe1rSDK<String> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFj1bSDK.getMediationNetwork(aFj1bSDK.getCurrencyIso4217Code.getMonetizationNetwork("https://%svalidate-and-log.%s/api/v1.0/android/validateAndLog?app_id=")), bArr2, "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
                    component4 = (component2 + 63) % 128;
                    return aFe1rSDK;
                } catch (Throwable th) {
                    Throwable cause = th.getCause();
                    if (cause != null) {
                        throw cause;
                    }
                    throw th;
                }
            }
            try {
                Object[] objArr2 = {map, str};
                Map map3 = AFa1zSDK.unregisterClient;
                Object obj2 = map3.get(-695765603);
                if (obj2 == null) {
                    obj2 = ((Class) AFa1zSDK.getMediationNetwork((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 37, 37 - View.combineMeasuredStates(0, 0), (char) ((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 53535))).getMethod("getRevenue", Map.class, String.class);
                    map3.put(-695765603, obj2);
                }
                bArr = (byte[]) ((Method) obj2).invoke(null, objArr2);
                int i2 = 38 / 0;
                byte[] bArr22 = bArr;
                AFj1bSDK aFj1bSDK2 = new AFj1bSDK(this.getMonetizationNetwork);
                AFe1rSDK<String> aFe1rSDK2 = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFj1bSDK2.getMediationNetwork(aFj1bSDK2.getCurrencyIso4217Code.getMonetizationNetwork("https://%svalidate-and-log.%s/api/v1.0/android/validateAndLog?app_id=")), bArr22, "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
                component4 = (component2 + 63) % 128;
                return aFe1rSDK2;
            } catch (Throwable th2) {
                Throwable cause2 = th2.getCause();
                if (cause2 != null) {
                    throw cause2;
                }
                throw th2;
            }
        } catch (Throwable th3) {
            AFLogger.INSTANCE.e(AFh1sSDK.v, "AFFinalizer: reflection init failed", th3, false, false);
            return null;
        }
    }

    public final AFe1rSDK<AFc1oSDK> getRevenue(AFc1pSDK aFc1pSDK) {
        AFe1rSDK<AFc1oSDK> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(((AFa1rSDK) aFc1pSDK).component1, AFa1qSDK.getCurrencyIso4217Code(aFc1pSDK.getCurrencyIso4217Code()).toString().getBytes(Charset.defaultCharset()), "POST", Collections.emptyMap(), aFc1pSDK.getMonetizationNetwork()), new AFc1jSDK()}, 725080723, -725080722, System.identityHashCode(this));
        int i = component4 + 109;
        component2 = i % 128;
        if (i % 2 == 0) {
            return aFe1rSDK;
        }
        throw null;
    }

    public final AFe1rSDK<Map<String, Object>> AFAdRevenueData(String str, String str2) {
        String packageName = this.getMonetizationNetwork.getRevenue.getMonetizationNetwork.getPackageName();
        AFd1nSDK aFd1nSDK = this.getMonetizationNetwork;
        AFe1rSDK<Map<String, Object>> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, AFe1pSDK.getMediationNetwork(packageName, AFb1iSDK.getMediationNetwork(aFd1nSDK.getRevenue, aFd1nSDK.getCurrencyIso4217Code), str, str2), new AFe1nSDK()}, 725080723, -725080722, System.identityHashCode(this));
        int i = component2 + 87;
        component4 = i % 128;
        if (i % 2 == 0) {
            int i2 = 91 / 0;
        }
        return aFe1rSDK;
    }

    public final AFe1rSDK<String> getRevenue(String str, Map<String, String> map, String str2, UUID uuid, String str3) {
        String obj = uuid.toString();
        HashMap hashMap = new HashMap();
        hashMap.put("ttl", "-1");
        hashMap.put("uuid", obj);
        hashMap.put("data", map);
        hashMap.put("meta", getRevenue());
        if (str2 != null) {
            int i = component4 + 93;
            component2 = i % 128;
            if (i % 2 == 0) {
                hashMap.put("brand_domain", str2);
            } else {
                hashMap.put("brand_domain", str2);
                throw null;
            }
        }
        String jSONObject = AFa1qSDK.getCurrencyIso4217Code(hashMap).toString();
        HashMap hashMap2 = new HashMap();
        Object[] objArr = new Object[1];
        a((byte) (((Process.getThreadPriority(0) + 20) >> 6) + 115), "\u000f\u0006\b\u0003\u0003\u000e\t\u0000\u0001\u000b\u0001\t", 12 - (Process.myTid() >> 22), objArr);
        hashMap2.put(((String) objArr[0]).intern(), getCurrencyIso4217Code(str3, obj, "POST", jSONObject));
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(getRevenue, AppsFlyerLib.getInstance().getHostPrefix(), AFb1tSDK.getCurrencyIso4217Code().getHostName()));
        sb.append("/");
        sb.append(str);
        return getMonetizationNetwork(new AFe1kSDK(sb.toString(), jSONObject.getBytes(Charset.defaultCharset()), "POST", hashMap2, false), new AFe1iSDK(), true);
    }

    public final AFe1rSDK<String> AFAdRevenueData(AFh1bSDK aFh1bSDK) {
        AFe1rSDK<String> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(((AFa1rSDK) aFh1bSDK).component1, aFh1bSDK.AFAdRevenueData(), "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
        component4 = (component2 + 5) % 128;
        return aFe1rSDK;
    }

    public final AFe1rSDK<String> getMediationNetwork(String str) {
        AFe1kSDK aFe1kSDK = new AFe1kSDK(str, (byte[]) null, "GET", Collections.emptyMap(), false);
        aFe1kSDK.component1 = 10000;
        aFe1kSDK.getCurrencyIso4217Code = false;
        AFe1rSDK<String> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, aFe1kSDK, new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
        int i = component2 + 27;
        component4 = i % 128;
        if (i % 2 == 0) {
            int i2 = 81 / 0;
        }
        return aFe1rSDK;
    }

    private <T> AFe1rSDK<T> getMonetizationNetwork(AFe1kSDK aFe1kSDK, AFe1cSDK<T> aFe1cSDK, boolean z) {
        aFe1kSDK.getMediationNetwork = z;
        AFe1tSDK aFe1tSDK = this.getMediationNetwork;
        AFe1rSDK<T> aFe1rSDK = new AFe1rSDK<>(aFe1kSDK, aFe1tSDK.getRevenue, aFe1tSDK.getMonetizationNetwork, aFe1cSDK);
        int i = component2 + 113;
        component4 = i % 128;
        if (i % 2 != 0) {
            return aFe1rSDK;
        }
        throw null;
    }

    public final AFe1qSDK AFAdRevenueData(Map<String, Object> map, String str) {
        try {
            try {
                Object[] objArr = {map, str};
                Map map2 = AFa1zSDK.unregisterClient;
                Object obj = map2.get(-695765603);
                if (obj == null) {
                    obj = ((Class) AFa1zSDK.getMediationNetwork(((byte) KeyEvent.getModifierMetaStateMask()) + 38, (KeyEvent.getMaxKeyCode() >> 16) + 37, (char) ((-16723681) - Color.rgb(0, 0, 0)))).getMethod("getRevenue", Map.class, String.class);
                    map2.put(-695765603, obj);
                }
                byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr);
                if (bArr == null) {
                    AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: failed to create bytes", new IllegalArgumentException("failed to create bytes from proxyData"));
                    return null;
                }
                component4 = (component2 + 73) % 128;
                AFe1qSDK aFe1qSDK = new AFe1qSDK(this.getMonetizationNetwork, bArr);
                int i = component4 + 105;
                component2 = i % 128;
                if (i % 2 == 0) {
                    return aFe1qSDK;
                }
                throw null;
            } catch (Throwable th) {
                Throwable cause = th.getCause();
                if (cause != null) {
                    throw cause;
                }
                throw th;
            }
        } catch (Exception e) {
            AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e);
            return null;
        }
    }

    public final AFe1rSDK<String> getCurrencyIso4217Code(AFa1rSDK aFa1rSDK, String str, AFd1oSDK aFd1oSDK) {
        byte[] bArr;
        int i = component4 + 99;
        component2 = i % 128;
        try {
            if (i % 2 != 0) {
                try {
                    Object[] objArr = {aFa1rSDK, str, aFd1oSDK};
                    Map map = AFa1zSDK.unregisterClient;
                    Object obj = map.get(1374633606);
                    if (obj == null) {
                        obj = ((Class) AFa1zSDK.getMediationNetwork(37 - Gravity.getAbsoluteGravity(0, 0), 37 - TextUtils.getTrimmedLength(""), (char) ((ViewConfiguration.getScrollDefaultDelay() >> 16) + 53535))).getMethod("AFAdRevenueData", AFa1rSDK.class, String.class, AFd1oSDK.class);
                        map.put(1374633606, obj);
                    }
                    bArr = (byte[]) ((Method) obj).invoke(null, objArr);
                    int i2 = 5 / 0;
                    AFe1rSDK<String> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFa1rSDK.component1, bArr, "POST", Collections.emptyMap(), aFa1rSDK.getMonetizationNetwork()), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
                    component2 = (component4 + 59) % 128;
                    return aFe1rSDK;
                } catch (Throwable th) {
                    Throwable cause = th.getCause();
                    if (cause != null) {
                        throw cause;
                    }
                    throw th;
                }
            }
            try {
                Object[] objArr2 = {aFa1rSDK, str, aFd1oSDK};
                Map map2 = AFa1zSDK.unregisterClient;
                Object obj2 = map2.get(1374633606);
                if (obj2 == null) {
                    obj2 = ((Class) AFa1zSDK.getMediationNetwork(37 - (ViewConfiguration.getLongPressTimeout() >> 16), View.MeasureSpec.getMode(0) + 37, (char) (53535 - Drawable.resolveOpacity(0, 0)))).getMethod("AFAdRevenueData", AFa1rSDK.class, String.class, AFd1oSDK.class);
                    map2.put(1374633606, obj2);
                }
                bArr = (byte[]) ((Method) obj2).invoke(null, objArr2);
                AFe1rSDK<String> aFe1rSDK2 = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFa1rSDK.component1, bArr, "POST", Collections.emptyMap(), aFa1rSDK.getMonetizationNetwork()), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
                component2 = (component4 + 59) % 128;
                return aFe1rSDK2;
            } catch (Throwable th2) {
                Throwable cause2 = th2.getCause();
                if (cause2 != null) {
                    throw cause2;
                }
                throw th2;
            }
        } catch (Throwable th3) {
            AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", th3);
            return null;
        }
    }

    private boolean getMediationNetwork() {
        return ((Boolean) AFAdRevenueData(new Object[]{this}, 749355586, -749355584, System.identityHashCode(this))).booleanValue();
    }

    static void getMonetizationNetwork() {
        areAllFieldsValid = new char[]{30273, 30323, 30331, 30310, 30320, 30327, 30275, 30324, 30332, 30311, 30274, 30271, 30326, 30304, 30291, 30325};
        component3 = (char) 17292;
    }

    private static Object AFAdRevenueData(Object[] objArr) {
        AFe1sSDK aFe1sSDK = (AFe1sSDK) objArr[0];
        AFe1kSDK aFe1kSDK = (AFe1kSDK) objArr[1];
        AFe1cSDK aFe1cSDK = (AFe1cSDK) objArr[2];
        component2 = (component4 + 65) % 128;
        AFe1rSDK monetizationNetwork = aFe1sSDK.getMonetizationNetwork(aFe1kSDK, aFe1cSDK, aFe1sSDK.getMediationNetwork());
        int i = component4 + 31;
        component2 = i % 128;
        if (i % 2 == 0) {
            return monetizationNetwork;
        }
        throw null;
    }

    public final AFe1rSDK<String> getMediationNetwork(Map<String, Object> map, String str, String str2) {
        return (AFe1rSDK) AFAdRevenueData(new Object[]{this, map, str, str2}, -1521127320, 1521127320, System.identityHashCode(this));
    }

    public final AFe1rSDK<Map<String, String>> getRevenue(String str, String str2, UUID uuid, String str3) {
        String obj = uuid.toString();
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(getRevenue, AppsFlyerLib.getInstance().getHostPrefix(), AFb1tSDK.getCurrencyIso4217Code().getHostName()));
        sb.append("/");
        sb.append(str);
        sb.append("?id=");
        sb.append(str2);
        String obj2 = sb.toString();
        Map<String, Object> revenue = getRevenue();
        String valueOf = String.valueOf(revenue.get("build_number"));
        HashMap hashMap = new HashMap();
        hashMap.put("Af-UUID", uuid.toString());
        hashMap.put("Af-Meta-Sdk-Ver", valueOf);
        hashMap.put("Af-Meta-Counter", String.valueOf(revenue.get("counter")));
        hashMap.put("Af-Meta-Model", String.valueOf(revenue.get("model")));
        hashMap.put("Af-Meta-Platform", String.valueOf(revenue.get("platformextension")));
        hashMap.put("Af-Meta-System-Version", String.valueOf(revenue.get("sdk")));
        Object[] objArr = new Object[1];
        a((byte) (114 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))), "\u000f\u0006\b\u0003\u0003\u000e\t\u0000\u0001\u000b\u0001\t", TextUtils.indexOf((CharSequence) "", '0') + 13, objArr);
        hashMap.put(((String) objArr[0]).intern(), getCurrencyIso4217Code(str3, obj, "GET", obj, str, str2, valueOf));
        AFe1rSDK<Map<String, String>> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(obj2, (byte[]) null, "GET", hashMap, false), new AFe1hSDK()}, 725080723, -725080722, System.identityHashCode(this));
        component2 = (component4 + 21) % 128;
        return aFe1rSDK;
    }

    private static String getCurrencyIso4217Code(String str, String str2, String... strArr) {
        ArrayList arrayList = new ArrayList(Arrays.asList(strArr));
        arrayList.add(1, "v2");
        String join = TextUtils.join("\u2063", (String[]) arrayList.toArray(new String[0]));
        StringBuilder sb = new StringBuilder();
        sb.append(str);
        sb.append(str2);
        sb.append("v2");
        String revenue = AFb1mSDK.getRevenue(join, sb.toString());
        component4 = (component2 + 45) % 128;
        return revenue;
    }

    public final AFe1rSDK<String> getCurrencyIso4217Code(Map<String, Object> map, String str, String str2) {
        String monetizationNetwork;
        component4 = (component2 + 19) % 128;
        try {
            Object[] objArr = {map, str};
            Map map2 = AFa1zSDK.unregisterClient;
            Object obj = map2.get(-695765603);
            if (obj == null) {
                obj = ((Class) AFa1zSDK.getMediationNetwork(37 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), 37 - (ViewConfiguration.getTouchSlop() >> 8), (char) (53535 - (ViewConfiguration.getEdgeSlop() >> 16)))).getMethod("getRevenue", Map.class, String.class);
                map2.put(-695765603, obj);
            }
            byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr);
            AFj1bSDK aFj1bSDK = new AFj1bSDK(this.getMonetizationNetwork);
            if (str2 != null && str2.length() != 0) {
                component2 = (component4 + 113) % 128;
                if (!new Regex("4.?(\\d+)?.?(\\d+)").i(str2) && !new Regex("3.?(\\d+)?.?(\\d+)").i(str2)) {
                    component4 = (component2 + 93) % 128;
                    monetizationNetwork = aFj1bSDK.getCurrencyIso4217Code.getMonetizationNetwork("https://%sviap.%s/api/v1/android/validate_purchase_v2?app_id=");
                    AFe1rSDK<String> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFj1bSDK.getCurrencyIso4217Code(aFj1bSDK.getMediationNetwork(monetizationNetwork)), bArr, "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
                    component4 = (component2 + 121) % 128;
                    return aFe1rSDK;
                }
            }
            int i = component4 + 45;
            component2 = i % 128;
            if (i % 2 != 0) {
                int i2 = 43 / 0;
                monetizationNetwork = aFj1bSDK.getCurrencyIso4217Code.getMonetizationNetwork("https://%sviap.%s/api/v1/android/validate_purchase?app_id=");
            } else {
                monetizationNetwork = aFj1bSDK.getCurrencyIso4217Code.getMonetizationNetwork("https://%sviap.%s/api/v1/android/validate_purchase?app_id=");
            }
            AFe1rSDK<String> aFe1rSDK2 = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFj1bSDK.getCurrencyIso4217Code(aFj1bSDK.getMediationNetwork(monetizationNetwork)), bArr, "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
            component4 = (component2 + 121) % 128;
            return aFe1rSDK2;
        } catch (Throwable th) {
            try {
                Throwable cause = th.getCause();
                if (cause != null) {
                    throw cause;
                }
                throw th;
            } catch (Exception e) {
                AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e);
                return null;
            }
        }
    }

    private Map<String, Object> getRevenue() {
        HashMap hashMap = new HashMap();
        hashMap.put("build_number", "6.16.0");
        hashMap.put("counter", Integer.valueOf(this.getMonetizationNetwork.getCurrencyIso4217Code.AFAdRevenueData("appsFlyerCount", 0)));
        hashMap.put("model", Build.MODEL);
        Object[] objArr = new Object[1];
        a((byte) (13 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))), "\u0005\f\u0000\t㘌", (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)) + 4, objArr);
        hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
        hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
        Context context = this.getMonetizationNetwork.getRevenue.getMonetizationNetwork;
        hashMap.put("app_version_name", AFb1qSDK.getRevenue(context, context.getPackageName()));
        hashMap.put("app_id", this.getMonetizationNetwork.getRevenue.getMonetizationNetwork.getPackageName());
        hashMap.put("platformextension", new AFb1cSDK().getMonetizationNetwork());
        component4 = (component2 + 95) % 128;
        return hashMap;
    }

    private <T> AFe1rSDK<T> getRevenue(AFe1kSDK aFe1kSDK, AFe1cSDK<T> aFe1cSDK) {
        return (AFe1rSDK) AFAdRevenueData(new Object[]{this, aFe1kSDK, aFe1cSDK}, 725080723, -725080722, System.identityHashCode(this));
    }
}